:root{color:#17332c;background:#fbfaf7;font-family:Noto Sans JP,Yu Gothic UI,Yu Gothic,Hiragino Kaku Gothic ProN,Meiryo,sans-serif;font-synthesis:none;text-rendering:optimizeLegibility;--ink: #17332c;--muted: #6f7974;--faint: #909893;--paper: #fbfaf7;--surface: #fffefa;--surface-soft: #f7f7f3;--line: #dfe4df;--line-soft: #ecefeb;--green: #086b55;--green-deep: #075644;--green-soft: #e7f2ed;--purple: #7257b3;--purple-soft: #f1ecfb;--orange: #ef6a35;--orange-soft: #fff0e8;--cyan: #1ba8b5;--cyan-soft: #e7f7f8;--blue: #2c578f;--blue-light: #68aede;--teal: #0c8b78;--mint: #86c8bc;--shadow: 0 16px 44px rgba(36, 53, 46, .08);--shadow-soft: 0 7px 20px rgba(36, 53, 46, .06)}*{box-sizing:border-box}html{min-width:320px;min-height:100%;background:var(--paper)}body{margin:0;min-width:320px;min-height:100vh;color:var(--ink);background:var(--paper);-webkit-font-smoothing:antialiased}button,input,textarea,select{color:inherit;font:inherit}button{border:0}button,select,input[type=checkbox],label.upload-zone{cursor:pointer}button:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:3px solid rgba(13,121,95,.2);outline-offset:2px}button:disabled{cursor:not-allowed;opacity:.5}h1,h2,h3,p{margin-top:0}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.eyebrow{margin:0 0 7px;color:var(--green);font-size:10px;font-weight:800;letter-spacing:.15em;text-transform:uppercase}.login-page{min-height:100vh;display:grid;grid-template-columns:58% 42%;overflow-x:hidden;background:var(--paper)}.login-story{min-width:0;min-height:100vh;padding:clamp(34px,5vw,76px);position:relative;display:flex;flex-direction:column;overflow:hidden;border-right:1px solid var(--line);background:#f4f6f0}.login-brand,.top-brand{display:flex;align-items:center;gap:12px}.login-brand img{width:54px;height:54px;border-radius:16px}.login-brand strong,.top-brand strong{display:block;font-family:Yu Mincho,Hiragino Mincho ProN,serif;font-size:19px;letter-spacing:.08em}.login-brand span,.top-brand span{display:block;margin-top:3px;color:var(--muted);font-size:9px;font-weight:700;letter-spacing:.12em}.login-copy{max-width:620px;margin-top:clamp(80px,13vh,140px);position:relative;z-index:2}.login-copy h1{margin-bottom:24px;font-family:Yu Mincho,Hiragino Mincho ProN,serif;font-size:clamp(38px,4vw,58px);font-weight:600;line-height:1.32;letter-spacing:-.035em}.login-copy>p:last-child{max-width:510px;margin-bottom:0;color:var(--muted);font-size:14px;line-height:2}.tenant-preview{width:fit-content;margin-top:auto;padding:15px 18px;display:flex;align-items:center;gap:12px;position:relative;z-index:2;border:1px solid rgba(8,107,85,.18);border-radius:14px;color:var(--green-deep);background:#fffefacc;box-shadow:var(--shadow-soft)}.tenant-preview span,.tenant-preview strong{display:block}.tenant-preview span{margin-bottom:3px;color:var(--muted);font-size:10px}.tenant-preview strong{font-size:12px}.login-botanical{width:min(48vw,560px);max-height:390px;object-fit:contain;position:absolute;right:-6%;bottom:-3%;opacity:.88;pointer-events:none}.login-panel{min-width:0;min-height:100vh;padding:48px clamp(30px,4vw,64px);display:grid;place-items:center;background:var(--surface)}.login-card{width:min(100%,470px)}.login-card-head{margin-bottom:30px}.secure-icon{width:48px;height:48px;margin-bottom:22px;display:grid;place-items:center;border:1px solid rgba(8,107,85,.18);border-radius:15px;color:var(--green);background:var(--green-soft)}.login-card-head h2{margin-bottom:9px;font-family:Yu Mincho,Hiragino Mincho ProN,serif;font-size:29px;font-weight:600}.login-card-head>p:last-child{margin-bottom:0;color:var(--muted);font-size:12px}.field{margin-bottom:17px;display:grid;gap:7px}.field>span{color:#344b44;font-size:11px;font-weight:700}.field-control{height:50px;padding:0 14px;display:flex;align-items:center;gap:10px;border:1px solid var(--line);border-radius:13px;background:#fff;transition:.16s ease}.field-control:focus-within{border-color:var(--green);box-shadow:0 0 0 4px #086b5514}.field-control svg{flex:0 0 auto;color:var(--muted)}.field-control input{width:100%;min-width:0;border:0;outline:0;background:transparent;font-size:13px}.field-end,.text-button{padding:0;color:var(--green);background:transparent;font-size:10px;font-weight:700}.login-options{margin:2px 0 18px;display:flex;align-items:center;justify-content:space-between;gap:14px}.check-label{display:flex;align-items:center;gap:8px;color:var(--muted);font-size:10px}.check-label input{accent-color:var(--green)}.form-error{margin:-4px 0 15px;padding:11px 12px;border:1px solid #f1c8ba;border-radius:10px;color:#9b3e24;background:#fff4ef;font-size:11px;line-height:1.6}.login-submit{width:100%;min-height:52px;display:flex;align-items:center;justify-content:center;gap:10px;border-radius:13px;color:#fff;background:var(--green);box-shadow:0 11px 24px #086b5533;font-size:13px;font-weight:800;transition:.16s ease}.login-submit:hover{background:var(--green-deep);transform:translateY(-1px)}.demo-credentials{margin-top:20px;padding:13px;display:flex;flex-wrap:wrap;gap:6px;border:1px dashed #d5ddd7;border-radius:11px;background:#fafbf8}.demo-credentials span{width:100%;margin-bottom:2px;color:var(--muted);font-size:9px;font-weight:700}.demo-credentials code{padding:4px 6px;border-radius:6px;color:#4e5e58;background:#eef1ed;font-size:9px}.login-footnote{margin:16px 0 0;color:var(--faint);font-size:9px;line-height:1.7}.app{min-width:1180px;min-height:100vh;background:var(--paper)}.topbar{height:66px;padding:0 22px;display:grid;grid-template-columns:192px 174px 205px minmax(240px,1fr) auto 170px;align-items:center;gap:14px;position:sticky;top:0;z-index:40;border-bottom:1px solid var(--line);background:#fffefaf7;-webkit-backdrop-filter:blur(18px);backdrop-filter:blur(18px)}.top-brand{width:100%;padding-right:20px;border-right:1px solid var(--line);border-radius:8px 0 0 8px;background:transparent;text-align:left}.top-brand:hover strong{color:var(--green)}.top-brand img{width:39px;height:39px;border-radius:11px}.top-brand strong{font-size:15px}.top-brand span{font-size:8px}.workspace-nav{padding:3px;display:grid;grid-template-columns:1fr 1fr;gap:3px;border:1px solid var(--line);border-radius:11px;background:#f4f5f1}.workspace-nav button{height:34px;padding:0 9px;display:flex;align-items:center;justify-content:center;gap:6px;border-radius:8px;color:var(--muted);background:transparent;font-size:9px;font-weight:800;white-space:nowrap}.workspace-nav button:hover{color:var(--green)}.workspace-nav button.active{color:var(--green-deep);background:#fff;box-shadow:0 3px 10px #24352e14}.today{display:flex;align-items:center;gap:12px;color:#2c3f39}.today strong{font-size:12px;letter-spacing:.04em}.global-search{width:min(100%,360px);height:38px;margin-left:auto;padding:0 13px;display:flex;align-items:center;gap:9px;border:1px solid #d9dfda;border-radius:99px;background:#fff}.global-search input{width:100%;border:0;outline:0;background:transparent;font-size:11px}.global-search svg{flex:0 0 auto}.top-actions{display:flex;align-items:center;gap:4px}.top-actions>button,.top-actions .popover-wrap>button{width:54px;min-height:48px;display:grid;place-items:center;gap:2px;position:relative;border-radius:10px;background:transparent;font-size:7px}.top-actions button:hover,.profile-button:hover{background:#f3f5f1}.notification-button{width:40px!important}.notification-dot{width:7px;height:7px;position:absolute;right:6px;top:8px;border:2px solid #fff;border-radius:50%;background:#ef513d}.profile-wrap,.popover-wrap{position:relative}.profile-wrap{padding-left:14px;border-left:1px solid var(--line)}.profile-button{width:100%;min-height:50px;padding:4px 6px;display:flex;align-items:center;gap:9px;border-radius:12px;background:transparent;text-align:left}.profile-avatar{width:35px;height:35px;display:grid;place-items:center;flex:0 0 auto;border-radius:50%;color:#fff;background:#32436c;font-size:10px;font-weight:800}.profile-copy{min-width:0;flex:1}.profile-copy strong,.profile-copy small{display:block}.profile-copy strong{overflow:hidden;font-size:10px;text-overflow:ellipsis;white-space:nowrap}.profile-copy small{margin-top:2px;color:var(--muted);font-size:8px}.popover{min-width:260px;padding:10px;position:absolute;right:0;top:calc(100% + 8px);z-index:80;border:1px solid var(--line);border-radius:14px;background:#fff;box-shadow:var(--shadow)}.notices>strong{display:block;padding:7px 9px 10px;font-size:11px}.notices button,.profile-menu>button{width:100%;padding:10px;display:flex;align-items:center;gap:8px;border-radius:9px;color:#46564f;background:transparent;font-size:10px;text-align:left}.notices button:hover,.profile-menu>button:hover{background:var(--surface-soft)}.tenant-chip{margin-bottom:6px;padding:10px;display:flex;align-items:flex-start;gap:9px;border-bottom:1px solid var(--line-soft)}.tenant-chip strong,.tenant-chip span{display:block}.tenant-chip strong{font-size:10px}.tenant-chip span{margin-top:4px;color:var(--muted);font-size:8px}.home-dashboard{width:min(100%,1500px);margin:0 auto;padding:24px 28px 34px;display:grid;gap:14px}.home-hero{min-height:94px;padding:18px 27px;display:flex;align-items:center;justify-content:space-between;gap:28px;overflow:hidden;position:relative;border:1px solid var(--line);border-radius:15px;background:#f3f6f0}.home-hero:after{content:"";width:190px;height:190px;position:absolute;right:190px;top:-88px;border:1px solid rgba(8,107,85,.1);border-radius:50%;pointer-events:none}.home-hero>div{max-width:740px;position:relative;z-index:1}.home-hero h1{margin-bottom:0;font-family:Yu Mincho,Hiragino Mincho ProN,serif;font-size:27px;font-weight:600;letter-spacing:.02em}.home-hero>div>p:last-child{margin-bottom:0;color:#596963;font-size:11px;line-height:1.75}.home-hero>button{min-width:174px;height:43px;padding:0 17px;display:inline-flex;align-items:center;justify-content:center;gap:9px;position:relative;z-index:1;border-radius:10px;color:#fff;background:var(--green);font-size:10px;font-weight:800}.home-hero>button:hover{background:var(--green-deep)}.home-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.home-kpi{min-height:106px;padding:17px 18px;display:flex;align-items:flex-start;gap:13px;border:1px solid var(--line);border-radius:13px;background:var(--surface);box-shadow:0 5px 16px #24352e09}.home-kpi-icon{width:38px;height:38px;display:grid;place-items:center;flex:0 0 auto;border-radius:50%;color:var(--green);background:var(--green-soft)}.home-kpi.tone-purple .home-kpi-icon{color:var(--purple);background:var(--purple-soft)}.home-kpi.tone-orange .home-kpi-icon{color:var(--orange);background:var(--orange-soft)}.home-kpi.tone-blue .home-kpi-icon{color:var(--blue);background:#e9f0fa}.home-kpi>div{min-width:0;display:grid;gap:2px}.home-kpi>div>span{color:var(--muted);font-size:9px;font-weight:700}.home-kpi strong{font-family:Yu Mincho,Hiragino Mincho ProN,serif;font-size:25px;font-weight:600;line-height:1.2}.home-kpi small{color:var(--faint);font-size:8px;line-height:1.45}.home-primary-grid,.home-analytics-grid,.home-bottom-grid{display:grid;gap:12px}.home-primary-grid{grid-template-columns:minmax(0,1.65fr) minmax(295px,.75fr)}.home-analytics-grid{grid-template-columns:minmax(0,1.55fr) minmax(330px,.75fr)}.home-bottom-grid{grid-template-columns:minmax(0,1.55fr) minmax(300px,.65fr)}.home-card{min-width:0;border:1px solid var(--line);border-radius:14px;background:var(--surface);box-shadow:0 5px 18px #24352e09}.home-card-head{min-height:71px;padding:17px 19px 14px;display:flex;align-items:flex-start;justify-content:space-between;gap:14px;border-bottom:1px solid var(--line-soft)}.home-card-head h2{margin-bottom:4px;font-family:Yu Mincho,Hiragino Mincho ProN,serif;font-size:16px;font-weight:600}.home-card-head p:not(.eyebrow){margin-bottom:0;color:var(--muted);font-size:8px}.home-card-head>span{min-width:31px;height:27px;padding:0 8px;display:inline-flex;align-items:center;justify-content:center;border-radius:99px;color:var(--green);background:var(--green-soft);font-size:9px;font-weight:800}.agenda-list{max-height:338px;overflow-y:auto}.agenda-list>button{width:100%;min-height:56px;padding:8px 16px;display:grid;grid-template-columns:46px 30px minmax(140px,1fr) 65px 94px 17px;align-items:center;gap:9px;border-bottom:1px solid var(--line-soft);background:transparent;text-align:left}.agenda-list>button:last-child{border-bottom:0}.agenda-list>button:hover,.agenda-list>button.current{background:#f6faf7}.agenda-list>button.current{box-shadow:inset 3px 0 0 var(--green)}.agenda-list time{color:var(--green);font-size:9px;font-weight:800}.agenda-initial{width:28px;height:28px;display:grid;place-items:center;border-radius:50%;color:var(--green-deep);background:var(--green-soft);font-size:9px;font-weight:800}.agenda-patient{min-width:0}.agenda-patient strong,.agenda-patient small{display:block}.agenda-patient strong{font-size:10px}.agenda-patient small{margin-top:3px;overflow:hidden;color:var(--muted);font-size:8px;text-overflow:ellipsis;white-space:nowrap}.agenda-status{justify-self:start;padding:4px 7px;border-radius:99px;font-size:8px;font-weight:800}.agenda-status.ready{color:var(--green);background:var(--green-soft)}.agenda-status.waiting{color:#8a683c;background:#f8efdf}.agenda-list .source-badge{justify-self:start}.priority-list{padding:10px 13px 13px;display:grid;gap:8px}.priority-list>button{width:100%;min-height:84px;padding:12px 13px;display:grid;gap:8px;border:1px solid var(--line-soft);border-radius:10px;background:#fff;text-align:left}.priority-list>button:hover{border-color:#b9cbc3;box-shadow:var(--shadow-soft)}.priority-list>button>div{display:flex;align-items:center;justify-content:space-between;gap:8px}.priority-list time{color:var(--faint);font-size:8px}.priority-list strong{font-size:10px;line-height:1.55}.priority-link{display:inline-flex;align-items:center;gap:3px;color:var(--green);font-size:8px;font-weight:800}.trend-summary{gap:5px}.clinic-trend-chart{height:250px;padding:13px 15px 0 8px}.clinic-trend-card>footer{min-height:43px;padding:0 18px;display:flex;align-items:center;gap:14px;color:var(--muted);font-size:8px}.clinic-trend-card>footer>span{display:inline-flex;align-items:center;gap:5px}.clinic-trend-card>footer small{margin-left:auto;color:var(--faint);font-size:7px}.treatment-list{padding:20px 19px 17px;display:grid;gap:18px}.treatment-row{display:flex;align-items:flex-end;justify-content:space-between;gap:14px}.treatment-row span,.treatment-row strong,.treatment-row small{display:block}.treatment-row strong{margin-bottom:4px;font-size:10px}.treatment-row small{color:var(--muted);font-size:8px}.treatment-row b{color:var(--green);font-family:Yu Mincho,Hiragino Mincho ProN,serif;font-size:20px;font-weight:600}.treatment-track{height:6px;margin-top:8px;overflow:hidden;border-radius:99px;background:#edf0ec}.treatment-track span{height:100%;display:block;border-radius:inherit;background:var(--green)}.suggestion-grid{padding:15px;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.suggestion-grid>article{min-height:166px;padding:15px;display:flex;flex-direction:column;border:1px solid var(--line-soft);border-radius:11px;background:#fbfbf8}.suggestion-grid>article>span{color:var(--purple);font-family:Yu Mincho,Hiragino Mincho ProN,serif;font-size:20px}.suggestion-grid h3{margin:8px 0 7px;font-size:11px;line-height:1.5}.suggestion-grid p{margin-bottom:12px;color:var(--muted);font-size:8px;line-height:1.65}.suggestion-grid button{margin-top:auto;padding:0;display:inline-flex;align-items:center;gap:5px;color:var(--green);background:transparent;font-size:8px;font-weight:800}.home-integration{padding-bottom:14px}.home-integration dl{margin:0;padding:10px 17px 8px}.home-integration dl>div{min-height:35px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line-soft)}.home-integration dt{color:var(--muted);font-size:9px}.home-integration dd{margin:0;font-size:10px;font-weight:800}.home-integration>button{width:calc(100% - 34px);height:37px;margin:5px 17px 8px;display:flex;align-items:center;justify-content:center;gap:7px;border-radius:9px;color:#fff;background:var(--green);font-size:9px;font-weight:800}.home-integration>small{display:block;padding:0 17px;color:var(--faint);font-size:7px}.queue-bar{min-height:79px;padding:13px 22px;display:grid;grid-template-columns:184px minmax(0,1fr) 42px;align-items:center;gap:16px;border-bottom:1px solid var(--line);background:var(--surface)}.queue-title{display:flex;align-items:baseline;gap:14px}.queue-title span{font-size:11px;font-weight:800}.queue-title strong{font-family:Yu Mincho,Hiragino Mincho ProN,serif;font-size:18px}.patient-queue{min-width:0;display:flex;align-items:center;gap:10px;overflow-x:auto;scrollbar-width:none}.patient-queue::-webkit-scrollbar{display:none}.queue-patient{min-width:154px;height:46px;padding:0 14px;display:flex;align-items:center;gap:15px;flex:1 0 154px;border:1px solid var(--line);border-radius:10px;background:#fff;color:#68726e;text-align:left;transition:.15s ease}.queue-patient:hover{border-color:#a9bcb4;transform:translateY(-1px)}.queue-patient span{font-size:9px;font-weight:700}.queue-patient strong{color:#394a44;font-size:10px;white-space:nowrap}.queue-patient.selected{border-color:var(--green);color:var(--green);background:#f5fbf8;box-shadow:inset 0 0 0 2px #086b5524}.queue-patient.selected strong{color:var(--green-deep)}.queue-empty{padding:12px 18px;color:var(--muted);font-size:10px}.queue-next{width:39px;height:39px;display:grid;place-items:center;border:1px solid var(--line);border-radius:50%;background:#fff}.queue-next:hover{color:var(--green);border-color:var(--green)}.dashboard-shell{min-height:675px;margin:12px 11px 14px;display:grid;grid-template-columns:310px minmax(630px,1fr);overflow:hidden;border:1px solid var(--line);border-radius:14px;background:var(--surface)}.patient-overview{min-width:0;padding:22px 24px 24px;position:relative;overflow:hidden;border-right:1px solid var(--line)}.selected-label,.section-label{display:block;color:var(--green);font-size:9px;font-weight:800;letter-spacing:.04em}.patient-overview>h1{margin:9px 0 5px;font-family:Yu Mincho,Hiragino Mincho ProN,serif;font-size:26px;font-weight:600;letter-spacing:.05em}.patient-overview>h1 small{margin-left:4px;font-family:inherit;font-size:11px;font-weight:400}.patient-meta{margin-bottom:29px;color:var(--muted);font-size:10px}.insight-block{position:relative;z-index:2}.insight-block h2{margin:14px 0 12px;font-family:Yu Mincho,Hiragino Mincho ProN,serif;font-size:20px;font-weight:600;line-height:1.62;letter-spacing:.02em}.insight-block>p{margin-bottom:16px;color:#52625c;font-size:10px;line-height:1.95}.highlight-list{margin:0;padding:0;display:grid;gap:9px;list-style:none}.highlight-list li{display:flex;align-items:flex-start;gap:9px;color:#485951;font-size:9px;line-height:1.55}.highlight-dot{width:6px;height:6px;margin-top:4px;flex:0 0 auto;border-radius:50%;background:var(--green)}.highlight-dot.dot-1{background:var(--purple)}.highlight-dot.dot-2{background:var(--orange)}.intervention-log{margin-top:30px;position:relative;z-index:2}.intervention-log ol{margin:12px 0 0;padding:0;display:grid;gap:11px;list-style:none}.intervention-log li{display:grid;grid-template-columns:40px 1fr;gap:6px;color:#53635d;font-size:9px}.intervention-log time{color:#33463f;font-weight:800}.overview-botanical{width:255px;height:190px;object-fit:contain;position:absolute;left:-22px;bottom:-28px;opacity:.72;pointer-events:none}.trend-workspace{min-width:0;padding:20px 20px 12px}.trend-head{min-height:56px;display:flex;align-items:flex-start;justify-content:space-between;gap:18px;border-bottom:1px solid var(--line)}.trend-title-row{display:flex;align-items:center;gap:10px}.trend-head h2{margin-bottom:5px;font-size:14px}.trend-head p{margin-bottom:0;color:var(--muted);font-size:9px}.updated{display:inline-flex;align-items:center;gap:4px;color:var(--faint);font-size:8px}.period-switch{padding:3px;display:flex;border:1px solid var(--line);border-radius:10px;background:#f6f7f4}.period-switch button{min-width:54px;height:29px;padding:0 9px;border-radius:7px;color:var(--muted);background:transparent;font-size:9px;font-weight:700}.period-switch button.active{color:var(--green-deep);background:#fff;box-shadow:0 2px 8px #26342d1a}.chart-section{min-width:0}.chart-section>header{min-height:48px;display:flex;align-items:center;justify-content:space-between;gap:14px}.chart-section>header>div:first-child{display:flex;align-items:baseline;gap:8px}.chart-type{font-size:12px;font-weight:800}.chart-section header small{color:var(--muted);font-size:8px}.chart-legend-inline,.objective-legend{display:flex;align-items:center;gap:14px;color:#596963;font-size:8px}.chart-legend-inline span,.objective-legend span{display:inline-flex;align-items:center;gap:5px}.legend-dot{width:14px;height:3px;display:inline-block;border-radius:99px;background:var(--green)}.legend-dot.purple{background:var(--purple)}.legend-dot.orange{background:var(--orange)}.chart-container{width:100%}.chart-container.subjective{height:210px}.chart-container.objective{height:143px}.recharts-wrapper{outline:none}.recharts-legend-item-text{color:var(--muted)!important;font-size:9px}.chart-tooltip{min-width:150px;padding:10px 11px;display:grid;gap:5px;border:1px solid var(--line);border-radius:10px;background:#fffffff5;box-shadow:var(--shadow-soft);font-size:9px}.chart-tooltip strong{padding-bottom:4px;border-bottom:1px solid var(--line-soft);font-size:10px}.memo-row{min-height:60px;padding:6px 5px 12px;display:flex;align-items:center;gap:4px;overflow:hidden;border-bottom:1px solid var(--line)}.memo-label{margin-right:5px;align-self:flex-start;color:#394c44;font-size:8px;font-weight:800}.memo-row button{min-width:106px;max-width:132px;min-height:42px;padding:7px 8px;flex:0 0 auto;border:1px solid var(--line);border-radius:9px;color:#52625d;background:#fff;font-size:8px;line-height:1.45;text-align:left}.objective-chart>header{min-height:49px}.source-badge{height:27px;padding:0 10px;display:inline-flex;align-items:center;gap:5px;border-radius:99px;font-size:8px;font-weight:800}.source-badge.apple{color:#274c83;background:#e9f0fa}.source-badge.android{color:#087566;background:#e8f5f1}.source-badge.empty{color:var(--muted);background:#eef0ed}.objective-legend{min-height:25px;justify-content:flex-start}.bar-key{width:8px;height:8px;display:inline-block;border-radius:2px;background:var(--blue)}.bar-key.blue{background:var(--blue-light)}.bar-key.teal{background:var(--teal)}.bar-key.mint{background:var(--mint)}.line-key{width:15px;height:0;display:inline-block;border-top:2px dashed #5376b2}.line-key.teal-line{border-color:var(--teal)}.visit-key{width:0;height:13px;display:inline-block;border-left:2px dashed var(--green)}.chart-source-foot{min-height:30px;display:flex;align-items:center;gap:5px;color:var(--faint);font-size:7px}.chart-source-foot span{margin-left:auto}.health-empty{min-height:180px;display:flex;align-items:center;justify-content:center;gap:13px;border:1px dashed #cfd7d1;border-radius:12px;color:var(--muted);background:#fafbf8}.health-empty strong,.health-empty span{display:block}.health-empty strong{margin-bottom:5px;color:#3d5048;font-size:11px}.health-empty span{font-size:9px}.attention-panel{min-width:0;padding:25px 20px 20px;border-left:1px solid var(--line)}.attention-panel>header{margin-bottom:20px}.attention-panel h2{margin-bottom:5px;font-size:12px}.attention-panel h2 span{color:var(--muted)}.attention-panel header p{margin-bottom:0;color:var(--muted);font-size:8px}.attention-list{display:grid;gap:15px}.attention-card{padding:16px 14px 13px;border:1px solid var(--line);border-radius:13px;background:#fff;box-shadow:0 5px 15px #24352e08}.attention-card.confirmed,.attention-card.dismissed{opacity:.67}.attention-card-title{min-height:48px;display:flex;align-items:flex-start;gap:10px}.attention-card-title strong{font-size:11px;line-height:1.58}.attention-icon{width:34px;height:34px;display:grid;place-items:center;flex:0 0 auto;border-radius:50%}.attention-card.purple .attention-icon{color:var(--purple);background:var(--purple-soft)}.attention-card.orange .attention-icon{color:var(--orange);background:var(--orange-soft)}.attention-card.cyan .attention-icon{color:var(--cyan);background:var(--cyan-soft)}.attention-card>p{margin:4px 0 13px;color:var(--muted);font-size:8px;line-height:1.5}.attention-card label{height:34px;padding:0 8px 0 11px;display:flex;align-items:center;border:1px solid var(--line);border-radius:9px;background:#fff}.attention-card select{width:100%;border:0;outline:0;-webkit-appearance:none;-moz-appearance:none;appearance:none;color:var(--green);background:transparent;font-size:9px;font-weight:800}.attention-card label svg{pointer-events:none}.show-all{margin:16px auto 0;padding:8px 10px;display:flex;align-items:center;gap:6px;color:var(--green);background:transparent;font-size:9px;font-weight:700}.planner-section{margin:0 11px 12px;padding:19px;border:1px solid var(--line);border-radius:14px;background:var(--surface)}.planner-head{margin-bottom:15px;display:flex;align-items:flex-end;justify-content:space-between;gap:20px}.planner-head h2{margin-bottom:5px;font-family:Yu Mincho,Hiragino Mincho ProN,serif;font-size:17px;font-weight:600}.planner-head h2+p{margin-bottom:6px;color:var(--muted);font-size:9px}.planner-add{height:35px;padding:0 12px;display:inline-flex;align-items:center;gap:6px;border:1px solid #b9ccc4;border-radius:9px;color:var(--green);background:#fff;font-size:9px;font-weight:800}.planner-board{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.planner-column{min-width:0;padding:12px;border:1px solid var(--line-soft);border-radius:11px;background:#f5f6f3;transition:.15s ease}.planner-column.column-watch{background:#faf7f1}.planner-column.column-done{background:#f2f7f4}.planner-column.drop-target{border-color:var(--green);background:#eaf4ef;box-shadow:inset 0 0 0 2px #086b551f}.planner-column>header{min-height:45px;padding:0 2px 10px;border-bottom:1px solid rgba(107,123,115,.13)}.planner-column>header>div{display:flex;align-items:center;gap:7px}.planner-column>header strong{font-size:10px}.planner-column>header b{min-width:20px;height:20px;display:grid;place-items:center;border-radius:50%;color:var(--green);background:#fff;font-size:8px}.planner-column>header small{display:block;margin:5px 0 0 17px;color:var(--muted);font-size:7px}.planner-column-dot{width:9px;height:9px;border-radius:50%;background:var(--orange)}.column-watch .planner-column-dot{background:#bb8b37}.column-done .planner-column-dot{background:var(--green)}.planner-column-drop-button{width:100%;min-height:34px;margin-top:10px;border:1px dashed var(--green);border-radius:8px;color:var(--green);background:#ffffffb8;font-size:8px;font-weight:800}.planner-column-drop-button:hover,.planner-column-drop-button:focus-visible{color:#fff;background:var(--green)}.planner-column-body{min-height:144px;padding-top:10px;display:grid;align-content:start;gap:9px}.planner-task{padding:12px;border:1px solid var(--line);border-top:3px solid var(--green);border-radius:9px;background:#fff;box-shadow:0 4px 13px #24352e0b;cursor:grab;touch-action:none;-webkit-user-select:none;user-select:none;transition:.15s ease}.planner-task:hover{border-color:#b9c9c1;transform:translateY(-1px);box-shadow:0 8px 18px #24352e14}.planner-task:active{cursor:grabbing}.planner-task.dragging{opacity:.38;transform:rotate(.5deg) scale(.985)}.planner-task.selected-for-move{border-color:var(--green);box-shadow:0 0 0 3px #086b5524}.planner-task.purple{border-top-color:var(--purple)}.planner-task.orange{border-top-color:var(--orange)}.planner-task.cyan{border-top-color:var(--cyan)}.planner-task-top{display:flex;align-items:center;justify-content:space-between;gap:9px}.priority-chip{width:fit-content;min-height:20px;padding:0 7px;display:inline-flex;align-items:center;border-radius:99px;color:#8a653c;background:#f8efdf;font-size:7px;font-weight:800}.priority-chip.priority-high{color:#a34531;background:#fbe9e4}.priority-chip.priority-medium{color:#7e653d;background:#f7efe1}.planner-drag-handle{width:26px;height:26px;display:grid;place-items:center;border-radius:7px;color:#81908a;background:#f3f5f2}.planner-task-title{margin-top:10px;display:flex;align-items:center;gap:9px}.planner-task-title strong{font-size:10px;line-height:1.5}.planner-task .attention-icon{width:31px;height:31px}.planner-task.purple .attention-icon{color:var(--purple);background:var(--purple-soft)}.planner-task.orange .attention-icon{color:var(--orange);background:var(--orange-soft)}.planner-task.cyan .attention-icon{color:var(--cyan);background:var(--cyan-soft)}.planner-task>p{margin:9px 0;color:var(--muted);font-size:8px;line-height:1.55}.planner-task-meta{min-height:24px;display:flex;align-items:center;flex-wrap:wrap;gap:5px 9px;color:var(--faint);font-size:7px}.planner-empty{min-height:116px;display:grid;place-items:center;align-content:center;gap:7px;border:1px dashed #ccd5cf;border-radius:9px;color:var(--muted);font-size:8px;text-align:center}.planner-empty svg{color:var(--green)}.action-dock{min-height:165px;margin:0 11px 12px;display:grid;grid-template-columns:minmax(560px,1.65fr) 205px 265px;gap:10px}.action-dock>article{min-width:0;border:1px solid var(--line);border-radius:13px;background:var(--surface)}.ai-draft{padding:14px 16px 12px;border-color:#cfc2ed!important;background:#fcfaff!important}.ai-draft.approved{border-color:#a9cfbe!important;background:#f8fcfa!important}.ai-draft header{display:flex;align-items:center;justify-content:space-between;gap:12px}.ai-draft header>div{display:flex;align-items:center;gap:8px}.ai-title{display:flex;align-items:center;gap:7px;color:var(--purple);font-family:Yu Mincho,Hiragino Mincho ProN,serif;font-size:15px;font-weight:700}.ai-draft.approved .ai-title{color:var(--green)}.ai-draft header small{color:var(--muted);font-size:7px}.ai-draft header button{height:32px;padding:0 11px;display:flex;align-items:center;gap:5px;border:1px solid #d1c5eb;border-radius:8px;color:var(--purple);background:#fff;font-size:9px;font-weight:700}.ai-draft>p{min-height:54px;margin:10px 0 6px;padding:11px 12px;overflow:hidden;border:1px solid #e5dfef;border-radius:9px;color:#52605b;background:#fffc;font-size:9px;line-height:1.75}.ai-draft footer{color:var(--muted);font-size:7px}.ai-proposal-actions{display:flex;align-items:flex-end;justify-content:space-between;gap:14px}.ai-proposal-actions>div{min-width:0}.ai-proposal-actions .history-link{margin-top:5px;padding:0;justify-content:flex-start;grid-column:auto;color:var(--purple)}.ai-approve-button{min-width:174px;height:38px;padding:0 13px;display:inline-flex;align-items:center;justify-content:center;gap:7px;flex:0 0 auto;border-radius:9px;color:#fff;background:var(--green);font-size:9px;font-weight:800}.ai-approve-button:hover:not(:disabled){background:var(--green-deep)}.ai-approve-button.approved,.ai-approve-button.approved:disabled{color:var(--green);background:var(--green-soft);opacity:1}.approval-card{padding:14px 15px;display:grid;grid-template-columns:34px 1fr;align-content:start;gap:6px 9px;border-color:#abd1c1!important}.approval-icon{width:34px;height:34px;display:grid;place-items:center;grid-row:1 / span 2;border-radius:50%;color:var(--green);background:var(--green-soft)}.approval-card h2{margin:1px 0 3px;font-size:12px}.approval-card p{margin:0;color:var(--muted);font-size:8px;line-height:1.5}.approval-card>button:not(.history-link){min-height:38px;margin-top:6px;display:flex;align-items:center;justify-content:center;grid-column:1 / -1;gap:6px;border-radius:9px;color:#fff;background:var(--green);font-size:10px;font-weight:800}.approval-card>button.approved{color:var(--green);background:var(--green-soft)}.history-link{padding:3px 0;display:flex;align-items:center;justify-content:center;grid-column:1 / -1;gap:4px;color:var(--green);background:transparent;font-size:8px}.daily-stats{padding:9px 14px;display:grid}.daily-stats>div{display:flex;align-items:center;justify-content:space-between;gap:8px;border-bottom:1px solid var(--line-soft)}.daily-stats>div:last-child{border-bottom:0}.daily-stats span{color:#50615a;font-size:9px}.daily-stats strong{font-family:Yu Mincho,Hiragino Mincho ProN,serif;font-size:23px;font-weight:600}.daily-stats strong small{margin-left:3px;font-family:inherit;font-size:8px}.booking-import{padding:13px 14px 10px;display:grid;gap:7px}.booking-import>div span,.booking-import>div small{display:block}.booking-import>div span{font-size:10px;font-weight:800;letter-spacing:.03em}.booking-import>div small{margin-top:3px;color:var(--muted);font-size:7px}.booking-import>button{min-height:31px;border-radius:8px;color:#fff;background:var(--green);font-size:9px;font-weight:800}.booking-import>button.outline{display:flex;align-items:center;justify-content:center;gap:5px;border:1px solid var(--green);color:var(--green);background:#fff}.booking-import time{color:var(--faint);font-size:7px;text-align:center}.modal-backdrop{padding:28px;display:grid;place-items:center;position:fixed;top:0;right:0;bottom:0;left:0;z-index:200;background:#14241f75;-webkit-backdrop-filter:blur(7px);backdrop-filter:blur(7px)}.modal-card{width:min(100%,560px);max-height:calc(100vh - 56px);overflow:auto;border:1px solid var(--line);border-radius:17px;background:#fff;box-shadow:0 30px 80px #10221c33}.modal-card.modal-large{width:min(100%,760px)}.modal-head{padding:19px 22px 16px;display:flex;align-items:flex-start;justify-content:space-between;gap:20px;border-bottom:1px solid var(--line)}.modal-head h2{margin-bottom:0;font-family:Yu Mincho,Hiragino Mincho ProN,serif;font-size:20px;font-weight:600}.icon-plain{width:34px;height:34px;display:grid;place-items:center;border-radius:9px;background:#f3f5f2}.modal-body{padding:21px 22px}.draft-context{margin-bottom:12px;display:flex;gap:7px}.draft-context span{padding:5px 8px;border-radius:99px;color:var(--muted);background:#f0f2ef;font-size:8px}.draft-editor,.field textarea{width:100%;padding:13px 14px;resize:vertical;border:1px solid var(--line);border-radius:11px;outline:none;color:#43554e;background:#fff;font-size:11px;line-height:1.8}.draft-editor:focus,.field textarea:focus{border-color:var(--green);box-shadow:0 0 0 4px #086b5514}.safe-note{margin-top:12px;padding:11px 12px;display:flex;align-items:flex-start;gap:8px;border-radius:10px;color:#53615c;background:#f2f6f3;font-size:9px;line-height:1.65}.safe-note svg{flex:0 0 auto;color:var(--green)}.modal-help{margin:-4px 0 0;color:var(--muted);font-size:9px}.modal-actions{padding:14px 22px 18px;display:flex;justify-content:flex-end;gap:9px;border-top:1px solid var(--line)}.button-primary,.button-secondary{min-height:39px;padding:0 16px;border-radius:9px;font-size:10px;font-weight:800}.button-primary{color:#fff;background:var(--green)}.button-secondary{border:1px solid var(--line);background:#fff}.report-preview{margin:22px;padding:24px;border:1px solid var(--line);border-radius:12px;background:#fffefa}.report-header{margin-bottom:24px;padding-bottom:18px;display:flex;align-items:center;gap:12px;border-bottom:1px solid var(--line)}.report-header img{width:44px;height:44px;border-radius:12px}.report-header strong,.report-header span{display:block}.report-header strong{font-family:Yu Mincho,Hiragino Mincho ProN,serif;font-size:15px}.report-header span{margin-top:4px;color:var(--muted);font-size:9px}.report-preview h3{font-family:Yu Mincho,Hiragino Mincho ProN,serif;font-size:18px;line-height:1.6}.report-preview>p,.report-preview li{color:#53625d;font-size:10px;line-height:1.8}.report-pending{margin-top:18px;padding:11px 12px;border-radius:9px;color:#6f5c31;background:#fff6df;font-size:9px}.upload-zone{min-height:160px;padding:24px;display:flex;align-items:center;justify-content:center;gap:13px;border:1px dashed #b8c7bf;border-radius:13px;color:var(--green);background:#f9fbf9;text-align:left}.upload-zone input{display:none}.upload-zone strong,.upload-zone span{display:block}.upload-zone strong{margin-bottom:5px;font-size:11px}.upload-zone span{color:var(--muted);font-size:9px}.upload-zone.has-file{border-style:solid;background:var(--green-soft)}.toast{min-height:42px;padding:0 15px;display:flex;align-items:center;gap:8px;position:fixed;right:22px;bottom:22px;z-index:300;border:1px solid rgba(255,255,255,.15);border-radius:11px;color:#fff;background:#173f34;box-shadow:var(--shadow);font-size:10px}@media(max-width:1280px){.topbar{grid-template-columns:185px 166px minmax(230px,1fr) auto 154px;gap:12px}.today{display:none}.dashboard-shell{grid-template-columns:276px minmax(590px,1fr)}.patient-overview{padding-inline:19px}.action-dock{grid-template-columns:minmax(520px,1.5fr) 185px 245px}}@media(max-width:1100px){.app{min-width:0}.topbar{height:auto;min-height:66px;grid-template-columns:170px 166px minmax(210px,1fr) auto 150px}.home-dashboard{padding-inline:18px}.home-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.home-primary-grid,.home-analytics-grid,.home-bottom-grid{grid-template-columns:1fr}.queue-bar{grid-template-columns:164px minmax(0,1fr) 42px;gap:11px}.queue-patient{min-width:138px;flex-basis:138px}.dashboard-shell{min-height:0;grid-template-columns:250px minmax(0,1fr);overflow:visible}.planner-board{grid-template-columns:repeat(3,minmax(245px,1fr));overflow-x:auto}.action-dock{min-height:0;grid-template-columns:minmax(0,1.25fr) minmax(260px,.75fr)}.ai-draft{grid-column:1 / -1}.action-dock>article{min-height:165px}}@media(max-width:900px){.login-page{grid-template-columns:1fr}.login-story{min-height:440px;border-right:0;border-bottom:1px solid var(--line)}.login-copy{margin-top:60px}.login-panel{min-height:auto;padding-block:64px}.topbar{padding:9px 14px;grid-template-columns:minmax(0,1fr) auto;gap:8px}.top-brand{border-right:0}.workspace-nav{grid-column:1 / -1;grid-row:2}.global-search{width:100%;max-width:none;grid-column:1 / -1;grid-row:3}.top-actions{display:none}.profile-wrap{grid-column:2;grid-row:1}.home-dashboard{padding:14px}.home-hero{padding:20px;align-items:flex-start;flex-direction:column}.home-hero:after{display:none}.home-kpis,.suggestion-grid{grid-template-columns:1fr}.agenda-list>button{grid-template-columns:42px 30px minmax(125px,1fr) 62px 17px}.agenda-list .source-badge{display:none}.queue-bar{grid-template-columns:minmax(0,1fr) 42px}.queue-title{grid-column:1 / -1}.dashboard-shell{grid-template-columns:1fr}.patient-overview{min-height:540px;border-right:0;border-bottom:1px solid var(--line)}.trend-workspace{padding-inline:13px}.chart-section>header,.trend-head{align-items:flex-start;flex-direction:column;padding-block:10px}.chart-legend-inline,.objective-legend{flex-wrap:wrap}.planner-section{padding:14px}.planner-head{align-items:flex-start;flex-direction:column}.action-dock{grid-template-columns:1fr}.ai-draft{grid-column:auto}.ai-proposal-actions{align-items:stretch;flex-direction:column}.ai-approve-button{width:100%}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;transition-duration:.01ms!important;animation-duration:.01ms!important;animation-iteration-count:1!important}}
