:root{--bg:#fff;--sidebar:#f7f8fa;--text:#20242b;--muted:#737985;--line:#e9ebef;--primary:#3464db;--primary-bg:#edf3ff;--hover:#eef0f4;--radius:9px;--nav-width:216px;--danger:#c33d47;--green:#287e60;--font: "Pretendard","Noto Sans KR","Malgun Gothic",system-ui,sans-serif}*{box-sizing:border-box}html,body{margin:0;height:100%;font:14px/1.55 var(--font);color:var(--text);background:var(--bg)}button,input,select,textarea{font:inherit;color:inherit}button,a,input,textarea,select{outline-offset:3px}button{cursor:pointer;background:none;border:0;padding:0;text-align:left}a{color:var(--primary);text-decoration:none}button:focus-visible,a:focus-visible{outline:2px solid var(--primary)}button:disabled{opacity:.45;cursor:not-allowed}h1,h2,h3,p{margin:0}svg{display:inline-block;vertical-align:middle;flex-shrink:0}small,.muted{color:var(--muted)}.app{display:grid;grid-template-columns:var(--nav-width) minmax(0,1fr);min-height:100vh}.sidebar{position:sticky;top:0;height:100dvh;display:flex;flex-direction:column;background:var(--sidebar);border-right:1px solid var(--line);padding:10px 9px 8px;overflow:hidden}.brand{display:flex;gap:9px;align-items:center;padding:3px 7px 14px}.logo{background:#2b323e;border-radius:8px;display:grid;place-items:center;width:32px;height:32px;color:#fff;flex:none}.brand b{display:block;font-size:15px;line-height:1.25;letter-spacing:-.3px}.brand small{font-size:10px;letter-spacing:.2px}.brand .icon-btn{margin-left:auto}.navscroll{overflow-y:auto;min-height:0;flex:1;scrollbar-width:thin}.navitem{width:100%;display:flex;align-items:center;gap:9px;padding:6px 9px;min-height:33px;border-radius:6px;font-size:13px;line-height:1.35;color:#424853}.navitem:hover,.icon-btn:hover{background:var(--hover)}.navitem.active{color:var(--primary);font-weight:650;background:var(--primary-bg)}.navitem svg{color:#717a8b}.navitem.active svg{color:var(--primary)}.navitem .count{margin-left:auto;color:var(--muted);font-size:11px}.navitem .key{margin-left:auto;font-size:10px;color:#9299a5}.navgroup{font-size:11px;color:#9298a2;margin:19px 9px 4px;font-weight:650;display:flex;justify-content:space-between;align-items:center}.navchildren .navitem{padding-left:24px;font-size:12.5px}.navbottom{border-top:1px solid var(--line);padding:10px 3px 0}.profile{display:flex;align-items:center;gap:8px;padding:7px}.avatar{width:30px;height:30px;border-radius:50%;background:#e4e9f5;display:grid;place-items:center;font-size:12px;color:#4f638d;flex:none;font-weight:700}.profile .who{min-width:0;flex:1}.profile b{font-size:12px;display:block}.profile small{font-size:10px;display:block}.profile .icon-btn{padding:6px}.collapsed{--nav-width:64px}.collapsed .brand>div:not(.logo),.collapsed .navitem span,.collapsed .navgroup,.collapsed .navchildren,.collapsed .profile .who,.collapsed .demo-chip{display:none}.collapsed .brand{padding:3px 0 14px;justify-content:center;flex-wrap:wrap}.collapsed .brand .icon-btn{margin:0}.collapsed .navitem{justify-content:center;padding:9px}.collapsed .profile{flex-wrap:wrap;justify-content:center}.main{min-width:0}.pageheader{padding:24px 36px 0;border-bottom:1px solid var(--line);background:white;position:sticky;top:0;z-index:5}.headerline{display:flex;align-items:center;gap:14px;justify-content:space-between;min-height:40px;margin-bottom:18px}.heading{font-size:22px;letter-spacing:-.65px;font-weight:720;line-height:1.3}.subline{color:var(--muted);font-size:12px;margin-top:4px}.pageheader .tabs{margin-bottom:0}.content{padding:28px 36px 44px;max-width:1560px;margin:0 auto}.tabs{display:flex;gap:26px;align-items:center;border-bottom:1px solid var(--line);overflow:auto;white-space:nowrap}.tab{font-size:14px;font-weight:550;padding:11px 0 12px;color:var(--muted);border-bottom:2px solid transparent}.tab.active{color:var(--text);border-color:var(--primary);font-weight:700}.pageheader .tabs{border-bottom:0}.tab .num{font-size:11px;margin-left:5px;color:var(--muted)}.btn{border:1px solid var(--line);border-radius:7px;display:inline-flex;align-items:center;justify-content:center;gap:7px;white-space:nowrap;padding:8px 13px;font-size:13px;font-weight:600;background:white;min-height:35px;line-height:1.3;text-align:center}.btn:hover{background:#f7f8fa;border-color:#dfe3ea}.btn.primary{background:var(--primary);border-color:var(--primary);color:white}.btn.primary:hover{background:#2854c2}.btn.danger{color:var(--danger);border-color:#f1d6d8}.btn.small{padding:5px 9px;min-height:29px;font-size:12px}.icon-btn{display:inline-grid;place-items:center;width:29px;height:29px;border-radius:6px;color:#68717d;flex:none}.icon-btn.on{color:#ce9a24}.actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.demo-chip{font-size:10px;display:inline-block;border:1px solid #e3e7ef;color:#667182;padding:2px 6px;border-radius:4px;white-space:nowrap}.eyebrow{font-size:11px;text-transform:uppercase;letter-spacing:1.5px;font-weight:700;color:#62748d}.welcome{display:flex;justify-content:space-between;align-items:flex-end;margin:0 0 25px;gap:12px}.welcome h2{font-size:26px;letter-spacing:-1px;margin:5px 0 4px}.welcome p{font-size:13px;color:var(--muted)}.overview{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));border:1px solid var(--line);border-radius:var(--radius);overflow:hidden;margin-bottom:30px}.metric{padding:16px 20px;min-width:0;border-right:1px solid var(--line);display:flex;flex-direction:column;gap:7px}.metric:last-child{border:0}.metric:hover{background:#fafbfc}.metric .label{color:#737985;font-size:12px;display:flex;gap:6px;align-items:center}.metric b{font-size:25px;letter-spacing:-.7px;font-variant-numeric:tabular-nums}.metric .desc{font-size:11px;color:#8c939e}.sectionhead{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px;gap:10px}.sectionhead h2{font-size:16px;font-weight:700;letter-spacing:-.3px}.sectionhead .link{font-size:12px;color:var(--muted);display:flex;align-items:center;gap:4px}.sectionhead .link:hover{color:var(--primary)}.homegrid{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(275px,1fr);gap:24px;align-items:start}.stack{display:flex;flex-direction:column;gap:28px;min-width:0}.panel{border:1px solid var(--line);border-radius:var(--radius);overflow:hidden;background:#fff}.panelpad{padding:18px}.shortcutgrid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.shortcut{position:relative;min-width:0;display:flex;align-items:center;gap:10px;padding:14px 12px;border:1px solid var(--line);border-radius:8px;min-height:66px}.shortcut:hover{background:#f9fafc;border-color:#cad4e8}.shortcut b{display:block;font-size:12px;font-weight:650;overflow:hidden;text-overflow:ellipsis}.shortcut small{font-size:11px;display:block}.serviceicon{width:32px;height:32px;border-radius:8px;background:#f1f3f7;color:#5b6b84;display:grid;place-items:center;flex:none}.serviceicon.blue{background:#eef3ff;color:#4669bc}.serviceicon.green{background:#eef5f1;color:#407963}.serviceicon.amber{background:#f9f4eb;color:#9b733a}.listrow{display:flex;align-items:center;gap:10px;width:100%;padding:13px 15px;border-bottom:1px solid var(--line);text-align:left}.listrow:last-child{border:0}.listrow:hover{background:#fafbfc}.listrow .grow{flex:1;min-width:0}.listrow b{font-size:13px;font-weight:600;display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.listrow small{font-size:11px;display:block;margin-top:2px}.dot{height:7px;width:7px;border-radius:50%;background:var(--primary);flex:none}.pill{display:inline-flex;gap:5px;align-items:center;padding:3px 7px;border-radius:4px;font-size:11px;line-height:1.4;white-space:nowrap;background:#f1f2f5;color:#656c77;font-weight:600}.pill.wait{background:#fff5e4;color:#a46e15}.pill.progress{background:#edf3ff;color:#3763b9}.pill.done{background:#e9f6ee;color:#287e60}.pill.reject{background:#fceeee;color:#b13c43}.pill .dot{width:5px;height:5px;background:currentColor}.empty{padding:36px 20px;text-align:center;color:var(--muted);font-size:13px}.empty svg{color:#a4acb7;margin-bottom:7px}.empty b{display:block;color:#555e6b;margin-bottom:3px}.toolbar{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;margin-bottom:15px}.filters{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.fieldinput,input,select,textarea{border:1px solid #dfe3e9;background:white;border-radius:7px;padding:9px 11px;min-height:36px;color:var(--text);min-width:0}input:focus,select:focus,textarea:focus{outline:2px solid #9db9ff;outline-offset:-1px;border-color:#8dabed}input::placeholder,textarea::placeholder{color:#a1a7b1}input[type=checkbox]{min-height:0;accent-color:var(--primary);width:15px;height:15px}input[type=file]{width:100%;font-size:12px}textarea{resize:vertical;min-height:90px}.searchbox{display:flex;align-items:center;border:1px solid #dfe3e9;border-radius:7px;padding:0 10px;gap:7px;color:var(--muted)}.searchbox input{border:0;min-height:34px;outline:none;padding:6px 0;width:100%;background:transparent}.searchbox:focus-within{border-color:var(--primary)}.filters select,.filters input{font-size:12px;min-height:33px;padding:6px 9px}.countline{font-size:12px;color:var(--muted);margin:5px 0 10px}.tablewrap{overflow:auto;max-width:100%;border:1px solid var(--line);border-radius:8px}table{width:100%;border-collapse:collapse;text-align:left;font-size:12.5px;min-width:660px}th{font-size:11px;font-weight:650;color:#707987;background:#f8f9fb;white-space:nowrap;padding:11px 12px;border-bottom:1px solid var(--line)}td{padding:12px;border-bottom:1px solid var(--line);vertical-align:middle}tr:last-child td{border-bottom:0}tbody tr:hover td{background:#fafbfc}.docname{font-weight:650;color:#313743;display:block;max-width:260px;text-align:left}.docname:hover{color:var(--primary)}.docno{display:block;color:#8d95a1;font-size:10px;margin-top:3px}.grouphead td{font-weight:700;background:#f3f5f8;color:#697382;font-size:11px}.categoryhead{font-size:14px;font-weight:700;margin:24px 0 11px;color:#394152}.servicegrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:11px}.servicecard{display:flex;align-items:center;gap:12px;border:1px solid var(--line);border-radius:8px;min-height:78px;padding:14px;position:relative}.servicecard:hover{border-color:#ccd5e5;background:#fafbfc}.servicecard>.grow{flex:1;min-width:0}.servicecard b{display:block;font-size:13px;margin-bottom:3px;font-weight:650}.servicecard small{font-size:11px;display:block}.servicecard .icon-btn{margin-left:auto}.notice-detail{white-space:pre-wrap;line-height:1.8;font-size:14px;color:#4c5564}.banner{background:#f7f9fc;border:1px solid #e7ebf2;border-radius:7px;padding:12px 14px;font-size:12px;color:#637189;display:flex;gap:8px;align-items:flex-start;margin-bottom:20px}.banner.urgent{background:#fff4f2;color:#a73b40;border-color:#f1d4d0}.formgrid{display:grid;grid-template-columns:1fr 1fr;gap:17px}.field{display:flex;flex-direction:column;gap:6px;min-width:0}.field.wide{grid-column:1/-1}.field label{font-size:12px;font-weight:650;color:#4d5662}.required{color:#d04b52}.field .hint{font-size:11px;color:#858e9a}.field input,.field textarea,.field select{width:100%}.route{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin:16px 0}.route .step{padding:5px 10px;border-radius:6px;background:#f2f4f7;color:#6d7684;font-size:12px}.route .step.current{background:var(--primary-bg);color:var(--primary);font-weight:650}.route .step.past{background:#e9f6ee;color:var(--green)}.route .arrow{color:#9da5b0}.kv{display:grid;grid-template-columns:130px 1fr;gap:0;border-top:1px solid var(--line)}.kv>div{padding:11px 8px;border-bottom:1px solid var(--line);white-space:pre-wrap;overflow-wrap:anywhere}.kv>.label{font-size:12px;color:var(--muted);font-weight:600;background:#fafbfc}.kv>.value{font-size:13px}.timeline{margin:0;padding:0;list-style:none}.timeline li{position:relative;border-left:1px solid #dfe5ee;margin-left:6px;padding:0 0 20px 18px}.timeline li:last-child{padding-bottom:0}.timeline li:before{content:'';position:absolute;width:8px;height:8px;border-radius:50%;left:-4.5px;top:5px;background:#7692ce;border:1px solid white}.timeline b{font-size:12px}.timeline small{font-size:11px}.timeline p{font-size:12px;color:#687383;white-space:pre-wrap;margin-top:4px}.formtitle{font-size:14px;margin:24px 0 12px}.modal-backdrop{position:fixed;inset:0;background:rgba(18,27,45,.35);z-index:20;display:flex;align-items:flex-start;justify-content:center;padding:9vh 18px 24px;backdrop-filter:blur(1px)}.modal{background:white;border-radius:12px;box-shadow:0 20px 80px rgba(24,34,54,.19);width:540px;max-width:100%;max-height:84vh;display:flex;flex-direction:column;overflow:hidden}.modal.wide{width:780px}.modal-head{padding:17px 22px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;gap:10px}.modal-head h2{font-size:17px;letter-spacing:-.3px}.modal-body{padding:20px 22px;overflow:auto;min-height:0}.modal-foot{display:flex;align-items:center;justify-content:flex-end;gap:8px;padding:13px 22px;border-top:1px solid var(--line);background:white}.selector-row{display:flex;align-items:center;width:100%;gap:10px;padding:12px 9px;border-bottom:1px solid var(--line);border-radius:5px}.selector-row:hover{background:#f5f7fa}.selector-row .grow{flex:1;min-width:0}.selector-row b{display:block;font-size:13px}.selector-row small{display:block;font-size:11px}.selector-list{max-height:45vh;overflow:auto;margin-top:10px}.chiprow{display:flex;gap:6px;flex-wrap:wrap;margin:12px 0}.chip{padding:5px 10px;font-size:12px;border-radius:5px;background:#f2f4f7;color:#666f7b}.chip.active{background:var(--primary-bg);color:var(--primary);font-weight:650}.drawer-backdrop{padding:0;justify-content:flex-end}.drawer{height:100dvh;max-height:none;width:min(680px,100vw);border-radius:0;box-shadow:-15px 0 50px rgba(24,34,54,.12)}.drawer .modal-body{flex:1}.drawer .modal-head{padding:21px 24px}.drawer .modal-body{padding:22px 24px}.drawer .modal-head h2{font-size:20px}.close{font-size:20px}.toast{position:fixed;right:24px;bottom:24px;padding:12px 17px;border-radius:8px;color:white;background:#283344;box-shadow:0 4px 15px #0002;z-index:40;font-size:13px;max-width:calc(100% - 48px)}.toast.error{background:#a52d36}#toast:empty{display:none}.loginwrap{min-height:100vh;background:#f5f7fa;display:grid;place-items:center;padding:24px}.login{width:min(460px,100%);padding:34px;border:1px solid #e5e8ee;background:white;border-radius:14px;box-shadow:0 8px 35px #2538580b}.login h1{font-size:24px;margin:16px 0 5px;letter-spacing:-.6px}.login form{display:grid;gap:15px;margin:25px 0 20px}.login .btn{width:100%}.login .demo-info{font-size:11px;color:#6e7b90;line-height:1.8;background:#f5f7fa;padding:12px;border-radius:7px}.adminrow{display:grid;grid-template-columns:minmax(140px,1fr) minmax(140px,1fr) auto;gap:12px;align-items:center;padding:12px 14px;border-bottom:1px solid var(--line)}.adminrow:last-child{border:0}.fileline{display:flex;align-items:center;gap:8px;padding:9px 0;border-bottom:1px solid var(--line);overflow-wrap:anywhere}.fileline small{margin-left:auto;white-space:nowrap}.mobiletoggle{display:none}.errorline{font-size:12px;color:var(--danger);margin:7px 0}.nowrap{white-space:nowrap}.grow{flex:1;min-width:0}.mobilebar{display:none}
@media(max-width:1100px){.homegrid{grid-template-columns:1fr}.shortcutgrid{grid-template-columns:repeat(3,minmax(0,1fr))}.pageheader{padding:20px 25px 0}.content{padding:25px}.overview .metric{padding:15px}.sidebar{--nav-width:216px}.collapsed .sidebar{--nav-width:64px}}
@media(max-width:760px){.app{display:block}.sidebar{display:none}.app.show-nav .sidebar{display:flex;position:fixed;top:0;left:0;bottom:0;width:235px;z-index:30;box-shadow:0 0 0 100vw #0004}.mobiletoggle{display:inline-grid}.pageheader{padding:14px 15px 0}.headerline{margin-bottom:13px;gap:8px}.heading{font-size:18px}.subline{display:none}.content{padding:18px 15px 35px}.welcome h2{font-size:22px}.welcome .btn{display:none}.overview{grid-template-columns:repeat(2,1fr);margin-bottom:24px}.metric:nth-child(2){border-right:0}.metric:nth-child(-n+2){border-bottom:1px solid var(--line)}.shortcutgrid{grid-template-columns:repeat(2,minmax(0,1fr))}.homegrid{gap:20px}.formgrid{grid-template-columns:1fr}.servicegrid{grid-template-columns:1fr}.tabs{gap:18px}.headerline .demo-chip{display:none}.modal-backdrop{padding:16px 10px;align-items:center}.drawer-backdrop{padding:0}.modal{max-height:92dvh}.drawer{max-height:100dvh}.modal-body,.drawer .modal-body{padding:18px}.kv{grid-template-columns:100px 1fr}.adminrow{grid-template-columns:1fr auto}.adminrow small{display:none}.toolbar .searchbox{width:100%}}

/* v2.0.1 login feedback */
.login-error:not([hidden]){padding:10px 12px;margin:0;border:1px solid #f0ccd0;border-radius:7px;background:#fff5f5;line-height:1.5;font-weight:600}.login-error[hidden]{display:none}.login button:disabled{cursor:wait;opacity:.65}

/* RB-CARE 2.0.4 */
.logo.brandlogo{background:transparent;padding:0;overflow:hidden}
.brandlogo img{width:32px;height:32px;display:block;object-fit:contain;border-radius:7px}
.logo.loginbrand{width:56px;height:56px}
.loginbrand img{width:56px;height:56px;border-radius:10px}
.cfg-section{margin-bottom:32px}.cfg-section .sectionhead{margin-bottom:12px}.grant-row{display:grid;grid-template-columns:145px minmax(180px,350px) auto;gap:12px;align-items:center;padding:12px 16px;border-bottom:1px solid var(--line)}.grant-row:last-child{border:0}.cfg-note{margin-top:9px;font-size:12px}
.cfg-table td:first-child .actions{gap:10px}.cfg-table .muted{font-size:11px;margin-top:3px}.cfg-table th:last-child{min-width:125px}.cfg-fields{display:grid;gap:14px}.cfg-field{padding:15px;border:1px solid var(--line);border-radius:9px;background:#fafbfc}.cfg-fieldhead{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-bottom:12px}.cfg-fieldhead b{font-size:13px}.cfg-field .formgrid{gap:12px}.cfg-routes{display:grid;gap:8px}.cfg-route select{flex:1}.cfg-route .muted{min-width:48px}.cfg-route{font-size:12px}.cfg-field [hidden]{display:none!important}button:disabled{opacity:.45;cursor:not-allowed}#cfgiconpreview{display:grid;place-items:center;flex:none;width:32px;height:32px;background:#edf2fa;color:#3867bb;border-radius:7px}
@media(max-width:760px){.grant-row{grid-template-columns:1fr auto}.grant-row b{grid-column:1/-1}.grant-row select{width:100%}}

/* v2.1.0 onboarding and mobile shell */
.login{max-width:460px}.onboard-card{border-top:1px solid var(--line);padding-top:16px;margin-top:15px}.onboard-card p{font-size:12px;line-height:1.7;color:var(--muted);margin:8px 0 14px}.onboard-card .btn{justify-content:center;width:100%}.install-footer{display:flex;flex-direction:column;gap:7px;align-items:center;margin-top:19px;padding-top:17px;border-top:1px solid var(--line)}.install-footer .btn{width:100%;justify-content:center}.install-footer .muted{font-size:11px}.auth-heading{font-size:18px;margin-top:20px;margin-bottom:15px}.auth-note{font-size:12px;line-height:1.65}.successline{color:#16865b;font-size:13px;margin-top:12px;line-height:1.6}.install-guide-title{display:flex;gap:13px;align-items:center}.install-guide-title img{width:48px;height:48px;border-radius:9px}.install-guide-title h3{margin:0 0 3px;font-size:17px}.qr-card{text-align:center;background:#f7f8fa;border:1px solid var(--line);border-radius:10px;margin:18px 0;padding:16px}.qr-card img{display:block;width:min(220px,100%);aspect-ratio:1;background:white;margin:0 auto 12px}.install-address{font-size:12px;overflow-wrap:anywhere;margin:8px 0}.qr-card small{font-size:12px;color:var(--muted)}.install-instructions{display:grid;gap:13px;margin:16px 0}.install-instructions div{border:1px solid var(--line);border-radius:9px;padding:12px}.install-instructions p{font-size:13px;line-height:1.6;margin:5px 0;color:var(--muted)}.org-summary{display:grid;grid-template-columns:repeat(3,1fr);border:1px solid var(--line);border-radius:9px;background:white;padding:15px;gap:8px}.org-summary div{display:grid;gap:8px}.org-summary small{color:var(--muted);font-size:12px}.org-summary b{font-size:19px}.primary-row{display:grid;grid-template-columns:120px minmax(0,1fr) auto;gap:10px;padding:12px 15px;align-items:center;border-bottom:1px solid var(--line)}.primary-row:last-child{border-bottom:0}.primary-row select{min-width:0;width:100%}.handler-list{display:grid;gap:10px}.handler-row{display:grid;grid-template-columns:minmax(130px,1fr) minmax(140px,1fr) minmax(140px,1fr) auto;gap:12px;padding:14px;align-items:end;border:1px solid var(--line);background:white;border-radius:9px}.handler-name{display:grid;gap:5px;align-self:center}.handler-name small{font-size:11px}.handler-row .field{min-width:0}.handler-row select{width:100%;min-width:0}.mobile-nav{display:none}
@media(max-width:760px){
 .loginwrap{min-height:100dvh;padding:20px 15px max(24px,env(safe-area-inset-bottom));align-items:flex-start}.login{width:100%;max-width:440px;padding:25px 20px;margin:10px auto}.login h1{font-size:22px}.login input,.login select,.field input,.field select,.field textarea{font-size:16px}.login .btn{min-height:44px}.content{padding-bottom:calc(83px + env(safe-area-inset-bottom))}.headerline .actions{gap:6px}.headerline .btn.primary{font-size:12px;padding:8px 10px;white-space:nowrap}.app.show-nav .sidebar{z-index:45;width:min(300px,84vw);padding-bottom:env(safe-area-inset-bottom)}.mobile-nav{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));position:fixed;bottom:0;left:0;right:0;z-index:25;background:#fff;border-top:1px solid var(--line);padding:7px 6px calc(7px + env(safe-area-inset-bottom))}.mobile-nav button{border:none;background:transparent;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;font-size:10px;color:#59616e;min-height:43px;padding:2px}.mobile-nav button.active{color:var(--primary);font-weight:700}.mobile-nav button:focus-visible{outline:2px solid var(--primary)}.shortcutgrid{gap:8px}.shortcut{min-width:0;padding:10px 8px}.shortcut .serviceicon{flex-shrink:0}.shortcut span{min-width:0}.shortcut b{font-size:12px;overflow-wrap:anywhere}.metric{min-width:0}.modal.drawer{width:100vw;max-height:100dvh;height:100dvh}.drawer .modal-head,.modal-head{padding:14px 16px}.drawer .modal-footer,.modal-footer{padding:12px 15px max(12px,env(safe-area-inset-bottom))}.modal-body,.drawer .modal-body{padding:16px}.modal input,.modal textarea,.modal select{font-size:16px}.primary-row{grid-template-columns:1fr auto}.primary-row b{grid-column:1/-1}.handler-row{grid-template-columns:1fr 1fr;align-items:end;padding:12px}.handler-name{grid-column:1/-1}.handler-row .btn{grid-column:1/-1;justify-content:center}.org-summary{padding:12px}.org-summary b{font-size:16px}.cfg-table th,.cfg-table td{white-space:nowrap}.tablewrap{max-width:100%;overflow-x:auto}.cfg-section .sectionhead h2{font-size:15px}.cfg-section .sectionhead .btn{white-space:nowrap}.route{flex-wrap:wrap}
}

/* Compact team grant dialog */
.grant-launcher{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 16px;margin-bottom:22px;border:1px solid var(--line);background:var(--card,#fff);border-radius:9px}
.grant-launcher-copy{display:flex;flex-wrap:wrap;align-items:center;gap:6px 12px;min-width:0}
.grant-launcher-copy b{font-size:13px}.grant-launcher-copy small{color:var(--muted);font-size:12px}
.grant-launcher .grant-open{flex:none;white-space:nowrap;width:auto;min-height:36px;display:inline-flex;align-items:center;gap:6px}
.modal.grant-modal{width:620px;max-width:100%;max-height:84vh}.grant-modal .modal-body{padding:20px}
.grant-help{display:flex;align-items:flex-start;gap:9px;background:#f6f7fa;border-radius:7px;padding:12px;color:var(--muted);font-size:12px;line-height:1.6;margin-bottom:15px}.grant-help svg{flex:none;margin-top:1px}.grant-help p{margin:0}
.grant-list .grant-row{grid-template-columns:120px minmax(0,1fr) 64px;gap:12px;align-items:center;padding:12px 14px}
.grant-team{display:flex;flex-direction:column;gap:3px;min-width:0}.grant-team label{font-weight:650;color:var(--text,#252a34);font-size:13px}.grant-team small{font-size:11px;line-height:1.4}.grant-dirty{color:#b76e19}
.grant-list select{min-width:0;width:100%;min-height:36px}.grant-list .grant-save{width:64px;min-height:34px;justify-content:center;white-space:nowrap;align-self:center}
.grant-modal #grant-error{margin-top:10px}
@media(max-width:600px){.grant-launcher{padding:11px 12px}.grant-launcher-copy{flex-direction:column;align-items:flex-start;gap:3px}.grant-launcher .grant-open{font-size:12px}.modal.grant-modal{max-height:90dvh}.grant-modal .modal-body{padding:14px}.grant-list .grant-row{grid-template-columns:minmax(0,1fr) 64px;gap:7px 10px;padding:12px}.grant-team{grid-column:1/-1;flex-direction:row;align-items:center;justify-content:space-between}.grant-list select{font-size:16px}.grant-modal .modal-foot{padding:12px 15px}}

/* founder-only system administrator delegation */
.admin-delegation-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:13px 15px;border-bottom:1px solid var(--line)}
.admin-delegation-row:last-child{border:0}.admin-delegation-row>div{display:grid;gap:4px;min-width:0}.admin-delegation-row small{font-size:11px}.admin-delegation-row button{flex:none;white-space:nowrap}

/* Compact management settings: four equal launch cards and scrollable dialogs. */
.settings-shortcuts{margin-bottom:26px;max-width:1120px}
.settings-shortcuts .sectionhead{margin-bottom:12px}
.settings-tiles{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,220px),1fr));gap:12px}
.settings-tile{display:flex;flex-direction:column;justify-content:space-between;gap:12px;min-width:0;padding:13px 14px;border:1px solid var(--line);border-radius:9px;background:#fff;min-height:96px}
.settings-tile-head,.settings-tile-foot{display:flex;align-items:center;gap:9px;min-width:0}
.settings-tile-head b{font-size:13px;font-weight:650;line-height:1.4;overflow-wrap:anywhere}
.settings-tile-icon{display:grid;place-items:center;width:29px;height:29px;border-radius:7px;flex:none;background:#edf2fa;color:#3867bb}
.settings-tile-foot{justify-content:space-between;gap:6px}
.settings-tile-foot small{font-size:11px;color:var(--muted);min-width:0;overflow-wrap:anywhere}
.settings-tile .settings-tile-open{width:64px;min-height:30px;height:30px;flex:none;padding:4px 8px;gap:3px;font-size:12px}
.modal.grant-modal{width:640px;max-width:100%;max-height:86dvh}
.modal.grant-modal.primary-modal{width:680px}
.modal.grant-modal.handler-modal{width:930px}
.grant-modal .modal-head{padding:14px 18px}
.grant-modal .modal-body{padding:16px 18px;min-height:0;overflow:auto}
.grant-modal .modal-foot{padding:11px 18px}
.grant-modal .modal-foot .btn{min-width:64px;min-height:32px;padding:5px 12px}
.grant-modal .grant-list .grant-save,.assignment-save{width:64px;min-width:64px;min-height:34px;height:34px;padding:4px 9px;justify-content:center;align-self:center}
.admin-delegation-controls{display:grid;grid-template-columns:minmax(0,1fr) 88px;gap:10px;align-items:end;margin-top:16px}
.admin-delegation-controls .field{min-width:0}
.admin-delegation-controls .btn,.admin-delegation-row .btn{width:88px;min-width:88px;height:34px;min-height:34px;align-self:end;padding:4px 9px;font-size:12px}
.assignment-tools{display:flex;flex-wrap:wrap;align-items:center;gap:9px;margin:0 0 14px}
.assignment-search{display:flex;align-items:center;gap:6px;flex:1 1 190px;min-width:0;border:1px solid var(--line);border-radius:7px;padding:0 9px;background:#fff}
.assignment-search svg{flex:none;color:var(--muted)}
.assignment-search input{border:0;background:transparent;width:100%;min-width:0;height:35px;padding:5px 2px;outline:none}
.assignment-search:focus-within{outline:2px solid #9ab5f5;outline-offset:1px}
.assignment-tools select{max-width:180px;min-height:35px}
.assignment-filter{display:flex;align-items:center;gap:5px;white-space:nowrap;font-size:12px}
.assignment-tools #assignment-count{font-size:11px;margin-left:auto;white-space:nowrap}
.assignment-list .primary-row{grid-template-columns:120px minmax(0,1fr) 64px;padding:11px 12px;gap:10px}
.assignment-name{display:grid;gap:3px;min-width:0;align-self:center}
.assignment-name b{font-size:13px;overflow-wrap:anywhere}.assignment-name small{font-size:11px}
.assignment-list .handler-row{grid-template-columns:minmax(120px,1fr) minmax(0,1fr) minmax(0,1fr) 64px;gap:10px;padding:12px;align-items:end}
.assignment-list select{width:100%;min-width:0;min-height:36px}
.assignment-list .handler-row .assignment-save{align-self:end;margin-bottom:1px}
#assignment-dialog [hidden]{display:none!important}
#assignment-error{margin-top:10px}
@media(max-width:760px){
 .settings-tiles{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
 .settings-tile{padding:11px;gap:10px;min-height:104px}
 .settings-tile-head{align-items:flex-start;gap:7px}
 .settings-tile-head b{font-size:12px}
 .settings-tile-icon{width:26px;height:26px}
 .settings-tile-foot{flex-wrap:wrap;gap:5px}
 .settings-tile .settings-tile-open{margin-left:auto}
 .modal.grant-modal{max-height:92dvh}
 .grant-modal .modal-body{padding:14px}
 .assignment-list .primary-row{grid-template-columns:minmax(0,1fr) 64px}
 .assignment-list .primary-row .assignment-name{grid-column:1/-1}
 .assignment-list .handler-row{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:8px}
 .assignment-list .handler-row .assignment-name{grid-column:1/-1}
 .assignment-list .handler-row .assignment-save{grid-column:2;justify-self:end;align-self:center}
 .assignment-list select,.assignment-search input,.assignment-tools select{font-size:16px}
 .assignment-tools select{max-width:100%;flex:1 1 120px}
}
@media(max-width:360px){.settings-tiles{grid-template-columns:1fr}.settings-tile{min-height:84px}}

/* Fixed corporate email suffix: one input, one non-editable label. */
.company-email-control{display:flex;align-items:stretch;min-width:0;width:100%;border:1px solid var(--line);border-radius:7px;background:white;overflow:hidden}
.company-email-control:focus-within{border-color:#93aff0;box-shadow:0 0 0 2px #e1eaff}
.company-email-control input{flex:1 1 0;min-width:0!important;width:0!important;border:0!important;border-radius:0!important;box-shadow:none!important;outline:none!important;padding:10px 9px!important;background:transparent!important}
.company-email-domain{display:flex;align-items:center;flex:0 0 auto;padding:0 10px;border-left:1px solid var(--line);background:#f7f8fa;color:#5c6676;font-size:12px;white-space:nowrap}
@media(max-width:390px){.company-email-domain{font-size:11px;padding:0 7px}.company-email-control input{padding:9px 7px!important}}

/* Organization approver assignments */
.org-approver-list{display:grid;gap:9px}
.org-approver-row{display:grid;grid-template-columns:minmax(0,1.12fr) minmax(0,1fr) 64px;gap:10px;align-items:center;padding:11px 12px;border:1px solid var(--line);border-radius:8px;background:white}
.org-approver-row[hidden]{display:none!important}
.org-approver-row select{width:100%;min-width:0;min-height:36px}
.org-approver-row small{font-size:11px;line-height:1.5;overflow-wrap:anywhere}
.org-approver-row .assignment-name{gap:3px}
.org-approver-row[data-state=review] .org-state,.org-approver-row[data-state=ambiguous] .org-state{color:#b76e19}
.org-approver-legend{font-size:12px;color:var(--muted);margin:0 0 12px}
.modal.grant-modal.org-approver-modal{width:850px}
#org-approver-count{margin-left:auto;white-space:nowrap}
@media(max-width:760px){.org-approver-row{grid-template-columns:minmax(0,1fr) 64px}.org-approver-row .assignment-name{grid-column:1/-1}.org-approver-row select{font-size:16px}}

/* Field-local master options: compact editing, immutable IDs, same-renderer preview. */
.master-edit-head{display:flex;align-items:center;justify-content:space-between;gap:8px}
.master-edit-head .btn{width:auto;flex:none}
.master-help{font-size:11px;line-height:1.5;margin:2px 0 4px}
.master-edit-list{display:grid;gap:6px}
.master-edit-row{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:8px;align-items:center;padding:9px;border:1px solid var(--line);border-radius:7px;background:#fff}
.master-edit-list.priced .master-edit-row{grid-template-columns:minmax(0,1fr) minmax(85px,120px) auto auto}
.master-edit-row .field{min-width:0}
.master-edit-row small{font-size:10px;overflow-wrap:anywhere}
.master-use{display:flex;align-items:center;gap:5px;white-space:nowrap;font-size:12px}
.master-use input{width:auto!important}
.catalog-preview{margin-top:16px;border:1px solid var(--line);border-radius:9px;padding:12px;background:#f8fafc}
.catalog-preview summary{font-weight:650;font-size:13px;cursor:pointer;margin-bottom:10px}
#catalog-preview-fields input:disabled,#catalog-preview-fields select:disabled,#catalog-preview-fields textarea:disabled{color:#374151;background:#fff;opacity:1}
@media(max-width:550px){.master-edit-row,.master-edit-list.priced .master-edit-row{grid-template-columns:minmax(0,1fr) auto}.master-edit-list.priced .master-edit-row>.field:first-child{grid-column:1/-1}.master-edit-row input{font-size:16px}}

/* One organizational settings entry, separate responsibilities in two tabs. */
.org-settings-tabs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px;border-bottom:1px solid var(--line);margin:0 0 16px}
.org-settings-tab{display:flex;align-items:center;justify-content:center;gap:8px;border:0;border-bottom:2px solid transparent;background:transparent;padding:11px 6px;color:var(--muted);cursor:pointer;min-height:42px;min-width:0}
.org-settings-tab b{font-size:13px;font-weight:600;line-height:1.4}
.org-settings-tab small{font-size:11px;font-variant-numeric:tabular-nums;background:#f1f3f6;border-radius:10px;padding:2px 7px;flex:none}
.org-settings-tab.active{border-bottom-color:#315dc1;color:#315dc1}
.org-settings-tab.active small{background:#eaf0fc;color:#315dc1}
.org-settings-tab:focus-visible{outline:2px solid #93aff0;outline-offset:-3px}
@media(max-width:390px){.org-settings-tab{gap:4px}.org-settings-tab b{font-size:12px}.org-settings-tab small{padding:1px 5px}}

.owner-team-hint{font-size:11px;line-height:1.5}.owner-transfer-banner{margin-top:12px;margin-bottom:12px}.owner-transfer-banner b{font-weight:650}

.notice-permission{font-size:12px;margin:8px 0 12px}
.notice-meta{font-size:12px;margin-bottom:15px}
.notice-attachment-count{color:var(--muted);white-space:nowrap;font-size:11px}
.rich-shell{border:1px solid var(--line);border-radius:8px;overflow:hidden;background:white}
.rich-toolbar{display:flex;flex-wrap:wrap;gap:4px 8px;align-items:center;background:#f7f8fa;border-bottom:1px solid var(--line);padding:8px}
.rich-group{display:flex;align-items:center;flex-wrap:wrap;gap:3px}
.rich-group:not(:last-child){border-right:1px solid #dce0e6;padding-right:7px}
.rich-tool{border:1px solid transparent;background:transparent;color:#344153;border-radius:5px;padding:4px 7px;min-width:28px;height:30px;cursor:pointer;font-size:12px;white-space:nowrap}
.rich-tool:hover,.rich-tool:focus-visible{border-color:#bac9e5;background:#eaf0fc}
.rich-toolbar .rich-select{width:auto;max-width:115px;min-height:30px;height:30px;padding:3px 7px;font-size:12px}
.rich-toolbar .rich-size{max-width:60px}
.rich-marker{background:#fff2a8;padding:1px 3px;font-weight:600}
.rich-editor{min-height:260px;padding:16px;outline:none;overflow-wrap:anywhere;line-height:1.65;font-size:14px}
.rich-editor:empty:before{content:attr(data-placeholder);color:#9ca3af;pointer-events:none}
.rich-editor:focus{box-shadow:inset 0 0 0 2px #e0eaff}
.rich-editor table,.rich-view table{border-collapse:collapse;width:100%;table-layout:fixed;margin:12px 0}
.rich-editor td,.rich-editor th,.rich-view td,.rich-view th{border:1px solid #bdc5d1;min-width:35px;padding:6px;overflow-wrap:anywhere}
.rich-editor ul,.rich-editor ol,.rich-view ul,.rich-view ol{padding-left:24px;margin:7px 0}
.rich-editor h2,.rich-view h2{font-size:20px;margin:12px 0 6px}
.rich-editor h3,.rich-view h3{font-size:17px;margin:10px 0 5px}
.rich-editor blockquote,.rich-view blockquote{border-left:3px solid #b9c9e7;margin:8px 0;padding-left:12px}
.rich-view{white-space:normal!important;overflow-wrap:anywhere;line-height:1.65}
.rich-view p,.rich-view div{margin:5px 0}
.plain-view{white-space:pre-wrap}
.notice-drop{display:flex;flex-direction:column;align-items:center;gap:7px;border:1px dashed #b9c5d7;border-radius:8px;padding:19px;background:#f9fbff;text-align:center;color:#586577}
.notice-drop b{font-size:13px}.notice-drop span{font-size:12px}
.notice-drop.dragging{border-color:#315dc1;background:#eaf0fc}
.notice-file-row{display:flex;align-items:center;gap:8px;border-bottom:1px solid var(--line);padding:8px 0;min-width:0}
.notice-file-row span{min-width:0;flex:1;overflow-wrap:anywhere;font-size:13px}
.notice-file-row small{flex:none;color:var(--muted);font-size:11px}
.notice-file-row button{flex:none}
#notice-files[hidden]{display:none}
@media(max-width:600px){.rich-toolbar{padding:6px;gap:4px}.rich-group:not(:last-child){border-right:0;padding-right:2px}.rich-editor{min-height:220px;padding:12px;font-size:16px}.notice-drop{padding:14px}}
