/* Shared visual language for the workbench, mobile registration and public board. */
html:root {
  --primary: #3564d9; --primary-light: #eaf0ff; --p: #3564d9;
  --text: #23324b; --text-secondary: #66758c; --txt: #23324b; --hint: #748199;
  --glass-bg: rgba(255,255,255,.88); --glass-border: rgba(255,255,255,.85);
  --glass-shadow: 0 10px 32px rgba(43,65,104,.07), inset 0 1px rgba(255,255,255,.9);
  --bg: #f3f6fc; --card: #fff; --bdr: #e2e8f2;
  background: radial-gradient(ellipse at 12% 0%, #e5eaff 0, transparent 48%), radial-gradient(ellipse at 100% 32%, #e0f1f3 0, transparent 42%), #f3f6fc;
  background-attachment: scroll;
}
html body { color: #23324b; background: transparent; }
html body::before { display: none; }
html button, html input, html select, html textarea { font-family: inherit; }
html :focus-visible { outline: 3px solid rgba(53,100,217,.42); outline-offset: 3px; }
html [hidden] { display: none !important; }
html .user-bar, html .presidium-header, html .tb, html .tabs {
  background: linear-gradient(140deg,rgba(255,255,255,.72),rgba(235,245,255,.42) 60%,rgba(255,255,255,.68));
  border: 1px solid rgba(255,255,255,.9);
  box-shadow: 0 8px 24px rgba(34,57,99,.09), inset 0 2px 2px rgba(255,255,255,.95), inset 0 -1px 1px rgba(94,126,178,.12);
  -webkit-backdrop-filter: blur(20px) saturate(175%); backdrop-filter: blur(20px) saturate(175%);
}
html .user-bar { border-radius: 0 0 20px 20px; }
html .user-bar-row2 { justify-content: flex-start; gap: 8px; }
html .dept-name-main { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
html .modal-overlay { background: rgba(32,47,76,.26); -webkit-backdrop-filter: none; backdrop-filter: none; }
html .modal-sheet { background: linear-gradient(145deg,rgba(255,255,255,.87),rgba(228,240,255,.72) 60%,rgba(255,255,255,.85)); border: 1px solid rgba(255,255,255,.95); box-shadow: 0 24px 70px rgba(31,48,78,.23), inset 0 2px 3px #fff, inset 0 -1px 2px rgba(99,132,183,.2); -webkit-backdrop-filter: blur(26px) saturate(170%); backdrop-filter: blur(26px) saturate(170%); }
html .dept-personnel-sheet { background: linear-gradient(145deg,rgba(255,255,255,.98),rgba(235,243,255,.96) 60%,rgba(255,255,255,.98)); }
.duty-confirm { display: grid; gap: 14px; }
.duty-confirm label { display: block; margin: 8px 0; font-size: 14px; }
.duty-confirm input:not([type='checkbox']), .duty-confirm textarea { display: block; width: 100%; margin-top: 8px; padding: 12px; border: 1px solid var(--bdr, #d7dfeb); border-radius: 12px; font: inherit; }
.duty-photo-preview { display: block; max-width: 100%; max-height: 240px; border-radius: 14px; justify-self: center; }
.duty-confirm-actions { display: flex; justify-content: flex-end; gap: 10px; }
.qd-exception-button { display: block; margin: 12px auto 0; }
.modal-sheet #qeKind, .modal-sheet #qeNote { display: block; width: 100%; margin: 8px 0 14px; padding: 12px; border: 1px solid var(--bdr,#d7dfeb); border-radius: 12px; font: inherit; }
html .personnel-panel, html .presidium-dept-card { background: #fff; -webkit-backdrop-filter: none; backdrop-filter: none; border: 1px solid #e4eaf3; box-shadow: 0 3px 12px rgba(32,50,80,.035); }
html .task-card { background: #fff; }
html .task-name { font-weight: 650; line-height: 1.5; }
html .task-edit-time, html .task-create-time { color: #8390a5; }
html .home-page { padding: 32px 0; min-height: 100dvh; }
html .home-page { background: radial-gradient(ellipse at 2% 90%,#c7d2f6 0%,transparent 52%),radial-gradient(ellipse at 100% 20%,#cae4ec 0%,transparent 55%),linear-gradient(155deg,#edf2fb,#e6edf8 55%,#dce9f3); }
html .home-content { border-radius: 32px; padding: 34px 28px; background: linear-gradient(145deg,rgba(255,255,255,.84),rgba(248,251,255,.66)); border: 1px solid rgba(255,255,255,.94); box-shadow: 0 24px 80px rgba(49,73,114,.09), inset 0 1px #fff; }
html .home-emblem { margin-bottom: 22px; }
html .home-emblem-img { width: 112px; max-width: 30vw; animation: none; filter: none; box-shadow: 0 10px 24px rgba(31,66,114,.12); border-radius: 22px; }
html .home-titles { margin-bottom: 22px; }
html .home-school { color: #647796; font-size: 13px; letter-spacing: 3px; margin-bottom: 10px; }
html .home-main-title { color: #273853; font-size: clamp(19px,3vw,25px); letter-spacing: .5px; }
html .home-subtitle { color: #42658e; font-weight: 500; font-size: 23px; letter-spacing: 6px; }
html .home-divider { margin-bottom: 12px; }
html .home-nav-grid { width: 100%; max-width: none; gap: 10px; }
html .home-nav-btn { padding: 16px 12px; gap: 7px; background: rgba(255,255,255,.9); border: 1px solid #e1e8f3; box-shadow: 0 3px 10px rgba(43,65,104,.025); transition: border-color .16s, background-color .16s; }
html .home-nav-btn:hover, html .home-nav-btn:active { transform: none; border-color: #adc0ec; box-shadow: 0 4px 14px rgba(43,65,104,.06); }
html .home-nav-btn.primary { background: linear-gradient(140deg,#edf2ff,#f2f8ff); border-color: #c3d1f5; }
html .home-nav-icon { width: 34px; height: 34px; display: grid; place-items: center; color: #4e72c1; font-size: 23px; }
html .home-nav-icon img { width: 31px; height: 31px; }
html .home-nav-label { color: #344966; font-size: 14px; letter-spacing: .5px; }
html .home-nav-hint { color: #7888a0; font-size: 11px; }
html .home-install { padding: 9px 18px; border-radius: 12px; border: 1px solid #d8e3ef; background: #f6f9ff; color: #466488; font: inherit; font-size: 12px; font-weight: 600; cursor: pointer; }
html .home-icp { margin-top: 18px; }
html .home-icp a { color: #8b97aa; font-size: 10px; }
.display-settings-button, .site-navigation button { background: transparent; border: 0; border-radius: 8px; color: #647796; font: inherit; font-size: 12px; cursor: pointer; padding: 8px 10px; }
.site-navigation { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 4px; font-size: 12px; }
.site-navigation a { color: #647796; text-decoration: none; padding: 8px 0; }
.brand-home { display: grid; place-items: center; border: 0; background: transparent; border-radius: 8px; padding: 0; width: 30px; height: 30px; cursor: pointer; }
html .hd { padding: 14px 0 18px; }
html .hd img { width: 72px; height: 72px; border-radius: 18px; margin-bottom: 10px; }
html .hd h1 { font-size: 19px; color: #2d405c; }
html .hd p { color: #7a8ba1; font-size: 12px; }
html .tb { padding: 5px; border-radius: 15px; position: sticky; top: 8px; z-index: 30; }
html .tb button { color: #657794; }
html .tb button.on, html .tabs button.active { background: #3564d9; color: #fff; box-shadow: 0 3px 8px rgba(53,100,217,.14); }
html .card, html .card2 { border: 1px solid #e3eaf3; box-shadow: 0 3px 12px rgba(32,50,80,.035); will-change: auto; transform: none; transition: none; }
html .card:active { transform: none; }
html .tabs { border-radius: 18px; bottom: 8px; max-width: 736px; width: calc(100% - 24px); margin: 0 auto; padding-bottom: calc(8px + env(safe-area-inset-bottom,0px)); }
html .n .v { color: #3564d9; }
.display-overlay { position: fixed; inset: 0; z-index: 10000; display: grid; place-items: center; padding: 20px; background: rgba(32,47,76,.28); }
.display-dialog, html .modal-sheet.duty-review-sheet { background: linear-gradient(135deg,rgba(255,255,255,.98),rgba(244,249,255,.96)); }
.display-dialog { width: min(100%,400px); max-height: calc(100vh - 40px); overflow-y: auto; border: 1px solid #fff; border-radius: 22px; box-shadow: 0 24px 70px rgba(31,48,78,.2); padding: 22px; color: #23324b; font: 14px/1.5 -apple-system,BlinkMacSystemFont,'PingFang SC','Microsoft YaHei',sans-serif; }
.display-dialog-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.display-dialog h2 { font-size: 19px; margin: 0; }
.display-dialog p { font-size: 12px; color: #7a879b; margin-bottom: 20px; }
.display-close { background: transparent; border: 0; color: #7a879b; font-size: 24px; padding: 2px 6px; cursor: pointer; }
.display-option { display: flex; gap: 16px; justify-content: space-between; align-items: center; padding: 14px 0; border-top: 1px solid #e6edf6; cursor: pointer; }
.display-option b { display: block; font-size: 14px; }
.display-option small { display: block; font-size: 12px; margin-top: 4px; color: #77859a; }
.display-option input { width: 18px; height: 18px; flex: 0 0 auto; accent-color: #3564d9; }
.display-done { width: 100%; margin-top: 18px; padding: 11px; border: 0; border-radius: 12px; background: #3564d9; color: #fff; font: inherit; font-weight: 650; cursor: pointer; }
.display-fullscreen-area { margin-top: 12px; padding-top: 16px; border-top: 1px solid #dce5f2; }
.display-fullscreen { width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid #b8cae8; border-radius: 12px; background: #edf3ff; color: #2c539c; font: inherit; font-weight: 650; cursor: pointer; }
.display-fullscreen:disabled { opacity: .65; cursor: wait; }
.display-dialog .display-fullscreen-status { margin: 8px 0 0; color: #586c89; font-size: 12px; line-height: 1.6; }
.duty-receipt { max-height: min(calc(100vh - 40px), calc(100dvh - 40px)); overscroll-behavior: contain; }
.duty-receipt .display-close { min-width: 36px; min-height: 36px; }
.duty-receipt-status { display: inline-block; border-radius: 999px; padding: 3px 10px; background: #fff0d5; color: #8b5013; font-weight: 650; font-size: 12px; }
.duty-receipt-details { margin: 14px 0; padding: 5px 12px; border: 1px solid #e2eaf5; border-radius: 14px; background: rgba(255,255,255,.7); }
.duty-receipt-details > div { display: grid; grid-template-columns: 4.2em minmax(0,1fr); gap: 8px; padding: 7px 0; }
.duty-receipt-details > div + div { border-top: 1px solid #e8eef6; }
.duty-receipt-details dt { color: #63748c; }
.duty-receipt-details dd { margin: 0; overflow-wrap: anywhere; font-weight: 600; }
.display-dialog .duty-receipt-tip { margin: 0; padding: 10px 12px; border-radius: 12px; background: #edf3ff; color: #496184; }
.duty-receipt-tip strong, .duty-receipt-tip span { display: block; }
.duty-receipt-tip span { margin-top: 3px; }
html .operation-auth-overlay { position: fixed; inset: 0; z-index: 1900; display: grid; place-items: center; padding: 18px; background: rgba(29,44,72,.28); }
html .operation-auth-sheet { width: 100%; max-width: 365px; max-height: 90dvh; overflow-y: auto; padding: 20px; border-radius: 20px; background: #fff; color: #263652; box-shadow: 0 12px 40px rgba(27,53,92,.22); }
.operation-auth-sheet h2 { font-size: 17px; margin: 0 0 14px; }
.operation-auth-sheet label { display: grid; gap: 7px; font-size: 13px; font-weight: 650; }
.operation-auth-sheet input { width: 100%; min-height: 44px; padding: 8px 12px; border: 1px solid #bac9e1; border-radius: 10px; font: inherit; font-size: 16px; background: #f7faff; color: inherit; }
.operation-auth-sheet [role=alert]:not([hidden]) { margin: 8px 0 0; color: #a62926; font-size: 13px; }
.operation-auth-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 16px; }
.operation-auth-actions button { min-height: 44px; padding: 0 13px; border: 1px solid #d5dfef; border-radius: 10px; background: #f1f5fc; color: #344867; font: inherit; font-weight: 650; cursor: pointer; }
.operation-auth-actions button[type=submit] { background: #305dcc; border-color: #305dcc; color: #fff; }
.operation-auth-actions button:disabled { opacity: .55; cursor: wait; }
html[data-surface='solid'] { --glass-bg: #fff; --glass-border: #dbe3ef; }
html[data-surface='solid'] .user-bar, html[data-surface='solid'] .type-bar, html[data-surface='solid'] .presidium-header, html[data-surface='solid'] .tb, html[data-surface='solid'] .tabs, html[data-surface='solid'] .modal-sheet, html[data-surface='solid'] .home-content, html[data-surface='solid'] .home-nav-btn, html[data-surface='solid'] .workspace-navigation, html[data-surface='solid'] .display-dialog { background: #fff; -webkit-backdrop-filter: none; backdrop-filter: none; border-color: #dbe3ef; }
html[data-reduced-motion='true'], html[data-reduced-motion='true'] *, html[data-reduced-motion='true'] *::before, html[data-reduced-motion='true'] *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
@media (prefers-reduced-motion: reduce) { html, html *, html *::before, html *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) { html .user-bar, html .presidium-header, html .tb, html .tabs, html .modal-sheet { background: #fff; } }
@media (max-width: 600px) { html .user-bar, html .presidium-header { -webkit-backdrop-filter: blur(18px) saturate(175%); backdrop-filter: blur(18px) saturate(175%); } html .home-content { width: calc(100vw - 32px); padding: 26px 20px; border-radius: 26px; } html .home-page { padding: 16px 0; } }
