:root{
  --bg:#fbf6ec;
  --bg-soft:#fdf4ee;
  --card:#fffdf8;
  --surface:#f7eedd;
  --text:#2f2119;
  --muted:#796a5e;
  --subtle:#a08f82;
  --line:#e9d9c5;
  --line-strong:#ddc6a8;
  --border:#e9d9c5;
  --teal:#c95a3a;
  --teal-dark:#8d3e2a;
  --teal-soft:#f8e8df;
  --teal-faint:#fdf4ee;
  --green:#6f8a4e;
  --green-soft:#eef3e5;
  --orange:#b9782b;
  --orange-soft:#fbf0d8;
  --blue:#6f8a4e;
  --blue-soft:#eef3e5;
  --danger:#a93b2f;
  --danger-soft:#fcebe7;
  --warning:#9a641f;
  --warning-soft:#fbf0d8;
  --shadow:0 10px 28px rgba(91,59,40,.08);
  --shadow-sm:0 4px 14px rgba(91,59,40,.06);
  --radius-sm:10px;
  --radius-md:14px;
  --radius-lg:18px;
  --radius-xl:24px;
}
*{box-sizing:border-box}
html{background:var(--bg)}
body{
  margin:0;
  color:var(--text);
  background:var(--bg);
  font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif;
  -webkit-font-smoothing:antialiased;
}
a{color:var(--teal-dark);text-decoration:none}
a:hover{text-decoration:none}
button,input,select,textarea{font:inherit}
button{appearance:none}
.icon,.side-icon,.brand-icon,.button-icon,.account-icon{display:block;width:20px;height:20px;flex:0 0 auto}
.brand-icon{width:23px;height:23px}
.button-icon{width:17px;height:17px}
.app-shell{min-height:100vh;display:grid;grid-template-columns:252px minmax(0,1fr)}
.sidebar{
  position:sticky;top:0;height:100vh;padding:28px 18px 18px;
  background:rgba(255,253,248,.96);border-right:1px solid var(--line);
  display:flex;flex-direction:column;z-index:5
}
.brand,.auth-brand{display:flex;align-items:center;gap:12px;color:var(--text)}
.brand{padding:0 12px 25px}
.brand-mark{
  width:44px;height:44px;border-radius:16px;display:grid;place-items:center;
  color:white;background:var(--bg);overflow:hidden;
  box-shadow:0 8px 18px rgba(201,90,58,.14)
}
.brand-logo{display:block;width:100%;height:100%;object-fit:contain}
.brand-mark.small{width:34px;height:34px;border-radius:12px}
.brand-copy,.auth-brand>span:last-child{display:flex;flex-direction:column;line-height:1.05}
.brand strong,.auth-brand strong{font-size:22px;letter-spacing:-.4px;color:var(--teal-dark)}
.brand small,.auth-brand small{margin-top:5px;font-size:10px;font-weight:750;letter-spacing:.08em;text-transform:uppercase;color:var(--subtle)}
.side-nav{display:flex;flex-direction:column;gap:7px}
.side-link,.logout-link{
  min-height:50px;padding:0 14px;border-radius:14px;display:flex;align-items:center;gap:13px;
  color:#6b584d;font-weight:680;transition:.16s ease
}
.side-link:hover,.logout-link:hover{background:var(--teal-faint);color:var(--teal-dark)}
.side-link.active{background:var(--teal-soft);color:var(--teal-dark)}
.side-link.active .side-icon{stroke-width:2}
.sidebar-spacer{flex:1}
.account-card{
  display:flex;align-items:center;gap:11px;padding:13px;border:1px solid var(--line);
  border-radius:15px;background:var(--card);box-shadow:var(--shadow-sm);margin-bottom:8px
}
.account-shield{width:35px;height:35px;border-radius:11px;display:grid;place-items:center;color:var(--teal);background:var(--teal-faint)}
.account-icon{width:20px;height:20px}
.account-copy{display:flex;flex-direction:column;min-width:0}
.account-copy strong{font-size:13px}
.account-copy small{margin-top:3px;color:var(--green);font-size:11px;font-weight:750}
.logout-link{min-height:42px;font-size:13px;color:var(--muted)}
.app-main{min-width:0;display:flex;flex-direction:column}
.topbar{
  min-height:76px;padding:13px 32px;background:rgba(255,253,248,.86);
  border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:flex-end;
  gap:16px;backdrop-filter:blur(10px);position:static;z-index:4
}
.mobile-brand{display:none}
.topbar-actions{display:flex;align-items:center;gap:12px}
.quick-action{
  min-height:42px;padding:0 15px;border:1px solid var(--line-strong);border-radius:12px;
  color:var(--teal-dark);background:var(--card);display:inline-flex;align-items:center;gap:8px;font-weight:750;font-size:13px
}
.quick-action:hover{background:var(--teal-faint);border-color:#d7b69c}
.profile-chip{
  min-height:46px;padding:4px 8px 4px 5px;border-radius:14px;display:flex;align-items:center;gap:10px;
  color:var(--text)
}
.profile-chip:hover{background:var(--teal-faint)}
.avatar{
  width:38px;height:38px;border-radius:50%;display:grid;place-items:center;
  color:#fff;background:linear-gradient(145deg,var(--teal-dark),var(--teal));font-weight:850;font-size:12px
}
.profile-text{display:flex;flex-direction:column;min-width:0}
.profile-text strong{font-size:13px;max-width:190px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.profile-text small{font-size:10px;color:var(--muted);max-width:190px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;margin-top:2px}
.content{width:100%;max-width:1320px;margin:0 auto;padding:30px 32px 0}
.page-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:18px;margin-bottom:20px}
.eyebrow{display:block;color:var(--teal-dark);font-size:10px;font-weight:850;letter-spacing:.12em;text-transform:uppercase}
.page-heading h1,.auth-heading h1{margin:4px 0 0;color:var(--text);font-size:30px;line-height:1.14;letter-spacing:-.7px}
.page-heading p,.auth-heading p{margin:7px 0 0;color:var(--muted);font-size:14px;line-height:1.5}
.app-footer{
  margin-top:34px;padding:20px 3px 25px;border-top:1px solid var(--line);display:flex;
  justify-content:space-between;gap:16px;color:var(--subtle);font-size:11px
}
.card{
  background:var(--card);border:1px solid var(--line);border-radius:var(--radius-lg);
  padding:20px;margin:0 0 18px;box-shadow:var(--shadow-sm)
}
.card.soft{background:var(--bg-soft)}
.card h2,.card h3{margin:0;color:var(--text);letter-spacing:-.25px}
.card h2{font-size:19px}.card h3{font-size:16px}
.card-header{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:15px}
.card-header p{margin:4px 0 0}
.muted{color:var(--muted)}
.subtle{color:var(--subtle)}
.grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
.grid.two{grid-template-columns:repeat(2,minmax(0,1fr))}
.dashboard-grid{display:grid;grid-template-columns:minmax(0,1.7fr) minmax(290px,.8fr);gap:18px;align-items:start}
.dashboard-side{display:flex;flex-direction:column;gap:18px}
.stat-card{
  min-height:132px;background:var(--card);border:1px solid var(--line);border-radius:var(--radius-lg);
  padding:20px;box-shadow:var(--shadow);display:flex;align-items:center;gap:17px;position:relative;overflow:hidden
}
.stat-icon{
  width:58px;height:58px;border-radius:20px;display:grid;place-items:center;background:var(--teal-soft);color:var(--teal)
}
.stat-icon.orange{background:var(--orange-soft);color:var(--orange)}
.stat-icon.blue{background:var(--blue-soft);color:var(--blue)}
.stat-icon .icon{width:29px;height:29px}
.stat-copy{min-width:0}
.stat-label{font-size:13px;color:var(--muted);font-weight:700}
.stat{margin-top:4px;font-size:34px;line-height:1;font-weight:850;color:var(--teal-dark);letter-spacing:-1px}
.stat.orange{color:var(--orange)}
.stat.blue{color:var(--blue)}
.stat-arrow{margin-left:auto;color:var(--subtle);font-size:22px}
.section-card{
  background:var(--card);border:1px solid var(--line);border-radius:var(--radius-lg);box-shadow:var(--shadow-sm);padding:18px
}
.section-title-row{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:13px}
.section-title-row h2{font-size:19px;margin:0}
.section-link{font-size:12px;font-weight:750;color:var(--teal-dark)}
.clinic-list{display:flex;flex-direction:column;gap:12px}
.clinic-row{
  display:grid;grid-template-columns:92px minmax(0,1fr) auto;gap:15px;align-items:center;
  padding:13px;border:1px solid var(--line);border-radius:15px;background:var(--card)
}
.clinic-visual{
  width:92px;height:82px;border-radius:13px;display:grid;place-items:center;
  background:linear-gradient(145deg,var(--teal-soft),var(--teal-faint));color:var(--teal-dark);border:1px solid #edc9b7;overflow:hidden
}
.clinic-visual .icon{width:37px;height:37px}
.clinic-main{min-width:0}
.clinic-title-line{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.clinic-title{font-size:17px;font-weight:820;color:var(--text);line-height:1.2}
.clinic-meta{margin-top:5px;color:var(--muted);font-size:12px;line-height:1.45}
.clinic-meta span{display:block}
.clinic-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap;justify-content:flex-end}
.btn,button{
  border:0;border-radius:11px;min-height:40px;padding:0 15px;background:var(--teal);color:#fff;
  font-weight:780;font-size:13px;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;gap:7px;
  box-shadow:none
}
.btn:hover,button:hover{filter:brightness(.97)}
.btn.secondary,button.secondary{background:var(--card);color:var(--teal-dark);border:1px solid var(--line-strong)}
.btn.ghost,button.ghost{background:var(--teal-faint);color:var(--teal-dark);border:1px solid transparent}
.btn.danger,button.danger{background:var(--danger)}
.btn.small,button.small{min-height:34px;padding:0 11px;font-size:11px;border-radius:9px}
.btn.icon-only{width:40px;padding:0}
button:disabled,.btn.disabled{opacity:.45;cursor:not-allowed}
.actions{display:flex;gap:9px;flex-wrap:wrap;align-items:center}
.pill,.badge-count{
  display:inline-flex;align-items:center;gap:5px;border-radius:999px;padding:5px 9px;font-size:10px;font-weight:800;
  background:var(--teal-soft);color:var(--teal-dark);white-space:nowrap
}
.pill::before{content:"";width:6px;height:6px;border-radius:50%;background:currentColor;opacity:.8}
.pill.warn{background:var(--warning-soft);color:var(--warning)}
.pill.fail{background:var(--danger-soft);color:var(--danger)}
.pill.success{background:var(--green-soft);color:var(--green)}
.pill.neutral{background:var(--surface,#f7eedd);color:var(--muted)}
.badge-count{padding:4px 8px}.badge-count::before{display:none}
.task-list,.activity-list{display:flex;flex-direction:column}
.task-item,.activity-item{
  display:flex;align-items:center;gap:11px;padding:12px 0;border-bottom:1px solid var(--line)
}
.task-item:last-child,.activity-item:last-child{border-bottom:0}
.task-dot{
  width:34px;height:34px;border-radius:50%;display:grid;place-items:center;flex:0 0 auto;
  background:var(--green-soft);color:var(--green)
}
.task-dot.warn{background:var(--orange-soft);color:var(--orange)}
.task-dot.blue{background:var(--blue-soft);color:var(--blue)}
.task-dot .icon{width:18px;height:18px}
.task-copy,.activity-copy{min-width:0;flex:1}
.task-copy strong,.activity-copy strong{display:block;font-size:12px;color:var(--text)}
.task-copy small,.activity-copy small{display:block;margin-top:2px;color:var(--muted);font-size:10px}
.task-chevron{color:var(--subtle);font-size:18px}
.activity-item{align-items:flex-start;position:relative;padding-left:2px}
.activity-bullet{width:8px;height:8px;margin-top:5px;border-radius:50%;background:var(--green);flex:0 0 auto}
.activity-bullet.blue{background:var(--blue)}
.activity-bullet.orange{background:var(--orange)}
.activity-time{font-size:9px;color:var(--subtle);white-space:nowrap;margin-top:1px}
.flash,.error{
  border-radius:13px;padding:13px 15px;margin:0 0 17px;font-size:13px;line-height:1.45
}
.flash{background:var(--teal-soft);border:1px solid #edc9b7;color:var(--teal-dark)}
.error{background:var(--danger-soft);border:1px solid #f0c9c0;color:var(--danger)}
.error ul{margin:7px 0 0;padding-left:20px}
.summary-line{display:flex;justify-content:space-between;gap:14px;align-items:center;flex-wrap:wrap;margin-bottom:15px}
.summary-line p{margin:0}
input,select,textarea{
  width:100%;border:1px solid var(--line-strong);border-radius:11px;background:var(--card);color:var(--text);
  padding:10px 12px;outline:none;transition:border-color .15s,box-shadow .15s
}
input,select{min-height:42px}
textarea{resize:vertical;min-height:110px}
input:focus,select:focus,textarea:focus{border-color:var(--teal);box-shadow:0 0 0 3px rgba(201,90,58,.10)}
input:disabled,select:disabled,textarea:disabled{background:#f7eedd;color:var(--subtle)}
label{font-size:12px;color:var(--muted);font-weight:760;display:block;margin:0 0 6px}
.field{margin-bottom:14px}
.row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.row.three{grid-template-columns:repeat(3,minmax(0,1fr))}
.form-grid{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(300px,.75fr);gap:18px;align-items:start}
.form-card{margin:0}
.form-section-title{font-size:15px;font-weight:820;margin:0 0 14px}
.toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:15px}
.toolbar-left,.toolbar-right{display:flex;align-items:center;gap:9px;flex-wrap:wrap}
.tabs{
  display:flex;align-items:center;gap:3px;background:var(--card);border:1px solid var(--line);
  border-radius:14px;padding:5px;margin-bottom:18px;box-shadow:var(--shadow-sm);overflow:auto
}
.tab-button,.tab-link{
  border:0;background:transparent;color:var(--muted);min-height:38px;padding:0 16px;border-radius:10px;font-weight:750;
  white-space:nowrap;box-shadow:none
}
.tab-button:hover,.tab-link:hover{background:var(--teal-faint);filter:none}
.tab-button.active,.tab-link.active{background:var(--teal-soft);color:var(--teal-dark)}
.tab-panel{display:none}
.tab-panel.active{display:block}
.profile-progress{
  width:112px;height:112px;border-radius:50%;display:grid;place-items:center;margin:8px auto 18px;
  background:conic-gradient(var(--green) var(--progress-angle,0deg), var(--green-soft) 0)
}
.profile-progress::before{content:"";width:88px;height:88px;border-radius:50%;background:var(--card);grid-area:1/1}
.profile-progress strong{grid-area:1/1;z-index:1;font-size:25px}
.check-list{display:flex;flex-direction:column;gap:10px}
.check-row{display:flex;align-items:center;gap:9px;font-size:12px;color:var(--muted)}
.check-state{width:21px;height:21px;border-radius:50%;display:grid;place-items:center;background:var(--green-soft);color:var(--green)}
.check-state.warn{background:var(--orange-soft);color:var(--orange)}
.check-state .icon{width:13px;height:13px}
.map-card{padding:0;overflow:hidden}
.map-card .map-head{padding:18px 18px 0}
.map-placeholder{
  margin:14px 18px;height:200px;border-radius:14px;border:1px solid var(--line);
  background:
    linear-gradient(35deg,transparent 47%,rgba(201,90,58,.08) 48%,rgba(201,90,58,.08) 51%,transparent 52%),
    linear-gradient(-35deg,transparent 47%,rgba(111,138,78,.07) 48%,rgba(111,138,78,.07) 51%,transparent 52%),
    var(--teal-faint);
  display:grid;place-items:center;color:var(--teal-dark);text-align:center;padding:18px
}
.map-pin{width:48px;height:48px;border-radius:50% 50% 50% 0;transform:rotate(-45deg);background:var(--teal);display:grid;place-items:center;box-shadow:0 7px 16px rgba(201,90,58,.25)}
.map-pin .icon{transform:rotate(45deg);color:#fff;width:22px;height:22px}
.map-actions{padding:0 18px 18px}
.table-wrap{overflow:auto;border:1px solid var(--line);border-radius:14px;background:var(--card)}
table{width:100%;border-collapse:separate;border-spacing:0}
th,td{padding:11px 12px;border-bottom:1px solid var(--line);text-align:left;vertical-align:middle;font-size:12px}
th{background:var(--teal-faint);color:var(--muted);font-weight:820;white-space:nowrap}
tr:last-child td{border-bottom:0}
.opening-table th.group-morning{background:var(--teal-soft);color:var(--teal-dark);text-align:center}
.opening-table th.group-afternoon{background:var(--green-soft);color:var(--green);text-align:center}
.opening-table th.sub-morning{background:var(--teal-faint);color:var(--teal-dark);text-align:center}
.opening-table th.sub-afternoon{background:#f5f7ef;color:var(--green);text-align:center}
.opening-table td.day-name{font-weight:820;min-width:110px}
.opening-table td.time-cell{min-width:126px}
.opening-table input[type=time]{min-width:108px;padding:8px 9px}
.opening-table input[type=text]{min-width:190px}
.closed-cell{text-align:center;min-width:72px}
.switch{position:relative;display:inline-flex;width:42px;height:24px;vertical-align:middle}
.switch input{opacity:0;width:0;height:0;min-height:0}
.switch span{position:absolute;inset:0;border-radius:999px;background:var(--border,#e9d9c5);transition:.15s}
.switch span::after{content:"";position:absolute;width:18px;height:18px;left:3px;top:3px;border-radius:50%;background:#fff;box-shadow:0 1px 4px rgba(0,0,0,.16);transition:.15s}
.switch input:checked+span{background:var(--green)}
.switch input:checked+span::after{transform:translateX(18px)}
.search-box{display:flex;gap:9px;align-items:center}
.search-box .search-field{position:relative;flex:1}
.search-box .search-field .icon{position:absolute;left:12px;top:12px;color:var(--muted);width:18px;height:18px;pointer-events:none}
.search-box input{padding-left:40px}
.result-list{display:flex;flex-direction:column;gap:10px}
.result-row{
  display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:15px;padding:14px;
  border:1px solid var(--line);border-radius:14px;background:var(--card)
}
.result-row:hover{border-color:#d7b69c;background:var(--teal-faint)}
.result-title{font-weight:820;font-size:15px}
.result-meta{margin-top:4px;color:var(--muted);font-size:11px;line-height:1.5}
.inline-action{display:inline-flex;margin:0}
.request-actions{display:flex;align-items:center;justify-content:flex-end;gap:9px;flex-wrap:wrap}
.phone-manager{width:100%;display:flex;flex-direction:column;align-items:stretch;gap:9px}
.phone-list{width:100%;display:flex;flex-direction:column;gap:8px}
.phone-entry{width:100%;display:grid;grid-template-columns:minmax(0,1fr) 42px;gap:8px;align-items:center}
.phone-entry .phone-remove{width:42px;min-height:42px;padding:0;color:var(--danger);background:var(--danger-soft);border-color:#efcbc7}
.phone-entry .phone-remove:hover{background:#fde5e2;border-color:#e7b7b2}
.phone-add{align-self:flex-start;min-height:36px;padding:0 12px;background:var(--teal-faint)}
.phone-manager small{display:block;width:100%;color:var(--muted);font-size:11px;line-height:1.45}
.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}
.how-list{display:flex;flex-direction:column;gap:16px;margin-top:14px}
.how-item{display:grid;grid-template-columns:38px minmax(0,1fr);gap:11px}
.how-num{width:38px;height:38px;border-radius:50%;display:grid;place-items:center;background:var(--teal-soft);color:var(--teal-dark);font-weight:850}
.how-item:nth-child(2) .how-num{background:var(--blue-soft);color:var(--blue)}
.how-item:nth-child(3) .how-num{background:var(--orange-soft);color:var(--orange)}
.how-copy strong{display:block;font-size:12px;margin-bottom:3px}
.how-copy p{margin:0;color:var(--muted);font-size:11px;line-height:1.45}
.segmented{
  display:grid;grid-template-columns:1fr 1fr;border:1px solid var(--line);background:#fff;padding:5px;
  border-radius:14px;margin-bottom:18px
}
.segmented button{background:transparent;color:var(--muted);border:0}
.segmented button.active{background:var(--teal-soft);color:var(--teal-dark)}
.mode-panel{display:none}.mode-panel.active{display:block}
.empty-state{padding:30px 18px;text-align:center;color:var(--muted)}
.empty-state .empty-icon{width:52px;height:52px;border-radius:18px;background:var(--teal-soft);display:grid;place-items:center;margin:0 auto 12px;color:var(--teal)}
.empty-state .empty-icon .icon{width:27px;height:27px}
.notice-compose{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(280px,.7fr);gap:18px;align-items:start}
.recipient-card{background:var(--teal-faint)}
.recipient-number{font-size:38px;font-weight:850;color:var(--teal-dark);line-height:1}
.recipient-label{margin-top:5px;color:var(--muted);font-size:11px}
.message-preview{padding:15px;border:1px dashed #d7b69c;border-radius:13px;background:var(--card)}
.message-preview strong{display:block;margin-bottom:5px}
.message-preview p{margin:0;color:var(--muted);font-size:12px;line-height:1.5}
.auth-page{min-height:100vh;background:linear-gradient(135deg,#fbf6ec 0%,#f8e8df 46%,#fdf4ee 100%)}
.auth-shell{width:min(100%,520px);margin:0 auto;padding:56px 20px}
.auth-brand{justify-content:center;margin-bottom:34px}
.auth-heading{text-align:center;margin-bottom:20px}
.auth-heading h1{font-size:29px}
.auth-main>.card{box-shadow:var(--shadow);padding:24px}
.auth-links{display:flex;gap:12px;justify-content:center;flex-wrap:wrap;margin-top:16px;font-size:12px;font-weight:700}
.auth-footer{text-align:center;margin-top:22px;color:var(--subtle);font-size:11px}
.auth-card{max-width:none}
.mono{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;font-size:11px;word-break:break-all}
.inline-form{display:flex;gap:8px;flex-wrap:wrap;align-items:center}
.inline-form input[type=hidden]{display:none}
.inline-form button{width:auto;margin:0}
.filters{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:12px;align-items:end}
.filter-actions{display:flex;gap:8px;flex-wrap:wrap;align-items:center}
.pagination{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin:16px 0}
.pagination .current{background:var(--teal);color:#fff;border-radius:10px;padding:8px 12px;font-weight:700}
.long-input{width:100%}
.help-text{margin-top:6px;color:var(--subtle);font-size:10px;line-height:1.45}
.hr{height:1px;background:var(--line);margin:18px 0}
.kpi-inline{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.kpi-inline strong{font-size:22px;color:var(--teal-dark)}
.mobile-only{display:none}
.interest-explanation{display:flex;align-items:end;justify-content:space-between;gap:24px}.interest-explanation p{margin:5px 0 0;color:var(--muted);font-size:12px;line-height:1.5}.interest-period-filter{min-width:190px}.interest-period-filter label{margin-top:0}.interest-clinic-card{margin-top:18px}.interest-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:16px 0}.interest-kpis>div{padding:14px;border:1px solid var(--line);border-radius:13px;background:var(--bg-soft)}.interest-kpis strong{display:block;color:var(--teal-dark);font-size:27px}.interest-kpis span{display:block;margin-top:3px;color:var(--muted);font-size:10px;line-height:1.35}.interest-breakdowns{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:26px}.interest-breakdowns h3{margin:0 0 10px}.interest-bar-row{display:grid;grid-template-columns:120px minmax(80px,1fr) 36px;gap:9px;align-items:center;margin:8px 0;font-size:11px}.interest-bar-row>div{height:8px;border-radius:999px;background:var(--green-soft);overflow:hidden}.interest-bar-row i{display:block;height:100%;border-radius:999px;background:linear-gradient(90deg,var(--teal),#d77c5d)}.interest-bar-row strong{text-align:right;color:var(--teal-dark)}

@media(max-width:1100px){
  .app-shell{grid-template-columns:210px minmax(0,1fr)}
  .sidebar{padding-left:12px;padding-right:12px}
  .brand{padding-left:8px;padding-right:8px}
  .brand-copy small{display:none}
  .dashboard-grid,.form-grid,.notice-compose{grid-template-columns:1fr}
  .dashboard-side{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}
  .clinic-row{grid-template-columns:78px minmax(0,1fr)}
  .clinic-visual{width:78px;height:72px}
  .clinic-actions{grid-column:2;justify-content:flex-start}
}
@media(max-width:820px){
  .app-shell{display:block}
  .sidebar{position:static;height:auto;border-right:0;border-bottom:1px solid var(--line);padding:10px 12px}
  .brand,.account-card,.logout-link{display:none}
  .side-nav{flex-direction:row;overflow:auto;gap:5px}
  .side-link{min-height:42px;padding:0 12px;white-space:nowrap}
  .side-link span{font-size:12px}
  .topbar{min-height:64px;padding:10px 16px;justify-content:space-between;position:static}
  .mobile-brand{display:flex;align-items:center;gap:8px;color:var(--teal-dark)}
  .mobile-brand strong{font-size:16px}
  .quick-action span,.profile-text{display:none}
  .quick-action{width:42px;padding:0}
  .profile-chip{padding:0}
  .content{padding:22px 16px 0}
  .grid{grid-template-columns:1fr}
  .dashboard-side{display:flex}
  .row,.row.three{grid-template-columns:1fr}
  .opening-table{min-width:980px}
  .page-heading h1{font-size:26px}
  .interest-explanation{align-items:stretch;flex-direction:column}.interest-period-filter{min-width:0}.interest-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.interest-breakdowns{grid-template-columns:1fr}
}
@media(max-width:600px){
  .side-link .side-icon{width:17px;height:17px}
  .side-link{gap:7px;padding:0 10px}
  .clinic-row{grid-template-columns:1fr}
  .clinic-visual{width:100%;height:90px}
  .clinic-actions{grid-column:1}
  .clinic-actions .btn{flex:1}
  .stat-card{min-height:112px}
  .form-grid{gap:12px}
  .segmented{grid-template-columns:1fr}
  .search-box{align-items:stretch;flex-direction:column}
  .result-row{grid-template-columns:1fr}
  .result-row .btn{width:100%}
  .request-actions{align-items:stretch;flex-direction:column}
  .request-actions .inline-action,.request-actions button{width:100%}
  .toolbar{align-items:stretch}
  .toolbar-left,.toolbar-right{width:100%}
  .toolbar .btn{flex:1}
  .app-footer{flex-direction:column}
}
.schedule-type{border:1px solid var(--line);border-radius:16px;margin:6px 0 18px;padding:12px 16px}.schedule-type legend{font-weight:800;padding:0 6px}.radio-option,.checkbox-line{display:flex;align-items:center;gap:8px;margin:8px 0;font-weight:700}.radio-option input,.checkbox-line input,.weekday-picker input{width:auto;min-height:0}.schedule-fields{border-left:3px solid #edc9b7;padding-left:16px;margin:12px 0 18px}.weekday-picker{display:flex;gap:8px;flex-wrap:wrap;margin-top:8px}.weekday-picker label{display:flex;align-items:center;gap:6px;margin:0;background:var(--teal-faint);border:1px solid var(--line);border-radius:999px;padding:8px 11px;font-size:13px}
