@import url('/fonts.css');
:root{--ink:#183b3a;--muted:#6b7c7b;--paper:#f4f6f2;--line:#dce4dd;--green:#254f47;--lime:#d8eeab;--teal:#267a72;--red:#ae3d3d;--gold:#9d6922;--white:#fff;--shadow:0 12px 35px #173b3820}*{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--ink);font:15px/1.55 'Segoe UI',Arial,sans-serif}button,input,select,textarea{font:inherit}button,a,input,select,textarea{outline-offset:4px}button{cursor:pointer}a{color:var(--teal);text-decoration:none}a:hover{text-decoration:underline}button{border:1px solid var(--line);background:#fff;border-radius:9px;color:var(--ink);padding:9px 14px;font-weight:600;transition:background .15s}button:hover{background:#edf3e8}button:disabled{opacity:.5;cursor:wait}.primary{background:var(--green);border-color:var(--green);color:#fff}.primary:hover{background:#376557}.lime{background:var(--lime);border-color:var(--lime)}.quiet{background:transparent}.danger{color:var(--red)}.small{padding:5px 9px;font-size:13px}.shell{display:grid;grid-template-columns:238px 1fr;min-height:100vh}.sidebar{background:var(--ink);color:#eef3ed;padding:30px 18px;display:flex;flex-direction:column;gap:32px;position:fixed;inset:0 auto 0 0;width:238px;z-index:10}.brand{display:flex;align-items:center;gap:11px;padding:0 10px;color:#fff;line-height:1.1;font-size:20px;font-weight:700;letter-spacing:-.7px}.brand b{font-size:11px;text-transform:uppercase;letter-spacing:2px;color:#b1c8bd;display:block;margin-top:8px}.brand-icon{display:grid;place-items:center;width:42px;height:46px;background:var(--lime);color:var(--ink);border-radius:12px;font-size:25px;font-weight:800}.nav{display:grid;gap:7px}.nav a{color:#b9ccc7;padding:12px 15px;border-radius:9px;display:flex;gap:13px;align-items:center;font-size:14px}.nav a:hover,.nav a.active{background:#31514b;color:#fff;text-decoration:none}.nav a.active{box-shadow:inset 3px 0 var(--lime)}.nav svg{width:20px;height:20px;stroke:currentColor;stroke-width:1.7;fill:none}.sidebar-footer{margin-top:auto;background:#294a44;padding:16px;border-radius:12px;font-size:12px;color:#bdcfc6}.sidebar-footer strong{color:#e5f5cd;display:block;margin-bottom:6px}.main{grid-column:2;min-width:0}.topbar{height:79px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 36px;background:#ffffffb0;gap:12px}.topbar .crumb{font-size:13px;color:var(--muted)}.profile{display:flex;gap:10px;align-items:center;font-size:13px}.avatar{width:34px;height:34px;border-radius:50%;background:#dde9d0;display:grid;place-items:center;font-weight:700}.content{padding:32px 36px 70px;max-width:1600px;margin:auto}.eyebrow{font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:1.8px;color:var(--teal);margin-bottom:9px}h1{font-size:32px;line-height:1.2;letter-spacing:-1.2px;margin:0 0 11px}h2{font-size:21px;letter-spacing:-.5px;margin:0 0 12px}h3{font-size:16px;margin:0 0 8px}p{margin:0 0 14px}.muted{color:var(--muted)}.subtle{font-size:13px;color:var(--muted)}.head-row,.row{display:flex;align-items:center;justify-content:space-between;gap:16px}.head-row{margin-bottom:25px}.actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin:24px 0 30px}.stat{background:white;border:1px solid var(--line);border-radius:13px;padding:19px 23px}.stat strong{display:block;font-size:29px;letter-spacing:-1px;margin:5px 0}.stat span{font-size:12px;color:var(--muted)}.card{background:#fff;border:1px solid var(--line);border-radius:14px;padding:23px;min-width:0}.hero{background:#e5ecd8;position:relative;overflow:hidden;display:flex;align-items:center;justify-content:space-between;padding:30px 32px;border-radius:17px;gap:24px}.hero h2{font-size:28px;max-width:540px}.hero p{max-width:570px;color:#53685b}.hero-art{width:150px;min-width:150px;height:150px;border:1px dashed #b7caa7;border-radius:50%;display:grid;place-items:center;transform:rotate(-10deg)}.hero-art svg{width:82px;height:94px;fill:#fff;stroke:#4c7861;stroke-width:2.5}.grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:17px}.two{display:grid;grid-template-columns:1.6fr 1fr;gap:22px}.case-card{display:flex;flex-direction:column;gap:12px}.case-card h3{font-size:18px;line-height:1.4}.case-card p{font-size:13px;margin:0;white-space:pre-wrap;display:-webkit-box;-webkit-line-clamp:4;-webkit-box-orient:vertical;overflow:hidden}.case-card .actions{margin-top:auto;padding-top:7px}.pill{display:inline-flex;align-items:center;gap:6px;border:1px solid #d6e5d7;background:#f2f7eb;color:#47714d;border-radius:25px;font-size:11px;font-weight:600;padding:4px 9px;white-space:nowrap}.pill.amber{background:#fff5e2;border-color:#f1dfbd;color:var(--gold)}.pill.gray{background:#f2f4f3;border-color:#e0e6e2;color:#6a7d75}.pill.red{background:#fff0ef;border-color:#eed0cc;color:var(--red)}.pill.blue{background:#eef5fa;border-color:#d8e7ef;color:#4c7791}.toolbar{display:flex;flex-wrap:wrap;gap:10px;margin:20px 0}.toolbar input{flex:1;min-width:180px}.toolbar select{max-width:230px}.empty{padding:35px;text-align:center;border:1px dashed #c8d6c5;border-radius:12px;background:#f9fbf6;color:var(--muted)}.empty h3{color:var(--ink)}.table-wrap{overflow:auto;max-width:100%}table{width:100%;border-collapse:collapse;text-align:left;font-size:13px}th{font-size:10px;letter-spacing:1px;color:var(--muted);text-transform:uppercase;padding:12px 10px;border-bottom:1px solid var(--line);white-space:nowrap}td{padding:13px 10px;border-bottom:1px solid #edf0eb;vertical-align:top}tr:last-child td{border-bottom:0}td pre{white-space:pre-wrap;max-width:700px;font:inherit;margin:0}.progress{height:6px;background:#e8eee4;border-radius:4px;overflow:hidden;margin:8px 0}.progress>span{height:100%;display:block;background:#7aab62}.progress.w0>span{width:0}.progress.w10>span{width:10%}.progress.w20>span{width:20%}.progress.w30>span{width:30%}.progress.w40>span{width:40%}.progress.w50>span{width:50%}.progress.w60>span{width:60%}.progress.w70>span{width:70%}.progress.w80>span{width:80%}.progress.w90>span{width:90%}.progress.w100>span{width:100%}label{display:grid;gap:6px;font-size:12px;font-weight:600;margin-bottom:14px}input,select,textarea{border:1px solid #cad8cd;border-radius:8px;padding:10px 11px;background:white;color:var(--ink);width:100%;min-width:0}textarea{min-height:95px;resize:vertical}input[type=checkbox]{width:auto;accent-color:var(--green)}.check{display:flex;gap:8px;align-items:center;font-weight:400}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:0 18px}.full{grid-column:1/-1}.notice{padding:13px 16px;border-radius:9px;border:1px solid #e5d6b2;background:#fff9eb;color:#80652c;font-size:13px;margin:14px 0;white-space:pre-wrap}.notice.green{background:#eff6e7;border-color:#d8e5c9;color:#486936}.alert{background:#fff1ec;border:1px solid #efcfc3;color:#933f2f;border-radius:9px;padding:12px 17px;font-weight:600;white-space:pre-wrap;margin:14px 0}.patient-bar{display:flex;align-items:center;gap:13px;margin:18px 0}.patient-bar .avatar{width:48px;height:48px;font-size:18px}.patient-bar h2{margin:0}.patient-bar p{margin:3px 0 0;font-size:12px}.patient-picker{max-width:470px}.tabs{display:flex;gap:4px;border-bottom:1px solid var(--line);margin:20px 0;overflow:auto}.tabs button{border:0;background:none;border-radius:0;font-size:13px;white-space:nowrap;padding:11px 14px;color:var(--muted)}.tabs button.active{box-shadow:inset 0 -3px var(--green);color:var(--ink);font-weight:700}.chart{display:grid;grid-template-columns:repeat(16,minmax(0,1fr));gap:4px;margin:18px 0 5px}.tooth{background:#fff;border:1px solid #dbe1d7;border-radius:6px;padding:5px 0;text-align:center;min-height:73px;font-size:11px;color:var(--muted)}.tooth:before{content:'';display:block;width:17px;height:27px;border:2px solid #b5c5b3;border-radius:7px 7px 4px 4px;margin:4px auto 7px;background:#f8faf6}.tooth.filled:before{background:#9dc6b9;border-color:#61998b}.tooth.planned:before{background:#f4d79c;border-color:#c59b4d}.tooth.selected{border-color:#254f47;background:#eef5e5}.tooth.missing:before{background:repeating-linear-gradient(45deg,#fff,#fff 3px,#e3e8e1 3px,#e3e8e1 5px);opacity:.5}.legend{display:flex;gap:18px;font-size:11px;color:var(--muted);margin-bottom:24px}.dot{display:inline-block;width:8px;height:8px;border-radius:50%;background:#88b7a9;margin-right:4px}.dot.amber{background:#dcb56e}.notes{display:grid;gap:11px}.note{padding:15px;background:#f8faf5;border-radius:9px;white-space:pre-wrap;overflow-wrap:anywhere;font-size:13px}.note .actions{margin-top:10px}.clinical-columns{display:grid;grid-template-columns:1.2fr 1fr;gap:18px}.case-detail{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.7}.step-list{list-style:none;padding:0;display:grid;gap:10px}.step-list li{border:1px solid var(--line);border-radius:10px;padding:14px}.step-list h3{font-size:14px}.step-index{display:inline-grid;place-items:center;width:25px;height:25px;border-radius:50%;background:#eaf1e1;color:#4e6c43;margin-right:9px;font-size:12px}.coach{position:fixed;right:22px;bottom:20px;width:360px;max-height:calc(100vh - 40px);background:white;border:1px solid #bed1bc;border-radius:15px;box-shadow:var(--shadow);z-index:20;display:flex;flex-direction:column}.coach-head{background:var(--ink);color:white;border-radius:14px 14px 0 0;padding:12px 15px;display:flex;justify-content:space-between;align-items:center;gap:10px}.coach-head small{color:#d2e5c5;font-size:10px;letter-spacing:1px;text-transform:uppercase}.coach-head button{background:#34514c;color:white;border:0;padding:4px 8px}.coach-body{padding:18px;overflow:auto}.coach-body h3{font-size:16px}.coach-body .case-detail{font-size:13px;max-height:250px;overflow:auto}.coach-foot{padding:12px 17px;border-top:1px solid var(--line);display:flex;flex-wrap:wrap;gap:7px}.coach-foot button{font-size:12px;padding:7px 10px}.coach-bar{position:fixed;bottom:20px;right:22px;z-index:20}.coach-page{background:#f4f6f2;min-height:100vh;padding:15px}.coach-page .coach{position:static;width:100%;max-height:none;box-shadow:none}.coach-page .coach-body .case-detail{max-height:none}.coach-hidden{display:none}.auth{min-height:100vh;display:grid;grid-template-columns:1.1fr 1fr}.auth-story{background:var(--ink);color:#fff;padding:60px 10%;display:flex;flex-direction:column;justify-content:center;gap:28px}.auth-story .brand{padding:0;margin-bottom:40px}.auth-story h1{font-size:48px;max-width:470px;letter-spacing:-2px}.auth-story p{color:#b8d0c1;max-width:440px}.auth-story .pill{align-self:flex-start;background:#315348;color:#d8eeab;border-color:#496c5a}.auth-form{display:flex;align-items:center;justify-content:center;padding:40px}.auth-form .card{width:100%;max-width:440px;border:0;background:transparent}.auth-form h2{font-size:28px}.auth-form button.primary{width:100%;margin-top:9px}dialog{border:1px solid var(--line);border-radius:17px;padding:28px;max-width:min(780px,94vw);width:700px;max-height:90vh;color:var(--ink);box-shadow:var(--shadow)}dialog::backdrop{background:#102d2c77;backdrop-filter:blur(2px)}dialog header{display:flex;justify-content:space-between;gap:16px;margin-bottom:20px}dialog header h2{margin:0}dialog .actions{justify-content:flex-end;margin-top:20px}.dialog-wide{width:1000px;max-width:95vw}.auth-error{color:var(--red);white-space:pre-wrap}.toasts{position:fixed;top:15px;right:20px;z-index:100}#toasts{position:fixed;top:15px;right:20px;z-index:100;max-width:440px}.toast{background:var(--ink);color:white;border-radius:10px;padding:13px 19px;margin-bottom:10px;box-shadow:var(--shadow);font-size:13px}.toast.error{background:#8e3c32}.boot{text-align:center;margin:20vh 20px}.credentials{font:12px ui-monospace,monospace;white-space:pre-wrap;padding:15px;background:#f1f5ed;border-radius:8px;overflow:auto}.section-gap{margin-top:24px}.spacer{height:15px}.splitline{border:0;border-top:1px solid var(--line);margin:24px 0}.nowrap{white-space:nowrap}.help{margin-top:7px;font-size:12px;color:var(--muted)}.perio-row{display:grid;grid-template-columns:70px 1fr 150px;gap:10px;margin-bottom:10px}.print-only{display:none}.review-box{background:#f5f8ef;padding:18px;border-radius:10px;margin-top:20px}.mobile-brand{display:none}.coach-open .content{padding-right:410px}.coach-open .grid{grid-template-columns:repeat(2,minmax(0,1fr))}.coach-open .two,.coach-open .clinical-columns{grid-template-columns:1fr}.inline-checks{max-height:160px;overflow:auto;background:#fafbf7;border-radius:8px;padding:12px}.file{padding:10px;border:1px dashed var(--line);border-radius:8px}.reference-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;font-size:12px;overflow-wrap:anywhere}.reference-grid span{color:var(--muted)}@media(min-width:1600px){.coach-open .clinical-columns{grid-template-columns:1.2fr 1fr}}@media(max-width:1100px){.sidebar{width:195px}.shell{grid-template-columns:195px 1fr}.content{padding:25px 22px}.topbar{padding:0 22px}.grid{grid-template-columns:repeat(2,minmax(0,1fr))}.two,.clinical-columns{grid-template-columns:1fr}.stats{grid-template-columns:repeat(2,minmax(0,1fr))}.coach-open .content{padding-right:22px;padding-bottom:450px}.hero-art{display:none}.brand{font-size:17px}}@media(max-width:720px){.shell{display:block}.sidebar{position:static;width:auto;padding:15px;gap:14px}.sidebar .brand{display:none}.sidebar-footer{display:none}.nav{display:flex;overflow:auto;gap:5px}.nav a{padding:8px;font-size:12px;white-space:nowrap}.nav svg{display:none}.topbar{height:64px;padding:0 15px}.content{padding:23px 15px 70px}.grid,.coach-open .grid{grid-template-columns:1fr}.head-row{align-items:flex-start;flex-direction:column}h1{font-size:27px}.hero{padding:23px}.hero h2{font-size:24px}.auth{display:block}.auth-story{padding:30px;gap:10px}.auth-story h1{font-size:30px}.auth-story .brand{margin-bottom:10px}.auth-form{padding:20px}.form-grid{grid-template-columns:1fr}.full{grid-column:auto}.chart{gap:2px}.tooth:before{width:10px;height:20px}.tooth{font-size:9px}.coach{right:8px;bottom:8px;width:min(360px,calc(100vw - 16px));max-height:65vh}.stats{gap:9px}.stat{padding:14px}.profile strong{max-width:100px;overflow:hidden;display:block}.perio-row{grid-template-columns:55px 1fr 90px}.reference-grid{grid-template-columns:1fr}}@media print{.sidebar,.topbar,.actions,.coach,.toolbar,button,#coach{display:none!important}.shell{display:block}.main{display:block}.content,.coach-open .content{padding:0}.card{break-inside:avoid}.print-only{display:block}body{background:white}.grid{display:block}}
