@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Noto+Sans+TC:wght@400;500;600;700&display=swap');
:root{font-family:'DM Sans','Noto Sans TC',sans-serif;color:#243735;background:#f4f6f4;font-synthesis:none;--ink:#243735;--muted:#6d7e7a;--line:#dce5e1;--teal:#27645a;--pale:#e8f1ed;--purple:#e9e8f2}*{box-sizing:border-box}body{margin:0;font-size:14px}button,input,select,textarea{font:inherit}button{cursor:pointer}button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #86b7aa;outline-offset:2px}.shell{min-height:100vh;display:flex}.sidebar{width:228px;background:#223b3a;color:#d5e3dc;display:flex;flex-direction:column;position:fixed;inset:0 auto 0 0;padding:29px 16px 20px}.brand{display:flex;align-items:center;gap:12px;padding:0 8px 40px}.brand-mark{height:38px;width:38px;border-radius:11px;background:#d9e9df;color:#284b44;font-size:14px;font-weight:700;display:grid;place-items:center;position:relative}.brand-mark span{font-size:10px;position:absolute;bottom:6px;right:7px;color:#6e9b8b}.brand strong,.brand small,.sidebar-bottom strong,.sidebar-bottom small{display:block}.brand strong{font-size:17px;letter-spacing:-.03em;color:#fff}.brand small{font-size:11px;color:#9eb5aa;margin-top:2px}.side-label{font-size:11px;color:#8fa9a0;margin:0 12px 12px}.nav-button{border:0;background:transparent;color:#c4d5ce;display:flex;align-items:center;gap:12px;width:100%;padding:11px 12px;border-radius:8px;text-align:left;margin:3px 0}.nav-button svg{width:17px;height:17px;stroke:currentColor;fill:none;stroke-width:1.7}.nav-button:hover{background:#304d49}.nav-button.active{background:#496961;color:white;font-weight:700}.nav-button .soon{font-size:10px;margin-left:auto;color:#a8bfb4}.sidebar-bottom{margin-top:auto;border-top:1px solid #47605b;padding:20px 6px 0;display:flex;gap:10px;align-items:flex-start}.sidebar-bottom strong{font-size:12px;color:#ecf3ef}.sidebar-bottom small{font-size:11px;color:#9eb5aa;margin-top:4px}.status-dot{display:inline-block;background:#9acbb2;width:7px;height:7px;border-radius:50%;flex:none;margin-top:4px}.main{margin-left:228px;width:calc(100% - 228px)}.topbar{height:69px;border-bottom:1px solid var(--line);background:#fff;display:flex;align-items:center;justify-content:space-between;padding:0 38px}.breadcrumbs{color:#85938e;font-size:12px}.breadcrumbs span{padding:0 10px;color:#bdc9c3}.breadcrumbs strong{color:#405652}.top-right{display:flex;align-items:center;gap:20px}.local-badge{font-size:12px;color:#607972}.local-badge .status-dot{margin:0 5px 1px 0}.avatar{border-radius:50%;width:31px;height:31px;display:grid;place-items:center;background:#dcebe4;color:#32685a;font-size:10px;font-weight:700}.content{max-width:1600px;margin:auto;padding:34px 38px 70px}.page-heading{display:flex;justify-content:space-between;align-items:end;gap:20px;margin-bottom:25px}.page-heading h1{font-size:27px;letter-spacing:-.04em;margin:0 0 7px}.page-heading p{color:var(--muted);margin:0;line-height:1.6}.buttons{display:flex;gap:8px;flex-wrap:wrap}.btn{border:1px solid #cfdcd5;border-radius:7px;background:white;color:#36534b;padding:9px 14px;font-weight:600;min-height:38px}.btn:hover{background:#f4f8f5}.btn.primary{color:white;border-color:#27645a;background:#27645a}.btn.primary:hover{background:#1d5047}.btn.danger{color:#a74040}.btn.small{font-size:12px;padding:5px 9px;min-height:30px}.btn:disabled{opacity:.5;cursor:not-allowed}.summary{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-bottom:24px}.stat{background:white;border:1px solid var(--line);border-radius:10px;padding:16px 19px;display:flex;align-items:center;gap:13px}.stat-icon{width:38px;height:38px;display:grid;place-items:center;border-radius:9px;background:#e8f1ed;color:#387160;font-weight:700}.stat small{display:block;color:#7b8c85;font-size:11px;margin-bottom:4px}.stat strong{font-size:20px;letter-spacing:-.04em}.stat .aside{margin-left:auto;font-size:11px;color:#8a9c93}.panel{background:white;border:1px solid var(--line);border-radius:10px;overflow:hidden}.panel-head{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:18px 20px;border-bottom:1px solid #e5ece8}.panel-head h2{font-size:15px;margin:0}.panel-head p{font-size:12px;color:var(--muted);margin:5px 0 0}.toolbar{display:flex;gap:10px;align-items:center;flex-wrap:wrap;padding:15px 20px}.search{position:relative;flex:1;min-width:180px}.search input{padding-left:34px;width:100%}.search:before{content:'⌕';position:absolute;left:12px;top:5px;font-size:22px;color:#8ca099}.field,input,select,textarea{border:1px solid #d6e1da;border-radius:6px;background:white;color:var(--ink);padding:9px 10px;min-height:37px}textarea{resize:vertical;line-height:1.6}.tabs{display:flex;gap:4px;background:#eef3ef;padding:4px;border-radius:7px}.tab{border:0;background:transparent;border-radius:5px;color:#71847a;padding:7px 12px;font-weight:600;font-size:12px}.tab.active{background:white;color:#286355;box-shadow:0 1px 4px #cad8ce}.table-scroll{overflow:auto}.directory{border-collapse:collapse;width:100%;font-size:12px;white-space:nowrap}.directory th{text-align:left;color:#74877e;font-size:11px;font-weight:600;background:#f8faf8;padding:11px 12px;border-top:1px solid #e6ede8;border-bottom:1px solid #e6ede8}.directory td{padding:11px 12px;border-bottom:1px solid #edf1ee;color:#52665d}.directory td.name{font-weight:700;color:#2f413b}.directory tr:hover td{background:#fafcfb}.directory .group-row td{background:#f0f0f7;color:#5a5d79;padding:8px 12px;font-weight:700;border-bottom:1px solid #e0e1ee}.tag{display:inline-block;background:#eef4f0;color:#4f7867;border-radius:4px;padding:3px 7px;font-size:10px}.tag.warn{background:#fff1d9;color:#9a6a17}.table-foot{display:flex;justify-content:space-between;padding:14px 20px;color:#8a9b91;font-size:11px}.empty{text-align:center;padding:60px 20px;color:#71857b;line-height:1.7}.empty strong{display:block;color:#40574c;font-size:15px}.grid-two{display:grid;grid-template-columns:minmax(300px, .9fr) minmax(360px,1.1fr);gap:16px}.form-body{padding:20px}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px}.form-grid .wide{grid-column:1/-1}.form-group{display:flex;flex-direction:column;gap:6px}.form-group label{font-size:12px;font-weight:700;color:#4d6358}.form-group small,.hint{color:#819288;font-size:11px;line-height:1.5}.mail-preview{padding:22px;background:#fbfcfb}.mail-field{display:grid;grid-template-columns:65px 1fr;border-bottom:1px solid #e7ede9;padding:11px 0;gap:10px;color:#63776b;font-size:12px}.mail-field strong{color:#30473b}.mail-body{white-space:pre-wrap;color:#3d5449;line-height:1.8;padding:16px 0;min-height:180px}.notice-list{display:grid;gap:8px;margin:18px 0}.notice-item{background:#f4f8f5;border:1px solid #e4ede7;border-radius:7px;padding:10px;display:flex;align-items:center;justify-content:space-between}.module-card{padding:25px}.module-card h2{margin:0 0 8px;font-size:16px}.module-card p{color:#71847a;line-height:1.8;max-width:670px}.pill{display:inline-block;border-radius:20px;background:#eef2ef;color:#6a7e71;padding:5px 10px;font-size:11px;font-weight:700}.modal-root:empty{display:none}.overlay{position:fixed;inset:0;background:#182e2ac2;display:grid;place-items:center;padding:20px;z-index:10}.dialog{background:white;border-radius:11px;width:min(740px,100%);max-height:90vh;overflow:auto;box-shadow:0 20px 70px #102a2030}.dialog-head{display:flex;justify-content:space-between;align-items:center;padding:20px 24px;border-bottom:1px solid var(--line)}.dialog-head h2{margin:0;font-size:18px}.dialog-body{padding:24px}.dialog-foot{padding:16px 24px;border-top:1px solid var(--line);display:flex;justify-content:flex-end;gap:8px}.close{border:0;background:transparent;font-size:24px;color:#70847a}.alert{background:#fff6e6;border:1px solid #f1dfba;border-radius:7px;color:#785f2d;padding:12px 14px;font-size:12px;line-height:1.6;margin-bottom:16px}.error{background:#fbeeee;color:#923e3e}#toast{position:fixed;bottom:22px;right:22px;background:#213c35;color:white;padding:12px 17px;border-radius:7px;z-index:20;display:none;max-width:400px}#toast.show{display:block}@media(max-width:1000px){.sidebar{width:70px;padding:23px 10px}.brand{padding:0 6px 35px}.brand>div,.side-label,.nav-button span,.sidebar-bottom{display:none}.nav-button{justify-content:center}.main{margin-left:70px;width:calc(100% - 70px)}.content{padding:28px 22px}.topbar{padding:0 22px}.grid-two{grid-template-columns:1fr}}@media(max-width:600px){.sidebar{position:static;width:auto;min-height:auto;flex-direction:row;overflow:auto;padding:8px}.shell{display:block}.brand{padding:0 10px 0 0}.nav-button{width:auto;min-width:43px}.sidebar nav{display:flex}.main{width:100%;margin:0}.topbar{height:55px}.content{padding:22px 14px}.page-heading{align-items:flex-start;flex-direction:column}.summary{grid-template-columns:1fr;gap:8px}.stat{padding:10px 14px}.form-grid{grid-template-columns:1fr}.form-grid .wide{grid-column:auto}.directory{font-size:11px}}@media print{.sidebar,.topbar,.page-heading .buttons,.summary,.toolbar,.table-foot,.no-print{display:none!important}.main{margin:0;width:100%}.content{padding:0}.panel{border:0}.directory{font-size:7pt;white-space:normal}.directory th,.directory td{padding:2px 3px}.directory .group-row td{padding:2px 3px;print-color-adjust:exact;-webkit-print-color-adjust:exact}@page{size:A4 landscape;margin:8mm}}
 .module-frame{display:block;width:100%;height:calc(100vh - 190px);min-height:720px;border:0;background:#fff}
.topbar-start{display:flex;align-items:center;gap:18px;min-width:0}.sidebar-toggle{display:flex;align-items:center;gap:7px;min-height:36px;padding:7px 10px;border:1px solid #d6e1da;background:#fff;color:#36534b;border-radius:7px;font-size:12px;font-weight:600;white-space:nowrap}.sidebar-toggle:hover{background:#f1f7f3}.sidebar-toggle svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.7}.shell.sidebar-collapsed .sidebar{display:none}.shell.sidebar-collapsed .main{margin-left:0;width:100%}.shell.sidebar-collapsed .sidebar-toggle svg{transform:scaleX(-1)}@media(max-width:600px){.topbar-start{gap:9px}.sidebar-toggle span{display:none}.shell.sidebar-collapsed .sidebar{display:none}.shell.sidebar-collapsed .main{width:100%;margin-left:0}}@media print{.sidebar-toggle{display:none!important}}

/* Collapsed workspace: one small edge control, with the module taking the viewport. */
.shell.sidebar-collapsed .topbar{position:fixed;z-index:40;left:0;top:50%;transform:translateY(-50%);height:auto;padding:0;border:0;background:transparent}
.shell.sidebar-collapsed .topbar-start{display:block}
.shell.sidebar-collapsed .breadcrumbs,.shell.sidebar-collapsed .top-right,.shell.sidebar-collapsed .sidebar-toggle span{display:none}
.shell.sidebar-collapsed .sidebar-toggle{width:28px;height:48px;min-height:48px;padding:0;justify-content:center;border:1px solid #aac5b7;border-left:0;border-radius:0 8px 8px 0;background:#fff;box-shadow:0 2px 10px #203d3026}
.shell.sidebar-collapsed .sidebar-toggle:hover,.shell.sidebar-collapsed .sidebar-toggle:focus-visible{width:36px;background:#edf6f0}
.shell.sidebar-collapsed .content{max-width:none;width:100%;padding:20px}
.shell.sidebar-collapsed .content[data-layout="embedded"]{height:100vh;height:100dvh;padding:0;overflow:hidden}
.shell.sidebar-collapsed .content[data-layout="embedded"]>.page-heading{display:none}
.shell.sidebar-collapsed .content[data-layout="embedded"]>.panel{height:100%;border:0;border-radius:0;overflow:hidden}
.shell.sidebar-collapsed .content[data-layout="embedded"] .module-frame{width:100%;height:100%;min-height:0}
@media(max-width:600px){.shell.sidebar-collapsed .content{padding:14px}.shell.sidebar-collapsed .content[data-layout="embedded"]{padding:0}}
@media print{.shell.sidebar-collapsed .topbar{display:none!important}.shell.sidebar-collapsed .content{padding:0}}

/* Keep the workspace navigation compact, with fixed icon and text columns. */
.brand-mark{flex:none}
.sidebar nav{min-height:0;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#78978b transparent}
.sidebar nav::-webkit-scrollbar{width:5px}
.sidebar nav::-webkit-scrollbar-thumb{background:#78978b;border-radius:5px}
.nav-button{display:grid;grid-template-columns:17px minmax(0,1fr) auto;column-gap:9px;min-height:42px;padding:8px 10px;margin:1px 0;font-size:13px;font-weight:500;line-height:1.3}
.nav-button svg{width:17px;height:17px;flex:none;grid-column:1}
.nav-button>span:not(.soon):not(.purchase-nav-badge){grid-column:2;min-width:0;overflow-wrap:normal}
.nav-button.active{font-weight:500}
.nav-button .soon{grid-column:3;margin:0;font-size:10px;font-weight:500;line-height:1.2;white-space:nowrap}
.nav-button .purchase-nav-badge{grid-column:3;justify-self:end;margin:0}
.sidebar-bottom{flex:none}
@media(max-width:1000px){.nav-button{display:flex;justify-content:center;padding:8px;position:relative}.nav-button .purchase-nav-badge{display:inline-flex;position:absolute;top:1px;right:1px;min-width:14px;padding:2px 3px;font-size:9px}.sidebar nav{overflow-y:auto;overflow-x:hidden}}
@media(max-width:600px){.sidebar nav{overflow:visible}.nav-button{min-height:42px}}

.language-picker{min-height:34px;max-width:132px;padding:5px 25px 5px 10px;border:1px solid #d6e1da;border-radius:7px;background:#fff;color:#36534b;font:inherit;font-size:12px}
.language-picker-login{position:fixed;top:18px;right:22px;z-index:30;box-shadow:0 2px 12px #203d3016}
body:has(#auth-root[hidden])>.language-picker-login{display:none}
@media print{.language-picker-login{display:none!important}}

/* Daily notice: show every final recipient clearly, without truncation. */
.notice-recipient-field{align-items:start}.notice-recipient-count{font-weight:700;color:#30473b;margin-bottom:8px}.notice-recipient-list{display:flex;flex-wrap:wrap;gap:6px;max-height:180px;overflow:auto}.notice-recipient-list span{display:inline-block;max-width:100%;padding:4px 8px;border:1px solid #dce9e0;border-radius:6px;background:#fff;color:#30473b;overflow-wrap:anywhere}.notice-recipient-list:focus-visible{outline:2px solid #285e51}

.mail-rendered-preview{display:block;width:100%;height:410px;border:1px solid #dce8df;border-radius:9px;background:#edf2ee}.mail-rendered-preview[hidden]{display:none}.mail-preview-empty{padding:20px 0;color:#63776b}.mail-review-recipients{display:flex;flex-wrap:wrap;gap:6px;max-height:170px;overflow:auto}.mail-review-recipients span{padding:4px 8px;border:1px solid #dce9e0;border-radius:6px;background:#f7faf8;overflow-wrap:anywhere}

/* Daily notification recipients: reveal an auditable list without losing the draft. */
.mailing-overlay{position:fixed;inset:0;z-index:1100;background:#1a302cbb;display:flex;align-items:center;justify-content:center;padding:18px}
.mailing-dialog{width:min(780px,100%);max-height:92vh;display:flex;flex-direction:column;background:#fff;border-radius:12px;box-shadow:0 14px 45px #112a2433;overflow:hidden}
.mailing-dialog header,.mailing-dialog footer{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:16px 20px}.mailing-dialog header{border-bottom:1px solid #e2ebe5}.mailing-dialog header h2{margin:0;font-size:17px}.mailing-dialog header p{margin:4px 0 0;color:#6b8075;font-size:12px}
.mailing-description{margin:14px 20px 0;padding:10px 12px;background:#eef7f1;border-radius:7px;color:#466a58;font-size:12px;line-height:1.5}
.mailing-controls{display:grid;grid-template-columns:2fr 1fr 1fr;gap:10px;padding:12px 20px 6px}.mailing-controls label{display:grid;gap:5px;font-size:11px;font-weight:600;color:#47665a}.mailing-controls input,.mailing-controls select{width:100%;min-width:0;border:1px solid #d4e2d8;border-radius:6px;background:white;padding:8px;font:inherit;font-size:12px;color:#263d34}
.mailing-count{display:flex;flex-wrap:wrap;gap:12px;padding:7px 20px;color:#547064;font-size:12px}.mailing-missing{color:#a14e36!important}.mailing-list{overflow:auto;padding:0 20px;min-height:80px}.mailing-list h3{position:sticky;top:0;background:#f4f8f5;margin:8px 0 0;padding:8px;font-size:12px;color:#47665a}.mailing-row{display:flex;align-items:flex-start;gap:10px;padding:10px 8px;border-bottom:1px solid #edf2ee;cursor:pointer}.mailing-row input{margin:3px 0 0;accent-color:#286c56}.mailing-row span{min-width:0}.mailing-row strong,.mailing-row small{display:block;overflow-wrap:anywhere}.mailing-row strong{font-size:12px}.mailing-row small{font-size:11px;color:#6c8275;margin-top:3px}.mailing-empty,.mailing-feedback{font-size:12px;color:#647d70}.mailing-feedback{padding:0 20px;color:#a14e36}.mailing-dialog footer{justify-content:flex-end;border-top:1px solid #e2ebe5}.mailing-open{margin-top:10px}
@media(max-width:600px){.mailing-controls{grid-template-columns:1fr 1fr}.mailing-controls label:first-child{grid-column:1/-1}.mailing-dialog header,.mailing-dialog footer{padding:12px}.mailing-description{margin:10px 12px 0}.mailing-controls,.mailing-count{padding-left:12px;padding-right:12px}.mailing-list{padding:0 12px}}
.notice-fixed-recipients{padding:10px 12px;border:1px solid #dce8df;border-radius:8px;background:#f6faf7;color:#31584a;overflow-wrap:anywhere;white-space:pre-wrap;line-height:1.5}.notice-recipient-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}.notice-recipient-toolbar strong{font-size:13px;color:#31584a}.notice-recipient-details{margin-top:12px;max-height:330px;overflow:auto;border:1px solid #dce8df;border-radius:9px;background:#fff}.notice-recipient-details[hidden]{display:none}.notice-recipient-items{list-style:none;padding:0;margin:0}.notice-recipient-items li{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding:10px 12px;border-bottom:1px solid #edf2ee;overflow-wrap:anywhere}.notice-recipient-items li:last-child{border-bottom:0}.notice-recipient-items li>div{min-width:0;display:flex;flex-direction:column;gap:3px}.notice-recipient-items strong{font-size:13px;color:#214b40}.notice-recipient-items span{font-size:12px;color:#334d42}.notice-recipient-items small{display:block;font-size:11px;color:#617b6c}.notice-recipient-items .notice-source{max-width:45%;text-align:right}.notice-recipient-empty{padding:12px;margin:0;color:#8f5746}.notice-recipient-missing{border-top:1px solid #e7d5bc;background:#fffaf3}.notice-recipient-missing h4{margin:0;padding:10px 12px 2px;color:#8f5746;font-size:12px}

/* Shared page rhythm: compact headings and predictable wrapping. */
.content{padding:26px 30px 56px}
.page-heading{align-items:center;flex-wrap:wrap;gap:12px 18px;margin-bottom:20px}
.page-heading>div:first-child{min-width:0;flex:1 1 220px}
.page-heading h1{font-size:22px;line-height:1.25;letter-spacing:-.025em;margin-bottom:5px;overflow-wrap:anywhere}
.page-heading p{font-size:13px;line-height:1.5}
.buttons{align-items:center}
.buttons .btn{max-width:100%}
.summary{grid-template-columns:repeat(3,minmax(0,1fr));margin-bottom:20px}
.stat{min-width:0;padding:14px 16px;gap:11px}
.stat-icon{flex:0 0 36px;width:36px;height:36px}
.stat .aside{min-width:0;text-align:right;overflow-wrap:anywhere}
.panel-head{flex-wrap:wrap;gap:10px 16px;padding:16px 18px}
.panel-head>div{min-width:0}
.form-grid>*,.grid-two>*,.form-group{min-width:0}
.form-group input,.form-group select,.form-group textarea{min-width:0;max-width:100%}
.topbar-start,.top-right{min-width:0}
.top-right{gap:12px}
.local-badge{min-width:0;overflow-wrap:anywhere}
.form-group>div:has(#n-hk){display:flex;align-items:center;flex-wrap:wrap;gap:8px 14px;min-height:37px}
.form-group>div:has(#n-hk)>label{display:inline-flex;align-items:center;gap:6px;white-space:nowrap}
#n-hk,#n-sz{flex:none;width:16px;height:16px;min-height:0;margin:0;padding:0}
@media(max-width:1000px){.content{padding:24px 22px 48px}.summary{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:600px){.content{padding:20px 14px 40px}.topbar{height:auto;min-height:55px;flex-wrap:wrap;gap:8px;padding:9px 14px}.topbar-start{flex:0 0 auto}.top-right{flex:1 1 200px;justify-content:flex-end;flex-wrap:wrap;gap:7px}.summary{grid-template-columns:1fr}.stat{padding:10px 14px}.page-heading{align-items:flex-start}.page-heading>div:first-child{flex:0 1 auto}.page-heading h1{font-size:20px}}
/* Daily email: compact controls at left and an uninterrupted preview at right. */
.notice-workspace{display:grid;grid-template-columns:minmax(340px,.8fr) minmax(0,1.2fr);gap:16px;align-items:start}
.notice-controls{display:grid;gap:12px;min-width:0}
.notice-control-panel{overflow:visible}
.notice-control-panel .panel-head{padding:12px 16px}
.notice-control-panel .form-body{padding:14px 16px}
.notice-form-grid{gap:10px 12px}
.notice-form-grid .form-group{gap:4px}
.notice-form-grid .mailing-open,.notice-form-grid .notice-fixed-manage{align-self:flex-start;margin-top:2px}
.notice-form-grid .notice-fixed-recipients{padding:7px 9px;font-size:12px}
.notice-controls .notice-list{margin:12px 0 0}
.notice-controls .notice-list:empty{display:none}
.notice-controls .notice-item{padding:8px 10px;gap:8px}
.notice-person-search{position:relative}
.notice-person-suggestions:not([hidden]){position:absolute;z-index:8;top:100%;left:0;right:0;display:grid;gap:2px;max-height:210px;overflow:auto;padding:5px;background:#fff;border:1px solid #b9d4c4;border-radius:7px;box-shadow:0 7px 20px #173d2b26}
.notice-person-suggestions button{display:flex;align-items:center;justify-content:space-between;gap:10px;width:100%;padding:8px 9px;border:0;border-radius:5px;background:transparent;text-align:left;color:#294b3c}
.notice-person-suggestions button:hover,.notice-person-suggestions button:focus-visible{background:#e7f4ec;outline:2px solid #368366;outline-offset:-2px}
.notice-person-suggestions button strong{font-size:12px}
.notice-person-suggestions button small,.notice-search-empty{font-size:11px;color:#647a6e}
.notice-search-empty{padding:9px}
.notice-preview-panel{min-width:0}
.notice-preview-panel .mail-preview{padding:16px 20px 20px}
.notice-preview-panel .mail-rendered-preview{height:clamp(450px,65vh,850px);margin-top:14px}
.notice-preview-panel #n-review{margin-top:16px}
@media(max-width:1000px){.notice-workspace{grid-template-columns:1fr}.notice-preview-panel .mail-rendered-preview{height:500px}}
@media(max-width:600px){.notice-control-panel .panel-head,.notice-control-panel .form-body,.notice-preview-panel .mail-preview{padding:12px}.notice-form-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.notice-form-grid .wide{grid-column:1/-1}.notice-preview-panel .mail-rendered-preview{height:420px}}
/* Compact daily-email workspace. The actual outgoing email is unchanged. */
.content:has(.notice-workspace){padding-top:14px;padding-bottom:14px}
.content:has(.notice-workspace)>.page-heading{margin-bottom:10px}
.content:has(.notice-workspace)>.page-heading h1{font-size:18px;margin:0 0 3px}
.content:has(.notice-workspace)>.page-heading p{font-size:11px;line-height:1.35}
.notice-workspace{gap:10px}
.notice-controls{gap:8px}
.notice-control-panel .panel-head,.notice-preview-panel .panel-head{padding:8px 12px}
.notice-control-panel .panel-head h2,.notice-preview-panel .panel-head h2{font-size:13px}
.notice-control-panel .panel-head p,.notice-preview-panel .panel-head p{margin-top:2px;font-size:10px;line-height:1.3}
.notice-control-panel .form-body{padding:9px 12px}
.notice-form-grid{gap:7px 9px}
.notice-form-grid .form-group{gap:3px}
.notice-form-grid .form-group label{font-size:11px}
.notice-form-grid input:not([type=checkbox]),.notice-form-grid select,.notice-form-grid textarea{min-height:31px;padding:5px 7px;font-size:12px;line-height:1.25}
.notice-form-grid textarea{height:31px;min-height:31px;resize:vertical}
.notice-entry-grid{grid-template-columns:repeat(6,minmax(0,1fr))}
.notice-entry-grid>div:nth-child(-n+4){grid-column:span 3}
.notice-entry-grid>div:nth-child(n+5){grid-column:span 2}
.notice-entry-grid>div:last-child{align-self:end}
.notice-entry-grid #n-add{width:100%;min-height:31px;padding:5px 7px;font-size:12px}
.notice-controls .notice-list{gap:5px;max-height:105px;overflow:auto;margin:7px 0 0}
.notice-controls .notice-item{padding:5px 7px;font-size:12px}
.notice-controls .notice-item .btn{min-height:26px;padding:3px 7px;font-size:11px}
.notice-inline{display:flex;align-items:center;gap:6px;min-width:0}
.notice-inline select,.notice-inline .notice-fixed-recipients{flex:1 1 auto;min-width:0;width:1px}
.notice-inline .btn{flex:none;margin:0;font-size:11px;white-space:nowrap}
.notice-form-grid .notice-fixed-recipients{min-height:31px;max-height:60px;overflow:auto;padding:6px 8px;font-size:11px}
.notice-settings-grid>div:has(#n-hk){gap:3px}
.notice-settings-grid div:has(>#n-hk){min-height:31px}
.notice-preview-panel .mail-preview{padding:8px 12px 10px}
.notice-preview-panel .mail-field{grid-template-columns:48px 1fr;gap:7px;padding:6px 0;font-size:11px}
.notice-preview-panel .notice-recipient-toolbar strong{font-size:12px}
.notice-preview-panel .mail-rendered-preview{height:clamp(280px,calc(100vh - 360px),640px);margin-top:8px}
.notice-preview-panel #n-review{min-height:31px;margin-top:8px;padding:5px 10px;font-size:12px}
@media(max-width:1000px){.notice-preview-panel .mail-rendered-preview{height:480px}}
@media(max-width:600px){
 .content:has(.notice-workspace){padding:12px 14px 24px}
 .notice-entry-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 .notice-entry-grid>div:nth-child(-n+6){grid-column:span 1}
 .notice-entry-grid>div:last-child{grid-column:1/-1}
 .notice-settings-grid .form-group{min-width:0}
 .notice-inline{flex-wrap:wrap}
 .notice-inline select,.notice-inline .notice-fixed-recipients{width:auto;flex:1 1 160px}
 .notice-preview-panel .mail-rendered-preview{height:400px}
}
/* Compact Office Hub chrome and forms; embedded EC/PT pages are excluded. */
.shell:has(#app[data-layout="standard"]) .topbar{height:52px;padding:0 24px}
.shell.sidebar-collapsed:has(#app[data-layout="standard"]) .topbar{height:auto;padding:0}
.shell .sidebar{padding-top:18px;padding-bottom:12px}
.shell .brand{padding-bottom:22px}
#app[data-layout="standard"]{max-width:none;padding:14px 22px 28px;font-size:12px}
#app[data-layout="standard"] .page-heading{margin-bottom:12px;gap:8px 12px}
#app[data-layout="standard"] .page-heading h1{font-size:18px;line-height:1.25;margin:0 0 3px}
#app[data-layout="standard"] .page-heading p{font-size:11px;line-height:1.35}
#app[data-layout="standard"] .panel-head{padding:9px 12px;gap:8px}
#app[data-layout="standard"] .panel-head h2{font-size:13px}
#app[data-layout="standard"] .panel-head p{font-size:11px;margin-top:3px;line-height:1.35}
#app[data-layout="standard"] .form-body{padding:12px}
#app[data-layout="standard"] .form-grid{gap:9px 10px}
#app[data-layout="standard"] .form-group{gap:4px}
#app[data-layout="standard"] .form-group label{font-size:11px}
#app[data-layout="standard"] .form-group :is(input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),select,textarea){min-height:32px;padding:5px 8px;font-size:12px;line-height:1.3}
#app[data-layout="standard"] .form-group input:is([type="checkbox"],[type="radio"]){width:15px;height:15px;min-height:0;padding:0;flex:none}
#app[data-layout="standard"] .btn{min-height:32px;padding:5px 10px;font-size:12px}
#app[data-layout="standard"] .btn.small{min-height:27px;padding:3px 8px;font-size:11px}
#app[data-layout="standard"] .toolbar{padding:9px 12px;gap:8px}
#app[data-layout="standard"] .toolbar.contact-directory-toolbar{padding:0}
#app[data-layout="standard"] .directory th,#app[data-layout="standard"] .directory td{padding:7px 9px;font-size:11px}
#app[data-layout="standard"] .directory .group-row td{padding:5px 9px}
#app[data-layout="standard"] .empty{padding:30px 14px;font-size:12px}
#app[data-layout="standard"] .alert{padding:8px 10px;margin-bottom:10px}
#app[data-layout="standard"] .dash-welcome{padding:12px 16px;margin-bottom:12px}
#app[data-layout="standard"] .dash-welcome h1{font-size:19px;margin:0 0 3px}
#app[data-layout="standard"] .dash-welcome p{font-size:11px;line-height:1.35}
#app[data-layout="standard"] .dash-section-title{margin-bottom:8px}
#app[data-layout="standard"] .dash-section-title h2{font-size:13px}
#app[data-layout="standard"] .dash-grid{gap:8px}
#app[data-layout="standard"] .dash-module{display:grid;grid-template-columns:30px minmax(0,1fr);column-gap:10px;align-content:center;min-height:88px;padding:11px 12px}
#app[data-layout="standard"] .dash-module-icon{grid-column:1;grid-row:1 / span 3;width:30px;height:30px;margin:0;font-size:12px}
#app[data-layout="standard"] .dash-module strong,#app[data-layout="standard"] .dash-module p,#app[data-layout="standard"] .dash-module .pill{grid-column:2}
#app[data-layout="standard"] .dash-module strong{font-size:12px}
#app[data-layout="standard"] .dash-module p{font-size:11px;line-height:1.35;margin:3px 0 0}
#app[data-layout="standard"] .dash-module .pill{margin:5px 0 0;justify-self:start;padding:3px 7px;font-size:10px}
#app[data-layout="standard"] .account-head{margin-bottom:12px;gap:10px}
#app[data-layout="standard"] .account-head h1{font-size:18px;margin:0 0 3px}
#app[data-layout="standard"] .account-layout{gap:10px}
#app[data-layout="standard"] .account-list th,#app[data-layout="standard"] .account-list td{padding:7px 9px;font-size:11px}
#app[data-layout="standard"] .account-detail{padding:12px}
#app[data-layout="standard"] .account-detail h2{font-size:14px;margin-bottom:4px}
#app[data-layout="standard"] .account-detail p{font-size:11px;line-height:1.4;margin:5px 0}
#app[data-layout="standard"] .account-detail form{gap:9px;margin-top:10px}
#app[data-layout="standard"] .permission-list{gap:4px}
#app[data-layout="standard"] .permission-item{padding:5px 7px;gap:6px}
#app[data-layout="standard"] .permission-item span{font-size:11px;line-height:1.35}
#app[data-layout="standard"] .contact-section-title{padding:12px 12px 8px}
#app[data-layout="standard"] .contact-filters{padding:8px 12px}
#app[data-layout="standard"] .reference-group{padding:2px 12px 10px}
#app[data-layout="standard"] .reference-item{padding:7px 9px}
#app[data-layout="standard"] .mail-profile-status{margin:8px 0;padding:6px 8px}
#app[data-layout="standard"] .mail-settings-help{margin:8px 0}
#app[data-layout="standard"] .mail-settings .form-grid .wide{grid-column:auto}
#app[data-layout="standard"] .purchase-heading{margin-bottom:10px}
#app[data-layout="standard"] .purchase-heading h1{font-size:18px;margin:0}
#app[data-layout="standard"] .purchase-tabs{margin-bottom:7px}
#app[data-layout="standard"] .purchase-tabs button{padding:7px 10px;font-size:11px}
#app[data-layout="standard"] .purchase-list-head{margin:9px 0;gap:8px}
#app[data-layout="standard"] .purchase-list-head h2,#app[data-layout="standard"] .purchase-form-card h2,#app[data-layout="standard"] .purchase-detail-header h2{font-size:14px}
#app[data-layout="standard"] .purchase-list-head p,#app[data-layout="standard"] .purchase-section-title p{font-size:11px;line-height:1.35}
#app[data-layout="standard"] .purchase-workspace{gap:9px}
#app[data-layout="standard"] .purchase-item{padding:8px}
#app[data-layout="standard"] .purchase-detail,#app[data-layout="standard"] .purchase-form-card{padding:12px}
#app[data-layout="standard"] .purchase-detail-grid{gap:8px 12px;margin-top:10px}
#app[data-layout="standard"] .purchase-form-grid{gap:9px 10px;margin-top:10px}
#app[data-layout="standard"] .purchase-form-grid :is(input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),select,textarea){min-height:32px;padding:5px 8px;margin-top:4px;font-size:12px}
#app[data-layout="standard"] .purchase-form-grid input:is([type="checkbox"],[type="radio"]){width:15px;height:15px;min-height:0;padding:0}
#app[data-layout="standard"] .purchase-section{margin-top:12px;padding-top:11px}
#app[data-layout="standard"] .purchase-actions{margin-top:10px}
#app[data-layout="standard"] .purchase-dropzone{padding:8px 10px}
#app[data-layout="standard"] .purchase-detail-empty{padding:35px 10px}
#app[data-layout="standard"] .seat-top{align-items:center;flex-wrap:wrap;margin-bottom:10px;gap:8px 12px}
#app[data-layout="standard"] .seat-title{display:flex;align-items:center;gap:10px 14px;flex-wrap:wrap}
#app[data-layout="standard"] .seat-title h1{font-size:18px;margin:0;line-height:1.25}
#app[data-layout="standard"] .seat-metrics{display:flex;align-items:center;gap:6px;flex-wrap:wrap;margin:0;padding:0}
#app[data-layout="standard"] .seat-metrics span{display:inline-flex;align-items:center;gap:4px;padding:4px 8px;border:1px solid #d5e6db;border-radius:7px;background:#f1f8f3;font-size:11px;white-space:nowrap}
#app[data-layout="standard"] .seat-metrics strong{margin:0;color:#245a46;font-size:12px}
#app[data-layout="standard"] .seat-plan-panel{padding:10px}
#app[data-layout="standard"] .seat-floor:not(.pixel-scene){max-width:calc((100vh - 145px) * 1.4286);margin:0 auto}
#app[data-layout="standard"] .seat-side-top,#app[data-layout="standard"] .seat-waiting{padding:12px}
#app[data-layout="standard"] .seat-selection{margin:8px 0;padding:8px}
#app[data-layout="standard"] .seat-side label{margin:7px 0 4px}
#app[data-layout="standard"] .seat-side select,#app[data-layout="standard"] .seat-editor input{min-height:32px;padding:5px 7px}
body:has(#app[data-layout="standard"]) #modal .dialog-head{padding:12px 16px}
body:has(#app[data-layout="standard"]) #modal .dialog-head h2{font-size:16px}
body:has(#app[data-layout="standard"]) #modal .dialog-body{padding:14px 16px}
body:has(#app[data-layout="standard"]) #modal .dialog-foot{padding:10px 16px}
body:has(#app[data-layout="standard"]) #modal .form-grid{gap:9px 10px}
body:has(#app[data-layout="standard"]) #modal .form-group :is(input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),select,textarea){min-height:32px;padding:5px 8px;font-size:12px}
#auth-root .auth-box{padding:24px}
#auth-root .auth-box h2{font-size:19px}
#auth-root .auth-box>p{margin-bottom:14px;font-size:12px;line-height:1.45}
#auth-root .auth-fields{gap:10px}
#auth-root .auth-fields input:not([type="checkbox"]),#auth-root .auth-fields select{min-height:34px;padding:6px 8px;font-size:12px}
#auth-root .auth-action{min-height:36px}
/* Align workspace headings and let the daily preview match the controls. */
#app[data-layout="standard"] :is(.page-heading,.purchase-heading,.account-head,.seat-top){min-height:32px;align-items:center;margin:0 0 10px}
#app[data-layout="standard"] :is(.page-heading h1,.purchase-heading h1,.account-head h1,.seat-title h1){font-size:18px;line-height:1.25;margin:0}
#app[data-layout="standard"] .seat-view-switch{padding:2px}
#app[data-layout="standard"] .seat-view-switch button{padding:4px 8px}
#app[data-layout="standard"] .purchase-page{max-width:none}
#app[data-layout="standard"] .notice-workspace{align-items:stretch}
#app[data-layout="standard"] .notice-controls{align-content:start}
#app[data-layout="standard"] .notice-preview-panel{display:flex;flex-direction:column;min-height:0}
#app[data-layout="standard"] .notice-preview-panel .mail-preview{display:flex;flex:1;flex-direction:column;min-height:0}
#app[data-layout="standard"] .notice-preview-panel .mail-field{flex:none;align-items:center}
#app[data-layout="standard"] .notice-preview-panel .notice-recipient-field:has(#n-recipient-details:not([hidden])){align-items:start}
#app[data-layout="standard"] .notice-preview-panel .mail-preview-empty{flex:1}
#app[data-layout="standard"] .notice-preview-panel .mail-rendered-preview:not([hidden]){flex:1 1 220px;height:auto;min-height:220px}
#app[data-layout="standard"] .notice-preview-panel #n-review{align-self:flex-start;flex:none}
@media(max-width:1000px){.shell:has(#app[data-layout="standard"]) .sidebar{padding:18px 10px 12px}#app[data-layout="standard"]{padding:14px 18px 24px}}
@media(max-width:1000px){#app[data-layout="standard"] .notice-preview-panel .mail-rendered-preview:not([hidden]){min-height:400px}}
@media(max-width:650px){#app[data-layout="standard"]{padding:12px 14px 24px}#app[data-layout="standard"] .mail-settings .form-grid .wide{grid-column:1/-1}#app[data-layout="standard"] .dash-module{min-height:76px}}
/* Wrapped account controls need a naturally sized header on narrow screens. */
@media(max-width:600px){
 .shell:has(#app[data-layout="standard"]) .topbar{height:auto;min-height:52px;padding:8px 14px}
 #app[data-layout="standard"] :is(.page-heading,.purchase-heading,.account-head,.seat-top){align-items:flex-start}
}
@media print{#app[data-layout="standard"]{padding:0}}
@media print{.content{padding:0}}
