.town-page { --town-ink:#20232a; --town-muted:#5f6570; --town-line:#ecedf0; --town-yellow:#ffdf42; --town-blue:#164fdf; background:#f3f4f6; color:var(--town-ink); }
.town-page [hidden] { display:none !important; }
.town-wrap { max-width:1440px; padding:18px clamp(14px,3vw,40px) 40px; margin:0 auto; }
.town-header { display:flex; align-items:center; justify-content:space-between; gap:14px; min-height:62px; padding:8px clamp(12px,2vw,23px); margin-bottom:13px; border-radius:14px; background:linear-gradient(100deg,#fff 35%,#fff9d6 84%,#ffec87); }
.town-header h1 { margin:0; font-size:clamp(1.25rem,2.6vw,1.75rem); line-height:1.25; }
.town-header-actions { display:flex; gap:8px; align-items:center; }
.town-header button svg, .town-ticket-link svg, .town-section-icon svg { width:17px; height:17px; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
.town-ticket-link { min-height:36px; }
.town-ticket-link:hover { background:#fff5c7; }
.town-dashboard { display:grid; grid-template-columns:minmax(0,5fr) minmax(0,7fr); align-items:start; gap:14px; }
.town-dashboard-left,.town-dashboard-right { display:grid; gap:14px; min-width:0; }
.town-mail-icon { background:#a87719; }
#town-mail-connection form { margin:0; }
.town-card { min-width:0; background:#fff; border:1px solid var(--town-line); border-radius:14px; padding:14px; }
.town-card h2, .town-dialog h2 { color:var(--town-ink); font-size:1rem; line-height:1.35; margin:0; }
.town-welcome { display:grid; align-content:center; padding:18px; min-height:156px; border-color:#f9edab; background:#fff8db url('/assets/town/mascot-banner.webp') right 75% / cover no-repeat; }
.town-welcome-copy { max-width:53%; overflow-wrap:anywhere; }
.town-welcome h2 { font-size:clamp(1rem,2.4vw,1.3rem); }
.town-todo { display:grid; margin:6px 0 0; }
.town-todo strong { font-size:clamp(2.25rem,5vw,3.5rem); line-height:1.07; font-weight:850; font-variant-numeric:tabular-nums; }
.town-muted { margin:5px 0 0; color:var(--town-muted); font-size:.79rem; line-height:1.55; }
.town-button, .town-text-button, .town-close { font:inherit; cursor:pointer; }
.town-button { min-height:36px; display:inline-flex; white-space:nowrap; justify-content:center; align-items:center; gap:.35em; padding:6px 13px; border:1px solid transparent; border-radius:999px; color:#292716; background:#f1f2f5; font-size:.79rem; font-weight:750; text-decoration:none; }
.town-button-yellow { background:var(--town-yellow); }
.town-button-yellow:not(:disabled):hover { background:#ffd221; }
.town-button-light { min-height:30px; background:#fffef6; border-color:#f0d965; }
.town-button-blue { background:var(--town-blue); color:#fff; }
.town-button-blue:not(:disabled):hover { background:#1140bc; }
.town-button:disabled { cursor:not-allowed; color:#686e77; background:#f3f4f6; border-color:#e1e3e9; }
.town-text-button { min-height:34px; border:0; background:none; color:var(--town-muted); padding:0 4px; font-size:.79rem; font-weight:700; white-space:nowrap; }
.town-text-button:hover { text-decoration:underline; }
.town-heading { display:flex; justify-content:space-between; gap:8px; align-items:center; min-height:38px; margin-bottom:9px; padding:0 0 7px; border-bottom:1px solid var(--town-line); }
.town-heading h2 { display:flex; align-items:center; gap:8px; }
.town-section-icon { display:inline-grid; width:24px; height:24px; place-items:center; color:#fff; border-radius:50%; flex:none; }
.town-section-icon svg { width:15px; height:15px; }
.town-orange { background:#d77115; }
.town-coral { background:#db5140; }
.town-task-list { display:grid; gap:8px; }
#town-mail { display:grid; gap:8px; margin-bottom:6px; }
#town-mail:empty,#town-assigned-mail:empty { display:none; }
#town-assigned-mail:not(:empty) { margin-bottom:6px; }
#my-mail { scroll-margin-top:80px; }
#town-dialog[data-mail="folders"] { width:min(1020px,calc(100% - 24px)); padding:0; overflow:hidden; }
#town-dialog:is([data-mail="folders"],[data-mail="transfer"]) { --mb-soft:#fff7d3; --mb-rail:#fffbee; border-radius:20px; }
#town-dialog[data-mail="folders"] > header { position:absolute; inset:0 0 auto; height:54px; margin:0; padding:0 12px 0 20px; display:flex; align-items:center; pointer-events:none; }
#town-dialog[data-mail="folders"] > header h2 { font-size:.98rem; }
#town-dialog[data-mail="folders"] .town-close { pointer-events:auto; width:30px; height:30px; min-height:0; }
.mb-shell { display:grid; grid-template-columns:clamp(154px,19%,205px) minmax(0,1fr); height:min(550px,78dvh); background:#fff; }
.mb-nav { min-width:0; background:var(--mb-rail); padding:58px 10px 16px; }
.mb-folder,.mb-forward,.mb-line { font:inherit; color:var(--town-ink); cursor:pointer; }
.mb-folder { display:flex; align-items:center; gap:10px; width:100%; border:0; padding:8px 12px; background:transparent; font-size:.87rem; border-radius:999px; text-align:left; }
.mb-folder+.mb-folder { margin-top:4px; }
.mb-folder:hover { background:var(--mb-soft); }
.mb-folder[aria-pressed="true"] { background:var(--town-yellow); color:#302810; font-weight:700; }
.mb-icon { width:16px; height:16px; fill:none; stroke:currentColor; stroke-width:1.65; stroke-linejoin:round; stroke-linecap:round; flex:none; }
.mb-panel { min-width:0; min-height:0; display:flex; flex-direction:column; }
.mb-toolbar { display:flex; align-items:center; gap:10px; min-height:54px; flex:none; padding:0 55px 0 18px; border-bottom:1px solid #e5e9ef; }
.mb-toolbar h3 { margin:0; font-size:.98rem; }
.mb-toolbar input,.mb-entry input,.mb-people input { width:15px; height:15px; margin:0; accent-color:var(--town-yellow); }
.mb-count { margin-left:auto; color:#5c6876; font-size:.77rem; white-space:nowrap; }
.mb-forward { display:inline-flex; gap:6px; align-items:center; margin-left:12px; background:var(--town-yellow); color:#302810; border:0; border-radius:999px; min-height:32px; padding:5px 13px; font-size:.8rem; font-weight:700; }
.mb-forward:not(:disabled):hover { background:#ffd221; }
.mb-forward:disabled { background:var(--mb-soft); color:#756741; cursor:not-allowed; }
.mb-scroll { overflow:auto; padding:0 16px 16px; min-height:0; overscroll-behavior:contain; }
.mb-list h4 { color:#586575; margin:14px 0 3px; font-size:.78rem; font-weight:600; }
.mb-entry { display:flex; align-items:baseline; gap:10px; padding:0 6px; border-radius:10px; box-shadow:inset 0 -1px #eeeef0; }
.mb-entry:focus-within,.mb-entry:hover { background:var(--mb-rail); }
.mb-entry:has(input:checked) { background:var(--mb-soft); }
.mb-line { flex:1; min-width:0; display:grid; grid-template-columns:16px minmax(68px,24%) minmax(0,1fr) auto; align-items:center; gap:8px; min-height:33px; padding:4px 0; border:0; border-radius:0; background:none; font-size:.82rem; text-align:left; }
.mb-line::-webkit-details-marker { display:none; }
.mb-line .mb-icon { color:#9ba6ae; }
.mb-line.is-unread .mb-icon { color:#d69a10; fill:#ffe196; }
.mb-person,.mb-text { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.mb-text strong { font-weight:400; }
.mb-line.is-unread :is(.mb-person,strong,time) { font-weight:700; }
.mb-text small { color:#798594; margin-left:5px; font-size:inherit; }
.mb-line time { font-size:.76rem; font-variant-numeric:tabular-nums; }
.town-outbox-row { min-width:0; flex:1; }
.mb-detail { padding:6px 12px 10px 24px; overflow-wrap:anywhere; font-size:.84rem; }
.mb-detail > p:not(.town-sent-body) { margin:2px 0; color:var(--town-muted); }
.mb-status { margin:18px 0; color:var(--town-muted); font-size:.84rem; }
.mb-more { margin-top:12px; }
.mb-actions { display:flex; flex-wrap:wrap; gap:8px; margin:16px 0 6px; }
.mb-search { box-sizing:border-box; width:100%; padding:9px 15px; border-radius:999px; border:1px solid #d6d2c4; margin:12px 0 6px; font:inherit; }
.mb-search:focus-visible,.mb-shell :focus-visible,.mb-people input:focus-visible { outline:2px solid #997318; outline-offset:2px; }
.mb-people { max-height:36dvh; overflow:auto; }
.mb-people label { display:flex; gap:9px; align-items:center; padding:7px 9px; cursor:pointer; border-radius:12px; }
.mb-people label:hover { background:var(--mb-rail); }
.mb-people label:has(input:checked) { background:var(--mb-soft); }
.mb-people small { color:var(--town-muted); }
.mb-avatar { position:relative; overflow:hidden; display:grid; place-items:center; width:28px; height:28px; border-radius:50%; background:#ffefb0; color:#63501c; }
.mb-avatar img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
.mb-move { margin-left:14px; font-weight:400; }
.mb-handoff-note { padding:10px 12px; background:#fff7d3; border-radius:14px; }
@media (max-width:640px){
    #town-dialog[data-mail="folders"] > header { position:static; padding:0 12px; height:45px; background:var(--mb-rail); }
    .mb-shell { height:min(570px,calc(90dvh - 45px)); grid-template-columns:1fr; grid-template-rows:auto minmax(0,1fr); }
    .mb-nav { display:flex; gap:3px; padding:2px 8px 8px; }
    .mb-folder { width:auto; flex:1; justify-content:center; gap:5px; padding:6px 3px; white-space:nowrap; }
    .mb-folder+.mb-folder { margin:0; }
    .mb-toolbar { min-height:44px; gap:7px; padding:0 11px; }
    .mb-forward { margin:0; }
    .mb-scroll { padding:0 10px 12px; }
    .mb-line { grid-template-columns:15px minmax(0,1fr) auto; gap:1px 6px; min-height:48px; }
    .mb-line .mb-icon { grid-column:1;grid-row:1; }
    .mb-person { grid-column:2;grid-row:1; }
    .mb-line time { grid-column:3;grid-row:1; }
    .mb-text { grid-column:2/4;grid-row:2; }
}
.town-mail-tag { display:inline-block; margin-right:7px; padding:2px 7px; border-radius:20px; color:#76580c; background:#fff0ae; font-size:.72rem; font-weight:700; }
.town-mail-tag[data-mail-state="read"] { color:#515962; background:#e6e8eb; }
.town-mail-tag[data-mail-state="pending"] { color:#81420c; background:#ffe3c6; }
.town-mail-tag[data-mail-state="sent"] { color:#28533a; background:#dfede3; }
.town-mail-from,.town-mail-meta { display:block; color:var(--town-muted); font-size:.8rem; overflow-wrap:anywhere; }
.town-mail-from { margin-top:3px; }
.town-dialog[data-mail] { width:min(740px,calc(100% - 24px)); padding:clamp(16px,3vw,28px); background:white; }
.town-dialog[data-mail] header { align-items:flex-start; margin-bottom:18px; }
.town-dialog[data-mail] header h2 { font-size:1.2rem; line-height:1.45; overflow-wrap:anywhere; }
.town-mail-header { display:grid; grid-template-columns:auto minmax(0,1fr) auto; align-items:center; gap:4px 12px; margin-bottom:18px; }
.town-mail-avatar { width:42px; height:42px; display:grid; place-items:center; border-radius:9px; background:#c9e6d8; color:#214c39; font-size:.95rem; font-weight:700; }
.town-mail-sender { display:flex; flex-wrap:wrap; align-items:baseline; gap:0 7px; overflow-wrap:anywhere; }
.town-mail-sender strong { font-size:.95rem; }
.town-mail-sender span,.town-mail-recipient,.town-mail-header time { font-size:.79rem; color:var(--town-muted); overflow-wrap:anywhere; }
.town-mail-recipient { margin-top:4px; }
.town-mail-tools { display:flex; align-items:center; gap:7px 12px; flex-wrap:wrap; padding:8px 11px; border-radius:9px; background:#f3f4f5; font-size:.83rem; }
.town-mail-languages { display:inline-flex; align-items:center; gap:8px; color:var(--town-muted); }
.town-mail-tools select { border:0; background:transparent; color:var(--town-ink); font:inherit; padding:4px 2px; }
.town-mail-tools .town-button { min-height:32px; padding:4px 13px; font-size:.82rem; }
.town-mail-tools [hidden],.town-mail-translation-status[hidden] { display:none; }
.town-mail-translation-status { margin:6px 0 0; font-size:.8rem; color:var(--town-muted); }
.town-mail-body { white-space:pre-wrap; overflow-wrap:anywhere; margin:18px 0 22px; font-size:.95rem; line-height:1.75; }
.town-mail-excerpt { margin:16px 0 20px; }
.town-mail-excerpt .town-mail-body { --mail-lines:6; margin:0; max-height:calc(var(--mail-lines) * 1lh); overflow:hidden; }
.town-mail-body.town-mail-form { --mail-lines:24; white-space:normal; line-height:1.5; }
.town-mail-form-title { margin:0 0 .75rem; font-size:1.08rem; line-height:1.35; }
.town-mail-preamble { margin:0 0 .75rem; white-space:pre-wrap; }
.town-mail-form-fields { display:grid; gap:0; margin:0; }
.town-mail-form-fields > div { display:grid; grid-template-columns:8.5rem minmax(0,1fr); column-gap:1rem; align-items:baseline; padding:.45rem 0; }
.town-mail-form-fields > div + div { border-top:1px solid var(--town-line); }
.town-mail-form-fields dt { color:var(--town-muted); font-size:.85rem; }
.town-mail-form-fields dd { margin:0; white-space:pre-wrap; min-width:0; }
.town-mail-order-number { font-variant-numeric:tabular-nums; font-weight:650; }
.town-mail-signature { margin:.85rem 0 0; color:var(--town-muted); font-size:.82rem; white-space:pre-line; }
@media (max-width:520px) {
    .town-mail-form-fields > div { grid-template-columns:minmax(0,1fr); gap:.12rem; }
}
.town-mail-excerpt.is-expanded .town-mail-body { max-height:none; }
.town-mail-fold { padding:6px 0; border:0; background:none; color:#665019; font:inherit; font-size:.85rem; cursor:pointer; text-decoration:underline; text-underline-offset:3px; }
.town-mail-source { margin-inline-start:auto; }
.town-reader-transfer { display:inline-flex; align-items:center; gap:5px; margin-inline-start:auto; }
.town-reader-transfer + .town-mail-source { margin-inline-start:0; }
.town-dialog[data-mail] [hidden] { display:none; }
@media (max-width:560px) {
    .town-mail-header { grid-template-columns:auto minmax(0,1fr); }
    .town-mail-avatar { grid-row:span 2; }
    .town-mail-header time { grid-column:2; }
    .town-mail-tools { gap:6px 8px; }
}
.town-mail-reply { display:grid; gap:8px; }
.town-mail-reply fieldset { display:grid; gap:8px; min-width:0; margin:0; padding:0; border:0; }
.town-sent-history { margin:0 0 18px; }
.town-sent-history[hidden],.town-sent-history button[hidden] { display:none; }
.town-sent-history h3 { margin:0 0 8px; font-size:.92rem; }
.town-sent-list { display:grid; gap:8px; }
.town-sent-history > button { margin-top:8px; }
.town-sent-card { padding:12px 14px; border-radius:12px; background:#f5f7f5; }
.town-sent-head { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:4px 8px; margin-bottom:6px; }
.town-sent-head time,.town-sent-address { color:var(--town-muted); font-size:.79rem; }
.town-sent-badge { padding:2px 8px; border-radius:12px; background:#dfede3; color:#28533a; font-size:.78rem; }
.town-sent-address { margin:2px 0; overflow-wrap:anywhere; }
.town-sent-body { margin:8px 0 0; white-space:pre-wrap; overflow-wrap:anywhere; line-height:1.6; }
.town-mail-reply label { font-weight:700; }
.town-mail-reply textarea { box-sizing:border-box; width:100%; padding:10px; border:1px solid #d7d9dd; border-radius:12px; font:inherit; resize:vertical; }
.town-mail-reply button { justify-self:end; }
.town-reply-tools { display:flex; flex-wrap:wrap; gap:8px; }
.town-reply-tools [hidden] { display:none; }
.town-compose-envelope,.town-original-facts { display:grid; grid-template-columns:max-content minmax(0,1fr); margin:0; align-items:baseline; }
.town-compose-envelope { column-gap:0; font-size:.95rem; }
.town-compose-envelope dt,.town-compose-envelope dd { margin:0; padding:9px 0; border-bottom:1px solid var(--town-line); }
.town-compose-envelope dt { padding-right:clamp(18px,5vw,42px); }
.town-compose-envelope dd,.town-original-facts dd { overflow-wrap:anywhere; }
.town-compose-envelope label { font-weight:inherit; }
.town-compose-subject { box-sizing:border-box; width:100%; min-width:0; padding:6px 9px; border:1px solid var(--town-line); border-radius:8px; background:#fff; color:var(--town-ink); font:inherit; }
.town-compose-subject:focus-visible { outline:2px solid #967100; outline-offset:1px; }
.town-compose-bar,.town-compose-styles,.town-compose-attachment,.town-compose-actions { display:flex; align-items:center; flex-wrap:wrap; gap:4px 8px; }
.town-compose-bar button,.town-compose-styles button,.town-compose-attachment button,.town-compose-styles select { min-height:32px; border:0; padding:4px 8px; border-radius:5px; background:transparent; color:var(--town-ink); font:inherit; cursor:pointer; }
.town-compose-bar button:disabled { opacity:.42; cursor:default; }
.town-compose-bar button:nth-child(3) { margin-inline-start:4px; border-inline-start:1px solid var(--town-line); border-radius:0; }
.town-compose-styles { padding:4px 8px; background:#f1f2f3; border-radius:7px; }
.town-compose-bar,.town-compose-styles,.town-compose-attachment { font-size:.85rem; }
.town-compose-styles button { min-width:32px; font-family:Georgia,serif; }
.town-compose-styles button[aria-pressed=true] { background:#ffe889; color:#332900; }
.town-mail-reply .town-mail-fold { justify-self:start; }
.town-dialog[data-mail] .town-mail-reply textarea { min-height:clamp(130px,20vh,205px); padding:12px 4px; border:0; border-radius:3px; line-height:1.65; background:#fff; color:var(--town-ink); }
.town-dialog[data-mail] [data-format~="serif"] { font-family:Georgia,serif; }
.town-dialog[data-mail] [data-format~="mono"] { font-family:Consolas,monospace; }
.town-dialog[data-mail] [data-format~="small"] { font-size:13px; }
.town-dialog[data-mail] [data-format~="large"] { font-size:20px; }
.town-dialog[data-mail] [data-format~="bold"] { font-weight:700; }
.town-dialog[data-mail] [data-format~="italic"] { font-style:italic; }
.town-dialog[data-mail] [data-format~="strike"] { text-decoration:line-through; }
.town-dialog[data-mail] [data-format~="underline"] { text-decoration:underline; }
.town-dialog[data-mail] [data-format~="strike"][data-format~="underline"] { text-decoration:underline line-through; }
.town-compose-attachment { overflow-wrap:anywhere; }
.town-compose-thumb { width:64px; height:64px; flex:none; object-fit:contain; border-radius:8px; background:#f3f4f5; }
.town-compose-attachment span { min-width:0; flex:1 1 8rem; }
.town-compose-attachment:has(span:empty) { display:none; }
.town-compose-original h3 { display:flex; align-items:center; gap:8px; margin:12px 0 6px; color:var(--town-muted); font-size:.8rem; font-weight:500; }
.town-compose-original h3::after { content:""; flex:1; border-top:1px solid var(--town-line); }
.town-original-facts { padding:10px 12px; gap:3px 8px; background:#f3f4f5; border-radius:7px; font-size:.8rem; }
.town-original-facts dt { color:var(--town-muted); }
.town-original-facts dd { margin:0; }
.town-compose-actions { justify-content:space-between; margin-top:6px; }
.town-compose-actions p { flex:1 1 230px; margin:0; }
@media(max-width:560px) {
    .town-compose-styles { gap:2px; padding:3px; }
    .town-compose-styles select { padding-inline:2px; }
    .town-compose-styles button { min-width:28px; padding-inline:4px; }
    .town-compose-actions button { margin-inline-start:auto; }
}
.town-task-row { display:grid; grid-template-columns:minmax(0,1fr) auto auto; align-items:center; gap:10px; width:100%; min-height:58px; padding:8px 11px; border:1px solid transparent; border-radius:9px; background:#f4f5f7; color:var(--town-ink); font:inherit; text-align:left; cursor:pointer; }
.town-task-row.is-open { background:#fff6ec; }
.town-task-row:hover { border-color:#d9dde4; }
.town-task-row.is-open:hover { border-color:#ead7ae; }
.town-task-row.is-open .town-task-action { background:#fff; border-color:#ecdfc8; }
.town-task-row strong { font-size:.88rem; overflow-wrap:anywhere; }
.town-task-row time { color:var(--town-muted); font-size:.74rem; white-space:nowrap; }
.town-urgent { display:inline-block; margin-right:6px; padding:1px 4px; border-radius:4px; background:#c53927; color:white; font-size:.67rem; line-height:1.4; }
.town-task-unread { display:inline-block; margin-right:6px; padding:1px 4px; border-radius:4px; background:#fef3f2; color:#9b211b; font-size:.67rem; line-height:1.4; }
#town-pending { scroll-margin-top:80px; }
.town-notices { margin:0; padding:0; list-style:none; }
.town-notices li:not(.town-empty) { display:flex; align-items:center; justify-content:space-between; gap:10px; min-height:35px; border-bottom:1px solid #f3f4f6; }
.town-notices button { flex:1; min-width:0; padding:4px 0; border:0; color:var(--town-ink); background:none; font:inherit; font-size:.81rem; text-align:left; cursor:pointer; overflow-wrap:anywhere; }
.town-notices button::before { content:""; display:inline-block; width:5px; height:5px; margin:0 6px 2px 1px; border-radius:50%; background:#1a66e1; }
.town-notices time { white-space:nowrap; color:var(--town-muted); font-size:.73rem; }
.town-empty { display:grid; place-items:center; min-height:80px; margin:0; padding:12px; text-align:center; border-radius:9px; background:#f8f9fb; color:var(--town-muted); font-size:.81rem; }
.town-tasks .town-empty { min-height:140px; }
.town-status { padding:10px 14px; border-radius:10px; background:#fff4cb; color:#63450b; font-size:.84rem; margin:10px 0; }
.town-dialog { position:fixed; inset:0; margin:auto; box-sizing:border-box; width:min(640px,calc(100% - 24px)); max-height:calc(100dvh - 32px); overflow:auto; padding:20px; border:1px solid var(--town-line); border-radius:16px; color:var(--town-ink); box-shadow:0 20px 70px #120e1040; }
.town-dialog::backdrop { background:#25273380; }
.town-dialog header { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:12px; }
.town-dialog header h2 { margin:0; }
.town-close { width:38px; height:38px; border:0; border-radius:50%; font-size:1.35rem; background:#f5f6f8; color:var(--town-ink); }
.town-record { display:flex; gap:12px; align-items:center; justify-content:space-between; border-bottom:1px solid var(--town-line); padding:10px 0; font-size:.86rem; }
.town-record > div { min-width:0; overflow-wrap:anywhere; }
.town-record small { display:block; margin-top:3px; color:var(--town-muted); }
.town-admin-form { display:flex; flex-wrap:wrap; align-items:end; gap:8px 12px; padding:10px 0; border-bottom:1px solid var(--town-line); }
.town-admin-form strong, .town-admin-form .town-field-full { flex-basis:100%; }
.town-admin-form label { display:grid; gap:4px; min-width:0; font-size:.8rem; }
.town-admin-form input:not([type="checkbox"]), .town-admin-form textarea { max-width:100%; padding:7px; border:1px solid #d4d6dd; border-radius:6px; font:inherit; background:white; color:var(--town-ink); }
.town-admin-form input[type="number"] { width:92px; }
.town-admin-tabs { display:flex; flex-wrap:wrap; gap:6px; margin-bottom:12px; }
.town-admin-tabs button[aria-pressed="true"] { background:#ffe574; }
.town-detail { font-size:.88rem; line-height:1.65; white-space:pre-wrap; overflow-wrap:anywhere; }
.town-file-list { padding-left:1.25em; line-height:1.7; overflow-wrap:anywhere; }
.town-file-list a { color:#164fdf; text-decoration:underline; }
.town-dialog .town-task-list { max-height:54dvh; overflow:auto; }
.town-dialog--task[open] {
    display:flex; flex-direction:column; width:min(560px,calc(100% - 24px));
    max-height:calc(100dvh - 28px); padding:0; overflow:hidden; border-radius:24px;
    background:#fff; box-shadow:0 18px 60px #20232a26;
}
.town-dialog--task::backdrop { background:#25273330; }
.town-dialog--task header {
    align-items:flex-start; flex:none; margin:0; padding:clamp(16px,4vw,28px);
    background:linear-gradient(168deg,#fff7d8,white 88%);
}
.town-dialog--task header > div { min-width:0; }
.town-dialog--task header h2 { margin-top:8px; font-size:clamp(1.2rem,4.2vw,1.65rem); overflow-wrap:anywhere; }
.town-dialog--task header h2:focus { outline:none; }
#town-task-dialog-label { display:inline-flex; align-items:center; gap:6px; margin:0; padding:4px 10px; border-radius:999px; background:#ffea92; color:#584103; font-size:.75rem; font-weight:800; }
#town-task-dialog-label svg { width:16px; height:16px; }
.town-dialog--task .town-close { border:1px solid #ede7d5; background:#fff; }
.town-dialog--task #town-dialog-body { min-height:0; padding:0 clamp(16px,4vw,28px) 18px; overflow:auto; overscroll-behavior:contain; }
.town-dialog--task #town-dialog-status { margin:0 clamp(16px,4vw,28px) 8px; }
.town-task-meta { margin:0 0 12px; color:var(--town-muted); font-size:.78rem; overflow-wrap:anywhere; }
.town-task-facts { margin:0 0 18px; }
.town-task-facts > div { padding:10px 12px; border-radius:12px; background:#f6f7f9; }
.town-task-facts dt { color:var(--town-muted); font-size:.74rem; }
.town-task-facts dd { margin:4px 0 0; font-size:.87rem; font-weight:750; }
.town-dialog--task h3 { margin:16px 0 5px; font-size:.9rem; }
.town-dialog--task .town-detail, .town-dialog--task .town-file-list { margin:0; }
.town-task-feedback { display:grid; gap:6px; margin-top:16px; font-size:.88rem; font-weight:750; }
.town-task-feedback textarea {
    box-sizing:border-box; width:100%; min-width:0; padding:9px 11px; resize:vertical;
    border:1px solid #b7bbc3; border-radius:12px; background:#f6f7f9;
    color:var(--town-ink); font:inherit; font-weight:400; line-height:1.5;
}
.town-task-feedback textarea::placeholder { color:var(--town-muted); }
.town-task-feedback textarea:focus-visible { outline:2px solid #99700d; outline-offset:1px; background:#fff; }
.town-dialog--task .town-file-with-preview { list-style:none; margin:4px 0 8px -1.25em; }
.town-file-with-preview > a { display:inline-flex; align-items:center; gap:10px; max-width:100%; }
.town-file-with-preview > a > span { min-width:0; }
.town-file-thumbnail {
    display:block; flex:none; box-sizing:border-box; object-fit:contain;
    border:1px solid var(--town-line); border-radius:8px; background:#f6f7f9;
}
.town-dialog--task .town-file-sheet {
    list-style:none; margin:6px 0 10px -1.25em; padding:12px;
    border:1px solid var(--town-line); border-radius:14px; background:#f8f9fa;
}
.town-sheet-name { display:flex; align-items:center; gap:8px; margin-bottom:8px; font-size:.8rem; }
.town-sheet-name strong { min-width:0; }
.town-sheet-icon {
    flex:none; padding:3px 6px; border-radius:5px; background:#e0f2e7;
    color:#235f42; font-size:.64rem; font-weight:800;
}
.town-sheet-grid { overflow:hidden; border:1px solid var(--town-line); border-radius:8px; background:#fff; }
.town-sheet-grid > p { margin:0; padding:12px; }
.town-sheet-grid table { width:100%; border-collapse:collapse; table-layout:fixed; font-size:.72rem; line-height:1.4; }
.town-sheet-grid caption { padding:4px 7px; overflow:hidden; color:var(--town-muted); text-align:left; text-overflow:ellipsis; white-space:nowrap; }
.town-sheet-grid :is(th,td) {
    height:21px; padding:2px 4px; overflow:hidden; border-top:1px solid var(--town-line);
    border-right:1px solid var(--town-line); text-overflow:ellipsis; white-space:nowrap;
}
.town-sheet-grid :is(th,td):last-child { border-right:0; }
.town-sheet-grid th { background:#f0f2f4; color:#4f5660; font-weight:650; text-align:center; }
.town-sheet-grid thead th:first-child { width:1.9rem; }
.town-sheet-footer { display:flex; justify-content:flex-end; margin-top:8px; }
.town-file-list .town-sheet-download { color:#292716; text-decoration:none; }
.town-review-actions { display:grid; gap:8px; margin:0; padding-left:24px; }
.town-review-actions > li { padding:10px 12px; border:1px solid var(--town-line); border-radius:12px; overflow-wrap:anywhere; }
.town-review-actions > li:first-child { background:#fff9e7; border-color:#ecd990; }
.town-review-action-meta { display:flex; flex-wrap:wrap; align-items:center; gap:6px; margin-bottom:6px; font-size:.75rem; }
.town-review-action-meta strong { color:#62470a; }
.town-review-action-meta span { padding:2px 8px; border-radius:999px; background:#f2f0eb; color:#504736; }
.town-review-actions dl { display:grid; grid-template-columns:auto minmax(0,1fr); gap:4px 8px; margin:8px 0 0; font-size:.78rem; line-height:1.55; }
.town-review-actions dt { color:var(--town-muted); }
.town-review-actions dd { margin:0; }
.town-task-dialog-actions {
    display:flex; gap:10px; flex:none; padding:14px clamp(16px,4vw,28px);
    border-top:1px solid var(--town-line);
}
.town-task-dialog-actions .town-button { flex:1; min-height:44px; font-size:.9rem; }
.town-completion-slider {
    --town-slide-handle-width:clamp(44px,10vw,62px);
    position:relative; display:grid; flex:1; align-items:center; min-width:0; min-height:50px;
    box-sizing:border-box; padding:4px 10px 4px calc(var(--town-slide-handle-width) + 8px); overflow:hidden;
    border-radius:999px; background:#e4e7ed; color:#303641; user-select:none;
}
.town-completion-slider::before {
    content:""; position:absolute; inset:0; background:#ffec87; pointer-events:none;
    transform:scaleX(var(--town-slide-progress,0)); transform-origin:left;
    transition:transform .18s ease-out;
}
.town-slide-hint {
    position:relative; display:grid; grid-template-columns:auto minmax(0,1fr); align-items:center;
    gap:5px; text-align:center; pointer-events:none;
    opacity:calc(1 - var(--town-slide-progress,0));
    transition:opacity .18s ease-out;
}
.town-slide-chevron { color:#535e70; font-size:1.2rem; line-height:1; }
.town-slide-label { font-size:.87rem; font-weight:650; line-height:1.25; }
.town-slide-thumb {
    position:absolute; inset:0 auto 0 0; display:grid; place-items:center;
    width:var(--town-slide-handle-width); padding:0; border:0;
    border-radius:999px; background:var(--town-yellow);
    color:#332706;
    cursor:grab; touch-action:none;
    transform:translateX(var(--town-slide-offset,0px)); transition:transform .18s ease-out;
}
.town-slide-thumb svg {
    width:23px; height:23px; fill:none; stroke:currentColor; stroke-width:1.8;
    stroke-linecap:round; stroke-linejoin:round; pointer-events:none;
}
.town-completion-slider .town-slide-thumb:focus-visible { outline:2px solid currentColor; outline-offset:-4px; }
.town-completion-slider .town-slide-thumb:disabled { cursor:wait; }
.town-completion-slider.is-dragging .town-slide-thumb { cursor:grabbing; }
.town-completion-slider.is-dragging::before,
.town-completion-slider.is-dragging .town-slide-hint,
.town-completion-slider.is-dragging .town-slide-thumb { transition:none; }
@media (prefers-reduced-motion:reduce) {
    .town-completion-slider::before, .town-slide-hint, .town-slide-thumb { transition:none; }
}
@media (max-width:410px) {
    .town-completion-slider { min-height:44px; padding-right:7px; }
    .town-slide-label { font-size:.79rem; }
}
.town-notice-detail, .town-review { padding:10px 0; border-bottom:1px solid var(--town-line); }
.town-review .town-admin-form { border:0; }
.town-page :focus-visible { outline:2px solid #215ae4; outline-offset:3px; }
@media (max-width:1180px) {
    .town-task-row { grid-template-columns:minmax(0,1fr) auto; }
    .town-task-row time { grid-column:1; grid-row:2; }
    .town-task-action { grid-column:2; grid-row:1/3; }
}
@media (max-width:820px) {
    .town-wrap { padding-top:10px; }
    .town-dashboard { grid-template-columns:minmax(0,1fr); gap:10px; }
    .town-dashboard-left,.town-dashboard-right { display:contents; }
    .town-welcome { grid-row:1; }
    .town-tasks { grid-row:2; }
    #my-mail { grid-row:3; }
    .town-dashboard:has(#my-mail:not([hidden])) .town-resources { grid-row:4; }
}
@media (max-width:410px) {
    .town-header { flex-wrap:wrap; }
    .town-welcome { padding:14px; min-height:148px; }
    .town-welcome-copy { max-width:49%; }
    .town-task-row { gap:6px; }
}
