/* SPDX-License-Identifier: AGPL-3.0-or-later */
:root{--ink:#19342f;--muted:#63746f;--line:#dfe7e3;--paper:#f6f8f6;--accent:#176b53;--accent-dark:#10523f;--positive:#eaf4ed;--danger:#a23c34;--radius:12px;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;font-size:15px;line-height:1.5;color:var(--ink);background:var(--paper);font-synthesis:none}
*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button,a,input,select,summary{touch-action:manipulation}button{cursor:pointer;display:inline-flex;align-items:center;justify-content:center;gap:8px;border:1px solid #cedad3;background:white;color:var(--ink);border-radius:8px;padding:9px 14px;font-weight:600;line-height:1.4;min-height:39px}button:hover{background:#f0f5f1}button:disabled{opacity:.55;cursor:default}button.primary{background:var(--accent);border-color:var(--accent);color:white}button.primary:hover{background:var(--accent-dark)}button.quiet{background:transparent;border-color:transparent}button.small{padding:7px 10px;font-size:.8rem;min-height:34px}button.danger{color:var(--danger)}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible{outline:3px solid #69a78b;outline-offset:3px}a{color:var(--accent);text-underline-offset:3px}h1,h2,h3,p{margin:0}h1{font-size:1.9rem;line-height:1.2;letter-spacing:-.045em;font-weight:650}h2{font-size:1.12rem;font-weight:650;line-height:1.35}h3{font-size:1rem;font-weight:650}small{font-size:.78rem}strong{font-weight:650}.icon{width:19px;height:19px;flex-shrink:0}.logo{display:flex;align-items:center;gap:10px;white-space:nowrap;font-size:1.35rem;letter-spacing:-.065em;font-weight:650}.logo img{display:block}.language-button{font-size:.76rem;padding:6px 9px;gap:5px;min-height:34px;font-weight:450;border-color:var(--line);background:transparent}.language-button strong{color:var(--accent)}.language-button span{color:#9aa8a0}.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}.shell{display:grid;grid-template-columns:220px minmax(0,1fr);min-height:100vh}.sidebar{height:100vh;position:sticky;top:0;padding:27px 18px 20px;border-right:1px solid var(--line);background:#fff;display:flex;flex-direction:column}.sidebar>.logo{padding:0 10px;margin-bottom:38px}nav{display:grid;gap:5px}nav button{justify-content:flex-start;gap:11px;background:transparent;border:0;border-radius:8px;padding:12px;font-size:.88rem;font-weight:500}nav button.selected{color:var(--accent);background:var(--positive);font-weight:650}.sidebar-bottom{margin-top:auto}.sidebar .footer{display:block;padding:20px 10px 0}.sidebar .footer>span:first-child{display:none}.workspace{min-width:0}.topbar{min-height:76px;padding:16px 36px;display:flex;justify-content:space-between;align-items:center;gap:18px;background:white;border-bottom:1px solid var(--line)}.workspace-name{font-size:.86rem;font-weight:600}.user-menu{display:flex;align-items:center;gap:10px}.user-email{font-size:.8rem;color:var(--muted);max-width:260px;overflow:hidden;text-overflow:ellipsis}.content{max-width:1500px;margin:0 auto;padding:38px 36px 64px}.page-header{display:flex;align-items:flex-start;justify-content:space-between;gap:24px;margin-bottom:26px}.page-header p{color:var(--muted);max-width:640px;font-size:.9rem;margin-top:10px}.page-header>.row-actions{flex-shrink:0;padding-top:3px}.row-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.panel{background:white;border:1px solid var(--line);border-radius:var(--radius);overflow:hidden}.list-toolbar{display:flex;gap:14px;align-items:center;padding:18px 20px;border-bottom:1px solid var(--line)}.search-input{position:relative;flex:1;max-width:380px}.search-input>.icon{position:absolute;top:12px;left:12px;color:#84958c}.search-input input{padding-left:39px}.list-toolbar select{width:auto;min-width:160px;max-width:230px}.list-toolbar>button{margin-left:auto}.table-wrap{overflow-x:auto}table{width:100%;border-collapse:collapse;text-align:left}th{font-size:.72rem;font-weight:600;color:var(--muted);padding:13px 20px;border-bottom:1px solid var(--line);white-space:nowrap;background:#fbfcfb}td{padding:20px;font-size:.85rem;border-bottom:1px solid #edf1ee;vertical-align:middle}tr:last-child td{border-bottom:0}tbody tr:hover{background:#fcfdfc}.account-link{display:block;text-align:left;background:none;border:0;padding:0;min-height:0;font-size:.9rem;max-width:340px}.account-link:hover{background:none;color:var(--accent)}.account-link strong,.account-link span{display:block;overflow-wrap:anywhere}.account-link span{color:var(--muted);font-size:.81rem;font-weight:400;margin-top:3px}.cell-note{display:block;color:var(--muted);margin-top:4px;line-height:1.4}.badge{display:inline-flex;align-items:center;gap:6px;padding:4px 9px;border-radius:20px;font-size:.7rem;font-weight:600;white-space:nowrap}.badge>span{width:5px;height:5px;background:currentColor;border-radius:50%}.badge.positive{background:var(--positive);color:var(--accent)}.badge.neutral{background:#eef1ee;color:#617067}.check-state{font-size:.8rem;color:var(--muted);white-space:nowrap}.positive-text{color:var(--accent)}.negative{color:var(--danger)}.table-foot{border-top:1px solid var(--line);padding:12px 20px;color:var(--muted);font-size:.76rem}.page-note{font-size:.8rem;color:var(--muted);margin-top:16px}.date-cell{white-space:nowrap}.reference{max-width:220px;color:var(--muted)}.mono,pre{font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:.82rem;overflow-wrap:anywhere}.empty-state{text-align:center;padding:64px 24px 70px}.empty-symbol,.login-symbol{width:48px;height:48px;border-radius:12px;display:grid;place-items:center;background:var(--positive);color:var(--accent)}.empty-symbol{margin:0 auto 20px}.empty-symbol .icon,.login-symbol .icon{width:23px;height:23px}.empty-state h2{font-size:1.2rem}.empty-state p{max-width:480px;margin:10px auto 24px;color:var(--muted);font-size:.88rem}.guide-layout{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(260px,1fr);gap:24px}.guide-steps{padding:30px;display:grid;gap:30px;align-content:start}.guide-step{display:flex;gap:17px}.guide-step>span{display:grid;place-items:center;border-radius:50%;background:var(--positive);color:var(--accent);font-size:.8rem;font-weight:650;width:29px;height:29px;flex-shrink:0}.guide-step h2{font-size:1rem}.guide-step p,.help-card p{color:var(--muted);font-size:.86rem;margin-top:8px}.guide-notes{display:grid;align-content:start;gap:17px}.help-card{padding:22px;border:1px solid var(--line);background:#fff;border-radius:var(--radius)}.help-card h2{font-size:.97rem}.footer{display:flex;justify-content:space-between;align-items:center;font-size:.72rem;color:var(--muted);gap:20px}.footer a{color:var(--muted);margin-right:16px}.footer a:last-child{margin-right:0}.login-shell{min-height:100vh;padding:32px 6vw;display:flex;flex-direction:column;align-items:center;background:linear-gradient(165deg,#f7faf5 0%,#f3f7f4 75%,#eef4ee 100%)}.login-header{display:flex;justify-content:space-between;align-items:center;width:100%;max-width:1200px}.login-card{width:100%;max-width:440px;background:#fff;border:1px solid var(--line);border-radius:16px;padding:34px 36px;margin:62px 0 50px;box-shadow:0 12px 45px #143a2610}.login-symbol{margin-bottom:24px}.login-card h1{font-size:1.65rem}.lead{margin:10px 0 27px;color:var(--muted);font-size:.9rem;line-height:1.6}.login-hint{font-size:.8rem;color:var(--muted);padding-top:23px;margin-top:25px;border-top:1px solid var(--line)}.support-note{color:var(--muted);font-size:.78rem;margin-top:14px}.full-button{width:100%;justify-content:space-between;margin-top:7px}.login-shell>.footer{margin-top:auto;width:100%;max-width:1200px}.field{margin-bottom:18px}label{display:block;font-size:.82rem;font-weight:600;margin-bottom:6px}input,select,textarea{width:100%;min-height:43px;padding:10px 12px;color:var(--ink);border:1px solid #cbd8cf;border-radius:8px;background:#fff;font-size:.87rem}input:disabled{background:#f1f4f1;color:#6b7871}input::placeholder{color:#8b978e}.field small{display:block;line-height:1.5;color:var(--muted);font-size:.74rem;margin-top:6px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:0 20px}.form-grid>.full{grid-column:1/-1}fieldset{border:0;padding:0;margin:25px 0}legend{font-size:.86rem;font-weight:650;border-bottom:1px solid var(--line);width:100%;padding:0 0 10px;margin-bottom:18px}.form-error{padding:12px;border:1px solid #ecc9c3;background:#fff4f1;border-radius:8px;color:var(--danger);font-size:.84rem;margin-bottom:18px}.form-error:empty{display:none}.hint{font-size:.78rem;color:var(--muted);line-height:1.6;margin-top:15px}.help-link{font-size:.82rem}.notice{border-radius:8px;padding:14px 16px;font-size:.82rem;line-height:1.6}.notice.warning{background:#fff8ea;color:#7c5c23;border:1px solid #eddab5}dialog{width:min(740px,calc(100vw - 32px));max-height:90vh;max-height:90dvh;padding:28px;border:1px solid var(--line);border-radius:16px;background:white;color:var(--ink);box-shadow:0 28px 100px #123c3033}dialog::backdrop{background:#162f2a70;backdrop-filter:blur(2px)}.dialog-head{display:flex;justify-content:space-between;gap:20px;margin-bottom:24px;align-items:flex-start}.dialog-head h2{font-size:1.3rem;letter-spacing:-.025em}.dialog-head p{font-size:.84rem;color:var(--muted);margin-top:7px;overflow-wrap:anywhere}.dialog-tools{display:flex;gap:8px;align-items:center;flex-shrink:0}.close-button{font-size:24px;line-height:1;padding:3px 8px;min-height:34px;background:none;border:0;color:var(--muted)}.dialog-actions{margin-top:26px;padding-top:20px;border-top:1px solid var(--line);display:flex;justify-content:flex-end;gap:9px}.detail-status{display:flex;align-items:center;gap:12px;font-size:.8rem;flex-wrap:wrap}.detail-section{margin-top:25px;padding-top:24px;border-top:1px solid var(--line)}.device-section{border:0;padding-top:0}.section-head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px}.section-head p{color:var(--muted);font-size:.8rem;margin-top:5px;max-width:400px}.section-head>button{flex-shrink:0}.credential-list{display:grid;gap:10px;margin-top:17px}.credential-item{display:flex;align-items:center;justify-content:space-between;gap:16px;border:1px solid var(--line);border-radius:9px;padding:14px 16px}.credential-item strong{font-size:.86rem;overflow-wrap:anywhere}.credential-item .badge{margin-left:8px}.credential-item p{color:var(--muted);font-size:.74rem;margin-top:6px;line-height:1.7}.credential-item>button{flex-shrink:0}.small-empty{margin-top:16px;padding:24px;background:#f7faf7;border:1px dashed #cbdacf;border-radius:10px}.small-empty strong{font-size:.86rem}.small-empty p{font-size:.8rem;color:var(--muted);margin-top:5px}.setup-details,.account-settings{border:1px solid var(--line);padding:14px 17px;border-radius:9px;margin-top:23px}summary{cursor:pointer;font-size:.85rem;font-weight:600}summary::marker{color:var(--accent)}details[open]>summary{margin-bottom:17px}pre{white-space:pre-wrap;background:#f6f8f6;padding:15px;border-radius:8px;line-height:1.8;margin:10px 0 13px}.check-list{margin-top:18px}.check-item{display:flex;justify-content:space-between;align-items:center;gap:20px;padding:11px 0;border-bottom:1px solid #edf1ed}.check-item:last-child{border:0}.check-item strong{font-size:.82rem}.check-item p{font-size:.76rem;color:var(--muted);margin-top:3px;overflow-wrap:anywhere}.facts{display:grid;grid-template-columns:155px minmax(0,1fr);gap:11px 18px;margin:21px 0;font-size:.82rem}.facts dt{color:var(--muted)}.facts dd{margin:0;overflow-wrap:anywhere}.issued-password{border:1px solid #b7d5bd;background:#f1f8ef;border-radius:10px;padding:20px}.issued-password input{margin:3px 0 13px;background:#fff;font-size:.9rem}.toast{position:fixed;bottom:22px;right:22px;max-width:440px;padding:14px 19px;background:#1c4936;color:#fff;box-shadow:0 7px 30px #173c3033;border:0;border-radius:10px;font-size:.85rem;z-index:999}.toast.error{background:#963c33}.loading{padding:70px;text-align:center;color:var(--muted)}
@media(max-width:1200px){.shell{grid-template-columns:198px minmax(0,1fr)}.sidebar{padding:25px 13px}.topbar{padding:15px 25px}.content{padding:30px 25px}.user-email{display:none}.page-header{flex-wrap:wrap}.guide-layout{grid-template-columns:1.15fr 1fr}td,th{padding-left:16px;padding-right:16px}.page-header>.row-actions{flex-shrink:1}}
@media(max-width:820px){.shell{display:block}.sidebar{position:static;height:auto;padding:18px 20px 12px;border-right:0;border-bottom:1px solid var(--line)}.sidebar>.logo{padding:0;margin-bottom:17px;font-size:1.25rem}.sidebar nav{display:flex;gap:5px;overflow-x:auto}.sidebar nav button{white-space:nowrap;font-size:.8rem;padding:9px 10px;gap:7px}.sidebar nav .icon{width:17px;height:17px}.sidebar-bottom{display:none}.topbar{min-height:62px;padding:12px 20px}.content{padding:26px 20px 45px}.workspace-name{font-size:.76rem}.user-menu{gap:4px}.user-menu>.small{font-size:.74rem;padding:6px}.guide-layout{grid-template-columns:1fr}.guide-notes{grid-template-columns:1fr}.page-header{gap:18px}.page-header p{font-size:.85rem}h1{font-size:1.65rem}.list-toolbar{flex-wrap:wrap;padding:15px;gap:10px}.search-input{max-width:none;flex-basis:100%}.list-toolbar select{flex:1;max-width:none}.list-toolbar>button{margin-left:auto}.empty-state{padding:44px 20px}.page-header>.row-actions{width:100%}.page-header>.row-actions .primary{margin-left:auto}.guide-steps{padding:24px}.login-card{margin:42px 0 35px}.login-shell{padding:24px}.login-card{padding:30px}.section-head{flex-wrap:wrap}.section-head p{max-width:none}.section-head>button{margin-top:0}}
@media(max-width:480px){.sidebar{padding:16px 14px 10px}.sidebar nav button{padding:8px;font-size:.75rem}.sidebar nav .icon{display:none}.topbar{padding:10px 14px;gap:8px;align-items:flex-start}.workspace-name{padding-top:7px;max-width:90px;overflow-wrap:anywhere}.user-menu{gap:1px;flex-wrap:wrap;justify-content:flex-end}.language-button{font-size:.7rem;padding:6px}.content{padding:25px 14px 40px}.page-header>.row-actions{gap:8px}.page-header>.row-actions button{font-size:.79rem;padding:9px 11px}.login-shell{padding:22px 18px}.login-card{padding:27px 23px}.login-header .logo{font-size:1.23rem}.login-header .logo img{width:32px;height:32px}.login-shell>.footer{font-size:.68rem}dialog{padding:21px 18px;width:calc(100vw - 20px);max-height:94dvh}.dialog-head{gap:12px;flex-wrap:wrap}.dialog-head>div:first-child{max-width:100%;flex:1 1 200px}.dialog-head h2{font-size:1.17rem}.dialog-tools{margin-left:auto}.form-grid{display:block}.facts{grid-template-columns:1fr;gap:4px}.facts dd{margin-bottom:10px}.credential-item{align-items:flex-start;flex-direction:column;gap:10px}.credential-item>button{padding-left:0}.dialog-actions{flex-wrap:wrap}.dialog-actions button{flex:1}.guide-steps{padding:21px}.guide-step{gap:12px}.toast{left:14px;right:14px;bottom:14px;max-width:none}.check-item{gap:12px}.check-item .badge{font-size:.65rem}.issued-password{padding:16px}.issued-password input{font-size:.77rem}}
.toast{inset:auto 22px 22px auto;margin:0}.dialog-toast{margin-top:16px;padding:12px 16px;border-radius:8px;background:var(--positive);color:var(--accent);font-size:.83rem}.dialog-toast.error{background:#fff4f1;color:var(--danger)}.mailbox-column{min-width:180px}.mailbox-table .open-column{text-align:right}
@media(min-width:601px) and (max-width:1150px){.mailbox-table .customer-column,.mailbox-table .device-column{display:none}.mailbox-table td,.mailbox-table th{padding-left:13px;padding-right:13px}}
@media(max-width:600px){.mailbox-table,.mailbox-table tbody{display:block}.mailbox-table thead{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}.mailbox-table tr{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:9px 12px;padding:20px;border-bottom:1px solid var(--line)}.mailbox-table tr:last-child{border:0}.mailbox-table td{padding:0;border:0;min-width:0}.mailbox-table .mailbox-column{grid-column:1;grid-row:1}.mailbox-table .open-column{grid-column:2;grid-row:1}.mailbox-table .status-column{grid-column:2;grid-row:2;text-align:right}.mailbox-table .customer-column{grid-column:1;grid-row:2;font-size:.76rem;color:var(--muted)}.mailbox-table .check-column{grid-column:1;grid-row:3}.mailbox-table .device-column{grid-column:1/-1;grid-row:4;font-size:.76rem;color:var(--muted)}.mailbox-table .device-column:before{content:attr(data-label) ': ';}.mailbox-table .account-link{max-width:none}.mailbox-table .account-link span{font-size:.78rem}.mailbox-table .cell-note{font-size:.73rem}.mailbox-table .check-state{white-space:normal}}
@media(max-width:480px){.toast{inset:auto 14px 14px 14px;width:auto}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}
.mailbox-card{padding:24px;border-bottom:1px solid var(--line)}.mailbox-card:last-child{border-bottom:0}.mailbox-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:24px}.mailbox-identity{min-width:0}.mailbox-identity h2{font-size:1rem;overflow-wrap:anywhere}.mailbox-identity p{font-size:.86rem;margin-top:5px;overflow-wrap:anywhere}.mailbox-identity small{display:block;margin-top:6px;color:var(--muted)}.mailbox-status{display:flex;align-items:flex-end;flex-direction:column;gap:9px;flex-shrink:0}.mailbox-status small{color:var(--muted)}.mailbox-footer{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:14px 24px;margin-top:21px}.mailbox-actions{display:flex;flex-wrap:wrap;gap:9px}.mailbox-management{display:flex;align-items:center;gap:4px;margin-left:auto}.mailbox-actions button{font-size:.82rem}.count{font-size:.72rem;background:var(--positive);color:var(--accent);border-radius:5px;min-width:22px;padding:1px 5px}.password-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:.82rem;font-weight:600}.password-heading button{color:var(--accent);flex-shrink:0}.password-saved{color:var(--muted);font-size:.8rem;margin-top:4px}.password-editor .field{margin:10px 0 0}.context-help{margin-top:18px}.context-help p{font-size:.8rem;color:var(--muted);line-height:1.65}.context-help[open]>summary{margin-bottom:8px}.credential-heading{display:flex;flex-wrap:wrap;align-items:center;gap:8px}.credential-item .badge{margin:0}.setup-note{padding:17px 18px;border-radius:9px;background:#f3f6f3;margin-top:24px;font-size:.82rem}.setup-note p{margin-top:6px;color:var(--muted);line-height:1.65}.account-settings>.hint{margin-bottom:14px}#save-before-check{color:#90601e}input[readonly]{background:#f5f7f5;color:var(--muted)}[hidden]{display:none!important}
@media(max-width:600px){.mailbox-card{padding:20px}.mailbox-heading{flex-direction:column;gap:14px}.mailbox-status{flex-direction:row;align-items:center;flex-wrap:wrap;gap:10px}.mailbox-footer{display:block;margin-top:18px}.mailbox-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px}.mailbox-management{justify-content:flex-end;margin-top:10px}.mailbox-management button{min-height:44px}.mailbox-actions button:last-child{grid-column:1/-1}.mailbox-actions button{font-size:.8rem;min-height:43px}.password-heading{flex-wrap:wrap;gap:2px}.password-heading button{padding-left:0;min-height:40px}.password-heading span{flex-basis:100%}}
.dav-discovery>button{max-width:100%;white-space:normal;text-align:left}.dav-discovery>.hint{margin-top:10px}.discovery-status{font-size:.8rem;color:var(--muted);line-height:1.6;margin-top:10px}.discovery-status:empty{display:none}.dav-discovery>.form-error{margin-top:14px}.discovery-results{margin-top:20px;padding:18px 18px 0;background:#f6f9f5;border:1px solid var(--line);border-radius:9px}.discovery-results select{min-width:0;max-width:100%;text-overflow:ellipsis}.discovery-empty{font-size:.82rem;line-height:1.6;color:var(--muted)}.discovery-notes{font-size:.77rem;color:var(--muted);line-height:1.6;margin:12px 0;padding-left:20px}.discovery-notes li+li{margin-top:6px}.read-only-note{display:block;margin-top:5px;color:#7c5c23}.manual-fields{margin-top:20px;padding-top:17px;border-top:1px solid var(--line)}.manual-fields>.hint{margin-top:0;margin-bottom:18px}.manual-fields .field:last-child{margin-bottom:0}

/* Each mailbox dialog has one purpose; setup values are individually copyable. */
.dialog-head>div:first-child{min-width:0}.dialog-head+.detail-section{margin-top:0;padding-top:0;border-top:0}
.setup-intro{font-size:.84rem;color:var(--muted);line-height:1.65}.setup-facts{align-items:center;gap:0 18px;margin:20px 0}.setup-facts dt,.setup-facts dd{padding:4px 0;border-bottom:1px solid var(--line)}.setup-facts dd{display:flex;align-items:center;justify-content:space-between;gap:12px;min-width:0;margin:0}.setup-facts dd>span{min-width:0;overflow-wrap:anywhere}.setup-facts dt{align-self:stretch;display:flex;align-items:center}.copy-icon{flex-shrink:0;width:36px;height:36px;min-height:36px;padding:7px;border-color:transparent;background:transparent;color:var(--accent)}.copy-icon:hover{border-color:var(--line);background:var(--positive)}.setup-note .context-help{margin-top:12px}
@media(max-width:480px){.dialog-head{flex-wrap:nowrap}.dialog-head>div:first-child{flex:1;max-width:none}.setup-facts dt{border:0;padding:12px 0 0}.setup-facts dd{padding:2px 0 10px}.copy-icon{width:44px;height:44px;min-height:44px}}
html:has(dialog[open]){overflow:hidden}
.login-sent{background:var(--positive);color:var(--accent);margin-bottom:20px}.login-confirm{font-size:.9rem;line-height:1.65;margin-bottom:22px}.login-mode{margin-top:12px;padding-left:0;text-align:left;white-space:normal}.checkbox-field{display:flex;align-items:flex-start;gap:12px;margin-top:20px;font-weight:400;line-height:1.55}.checkbox-field input{width:20px;min-height:20px;height:20px;flex:0 0 20px;margin-top:2px;accent-color:var(--accent)}.member-list{padding-left:20px;color:var(--muted);font-size:.85rem;line-height:1.8;overflow-wrap:anywhere}.pairing-progress{border:1px solid #e4d8b6;background:#fff8ea;border-radius:10px;padding:16px 18px;margin-bottom:18px;color:#74551d}.pairing-progress.paired{background:var(--positive);border-color:#b7d5bd;color:var(--accent)}.pairing-progress p{font-size:.85rem;line-height:1.5;margin-top:5px;font-variant-numeric:tabular-nums}.issued-password input.device-pin{font-size:1.5rem;letter-spacing:.12em;font-weight:600;color:var(--ink)}.badge.warning{background:#fff3e0;color:#82541c}.credential-item .negative{color:var(--danger)}
@media(max-width:480px){.issued-password input.device-pin{font-size:1.25rem;letter-spacing:.08em}.login-mode{font-size:.78rem}}
.activity-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}.activity-kpi{background:var(--panel,#fff);border:1px solid var(--line);border-radius:12px;padding:20px;min-width:0}.activity-kpi h2{font-size:.82rem;font-weight:500;color:var(--muted);line-height:1.5}.activity-kpi-value{font-size:2rem;font-weight:600;line-height:1.25;letter-spacing:-.04em;margin:12px 0 8px;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}.activity-kpi-hint{font-size:.76rem;line-height:1.55;color:var(--muted)}.activity-kpi-warning .activity-kpi-value{color:var(--danger)}.activity-update-note{font-size:.75rem;line-height:1.5;color:var(--muted);margin:12px 0 24px}
@media(max-width:1200px){.activity-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:480px){.activity-kpis{gap:10px}.activity-kpi{padding:15px}.activity-kpi h2{font-size:.78rem}.activity-kpi-value{font-size:1.8rem}.activity-kpi-hint{font-size:.73rem}}

.page-notice{margin-bottom:20px}

.pairing-budget{margin:0 0 22px}.pairing-budget p{margin-top:6px}.mailbox-status>.negative{font-size:.8rem}
.provider-card{padding:24px;border-bottom:1px solid var(--line)}.provider-card:last-child{border-bottom:0}.provider-card .section-head{margin:0}.provider-card .section-head p{color:var(--muted);font-size:.82rem;margin-top:5px}.provider-services{display:flex;flex-wrap:wrap;gap:6px 18px;margin:18px 0;font-size:.8rem;color:var(--muted);overflow-wrap:anywhere}.provider-instructions{border:1px solid var(--line);background:var(--paper);padding:18px;border-radius:10px;margin:20px 0 26px}.provider-instructions .section-head{margin:0 0 12px}.provider-instructions .hint{margin:0}.form-section-title{margin:28px 0 10px}.provider-endpoint{margin-top:22px}.provider-endpoint .checkbox-field{margin:0 0 16px}.provider-endpoint .hint.full{grid-column:1/-1;margin:0}.separate-credentials{margin-top:18px}.markdown-editor{margin:22px 0;border:1px solid var(--line);border-radius:10px;overflow:hidden}.markdown-editor>label{display:block;font-weight:600;padding:14px 16px;background:var(--paper)}.markdown-toolbar{display:flex;gap:2px;flex-wrap:wrap;padding:8px;border-bottom:1px solid var(--line)}.markdown-editor textarea{display:block;width:100%;max-width:100%;min-height:145px;resize:vertical;border:0;border-radius:0;padding:15px;line-height:1.6;font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:.82rem;color:var(--ink);background:white}.markdown-editor textarea:focus-visible{outline:3px solid #69a78b;outline-offset:-3px}.markdown-preview-section{border-top:1px solid var(--line);padding:14px 16px}.markdown-preview-section summary{font-size:.8rem;color:var(--muted);cursor:pointer;margin-bottom:12px}.markdown-content{font-size:.88rem;line-height:1.7;overflow-wrap:anywhere}.markdown-content p,.markdown-content ul,.markdown-content ol{margin:10px 0}.markdown-content h3,.markdown-content h4,.markdown-content h5{margin:16px 0 8px;line-height:1.4}.markdown-content h3{font-size:1rem}.markdown-content h4,.markdown-content h5{font-size:.92rem}.markdown-content>:first-child{margin-top:0}.markdown-content>:last-child{margin-bottom:0}.markdown-content code{background:#e9eeea;padding:2px 5px;border-radius:4px;font-size:.88em;white-space:pre-wrap}.markdown-content ul,.markdown-content ol{padding-left:22px}.markdown-content a{overflow-wrap:anywhere}[hidden]{display:none!important}
@media(max-width:600px){.provider-card{padding:18px}.provider-card .section-head{align-items:flex-start;flex-direction:column;gap:10px}.provider-instructions{padding:14px}.markdown-toolbar button{min-height:40px}.markdown-editor textarea{font-size:.8rem}.provider-services{flex-direction:column;gap:5px}.provider-instructions .section-head{flex-wrap:wrap;gap:8px}}

/* justsync.me — shared portal shell and responsive navigation. */
:root {
  --ink: #153b36;
  --muted: #637570;
  --line: #e0e9e5;
  --paper: #f5f8f7;
  --accent: #0d6b54;
  --accent-dark: #095540;
  --positive: #e8f3ee;
  --radius: 14px;
}
button, input, select, textarea { border-radius: 9px; }
button { transition: background-color .15s, border-color .15s, box-shadow .15s; }
button:hover { border-color: #a9c5b9; }
button.primary { box-shadow: 0 1px 2px #0c443118; }
button.primary:hover { border-color: var(--accent-dark); }
button:disabled { box-shadow: none; }
textarea:focus-visible { outline: 3px solid #69a78b; outline-offset: 3px; }
h1 { font-size: 1.85rem; letter-spacing: -.035em; }
.logo { gap: 10px; font-size: 1.42rem; letter-spacing: -.055em; font-weight: 700; }
.logo img { border-radius: 10px; object-fit: contain; }
.brand-wordmark { display: block; position: relative; width: 138px; height: 34px; overflow: hidden; flex: 0 0 138px; }
/* Show the original lettering from the supplied stacked logo, without redrawing it. */
.logo .brand-wordmark img { position: absolute; width: 159px; height: auto; max-width: none; left: -10.7px; top: -76.7px; border-radius: 0; }
.shell { grid-template-columns: 244px minmax(0, 1fr); }
.sidebar { padding: 30px 18px 22px; height: 100dvh; overflow-y: auto; }
.sidebar-brand { padding: 0 8px; margin-bottom: 36px; }
.mobile-menu-button { display: none; }
.mobile-navigation { display: none; }
.sidebar nav { display: grid; gap: 24px; }
.nav-section { display: grid; gap: 5px; min-width: 0; }
.nav-heading { padding: 0 13px; margin-bottom: 5px; color: var(--muted); font-size: .68rem; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; }
.sidebar nav button { display: grid; grid-template-columns: 20px minmax(0, 1fr); width: 100%; gap: 12px; padding: 11px 13px; min-height: 44px; text-align: left; line-height: 1.45; border: 1px solid transparent; font-size: .88rem; }
.sidebar nav button > span { white-space: nowrap; }
.sidebar nav button .icon { color: #748b82; }
.sidebar nav button.selected { background: #e9f4ee; border-color: #dbece2; }
.sidebar nav button.selected .icon { color: var(--accent); }
.sidebar-bottom { padding-top: 32px; }
.sidebar .footer { display: flex; align-items: flex-start; flex-direction: column; gap: 9px; padding: 18px 12px 0; border-top: 1px solid var(--line); }
.sidebar .footer > span:first-child { display: block; }
.release-version { font-variant-numeric: tabular-nums; font-weight: 500; }
.legal-links { display: flex; flex-wrap: wrap; gap: 14px; }
.footer a { margin: 0; text-decoration-color: #b9ccc3; }
.workspace { display: flex; flex-direction: column; }
.topbar { min-height: 78px; padding: 18px 40px; }
.workspace-name { letter-spacing: -.01em; }
.user-menu { gap: 12px; }
.user-menu .language-button { margin-right: 6px; }
.user-menu .user-email { padding-right: 14px; border-right: 1px solid var(--line); }
.content { width: 100%; max-width: 1440px; padding: 40px 40px 64px; }
.page-header { margin-bottom: 30px; }
.page-header p { line-height: 1.65; }
.panel { box-shadow: 0 2px 5px #153b3603; }
.list-toolbar { background: #fcfdfc; padding: 18px 24px; gap: 12px; }
th { background: #f8faf9; font-size: .74rem; padding-top: 14px; padding-bottom: 14px; }
td { line-height: 1.6; }
.table-wrap td:first-child { overflow-wrap: anywhere; }
.table-wrap td:last-child > button, .table-wrap td:last-child > .row-actions { white-space: nowrap; }
.mailbox-card, .provider-card { padding: 26px; }
.mailbox-identity h2 { font-size: 1.02rem; letter-spacing: -.015em; }
.mailbox-identity p { color: #4a655c; }
.mailbox-identity small { margin-top: 8px; }
.mailbox-footer { margin-top: 24px; }
.mailbox-status { gap: 10px; }
.badge { padding: 4px 10px; font-size: .73rem; font-weight: 500; }
.table-foot { background: #fcfdfc; padding: 13px 24px; }
.empty-state { padding: 64px 28px; }
.empty-symbol { border: 1px solid #d9eade; }
.mobile-footer { display: none; }
.login-shell { background: radial-gradient(ellipse at 15% 0%, #e7f2ec 0%, transparent 48%), var(--paper); padding: 26px 5vw; }
.login-header { justify-content: flex-end; }
.login-header:has(.logo) { justify-content: space-between; }
.login-card { max-width: 448px; padding: 28px 40px 32px; margin: 24px 0 48px; border-radius: 20px; box-shadow: 0 12px 45px #153b3608; }
.full-logo { display: block; width: 216px; height: auto; max-width: 100%; margin: 0 auto 28px; }
.login-card h1 { font-size: 1.5rem; letter-spacing: -.03em; }
.login-card:has(#login-form) h1 { margin-bottom: 24px; }
.login-card .lead { margin: 9px 0 25px; }
.login-card .full-button { min-height: 46px; }
.login-hint { margin-top: 24px; padding-top: 22px; line-height: 1.65; }
.support-note { line-height: 1.6; }
.login-mode { font-weight: 600; }
.login-shell > .footer { padding-bottom: 6px; }
dialog { padding: 30px; border-radius: 18px; }
.dialog-head { padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.dialog-head p { line-height: 1.6; }
.dialog-head .close-button { border-radius: 8px; width: 34px; }
.dialog-head .close-button:hover { background: var(--paper); }
.provider-services span { border: 1px solid var(--line); border-radius: 6px; padding: 4px 8px; background: var(--paper); }
.credential-item > div { min-width: 0; }
.device-connection { display: grid; grid-template-columns: 140px minmax(0,1fr); gap: 7px 12px; padding-top: 12px; margin: 12px 0 0; border-top: 1px solid var(--line); font-size: .75rem; line-height: 1.6; }
.device-connection dt { color: var(--muted); }
.device-connection dd { margin: 0; overflow-wrap: anywhere; }
.credential-item .device-metadata-note { line-height: 1.55; font-size: .72rem; margin-top: 10px; }
@media (max-width: 1200px) {
  .shell { grid-template-columns: 228px minmax(0, 1fr); }
  .sidebar { padding-left: 14px; padding-right: 14px; }
  .topbar { padding: 16px 28px; }
  .content { padding: 32px 28px 48px; }
  .user-menu { gap: 6px; }
}
@media (max-width: 820px) {
  .shell { display: block; }
  .sidebar { height: auto; overflow: visible; padding: 16px 20px; }
  .sidebar-brand { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 0; margin: 0; }
  .sidebar-brand .logo { font-size: 1.35rem; }
  .sidebar .desktop-navigation { display: none; }
  .mobile-menu-button { display: inline-flex; min-height: 44px; padding: 8px 12px; font-size: .8rem; }
  .mobile-menu-button .icon { width: 18px; height: 18px; }
  .mobile-navigation:popover-open { display: block; position: fixed; inset: 72px 16px auto auto; margin: 0; width: min(320px,calc(100vw - 32px)); max-height: calc(100dvh - 96px); overflow-y: auto; padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: #fff; color: var(--ink); box-shadow: 0 12px 40px #153b3630; }
  .mobile-navigation::backdrop { background: #153b3614; }
  .sidebar .mobile-navigation nav { display: grid; gap: 18px; overflow: visible; }
  .mobile-navigation .nav-section { display: grid; gap: 4px; }
  .mobile-navigation .nav-heading { display: block; }
  .sidebar .mobile-navigation nav button { display: grid; width: 100%; font-size: .88rem; gap: 12px; padding: 11px 13px; }
  .sidebar-bottom { display: none; }
  .topbar { min-height: 64px; padding: 12px 20px; }
  .content { padding: 28px 20px 40px; }
  .workspace { min-height: calc(100dvh - 77px); }
  .mobile-footer { display: block; margin-top: auto; padding: 20px; }
  .mobile-footer .footer { padding-top: 18px; border-top: 1px solid var(--line); }
  .page-header { margin-bottom: 24px; }
  .page-header > .row-actions .primary { margin-left: 0; }
  .list-toolbar { padding: 16px 20px; }
  .login-card { margin-top: 20px; }
}
@media (max-width: 480px) {
  h1 { font-size: 1.6rem; }
  .sidebar { padding: 16px; }
  .sidebar nav .icon { display: block; width: 16px; height: 16px; }
  .topbar { padding: 10px 16px; align-items: center; }
  .workspace-name { max-width: 125px; padding-top: 0; }
  .user-menu { gap: 2px; }
  .user-menu .language-button { margin-right: 0; }
  .content { padding: 26px 16px 28px; }
  .mobile-footer { padding: 16px; }
  .mobile-footer .footer { gap: 10px; font-size: .7rem; }
  .mailbox-card, .provider-card { padding: 20px; }
  .mailbox-footer { margin-top: 20px; }
  .login-shell { padding: 20px 18px; }
  .login-card { padding: 24px; margin: 18px 0 32px; }
  .full-logo { width: 190px; margin-bottom: 24px; }
  .login-header .language-button { min-height: 40px; }
  .login-shell > .footer { gap: 10px; flex-wrap: wrap; }
  dialog { padding: 22px 18px; }
  .dialog-head { padding-bottom: 16px; }
  .device-connection { grid-template-columns: 1fr; gap: 2px; }
  .device-connection dd + dt { margin-top: 6px; }
}
@media (max-width: 600px) {
  .member-table, .member-table tbody { display: block; }
  .member-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
  .member-table tr { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 10px; padding: 20px; border-bottom: 1px solid var(--line); }
  .member-table tr:last-child { border: 0; }
  .member-table td { padding: 0; border: 0; min-width: 0; }
  .member-table .member-email { grid-column: 1/-1; font-weight: 600; }
  .member-table .member-customer { grid-column: 1; color: var(--muted); font-size: .78rem; }
  .member-table .member-status { grid-column: 2; grid-row: 2; }
  .member-table .member-action { grid-column: 1/-1; text-align: right; margin-top: 2px; }
}
