:root{
  --navy:#17263f;--navy2:#101d33;--teal:#3b8f87;--teal2:#60aaa1;--sage:#b9cec5;
  --cream:#f7f4ee;--coral:#e77f61;--orange:#e9975f;--sky:#dcebed;--lavender:#deddeb;
  --ink:#25333e;--muted:#78858b;--line:#e5e9e5;--white:#fff;
  --shadow:0 14px 44px rgba(30,52,64,.065);--shadow-hover:0 18px 50px rgba(30,52,64,.11)
}
body{background:radial-gradient(circle at 95% 5%,rgba(220,235,237,.5),transparent 24%),radial-gradient(circle at 28% 100%,rgba(231,127,97,.055),transparent 30%),#f7f8f6}
button,input,select,textarea{transition:border-color .18s ease,box-shadow .18s ease,background .18s ease,color .18s ease,transform .18s ease}
.sidebar{width:238px;padding:25px 16px 19px;background:radial-gradient(circle at 12% 92%,rgba(59,143,135,.24),transparent 28%),radial-gradient(circle at 110% 3%,rgba(231,127,97,.16),transparent 24%),linear-gradient(180deg,#101d33,#172942)}
.sidebar:after{content:"";position:absolute;right:-70px;bottom:9%;width:150px;height:150px;border:1px solid rgba(255,255,255,.035);border-radius:50%;pointer-events:none}
.workspace{margin-left:238px}.sidebar .brand{padding:0 9px 22px}.sidebar nav{gap:4px;margin-top:18px}.sidebar button{height:42px;border-radius:11px;color:#b9c3cf;font-size:12px}.sidebar button i{display:grid;width:24px;height:24px;border-radius:8px;color:#a9bdc7;place-items:center}.sidebar button:hover{background:rgba(255,255,255,.055);color:#fff}.sidebar button.active{background:linear-gradient(105deg,rgba(59,143,135,.26),rgba(59,143,135,.12));box-shadow:inset 0 0 0 1px rgba(128,205,195,.08);color:#fff}.sidebar button.active:before{width:3px;height:23px;background:linear-gradient(var(--coral),var(--orange))}.sidebar button.active i{background:rgba(255,255,255,.08);color:#fff}.sidebar-bottom{padding-top:10px}
.topbar{height:72px;padding:0 31px;border-color:rgba(225,231,227,.9);background:rgba(255,255,255,.88);backdrop-filter:blur(16px)}.search{height:41px;border:1px solid transparent;border-radius:13px;background:#f3f5f2}.search:focus-within{border-color:#c8ded9;background:#fff;box-shadow:0 0 0 4px rgba(59,143,135,.07)}.user>span{border:1px solid #d5e7e2;border-radius:13px;background:linear-gradient(145deg,#edf8f5,#dcece7)}
.content{max-width:1460px;padding:38px 40px}.page-header,.welcome{margin-bottom:26px}.page-header .eyebrow,.welcome .eyebrow{color:var(--coral)}.page-header h2,.welcome h2{font-size:37px;letter-spacing:-.025em}.page-header>div>p:last-child,.welcome .muted{color:#7d898e;line-height:1.55}
.primary{border:1px solid rgba(190,89,62,.12);background:linear-gradient(130deg,#ed8a69,#df7053);box-shadow:0 11px 27px rgba(220,108,79,.2)}.primary:hover{filter:none;background:linear-gradient(130deg,#f09272,#df7053);box-shadow:0 15px 33px rgba(220,108,79,.25)}.secondary{border-color:#d5e5df;border-radius:11px;background:#eef6f3;color:#347e77}.row-action{border:1px solid #dceae6;background:#f2f8f6}.row-action:hover{border-color:#bdd9d2;background:#e8f3f0}.row-action.orange{border-color:#f1d8cf;background:#fff3ee;color:#c86149}
.panel,.metrics article,.summary-cards article,.form-metrics article,.permission-grid article,.template-row button,.form-template-grid>article{border-color:rgba(221,228,223,.95);border-radius:19px;box-shadow:var(--shadow)}.panel{padding:24px}.metrics{gap:14px}.metrics article{position:relative;overflow:hidden;padding:22px}.metrics article:after,.summary-cards article:after,.form-metrics article:after{content:"";position:absolute;right:-18px;bottom:-25px;width:72px;height:72px;border-radius:50%;background:rgba(185,206,197,.12)}.metrics article,.summary-cards article,.form-metrics article{position:relative;overflow:hidden}.metrics article:nth-child(3),.summary-cards article:nth-child(3){border-top:3px solid rgba(231,127,97,.75)}.metrics article:nth-child(4) .metric-icon{background:#eef0f7;color:#777eaa}.metric-icon{border-radius:14px}.metric-icon.coral{background:#fff0ea;color:#d76b50}.metric-icon.teal{background:#e8f4f1}.metric-icon.blue{background:#eaf1f5;color:#557b91}.metric-icon.gold{background:#f6f0e5;color:#bd814b}
.dashboard-grid{gap:19px;margin-top:19px}.bia-card{background:radial-gradient(circle at 100% 0,rgba(231,127,97,.2),transparent 33%),radial-gradient(circle at 0 100%,rgba(59,143,135,.24),transparent 40%),linear-gradient(145deg,#172941,#1d3c4b)}.bia-avatar{background:linear-gradient(145deg,#ef9474,#df7054);box-shadow:0 9px 22px rgba(231,127,97,.2)}.quick{margin-top:26px}.quick>div{gap:14px}.quick button{border-color:#e2e8e3;border-radius:16px;box-shadow:0 8px 24px rgba(30,52,64,.035)}.quick button:hover,.template-row button:hover,.form-template-grid>article:hover{border-color:#c9dcd6;box-shadow:var(--shadow-hover);transform:translateY(-2px)}.quick button:nth-child(2)>span,.template-row button:nth-child(2) span{background:#fff1eb;color:var(--coral)}.quick button:nth-child(3)>span,.template-row button:nth-child(3) span{background:#eef1f8;color:#707ba5}.quick button:nth-child(4)>span,.template-row button:nth-child(4) span{background:#f6f0e8;color:#b77b48}
.privacy-note{padding:15px 18px;border-color:#f0d8cf;border-radius:15px;background:linear-gradient(100deg,#fff5f0,#fffaf7)}.orange-accent{border-top-color:var(--coral)!important}.badge{padding:6px 9px;letter-spacing:.025em}.table-panel{border-radius:19px}.table-wrap{background:#fff}th{padding:15px 18px;background:#f4f6f3;color:#7d898e;font-weight:800}td{padding:17px 18px;border-color:#edf0ec}tbody tr:hover{background:#fbfcfa}.toolbar input,.toolbar select,.form-grid input,.form-grid select,.form-grid textarea{border-color:#dce3de;background:#fcfdfc}.form-grid input:focus,.form-grid select:focus,.form-grid textarea:focus{border-color:#8fc0b8;box-shadow:0 0 0 4px rgba(59,143,135,.08)}
.modal{background:rgba(12,24,40,.58);backdrop-filter:blur(8px)}.modal-card{border:1px solid rgba(255,255,255,.68);border-radius:24px;background:#faf9f5;box-shadow:0 38px 110px rgba(12,24,40,.24)}.modal-close{border:1px solid #e3e7e2;background:#f2f3f0}.modal-close:hover{background:#fff0ea;color:var(--coral)}
.auth-brand{background:radial-gradient(circle at 15% 85%,rgba(59,143,135,.48),transparent 36%),radial-gradient(circle at 95% 7%,rgba(231,127,97,.24),transparent 28%),linear-gradient(145deg,#101d33,#1b334c)}.auth-panel{background:radial-gradient(circle at 90% 8%,rgba(220,235,237,.55),transparent 27%),radial-gradient(circle at 10% 95%,rgba(231,127,97,.07),transparent 25%),#f8f5ef}.auth-card{padding:4px}.auth-card h2{font-size:38px}.auth-card input{border-radius:13px;background:rgba(255,255,255,.92)}
.agenda-view-switch,.day-view,.week-view,.month-view{box-shadow:var(--shadow)}.agenda-view-switch button.active{background:linear-gradient(130deg,#4a9991,#357f78)}.week-view button{border-left-color:var(--coral);background:#fff5f0}.month-view button{background:#eaf5f2}.recurrence-card{background:linear-gradient(145deg,#fff8f4,#fff)}
.form-template-grid>article:nth-child(3n+2){border-top-color:var(--coral)}.builder-field{border-radius:14px;background:#fbfcfa}.patient-access-check{border-color:#d0e5df;background:#f1f8f6}.application-note{background:#fff4ef}.file-drop{border-color:#b8d4cc;background:linear-gradient(145deg,#f2f9f7,#fbfdfc)}
@media(max-width:760px){.workspace{margin-left:0}.content{padding:26px 18px}.topbar{padding:0 17px}.search{display:none}.page-header h2,.welcome h2{font-size:31px}.panel{padding:20px}.page-header{gap:16px;align-items:flex-start}.page-header>.primary.compact{width:44px;min-width:44px;padding:0;font-size:0}.page-header>.primary.compact:after{content:"+";font-size:22px}}
@media(prefers-reduced-motion:reduce){button,input,select,textarea{transition:none!important}.primary:hover,.quick button:hover,.template-row button:hover,.form-template-grid>article:hover{transform:none}}
