.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}body.overlay-open{overflow:hidden}.sheet-grip{display:none}.field-error{color:var(--danger);font-size:12px;line-height:1.65;margin:6px 0 0}.field [aria-invalid="true"]{border-color:#c78170;background:#fffaf7}.field [aria-invalid="true"]:focus{box-shadow:0 0 0 3px #f8ede8}.row-desktop{display:flex;gap:7px;align-items:center}.row-mobile{display:none}.pending-action{font-size:12px;color:#a87d44}.profile-trigger{display:grid;place-items:center;border-radius:50%;padding:0}.help-trigger{color:var(--muted);padding:5px;display:grid;place-items:center}.help-trigger svg{width:18px;height:18px}
.sheet-grip:focus-visible{outline:none}.sheet-grip:focus-visible>span{box-shadow:0 0 0 4px var(--brand-soft)}
#action-sheet{position:fixed;inset:auto 0 20px;margin:0 auto;padding:0;width:min(440px,calc(100vw - 32px));border:0;border-radius:15px;background:var(--line);box-shadow:0 20px 70px #10182833;max-height:85dvh;overflow:auto}#action-sheet::backdrop{background:#1018284d}.action-sheet-title{text-align:center;font-size:12px;color:var(--muted);padding:17px 20px;background:#fff}.action-sheet-items{background:#fff}.action-option{display:block;width:100%;padding:15px 24px;text-align:center;font-size:14px;border-top:1px solid var(--line);background:white;min-height:50px}.action-option:hover{background:var(--surface-subtle)}.action-option.danger{color:#b95140}.action-option small{display:block;font-size:12px;color:var(--muted);margin-top:3px}.action-sheet-cancel{display:block;width:100%;margin-top:8px;padding:16px;background:#fff;color:var(--green);font-weight:550;min-height:53px}
#confirmation{padding:29px;width:min(440px,calc(100vw - 36px));border-radius:8px;max-height:90dvh;overflow:auto}#confirmation::backdrop{background:#10182880}.confirmation-symbol{width:39px;height:39px;display:grid;place-items:center;background:#f4ecdb;color:#ac8747;font-size:21px;border-radius:8px;margin-bottom:16px}.confirmation-symbol.danger{background:#f8eae4;color:#b75a43}#confirmation h2{font-size:19px}#confirmation-description{font-size:12px;color:var(--muted);margin-top:11px;line-height:1.9}.confirmation-details{margin:18px 0 12px;padding:11px 15px;background:var(--surface-subtle);border-radius:9px;font-size:12px}.confirmation-details>div{display:flex;justify-content:space-between;gap:20px;margin:8px 0}.confirmation-details dt{color:var(--muted)}.confirmation-details dd{margin:0;text-align:right;overflow-wrap:anywhere;font-weight:500}.confirmation-tip{color:var(--muted);font-size:12px;line-height:1.8;margin:12px 0 23px}.confirmation-actions{display:flex;gap:10px;justify-content:flex-end}.btn.danger-fill{background:#b55b47;border-color:#b55b47;color:#fff}.btn.danger-fill:hover{background:#9c4e3c}
#snackbar{display:none;position:fixed;bottom:24px;left:50%;transform:translateX(-50%);z-index:90;align-items:center;gap:24px;padding:14px 19px;border-radius:11px;background:var(--ink);color:#fff;box-shadow:0 8px 30px #10182829;width:max-content;max-width:calc(100vw - 32px)}#snackbar.visible{display:flex}#snackbar strong{display:block;font-size:12px;font-weight:500}#snackbar small{display:block;font-size:12px;color:#cbd5e1;margin-top:3px}.snackbar-undo{color:var(--line);font-weight:600;font-size:12px;padding:10px 5px;white-space:nowrap}.snackbar-undo:disabled{color:var(--muted);cursor:wait}
/* Shared feedback surfaces. Semantic tone comes from the confirmed operation. */
#page-notice,#toast{--feedback-accent:#3e6c8b;--feedback-icon-bg:#eaf2f8;--feedback-border:#dce6ed;--feedback-surface:#fbfdff;position:fixed;top:98px;right:24px;left:auto;bottom:auto;inset-inline-start:auto;inset-inline-end:24px;z-index:120;display:none;align-items:flex-start;gap:11px;width:max-content;min-width:220px;max-width:min(416px,calc(100vw - 48px));margin:0;padding:14px 14px 14px 16px;border:1px solid var(--feedback-border);border-radius:8px;background:var(--feedback-surface);color:var(--ink);box-shadow:0 8px 28px #10182812,0 2px 6px #10182806;font-size:14px;line-height:1.5;text-align:left;white-space:normal;opacity:0;transform:none;pointer-events:none;box-sizing:border-box;transition:none}
#toast{top:calc(98px + var(--feedback-notice-offset,0px))}
#page-notice.visible,#toast.show{display:flex;opacity:1;transform:none;pointer-events:auto;animation:feedback-arrive .18s cubic-bezier(.2,.75,.25,1)}
#page-notice[data-tone="success"],#toast[data-tone="success"]{--feedback-accent:#277550;--feedback-icon-bg:#e4f2e9;--feedback-border:#d4e6d9;--feedback-surface:#f9fcfa}
#page-notice[data-tone="error"],#toast[data-tone="error"]{--feedback-accent:#b3433d;--feedback-icon-bg:#fbe9e7;--feedback-border:#efd9d6;--feedback-surface:#fffafa}
#page-notice[data-tone="warning"],#toast[data-tone="warning"]{--feedback-accent:#93641e;--feedback-icon-bg:#fbefd8;--feedback-border:#eaddc4;--feedback-surface:#fffdf8}
#page-notice .feedback-icon,#toast .feedback-icon{display:grid;place-items:center;width:28px;height:28px;flex:0 0 28px;border-radius:50%;background:var(--feedback-icon-bg);color:var(--feedback-accent)}
#page-notice .feedback-icon svg,#toast .feedback-icon svg{display:block;width:18px;height:18px;stroke-width:1.9}
#page-notice .feedback-copy,#toast .feedback-copy{flex:1 1 auto;min-width:0;max-height:max(48px,min(240px,calc(100dvh - 240px)));padding-top:3px;overflow:auto;overscroll-behavior:contain;overflow-wrap:anywhere}
#page-notice .feedback-message,#toast .feedback-message{display:block;margin:0;font-size:14px;font-weight:550;line-height:1.5;color:var(--ink)}
#page-notice .feedback-detail,#toast .feedback-detail{display:block;margin-top:4px;font-size:12px;font-weight:400;line-height:1.6;color:var(--muted)}
#page-notice .feedback-close,#toast .feedback-close{display:grid;place-items:center;width:28px;height:28px;flex:0 0 28px;margin:0 -4px 0 1px;padding:0;border:0;border-radius:7px;background:transparent;color:var(--muted);cursor:pointer}
#page-notice .feedback-close svg,#toast .feedback-close svg{width:15px;height:15px}
#page-notice .feedback-close:hover,#toast .feedback-close:hover{background:#10182810;color:var(--ink)}
#page-notice .feedback-close:focus-visible,#toast .feedback-close:focus-visible{outline:2px solid var(--feedback-accent);outline-offset:2px}
@keyframes feedback-arrive{from{opacity:0;transform:translateY(-6px)}to{opacity:1;transform:translateY(0)}}

.attachment-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:14px 0}.attachment-tile{border:1px solid var(--line);border-radius:9px;padding:8px;background:var(--surface-subtle);min-width:0}.attachment-thumbnail{display:block;padding:0;text-align:left;width:100%}.attachment-thumbnail img{display:block;width:100%;height:85px;object-fit:cover;border-radius:5px;background:var(--line)}.attachment-thumbnail span{display:block;font-size:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;margin-top:7px}.attachment-tile>a{font-size:12px;color:var(--muted);display:block;margin-top:5px}
#lightbox{position:fixed;inset:0;margin:0;border:0;border-radius:0;padding:0;width:100vw;max-width:none;height:100dvh;max-height:none;background:var(--ink);color:white}#lightbox::backdrop{background:var(--ink)}.lightbox-toolbar{height:68px;display:flex;justify-content:space-between;align-items:center;gap:20px;padding:0 24px;border-bottom:1px solid #ffffff12}.lightbox-toolbar h2{font-size:12px;font-weight:400;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.lightbox-toolbar>div{display:flex;gap:7px;align-items:center;flex-shrink:0}.lightbox-toolbar button{padding:8px 11px;color:var(--line);border-radius:6px;font-size:16px;min-width:35px}.lightbox-toolbar button:hover{background:#ffffff12}.lightbox-toolbar button[data-zoom="reset"]{font-size:12px}.lightbox-viewport{height:calc(100dvh - 110px);overflow:auto;overscroll-behavior:contain}.lightbox-surface{display:grid;place-items:center}.lightbox-surface img{max-width:none;max-height:none;display:block;border-radius:3px}.lightbox-help{font-size:12px;color:#cbd5e1;text-align:center;padding:11px}
#tour{position:fixed;inset:0;margin:0;padding:0;width:100vw;max-width:none;height:100dvh;max-height:none;border:0;border-radius:0;background:transparent;overflow:hidden}#tour::backdrop{background:transparent}.tour-spotlight{position:fixed;border-radius:9px;box-shadow:0 0 0 9999px #1018288c;border:2px solid var(--line);pointer-events:none}.tour-card{position:fixed;background:#fff;border-radius:8px;padding:23px;box-shadow:0 15px 60px #10182833}.tour-count{font-size:12px;color:var(--muted);letter-spacing:1px}.tour-card h2{font-size:18px;margin:8px 0 11px}.tour-card>p{font-size:12px;line-height:1.9;color:var(--muted)}.tour-actions{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:23px}.tour-actions>span{display:flex;gap:7px}.tour-actions .btn.ghost{font-size:12px}
@media(max-width:800px){dialog.bottom-sheet{position:fixed;inset:auto 0 0;margin:0;width:100%;max-width:100%;height:calc(var(--sheet-snap,.8)*100vh);height:calc(var(--sheet-snap,.8)*100dvh);max-height:86vh;max-height:86dvh;border-radius:20px 20px 0 0;border:0;display:none;overflow:hidden;padding:0;transition:height .22s cubic-bezier(.2,.75,.25,1)}dialog.bottom-sheet[open]{display:flex;flex-direction:column}.bottom-sheet.is-dragging{transition:none}.sheet-grip{display:flex;width:100%;height:29px;min-height:29px;align-items:center;justify-content:center;touch-action:none;cursor:ns-resize;padding:0;border:0;background:transparent}.sheet-grip>span{width:38px;height:4px;border-radius:3px;background:var(--line)}.bottom-sheet .modal-head{flex-shrink:0;padding:5px 20px 15px}.bottom-sheet #modal-form{display:flex;flex-direction:column;min-height:0;flex:1 1 auto}.bottom-sheet>.form-body,.bottom-sheet #modal-form>.form-body{overflow:auto;min-height:0;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;flex:1 1 auto;padding-bottom:24px}.bottom-sheet .modal-footer{flex-shrink:0;padding-bottom:max(15px,env(safe-area-inset-bottom))}.bottom-sheet .modal-footer .btn{min-height:42px}.bottom-sheet .field input,.bottom-sheet .field select,.bottom-sheet .field textarea{font-size:16px}.row-desktop{display:none}.row-mobile{display:inline-flex}.table .action-cell{min-height:38px}.action-cell{flex-wrap:wrap}#action-sheet{bottom:0;width:100%;max-width:none;border-radius:18px 18px 0 0;padding-bottom:env(safe-area-inset-bottom);background:#fff}.action-sheet-cancel{border-top:8px solid var(--line);margin-top:0;padding-top:18px;min-height:61px}.action-option{min-height:54px}.action-sheet-title{font-size:12px}#snackbar{bottom:calc(78px + env(safe-area-inset-bottom));gap:15px;padding:13px 16px;width:calc(100vw - 28px);max-width:430px}#snackbar small{font-size:12px}.help-trigger svg{width:16px;height:16px}.topbar-right{gap:5px}.profile-trigger .avatar{width:27px;height:27px}.role-switch{max-width:105px}.lightbox-toolbar{height:62px;padding:0 13px;gap:8px}.lightbox-toolbar button{padding:7px;min-width:30px}.lightbox-toolbar>div{gap:3px}.lightbox-toolbar h2{max-width:130px}.lightbox-viewport{height:calc(100dvh - 110px)}.confirmation-actions .btn{min-height:43px;flex:1}#confirmation{padding:25px}.confirmation-actions{gap:9px}.tour-card{padding:21px}.attachment-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(prefers-reduced-motion:reduce){dialog.bottom-sheet{transition:none}}

@media(max-width:800px){
 #page-notice,#toast{top:calc(80px + env(safe-area-inset-top,0px));right:16px;left:16px;inset-inline-start:16px;inset-inline-end:16px;min-width:0;width:calc(100vw - 32px);max-width:416px;margin-inline:auto;gap:10px;padding:11px 11px 11px 13px;border-radius:8px}
 #toast{top:calc(80px + env(safe-area-inset-top,0px) + var(--feedback-notice-offset,0px))}
 #page-notice .feedback-icon,#toast .feedback-icon{margin-top:5px}
 #page-notice .feedback-copy,#toast .feedback-copy{padding-top:8px;max-height:max(48px,min(240px,calc(100dvh - 240px)))}
 #page-notice .feedback-message,#toast .feedback-message{font-size:14px;line-height:1.5}
 #page-notice .feedback-close,#toast .feedback-close{width:44px;height:44px;flex-basis:44px;margin:-1px -7px -1px -2px;border-radius:9px}
 #page-notice .feedback-close svg,#toast .feedback-close svg{width:16px;height:16px}
}
@media(prefers-reduced-motion:reduce){#page-notice.visible,#toast.show{animation:none;transition:none}}
/* Contextual explanations stay out of the page flow until requested. */
.zx-help{display:inline-flex;vertical-align:middle;align-items:center;flex:none;margin-left:5px;font-size:14px;line-height:1}
.zx-help-trigger{display:inline-flex;align-items:center;justify-content:center;width:28px;height:28px;padding:5px;cursor:pointer;border-radius:5px;color:var(--muted,#667085);background:transparent;vertical-align:middle;box-sizing:border-box;touch-action:manipulation}
.zx-help-trigger svg{display:block;width:17px;height:17px;flex:none}
.zx-help-trigger:hover,.zx-help-trigger[aria-expanded=true]{color:var(--brand,#1664d3);background:var(--brand-soft,#eaf2ff)}
.zx-help-trigger:focus-visible,.zx-help-close:focus-visible{outline:2px solid var(--brand,#1664d3);outline-offset:2px}
.zx-help-popover{position:fixed;inset:auto;margin:0;z-index:1100;width:340px;padding:12px 14px;border:1px solid var(--line,#dfe4ec);border-radius:8px;background:#fff;color:var(--ink,#1d2939);box-shadow:0 8px 28px #10182824;overflow:auto;overscroll-behavior:contain;box-sizing:border-box;text-align:left;font-weight:400;letter-spacing:normal}
.zx-help-popover>header{display:flex;gap:10px;align-items:center;justify-content:space-between;margin:0 0 7px}
.zx-help-popover>header>strong{font-size:14px;line-height:1.5;font-weight:600}
.zx-help-popover .zx-help-close{display:inline-flex;align-items:center;justify-content:center;flex:none;border:0;background:transparent;color:var(--muted,#667085);width:28px;height:28px;padding:5px;cursor:pointer;border-radius:4px}
.zx-help-close svg{width:18px;height:18px}
.zx-help-popover>p{margin:0;font-size:13px;line-height:1.75;white-space:pre-wrap;overflow-wrap:anywhere;color:var(--ink,#1d2939)}
.zx-help-field{position:relative;min-width:0}.zx-help-field>.zx-help{position:absolute;right:0;top:-4px}.zx-help-field>.field>span{padding-right:36px}
.zx-help-fallback{display:inline-block;position:relative;vertical-align:middle;margin-left:5px;font-size:13px}.zx-help-fallback>summary{display:inline-flex;cursor:pointer;list-style:none;min-width:28px;min-height:28px;align-items:center;justify-content:center}.zx-help-fallback>summary::-webkit-details-marker{display:none}.zx-help-fallback[open]>span,.zx-help-fallback[open]>p{display:block;max-width:320px;padding:10px;margin:0;border:1px solid var(--line);background:#fff;white-space:pre-wrap;overflow-wrap:anywhere}
@media(max-width:800px){.zx-help{margin-left:2px}.zx-help-trigger{width:36px;height:44px;padding:10px 9px;margin-top:-8px;margin-bottom:-8px}.zx-help-popover{width:340px;padding:12px 14px}.zx-help-popover .zx-help-close{width:44px;height:44px;margin:-6px -6px -4px 0;padding:12px}.zx-help-field>.zx-help{top:-8px}.zx-help-field>.field>span{padding-right:44px}.zx-help-fallback>summary{min-width:44px;min-height:44px}}
