:root{--ux-page:#f6f8f6;--ux-surface:#fff;--ux-surface-2:#f0f4f0;--ux-surface-3:#e5ece6;--ux-ink:#243a2d;--ux-ink-2:#3e5346;--ux-ink-3:#647569;--ux-line:#e0e8e0;--ux-line-2:#cfdacf;--ux-accent:#28805b;--ux-accent-soft:#e3f2e9;--ux-accent-ink:#fff;--ux-grad:linear-gradient(140deg,#74b987,#27845c);--ux-mint:#28805b;--ux-warn:#b17a21;--ux-danger:#b65149;--ux-shadow-strong:rgba(23,51,34,.18);--app-bg:#f6f8f6;--app-white:#fff;--app-text:#243a2d;--app-muted:#637369;--app-line:#e0e8e0;--app-soft:#e3f2e9;--app-green:#28805b}
html[data-theme=dark]{--ux-page:#15221b;--ux-surface:#22362a;--ux-surface-2:#2b4031;--ux-surface-3:#3a5040;--ux-ink:#e5f3e7;--ux-ink-2:#c5d8c9;--ux-ink-3:#a3b9a8;--ux-line:#3a5040;--ux-line-2:#516659;--ux-accent:#9bd7ae;--ux-accent-soft:#344f3d;--ux-accent-ink:#183522;--ux-grad:linear-gradient(140deg,#b8e5be,#72b68a);--ux-mint:#9bd7ae;--app-bg:#15221b;--app-white:#22362a;--app-text:#e5f3e7;--app-muted:#a3b9a8;--app-line:#3a5040;--app-soft:#344f3d;--app-green:#9bd7ae}
*{box-sizing:border-box}body{margin:0;background:var(--app-bg);color:var(--app-text);font:14px/1.5 -apple-system,BlinkMacSystemFont,'Noto Sans JP','Hiragino Sans',sans-serif}button,input,select{font:inherit}button{cursor:pointer}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #68ac8a;outline-offset:3px}.ux{font-family:inherit}.sidebar{position:fixed;inset:0 auto 0 0;width:232px;padding:20px 16px;border-right:1px solid var(--app-line);background:var(--app-white)}.brand-logo{position:relative;width:200px;height:56px;overflow:hidden;background:#fff;border-radius:6px}.brand-logo img{position:absolute;width:215px;height:auto;left:-5px;top:-38px}.rail-slot{width:200px;overflow:hidden;margin-top:26px}.u040-rail{--ux-ink:#eaf2e9;--ux-page:#284432;--ux-grad:linear-gradient(140deg,#67ab7c,#27835a)}html[data-theme=dark] .u040-rail{--ux-ink:#293f31;--ux-page:#e6f3e8}.u040-logo{background:var(--ux-grad)}.u040-me i{background:var(--ux-grad)}.u040-tog{z-index:1}.sidebar-note{padding:18px 10px;color:var(--app-muted);font-size:12px}.sidebar-note span{font-size:11px}.main{margin-left:232px}.topbar{position:relative;height:76px;padding:10px 28px;display:flex;align-items:center;gap:16px;background:var(--app-white);border-bottom:1px solid var(--app-line)}.top-context{color:var(--app-muted);font-size:12px;flex:1}.search-slot{position:relative;width:360px;height:56px;z-index:20}.u046{z-index:20}.u046.is-closed{pointer-events:none}.u046.is-closed .u046-field{pointer-events:auto}.iconbutton{background:var(--app-bg);border:1px solid var(--app-line);border-radius:50%;width:36px;height:36px;color:var(--app-text);font-size:20px}.admin{font-size:12px;color:var(--app-muted)}.demo-banner{height:28px;padding:4px 28px;background:var(--app-soft);color:var(--app-green);font-size:11px;display:flex;justify-content:space-between}#view{padding:16px 28px 20px}.page-head{display:flex;justify-content:space-between;align-items:center;min-height:54px;margin-bottom:14px;gap:14px}.page-head h1{font-size:25px;line-height:1.3;margin:0;letter-spacing:.025em}.page-head p{color:var(--app-muted);margin:3px 0 0;font-size:12px}.button{border:1px solid var(--app-line);border-radius:11px;background:var(--app-white);color:var(--app-text);padding:9px 15px;font-weight:650;white-space:nowrap}.button.primary{background:var(--app-green);color:var(--app-bg);border-color:var(--app-green)}html[data-theme=light] .button.primary{color:white}.button.compact{padding:6px 11px;font-size:12px}.button.link{padding:0;background:none;border:0;color:var(--app-green);text-decoration:underline;text-underline-offset:3px}.pill{display:inline-flex;align-items:center;border-radius:999px;padding:4px 9px;color:var(--app-green);background:var(--app-soft);font-size:11px;white-space:nowrap;font-weight:650}.pill.amber{background:#fff0d8;color:#936418}.pill.gray{background:var(--ux-surface-2);color:var(--app-muted)}.pill.red{background:#fceae7;color:#a94e45}.pill.blue{background:#e9f1f5;color:#42677b}.metrics{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin-bottom:18px}.metric,.card{border:1px solid var(--app-line);border-radius:18px;background:var(--app-white);padding:18px}.metric{height:100px;padding:14px 18px}.metric label{display:block;color:var(--app-muted);font-size:12px}.metric strong{font-size:27px;line-height:1.3}.metric small{display:block;color:var(--app-muted);font-size:11px}.card h2{margin:0 0 14px;font-size:17px}.card p{margin:8px 0;color:var(--app-muted)}.home-grid{display:grid;grid-template-columns:380px 1fr;gap:18px}.home-tabs{padding:20px}.home-tabs h2{margin:0 0 16px}.home-guide{min-height:240px;position:relative;padding-right:145px}.home-guide h2{font-size:21px;margin:0}.home-guide p{font-size:14px;line-height:1.8;max-width:410px}.steps{display:flex;gap:8px;margin:16px 0}.step{background:var(--app-bg);border-radius:12px;padding:10px 14px;flex:1}.step b{display:block}.step span{font-size:11px;color:var(--app-muted)}.steps .active{background:var(--app-soft)}.cat{position:relative;width:110px;height:110px;overflow:hidden;background:white;border-radius:18px;flex:none}.cat img{position:absolute;width:153px;height:153px;left:-27px;top:-23px}.cat.guide{position:absolute;right:18px;top:35px;width:122px;height:122px}.cat.guide img{width:173px;height:173px;left:-33px;top:-29px}.cat.think img{left:-27px;top:-22px}.cat.ok img{left:-22px;top:-18px}.timeline{margin-top:16px}.timeline-row{display:grid;grid-template-columns:126px 1fr auto;gap:12px;padding:14px 0;border-bottom:1px solid var(--app-line)}.timeline-row:last-child{border-bottom:0}.timeline-row small{color:var(--app-muted)}.month-card{padding:12px 14px;border:1px solid var(--app-line);border-radius:18px;background:var(--app-white)}.month-toolbar{height:42px;display:flex;align-items:center;justify-content:space-between;gap:14px}.month-toolbar h2{margin:0;font-size:20px}.month-toolbar .controls{display:flex;gap:8px}.weekdays{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));height:28px;align-items:center;text-align:center;color:var(--app-muted);font-size:12px}.calendar{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));grid-template-rows:repeat(var(--weeks,5),95px);gap:3px}.day-cell{position:relative;border:1px solid var(--app-line);border-radius:10px;padding:5px 8px;background:var(--app-white);min-width:0;cursor:pointer}.day-cell:hover{border-color:var(--app-green);background:var(--app-soft)}.day-cell.selected{border:2px solid var(--app-green);padding:4px 7px}.day-cell.weekend{background:var(--app-bg)}.day-cell.outside{opacity:.4;cursor:default;background:var(--app-bg)}.day-cell .date-row{display:flex;align-items:center;justify-content:space-between;height:17px;line-height:1}.day-cell .date{font-size:12px;font-weight:750}.day-cell .count{color:var(--app-green);font-size:11px}.cell-names{margin:2px 0 0;padding:0;list-style:none}.cell-names li{line-height:15px;font-size:12px;display:flex;align-items:center;gap:4px}.plus{color:var(--app-green);font-size:12px;font-weight:bold}.cell-names li.extra{color:var(--app-green)}.more{display:block;padding:0;border:0;background:none;color:var(--app-green);font-size:11px;line-height:14px;text-decoration:underline}.absent{position:absolute;bottom:3px;right:7px;font-size:10px;color:#9b6754}.cell-empty{font-size:11px;margin:16px 0 0;color:var(--app-muted)}.month-legend{display:flex;align-items:center;justify-content:space-between;font-size:11px;color:var(--app-muted);height:24px;margin-top:4px}.month-legend b{color:var(--app-green)}.six-week .calendar{grid-template-rows:repeat(6,79px)}.six-week .day-cell{padding:4px 6px}.six-week .cell-names li{line-height:13px}.six-week .date-row{height:14px}.six-week .cell-names{margin-top:1px}.six-week .absent{font-size:10px;bottom:1px}.split{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(300px,1fr);gap:18px}.split.confirm{grid-template-columns:1fr 350px}.table{width:100%;border-collapse:collapse;table-layout:fixed}.table th{font-size:11px;color:var(--app-muted);font-weight:650;text-align:left;background:var(--app-bg);padding:10px 9px}.table td{padding:13px 9px;font-size:12px;border-bottom:1px solid var(--app-line);vertical-align:middle}.table td:first-child{font-weight:650}.table tbody tr:last-child td{border-bottom:0}.table input[type=checkbox]{width:17px;height:17px;accent-color:var(--app-green)}.table .selected-row{background:var(--app-soft)}.foot-actions{display:flex;justify-content:space-between;align-items:center;margin-top:14px;color:var(--app-muted);font-size:12px;gap:12px}.info{background:var(--app-soft);padding:14px 17px;border-radius:13px;margin-bottom:16px;color:var(--app-green);font-size:12px;line-height:1.7}.info b{display:block;font-size:14px}.day-person{display:flex;gap:14px;align-items:center;padding:15px 0;border-bottom:1px solid var(--app-line)}.person-avatar{display:grid;place-items:center;width:40px;height:40px;border-radius:50%;background:var(--app-soft);color:var(--app-green);font-weight:750}.person-meta{flex:1}.person-meta b{font-size:14px}.person-meta small{display:block;color:var(--app-muted);font-size:11px}.definition{display:grid;grid-template-columns:116px 1fr;margin:0}.definition dt,.definition dd{margin:0;padding:12px 0;border-bottom:1px solid var(--app-line)}.definition dt{color:var(--app-muted);font-size:12px}.definition dd{font-size:14px}.edit-layout{display:grid;grid-template-columns:minmax(0,1fr) 360px;gap:18px}.form-row{margin:14px 0}.form-row label{display:block;font-size:12px;font-weight:650;margin-bottom:6px}.form-row input,.form-row select{width:100%;height:42px;padding:0 12px;border:1px solid var(--app-line);border-radius:10px;color:var(--app-text);background:var(--app-white)}.checkline{display:flex;align-items:center;gap:8px;padding:8px 0;color:var(--app-muted)}.checkline input{accent-color:var(--app-green)}.confirmation-days{display:grid;grid-template-columns:repeat(2,1fr);gap:12px;margin-bottom:16px}.confirmation-days .card{padding:14px}.confirmation-days h2{font-size:16px}.wizard-slot{width:350px;height:400px}.confirm-resource{margin:0 0 16px;background:var(--app-white)}.confirm-cat{display:flex;gap:16px;align-items:center;margin-top:16px}.confirm-cat p{font-size:12px;line-height:1.8;max-width:200px}.toast-host{position:fixed;right:25px;bottom:24px;width:350px;height:0;z-index:50;pointer-events:none}.toast-host .u070{position:absolute;bottom:0;pointer-events:none}.toast-host .u070-zone{pointer-events:none}.toast-host .u070-t{pointer-events:auto}.toast-host .u070-btns{display:none}.toast-host .u070-empty{display:none}.toast-cat{position:absolute;right:360px;bottom:0;width:78px;height:78px;opacity:0;transition:opacity .3s;overflow:hidden;border-radius:50%;background:white}.toast-cat img{width:110px;height:110px;position:absolute;left:-16px;top:-13px}.toast-cat.show{opacity:1}#drawer{position:fixed;inset:0;z-index:40;background:rgba(25,49,34,.18)}.drawer-panel{position:absolute;top:0;bottom:0;right:0;width:430px;background:var(--app-white);padding:24px;overflow-y:auto;box-shadow:-8px 0 40px rgba(0,0,0,.08)}.drawer-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:18px}.drawer-heading h2{font-size:20px;margin:0}.drawer-summary{display:flex;gap:8px;flex-wrap:wrap}.drawer-section{margin:22px 0}.drawer-section h3{font-size:13px;color:var(--app-muted);margin:0 0 4px}.drawer-person{display:flex;justify-content:space-between;align-items:center;padding:12px 0;border-bottom:1px solid var(--app-line);gap:10px}.drawer-person .pill{font-size:10px}.empty-state{display:flex;gap:16px;align-items:center;margin:25px 0;color:var(--app-muted)}.subtle{font-size:12px;color:var(--app-muted)}.inline-controls{display:flex;gap:8px;align-items:center}.table-card{padding:14px}.statusnote{font-size:11px;color:var(--app-muted)}
@media(max-width:1000px){.sidebar{width:108px}.brand-logo{width:76px;height:40px}.brand-logo img{width:150px;top:-28px;left:-25px}.rail-slot{width:76px}.u040{--rw:76px}.u040.is-wide{--rw:76px}.u040 .u040-it span,.u040-name,.u040-me span,.u040-tog{display:none}.sidebar-note{padding:14px 0;font-size:10px}.main{margin-left:108px}.top-context{display:none}.home-grid,.split,.edit-layout{grid-template-columns:1fr}.split.confirm{grid-template-columns:1fr 350px}.calendar{grid-template-rows:repeat(var(--weeks),108px)}}
@media(max-width:600px){body{font-size:14px}.sidebar{position:relative;width:100%;height:102px;padding:10px;border:0;border-bottom:1px solid var(--app-line)}.brand-logo{width:180px;height:42px;position:absolute;top:8px;left:12px}.brand-logo img{width:194px;left:-5px;top:-36px}.rail-slot{position:absolute;top:52px;left:0;width:100%;margin:0;overflow:visible}.u040{width:100%;height:40px}.u040-rail{width:100%;padding:0 5px;border-radius:0;background:var(--app-white);overflow:visible}.u040-top,.u040-me,.u040-hl,.u040-bd,.sidebar-note{display:none}.u040-nav{flex-direction:row;gap:2px}.u040-nav li{flex:1}.u040-it{padding:0;justify-content:center;height:38px;opacity:1;gap:4px}.u040-it svg{display:none}.u040.is-wide .u040-it span{display:block;font-size:11px}.u040-it[aria-current]{background:var(--app-soft)}.main{margin-left:0}.topbar{padding:9px 12px;height:70px;gap:8px}.admin{display:none}.search-slot{width:calc(100% - 44px)}.u046{width:100%;max-width:360px}.demo-banner{height:auto;min-height:28px;padding:5px 12px;font-size:10px}.demo-banner span{display:none}#view{padding:14px 12px}.page-head h1{font-size:22px}.page-head{align-items:flex-start}.page-head p{font-size:11px}.metrics{gap:6px}.metric{padding:10px 8px;height:92px}.metric strong{font-size:23px}.metric label{font-size:10px}.metric small{font-size:10px}.home-grid{display:block}.home-tabs{padding:10px;margin-bottom:12px}.u039{max-width:100%}.home-guide{padding-right:16px;padding-top:120px}.cat.guide{top:10px;right:16px;width:100px;height:100px}.steps{gap:5px}.step{padding:10px 8px}.timeline-row{grid-template-columns:85px 1fr}.timeline-row .pill{display:none}.month-card{padding:8px 5px}.month-toolbar{flex-wrap:wrap;height:78px}.month-toolbar h2{font-size:18px}.month-toolbar .controls{gap:4px}.month-toolbar .button{font-size:11px;padding:5px 7px}.calendar{gap:2px;grid-template-rows:repeat(var(--weeks),126px)}.day-cell{padding:3px 2px}.day-cell.selected{padding:2px 1px}.day-cell .date-row{height:24px;display:block}.day-cell .count{display:block;font-size:9px}.cell-names li{font-size:12px;line-height:14px;display:block;overflow-wrap:anywhere;margin-bottom:2px}.plus{font-size:10px}.more{font-size:9px;line-height:11px}.absent{font-size:9px;right:2px;bottom:2px}.cell-empty{font-size:10px}.month-legend{height:auto;align-items:flex-start;gap:4px;font-size:10px}.month-legend span{max-width:65%}.six-week .calendar{grid-template-rows:repeat(6,126px)}.six-week .day-cell{padding:3px 2px}.six-week .date-row{height:24px}.six-week .cell-names li{line-height:14px}.table th,.table td{padding:10px 4px;font-size:10px;overflow-wrap:anywhere}.table td .pill{font-size:9px;padding:3px 4px}.table-card{padding:7px}.table .button{font-size:10px;padding:4px 3px}.hide-mobile{display:none}.split.confirm{display:block}.confirmation-days{display:block}.confirmation-days .card{margin-bottom:10px}.wizard-slot{max-width:100%;margin-top:16px}.u042{max-width:100%}.foot-actions{flex-wrap:wrap}.toast-host{right:12px;width:calc(100% - 24px)}.toast-host .u070{max-width:100%}.toast-cat{display:none}.drawer-panel{width:100%;max-width:430px}.split .card{margin-bottom:12px}.edit-layout .card{margin-bottom:12px}.definition{grid-template-columns:100px 1fr}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation-duration:.01ms!important;transition-duration:.01ms!important;scroll-behavior:auto!important}}
/* Calendar layout uses the application grid, with Lucian components unchanged. */
.month-view .page-head{min-height:40px;margin-bottom:8px}.month-view{padding-top:12px!important}.month-view .month-card{padding:10px 14px}.month-view .month-toolbar{height:36px}.month-view .weekdays{height:24px}.month-view .month-legend{height:20px}.month-view .cell-names li{line-height:13px}
@media(max-width:600px){.month-view .month-card{padding:8px 5px}.month-view .month-toolbar{height:78px}.month-view .cell-names li{line-height:14px}.month-view .month-legend{height:auto}}
/* Desktop density: every primary screen fits at 1366 × 768. */
@media(min-width:1001px){.topbar{height:68px}.demo-banner{height:24px;padding-top:3px;padding-bottom:3px}#view{padding:12px 28px}.page-head{min-height:48px;margin-bottom:10px}.page-head h1{font-size:24px;line-height:1.2}.page-head p{line-height:1.4;margin-top:2px}.metrics{margin-bottom:14px}.metric{height:88px;padding:11px 18px}.metric strong{font-size:26px}.home-guide{min-height:206px;padding-top:16px;padding-bottom:16px}.home-guide h2{font-size:19px;line-height:1.5}.home-guide p{line-height:1.55;margin:7px 0 12px}.timeline{margin-top:14px;padding:14px 18px}.timeline h2{margin-bottom:8px}.timeline .steps{margin:8px 0}.timeline .step{padding:7px 12px}.timeline-row{padding:8px 0;font-size:12px}.home-tabs{padding-top:16px;padding-bottom:16px}.home-tabs h2{margin-bottom:10px}.table td{padding:7px 9px}.table .button.compact{padding:4px 9px}.table th{padding:8px 9px}.foot-actions{margin-top:10px}.info{padding:10px 14px}.day-person{padding:11px 0}.table-card{padding:12px}.month-view .page-head h1{font-size:23px}.month-view .page-head p{font-size:11px}.month-view .page-head{min-height:42px;margin-bottom:8px}.month-view .month-legend{height:20px}.cell-names li{line-height:13px}}
@media(min-width:1001px){#view[data-screen=intake] .metric{height:78px;padding:8px 18px}#view[data-screen=intake] .table td{padding:5px 9px}#view[data-screen=intake]>.info{margin-top:10px!important;margin-bottom:0;padding:8px 14px}#view[data-screen=intake]>.info b{display:inline;margin-right:16px;font-size:12px}#view[data-screen=intake]>.info{font-size:11px}}
