/* Adapter-only styles. The page's primary CSS remains the supplied prototype. */
body.prototype-shell.login-active,
body.prototype-shell.modal-open { overflow: hidden; }
body.prototype-shell .app-shell.auth-locked { display: none !important; }
#loginPage.stage { display: flex; height: 100vh; min-height: 680px; color: var(--ink2); background: var(--paper); }
#loginPage .brand { flex: 1.3; position: relative; align-items: stretch; overflow: hidden; display: flex; flex-direction: column; padding: 56px 72px; color: #fff; background: radial-gradient(ellipse 1200px 800px at 5% 8%, rgba(45,138,114,.45) 0%, transparent 50%), radial-gradient(ellipse 900px 700px at 95% 95%, rgba(184,148,100,.28) 0%, transparent 55%), radial-gradient(circle 600px at 72% 42%, rgba(13,78,61,.55) 0%, transparent 60%), linear-gradient(135deg, #07311f 0%, #0d3a2e 45%, #1a6853 100%); }
#loginPage .brand::before { content: ""; position: absolute; inset: 0; pointer-events: none; background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px); background-size: 56px 56px; }
#loginPage .deco-rings { position: absolute; right: -260px; bottom: -340px; width: 720px; height: 720px; pointer-events: none; }
#loginPage .ring { position: absolute; inset: 0; border: 1.5px solid rgba(212,178,119,.45); border-radius: 50%; }
#loginPage .ring-2 { inset: 80px; border-color: rgba(212,178,119,.32); }
#loginPage .ring-3 { inset: 160px; border-color: rgba(212,178,119,.22); }
#loginPage .deco-band { position: absolute; left: -25%; bottom: -25%; width: 85%; height: 60%; transform: rotate(-15deg); background: linear-gradient(45deg, transparent, rgba(45,138,114,.18), transparent); pointer-events: none; }
#loginPage .dot { position: absolute; z-index: 1; width: 6px; height: 6px; border-radius: 50%; background: var(--gold2); opacity: .7; pointer-events: none; }
#loginPage .d1 { top: 8%; left: 15%; } #loginPage .d2 { top: 14%; right: 10%; width: 11px; height: 11px; } #loginPage .d3 { top: 22%; left: 6%; width: 4px; height: 4px; } #loginPage .d4 { top: 30%; right: 22%; } #loginPage .d5 { top: 38%; left: 28%; width: 9px; height: 9px; } #loginPage .d6 { top: 45%; right: 8%; width: 5px; height: 5px; } #loginPage .d7 { top: 52%; left: 10%; width: 8px; height: 8px; } #loginPage .d8 { top: 58%; right: 30%; width: 4px; height: 4px; } #loginPage .d9 { top: 64%; left: 40%; } #loginPage .d10 { top: 70%; right: 16%; width: 10px; height: 10px; } #loginPage .d11 { top: 76%; left: 5%; width: 5px; height: 5px; } #loginPage .d12 { top: 82%; right: 38%; width: 7px; height: 7px; } #loginPage .d13 { top: 88%; left: 22%; width: 4px; height: 4px; } #loginPage .d14 { top: 18%; left: 50%; width: 5px; height: 5px; } #loginPage .d15 { top: 48%; left: 58%; width: 3px; height: 3px; } #loginPage .d16 { top: 72%; left: 52%; width: 8px; height: 8px; }
#loginPage .top { position: relative; z-index: 2; display: flex; align-items: center; gap: 20px; }
#loginPage .logo { display: grid; width: 54px; height: 54px; place-items: center; border-radius: 14px; color: #0d3a2e; background: linear-gradient(135deg, var(--gold2), var(--gold-soft2)); box-shadow: 0 2px 8px rgba(0,0,0,.2); }
#loginPage .logo svg { width: 28px; height: 28px; }
#loginPage .sys-name { font-size: 26px; font-weight: 600; line-height: 1.2; letter-spacing: 2px; }
#loginPage .sys-name small { display: block; margin-top: 10px; color: rgba(255,255,255,.7); font-size: 14px; font-weight: 400; letter-spacing: 3px; }
#loginPage .brand-content { position: relative; z-index: 2; margin: auto 0; padding: 24px 0; }
#loginPage .badge { display: inline-flex; padding: 9px 20px 9px 14px; margin-bottom: 36px; border: 1px solid rgba(212,178,119,.55); border-radius: 100px; color: var(--gold2); background: rgba(212,178,119,.14); font-size: 13px; letter-spacing: 2px; }
#loginPage .slogan { margin: 0; color: #fff; font-size: 52px; font-weight: 600; line-height: 1.25; letter-spacing: 2px; }
#loginPage .slogan .em { color: var(--gold2); }
#loginPage .flow { position: relative; z-index: 2; display: flex; align-items: center; gap: 8px; padding: 22px 28px; border: 1px solid rgba(255,255,255,.08); border-radius: 14px; background: rgba(255,255,255,.05); }
#loginPage .flow-title { flex: 0 0 auto; padding-right: 22px; border-right: 1px solid rgba(255,255,255,.1); color: rgba(255,255,255,.72); font-size: 14px; letter-spacing: 3px; }
#loginPage .flow-nodes { display: flex; flex: 1; align-items: center; }
#loginPage .flow-node { display: grid; min-width: 44px; gap: 8px; place-items: center; }
#loginPage .flow-dot { width: 11px; height: 11px; border-radius: 50%; background: var(--gold2); }
#loginPage .flow-label { color: rgba(255,255,255,.86); font-size: 13px; letter-spacing: 1px; }
#loginPage .flow-line { flex: 1; min-width: 18px; height: 1px; margin-top: -18px; background: linear-gradient(90deg, var(--gold2), rgba(212,178,119,.3)); }
#loginPage .login-side { position: relative; display: flex; flex: 1; align-items: center; justify-content: center; padding: 40px; background: var(--paper); }
#loginPage .login-card { position: relative; z-index: 1; width: 100%; max-width: 440px; }
#loginPage .login-badge { display: inline-flex; padding: 8px 18px; margin-bottom: 24px; border-radius: 100px; color: var(--green-light2); background: rgba(13,58,46,.06); font-size: 15px; letter-spacing: 2px; }
#loginPage .login-title { margin: 0 0 12px; color: var(--ink2); font-size: 32px; font-weight: 600; letter-spacing: 1px; }
#loginPage .login-sub { margin: 0 0 36px; color: var(--ink-mute2); font-size: 13px; line-height: 1.7; letter-spacing: .5px; white-space: nowrap; }
#loginPage .input-block { margin-bottom: 24px; }
#loginPage .input-label { display: block; margin-bottom: 10px; color: var(--ink-soft2); font-size: 14px; font-weight: 500; letter-spacing: 2px; }
#loginPage .input-wrap { display: flex; align-items: center; padding: 14px 0; border-bottom: 2px solid var(--line2); transition: border-color .2s; }
#loginPage .input-wrap:focus-within { border-bottom-color: var(--green-light2); }
#loginPage .input-wrap svg { width: 22px; height: 22px; flex: 0 0 auto; margin-right: 14px; color: var(--ink-mute2); }
#loginPage .input-wrap input { flex: 1; min-width: 0; padding: 0; border: 0; outline: 0; color: var(--ink2); background: transparent; font: inherit; font-size: 17px; letter-spacing: 1px; }
#loginPage .input-wrap .eye { margin: 0 0 0 12px; cursor: pointer; }
#loginPage .remember-row { display: flex; justify-content: space-between; margin: 10px 0 32px; font-size: 15px; }
#loginPage .remember { display: flex; align-items: center; gap: 8px; color: var(--ink-soft2); cursor: pointer; }
#loginPage .remember input { display: none; }
#loginPage .remember .box { width: 16px; height: 16px; border: 1.5px solid var(--ink-mute2); border-radius: 3px; }
#loginPage .remember input:checked + .box { border-color: var(--green-light2); background: var(--green-light2); }
#loginPage .login-btn { width: 100%; padding: 18px; border: 0; border-radius: 8px; color: #fff; background: linear-gradient(135deg, var(--green-light2), var(--green-base2)); box-shadow: 0 6px 20px rgba(13,58,46,.25); cursor: pointer; font: inherit; font-size: 18px; font-weight: 500; letter-spacing: 10px; transition: transform .2s, box-shadow .2s; }
#loginPage .login-btn:hover { box-shadow: 0 8px 24px rgba(13,58,46,.35); transform: translateY(-1px); }
#loginPage .login-error { min-height: 20px; margin-top: -12px; color: var(--danger2); font-size: 12px; }

#modalMask .modal { width: min(760px, calc(100vw - 32px)); max-width: 760px; overflow: visible; }
#modalMask.open { opacity: 1; visibility: visible; }
#modalMask.open .modal { transform: translateY(0) scale(1); }
#modalMask .modal.modal-no-foot .modal-foot { display: none; }
#modalMask .modal-body { max-height: calc(100vh - 260px); overflow: auto; }
#modalMask .modal-body.multi-menu-open { overflow: visible; }
/* Let open personnel menus escape the scrollable modal body. */
#modalMask .modal-body.user-combo-open { overflow: visible; }
#modalMask .modal.modal-collaboration { width: min(520px, calc(100vw - 32px)); max-width: 520px; }
#modalMask .modal.modal-collaboration .modal-body { overflow: visible; }
#modalMask .modal.modal-admin-select { overflow: visible; }
#modalMask .modal.modal-admin-select .modal-body { overflow: visible; }
#modalMask .form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; }
#modalMask .form-grid .field { display: block; min-width: 0; margin-bottom: 0; }
#modalMask .field.full { grid-column: 1 / -1; }
#modalMask .field label { display: block; margin-bottom: 5px; color: var(--text-soft); font-size: 12px; }
#modalMask .field input, #modalMask .field select, #modalMask .field textarea { width: 100%; border: 1px solid var(--border-mid); border-radius: 4px; padding: 8px 10px; color: var(--text-dark); background: #fff; font: inherit; }
#modalMask .field select { appearance: none; background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238b9188' stroke-width='2.5'%3e%3cpolyline points='6 9 12 15 18 9'/%3e%3c/svg%3e"); background-repeat: no-repeat; background-position: right 10px center; padding-right: 30px; }
#modalMask .field textarea { min-height: 92px; resize: vertical; }
#modalMask .new-task-form { gap: 14px 16px; }
#modalMask .new-task-form .form-field-label { display: flex; min-height: 16px; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 4px; color: var(--text-mid); font-size: 12px; line-height: 16px; }
#modalMask .new-task-form .form-label-title { display: inline-flex; min-width: 0; align-items: center; gap: 6px; color: var(--text-mid); white-space: nowrap; }
#modalMask .new-task-form .form-label-hint { min-width: 0; overflow: hidden; color: var(--text-soft); font-size: 11px; font-weight: 300; text-align: right; text-overflow: ellipsis; white-space: nowrap; }
#modalMask .new-task-form .field-required { display: inline-flex; height: 18px; align-items: center; padding: 0 6px; border-radius: 9px; color: #fff; background: var(--green-deep); font-size: 12px; font-weight: 400; line-height: 18px; }
#modalMask .new-task-form .field-required svg { display: none; }
#modalMask .new-task-form .input-with-icon { position: relative; width: 100%; }
#modalMask .new-task-form .input-prefix { position: absolute; z-index: 2; top: 50%; left: 12px; display: grid; width: 15px; height: 15px; place-items: center; color: var(--text-soft); pointer-events: none; transform: translateY(-50%); }
#modalMask .new-task-form .input-prefix svg { width: 15px; height: 15px; }
#modalMask .new-task-form .input-with-icon > input,
#modalMask .new-task-form .input-with-icon .user-combo-input,
#modalMask .new-task-form .input-with-icon .app-select-trigger,
#modalMask .new-task-form .input-with-icon .multi-toggle,
#modalMask .new-task-form .input-with-icon .date-trigger,
#modalMask .new-task-form .input-with-icon .readonly-note { min-height: 38px; height: 38px; padding-left: 36px !important; }
#modalMask .new-task-form .input-with-icon > textarea { min-height: 84px; height: 84px; padding-left: 36px !important; }
#modalMask .new-task-form .textarea-control .input-prefix { top: 13px; transform: none; }
#modalMask .new-task-form .readonly-note { display: flex; align-items: center; border: 1px solid var(--border-mid); border-radius: 4px; color: var(--text-soft); background: var(--paper-2); font-size: 13px; }
#modalMask .new-task-form .date-input-control .date-trigger > svg { display: none; }
#modalMask .new-task-form .field-disabled .input-prefix { color: var(--text-soft); }
#modalMask .new-task-form .new-task-file-picker.upload-area { min-height: 0; gap: 12px; padding: 14px 16px; border: 1.5px dashed var(--border-mid); border-radius: 6px; background: var(--paper); cursor: pointer; transition: all .15s; }
#modalMask .new-task-form .new-task-file-picker.upload-area:hover { border-color: var(--green-light2); background: rgba(26,104,83,.04); }
#modalMask .new-task-form .new-task-file-picker .upload-btn { display: inline-flex; min-width: 0; height: 32px; min-height: 32px; align-items: center; justify-content: center; gap: 6px; padding: 0 14px; border: 0; border-radius: 4px; color: #fff; background: linear-gradient(135deg, var(--green-light2), var(--green-base2)); box-shadow: none; font-size: 12.5px; font-weight: 600; letter-spacing: .5px; line-height: 1; white-space: nowrap; }
#modalMask .new-task-form .new-task-file-picker .upload-btn:hover { background: linear-gradient(135deg, var(--green-light2), var(--green-base2)); }
#modalMask .new-task-form .new-task-file-picker .file-trigger svg { width: 14px; height: 14px; }
#modalMask .new-task-form .new-task-file-picker .upload-btn > span { display: block; line-height: 1; }
#modalMask .new-task-form .new-task-file-picker .file-copy { min-width: 0; }
#modalMask .new-task-form .new-task-file-picker .file-name { color: var(--text-soft); font-size: 12px; line-height: 15px; }
#modalMask .new-task-form .new-task-file-picker .file-formats { display: none; }
#modalMask .app-select { position: relative; width: 100%; }
#modalMask .app-select .native-select { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
#modalMask .app-select-trigger { display: flex; width: 100%; min-height: 38px; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 10px; border: 1px solid var(--border-mid); border-radius: 4px; color: var(--text-dark); background: #fff; cursor: pointer; font: inherit; font-size: 13px; text-align: left; }
#modalMask .app-select-trigger:hover:not(:disabled), #modalMask .app-select.open .app-select-trigger { border-color: var(--green-light2); box-shadow: 0 0 0 3px rgba(26,104,83,.1); }
#modalMask .app-select-trigger:disabled { color: var(--text-soft); background: var(--paper-2); cursor: not-allowed; }
#modalMask .app-select-trigger i { width: 8px; height: 8px; flex: 0 0 auto; border-right: 1.5px solid var(--text-soft); border-bottom: 1.5px solid var(--text-soft); transform: rotate(45deg) translateY(-2px); }
#modalMask .app-select-menu { position: absolute; z-index: 2300; top: calc(100% + 4px); right: 0; left: 0; display: none; max-height: 190px; overflow: auto; padding: 5px; border: 1px solid var(--line2); border-radius: 6px; background: #fff; box-shadow: 0 8px 24px rgba(13,58,46,.12); }
#modalMask .app-select.open .app-select-menu { display: grid; gap: 2px; }
#modalMask .app-select-menu button { min-height: 32px; padding: 6px 8px; border: 0; border-radius: 4px; color: var(--text-dark); background: transparent; cursor: pointer; font: inherit; font-size: 12.5px; text-align: left; }
#modalMask .app-select-menu button:hover, #modalMask .app-select-menu button.selected { color: var(--green-deep); background: var(--paper-2); }
#modalMask .app-select-menu button:disabled { color: var(--text-soft); cursor: not-allowed; }
#modalMask .user-combo { position: relative; width: 100%; }
#modalMask .user-combo-menu { position: absolute; z-index: 2300; top: calc(100% + 4px); right: 0; left: 0; display: none; max-height: 170px; overflow: auto; padding: 4px; border: 1px solid var(--line2); border-radius: 6px; background: #fff; box-shadow: 0 8px 24px rgba(13,58,46,.12); }
#modalMask .user-combo.open .user-combo-menu { display: grid; gap: 2px; }
#modalMask .user-combo-menu button { padding: 7px 10px; border: 0; border-radius: 4px; color: var(--text-dark); background: transparent; cursor: pointer; font: inherit; font-size: 12.5px; text-align: left; }
#modalMask .user-combo-menu button:hover { color: var(--green-deep); background: var(--paper-2); }
#modalMask .multi-select { position: relative; width: 100%; }
#modalMask .multi-toggle { display: flex; width: 100%; align-items: center; justify-content: space-between; min-height: 38px; padding: 8px 34px 8px 10px; border: 1px solid var(--border-mid); border-radius: 4px; color: var(--text-dark); background: #fff; cursor: pointer; font: inherit; font-size: 13px; text-align: left; }
#modalMask .multi-toggle::after { position: absolute; top: 50%; right: 12px; width: 7px; height: 7px; border-right: 1.5px solid var(--text-soft); border-bottom: 1.5px solid var(--text-soft); content: ""; transform: translateY(-70%) rotate(45deg); transition: transform .15s ease; }
#modalMask .multi-select.open .multi-toggle { border-color: var(--green-light2); box-shadow: 0 0 0 3px rgba(26,104,83,.1); }
#modalMask .multi-select.open .multi-toggle::after { transform: translateY(-25%) rotate(225deg); }
#modalMask .multi-menu { position: absolute; z-index: 2300; top: calc(100% + 4px); right: 0; left: 0; display: none; max-height: 190px; overflow: auto; padding: 5px; border: 1px solid var(--line2); border-radius: 6px; background: #fff; box-shadow: 0 8px 24px rgba(13,58,46,.12); }
#modalMask .multi-select.open .multi-menu { display: grid; gap: 2px; }
#modalMask .multi-option { display: flex; align-items: center; gap: 8px; padding: 7px 8px; border-radius: 4px; color: var(--text-dark); cursor: pointer; font-size: 12.5px; }
#modalMask .multi-option:hover { background: var(--paper-2); color: var(--green-deep); }
#modalMask .multi-option input { width: 14px; height: 14px; margin: 0; accent-color: var(--green-light2); }
#modalMask .file-picker { display: flex; align-items: center; gap: 10px; min-height: 38px; padding: 6px 10px; border: 1px solid var(--border-mid); border-radius: 4px; background: #fff; }
#modalMask .file-trigger { display: inline-flex; flex: 0 0 auto; align-items: center; min-height: 26px; padding: 0 10px; border: 1px solid var(--border-mid); border-radius: 4px; color: var(--text-mid); background: var(--paper-2); cursor: pointer; font-size: 12px; }
#modalMask .file-name { min-width: 0; overflow: hidden; color: var(--text-soft); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
#modalMask .file-input { position: absolute; width: 1px; height: 1px; overflow: hidden; opacity: 0; pointer-events: none; }
#modalMask .attachments { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
#modalMask .attachment-line { display: inline-flex; align-items: center; gap: 5px; max-width: 100%; padding: 3px 5px 3px 7px; border-radius: 3px; color: var(--green-deep); background: var(--paper-2); font-size: 11px; }
#modalMask .attachment-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#modalMask .attachment-remove { display: inline-flex; width: 16px; height: 16px; flex: 0 0 16px; align-items: center; justify-content: center; padding: 0; border: 0; border-radius: 3px; color: var(--text-soft); background: transparent; cursor: pointer; font: inherit; font-size: 13px; line-height: 1; }
#modalMask .attachment-remove:hover, #modalMask .attachment-remove:focus-visible { color: #fff; background: var(--green-light2); outline: 0; }
#modalMask .attachment-hint, .upload-area .upload-hint { display: flex; align-items: center; min-height: 28px; margin: 8px 0 0; padding: 5px 9px; border-left: 3px solid var(--green-light2); border-radius: 3px; color: var(--text-soft); background: #f1f7f3; font-size: 12px; line-height: 1.5; }
#modalMask .attachment-hint::before, .upload-area .upload-hint::before { content: "支持格式"; flex: 0 0 auto; margin-right: 8px; color: var(--green-light2); font-size: 11px; font-weight: 700; }
.upload-area .upload-hint strong { color: inherit; font-weight: 400; }
#modalMask .kv { display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--border-light); font-size: 13px; }
#modalMask .kv > span { color: var(--text-soft); }
#modalMask .detail-card { border: 1px solid var(--border-light); border-radius: 6px; background: #fff; overflow: hidden; }
#modalMask .detail-card h3 { margin: 0; padding: 12px 16px; border-bottom: 1px solid var(--border-light); color: var(--green-deep); font-size: 14px; }
#modalMask .detail-card .inside { padding: 14px 16px; }
#modalMask .preview-box { display: grid; gap: 10px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--border-light); }
#modalMask .preview-file { display: flex; align-items: center; gap: 10px; padding: 10px; border: 1px solid var(--border-light); border-radius: 5px; background: var(--paper); }
#modalMask .preview-file > div { flex: 1; min-width: 0; }
#modalMask .preview-surface { display: grid; min-height: 240px; place-items: center; overflow: hidden; border: 1px dashed var(--border-mid); border-radius: 5px; background: var(--paper); }
#modalMask .image-surface img { max-width: 100%; max-height: 300px; object-fit: contain; }
#modalMask .image-surface img.original-image { width: auto; height: auto; max-width: calc(100vw - 180px); max-height: calc(100vh - 260px); object-fit: contain; }
#modalMask .preview-actions { display: flex; justify-content: center; gap: 8px; }
#modalMask .modal-compact { max-width: 430px; }
#modalMask .date-control { display: block; width: 100%; }
#modalMask .date-trigger { display: flex; width: 100%; min-height: 38px; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 10px; border: 1px solid var(--border-mid); border-radius: 4px; color: var(--text-dark); background: #fff; cursor: pointer; font-family: inherit; font-size: 13px; text-align: left; }
#modalMask .date-control.empty .date-trigger span { color: var(--text-soft); font-weight: 300; }
#modalMask .date-control.open .date-trigger { border-color: var(--green-light2); box-shadow: 0 0 0 3px rgba(26,104,83,.1); outline: 0; }
#modalMask .date-trigger svg, .filter-card .date-trigger svg { width: 15px; height: 15px; color: var(--text-soft); }
#modalMask .field label.date-field-label { display: flex; align-items: center; gap: 5px; }
#modalMask .date-field-label svg { width: 13px; height: 13px; color: var(--text-soft); }
.filter-card .date-control { position: relative; }
.filter-card .date-trigger { display: flex; align-items: center; justify-content: space-between; cursor: pointer; font-family: inherit; text-align: left; }
.filter-card .date-control.empty .date-trigger span { color: var(--text-soft); font-weight: 300; }
.filter-card .user-combo { position: relative; width: 100%; }
.filter-card .user-combo-input { width: 100%; }
.filter-card .user-combo-display { display: flex; width: 100%; min-height: 34px; align-items: center; padding: 7px 62px 7px 10px; border: 1px solid var(--border-mid); border-radius: 4px; color: var(--text-dark); background: #fff; cursor: pointer; font: inherit; font-size: 13px; text-align: left; }
.filter-card .user-combo-display .placeholder { color: var(--text-soft); }
.filter-card .user-combo-menu { position: absolute; z-index: 2300; top: calc(100% + 4px); right: 0; left: 0; display: none; max-height: 170px; overflow: auto; padding: 4px; border: 1px solid var(--line2); border-radius: 6px; background: #fff; box-shadow: 0 8px 24px rgba(13,58,46,.12); }
.filter-card .user-combo.open .user-combo-menu { display: grid; gap: 2px; }
.filter-card .user-combo-menu button { padding: 7px 10px; border: 0; border-radius: 4px; color: var(--text-dark); background: transparent; cursor: pointer; font: inherit; font-size: 12.5px; text-align: left; }
.filter-card .user-combo-menu button:hover { color: var(--green-deep); background: var(--paper-2); }
.user-combo-control { position: relative; width: 100%; }
#modalMask .user-combo-input, .filter-card .user-combo-input { padding-right: 62px !important; }
#modalMask .user-combo-clear, .filter-card .user-combo-clear { position: absolute; top: 50%; right: 33px; display: none; width: 22px; height: 22px; align-items: center; justify-content: center; border: 0; border-radius: 4px; color: var(--text-soft); background: transparent; cursor: pointer; transform: translateY(-50%); }
#modalMask .user-combo.has-value .user-combo-clear, .filter-card .user-combo.has-value .user-combo-clear { display: grid; }
#modalMask .user-combo-clear:hover, #modalMask .user-combo-clear:focus-visible, .filter-card .user-combo-clear:hover, .filter-card .user-combo-clear:focus-visible { color: #fff; background: var(--green-light2); outline: 0; }
#modalMask .user-combo-clear svg, .filter-card .user-combo-clear svg { width: 13px; height: 13px; }
#modalMask .user-combo-input::-webkit-search-cancel-button, .filter-card .user-combo-input::-webkit-search-cancel-button, .filter-card #poolKeyword::-webkit-search-cancel-button { -webkit-appearance: none; }
#modalMask .user-combo-toggle, .filter-card .user-combo-toggle { position: absolute; top: 50%; right: 5px; display: grid; width: 28px; height: 28px; place-items: center; border: 0; border-radius: 4px; color: var(--text-soft); background: transparent; cursor: pointer; transform: translateY(-50%); }
#modalMask .user-combo-toggle svg, .filter-card .user-combo-toggle svg { width: 14px; height: 14px; transition: transform .15s ease, color .15s ease; }
#modalMask .user-combo.open .user-combo-toggle, .filter-card .user-combo.open .user-combo-toggle { color: var(--green-light2); }
#modalMask .user-combo.open .user-combo-toggle svg, .filter-card .user-combo.open .user-combo-toggle svg { transform: rotate(180deg); }
#modalMask .user-combo.open .user-combo-input, .filter-card .user-combo.open .user-combo-input { border-color: var(--green-light2); box-shadow: 0 0 0 3px rgba(26,104,83,.1); outline: 0; }
.filter-card .user-combo.open .user-combo-display { border-color: var(--green-light2); box-shadow: 0 0 0 3px rgba(26,104,83,.1); outline: 0; }
#modalMask .user-combo-menu, .filter-card .user-combo-menu { padding: 5px; }
.filter-card .user-combo-menu-search { width: 100%; min-height: 32px; margin: 0 0 3px; padding: 6px 8px; border: 1px solid var(--line2); border-radius: 4px; color: var(--text-dark); background: #fff; font: inherit; font-size: 12.5px; outline: 0; }
.filter-card .user-combo-menu-search:focus { border-color: var(--green-light2); box-shadow: 0 0 0 2px rgba(26,104,83,.1); }
#modalMask .user-combo-menu button, .filter-card .user-combo-menu button { display: flex; width: 100%; min-height: 34px; align-items: center; justify-content: space-between; gap: 8px; padding: 7px 10px; border-radius: 4px; }
#modalMask .user-combo-menu button[hidden], .filter-card .user-combo-menu button[hidden] { display: none !important; }
#modalMask .user-combo-menu button.selected, .filter-card .user-combo-menu button.selected { color: var(--green-deep); background: var(--paper-2); font-weight: 600; }
#modalMask .user-combo-check, .filter-card .user-combo-check { width: 14px; height: 14px; opacity: 0; }
#modalMask .user-combo-menu button.selected .user-combo-check, .filter-card .user-combo-menu button.selected .user-combo-check { opacity: 1; }
#modalMask .field.field-disabled label { color: var(--text-soft); }
#modalMask .field.field-disabled .user-combo-input { color: var(--text-soft); background: var(--paper-2); cursor: not-allowed; }
#modalMask .field.field-disabled .user-combo-toggle { pointer-events: none; opacity: .55; }
#modalMask .modal-submit-error { margin: 0 0 12px; padding: 8px 10px; border: 1px solid #efc2bc; border-radius: 4px; color: #a33129; background: #fff4f2; font-size: 12px; line-height: 18px; }
#modalMask .system-multi-select .multi-toggle { min-height: 38px; border-color: var(--border-mid); }
#modalMask .system-multi-select { z-index: 1; }
#modalMask .system-multi-select.open { z-index: 4; }
#modalMask .system-multi-select .multi-toggle { position: relative; padding-right: 58px; }
#modalMask .system-multi-select .multi-clear { position: absolute; z-index: 1; top: 50%; right: 30px; display: none; width: 18px; height: 18px; align-items: center; justify-content: center; border-radius: 3px; color: var(--green-deep); font-size: 17px; font-weight: 300; line-height: 1; transform: translateY(-50%); }
#modalMask .system-multi-select .multi-clear:hover, #modalMask .system-multi-select .multi-clear:focus-visible { color: #fff; background: var(--green-light2); outline: 0; }
#modalMask .system-multi-select.has-selection .multi-clear { display: inline-flex; }
#modalMask .system-multi-select.open .multi-toggle { border-color: var(--green-light2); box-shadow: 0 0 0 3px rgba(26,104,83,.1); }
#modalMask .system-multi-select.has-selection .multi-toggle { border-color: var(--green-pale2); background: rgba(26,104,83,.06); }
#modalMask .system-multi-select.has-selection .multi-value { color: var(--green-deep); font-weight: 500; }
#modalMask .system-multi-select .multi-value.placeholder { color: var(--text-soft); font-weight: 300; }
#modalMask .system-multi-select .multi-menu { padding: 5px; }
#modalMask .system-multi-select .multi-option { position: relative; display: flex; min-height: 34px; align-items: center; justify-content: space-between; padding: 7px 10px; }
#modalMask .system-multi-select .multi-option input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
#modalMask .system-multi-select .multi-option-check { width: 14px; height: 14px; margin-left: auto; opacity: 0; }
#modalMask .system-multi-select .multi-option.selected { color: var(--green-deep); background: var(--paper-2); font-weight: 600; }
#modalMask .system-multi-select .multi-option.selected .multi-option-check { opacity: 1; }
.date-picker-dialog .dp-day { border: 0; font-family: inherit; cursor: pointer; }
.date-picker-dialog .dp-day.other-month { color: var(--border-mid); }
#view-follow .active-stage { border-color: var(--green-pale2) !important; background: linear-gradient(135deg, rgba(26,104,83,.1), rgba(45,106,79,.06)) !important; }
#view-follow .active-stage strong { color: var(--green-deep) !important; }
#view-follow .inactive-stage { border: 1px solid var(--border-light) !important; background: var(--paper-2) !important; }
#view-follow .inactive-stage strong { color: var(--text-soft) !important; }

.filter-inline-actions { display: flex; align-items: center; gap: 18px; min-height: 38px; }
.filter-inline-actions .btn-xl { min-width: 64px; padding-right: 14px; padding-left: 14px; }
.filter-card .filter-grid:last-child { padding-bottom: 16px; }
.pool-toolbar .filter-grid { display: grid; grid-template-columns: repeat(3, minmax(180px, 252px)) max-content; width: auto; max-width: 100%; }
.pool-toolbar [data-action="newItem"] { font-weight: 400; }
.admin-toolbar .admin-create-button,
#view-people [data-action="addUser"],
#view-systems [data-action="addSystem"] { font-weight: 400 !important; }
#view-people tbody td:first-child,
#view-systems tbody td:first-child { font-weight: 400 !important; }
.task-table td.system-list-column { padding-right: 12px; padding-left: 12px; text-align: center; }
.system-list-cell { display: grid; justify-items: center; gap: 6px; width: 100%; color: var(--text-dark); font-size: 12.5px; font-weight: 500; line-height: 18px; text-align: center; }
.system-list-cell.empty { display: inline-flex; color: var(--text-soft); }
.system-list-row { display: flex; width: fit-content; max-width: 100%; align-items: center; justify-content: center; min-width: 0; }
.system-list-item { display: inline-flex; align-items: center; white-space: nowrap; }
.system-list-item + .system-list-item::before { margin: 0 6px; color: var(--border-mid); content: "|"; }
.related-task-link { padding: 0; border: 0; color: var(--green-deep); background: transparent; cursor: pointer; font: inherit; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
.related-task-link:hover { color: var(--green-light2); }

#poolBody .owner-tag,
#poolBody .alert-cell,
#poolBody .alert-state,
#poolBody .alert-desc { font-size: 13px; font-weight: 400; letter-spacing: 0; }
#poolBody .code,
#poolBody .title-cell { font-weight: 400; }
#poolBody .deadline.none,
#detailDeadlineValue .deadline.none,
#mineBody .deadline.none { display: inline-flex; align-items: center; padding: 2px 8px; border: 1px solid #efbdc6; border-radius: 4px; color: #b34659; background: #fff0f2; }
#poolBody .ops { flex-wrap: nowrap; white-space: nowrap; }

#followDeadlineValue .deadline-editor { display: inline-flex; align-items: center; gap: 8px; }
#followDeadlineValue .date-control { min-width: 166px; }
#followDeadlineValue .date-trigger { display: inline-flex; width: 166px; min-height: 38px; align-items: center; justify-content: space-between; padding: 0 10px; border: 1px solid var(--border-mid); border-radius: 4px; color: var(--text-dark); background: #fff; cursor: pointer; font-family: inherit; font-size: 13px; line-height: 1; text-align: left; }
#followDeadlineValue .date-trigger svg { flex: 0 0 16px; width: 16px; height: 16px; }
#followDeadlineValue .deadline-save-btn { border: 1px solid var(--green-deep); }
#view-follow .follow-evidence-column { display: flex; min-width: 0; flex-direction: column; gap: 14px; }
#view-follow .follow-evidence-list { padding: 18px 22px; }
#view-follow .follow-evidence-row + .follow-evidence-row { margin-top: 12px; }
#view-follow .follow-evidence-description { display: block; margin-top: 4px; color: var(--text-soft); font-size: 13px; font-weight: 400; line-height: 1.5; }
#view-follow .follow-evidence-attachments { display: grid; gap: 6px; margin-top: 8px; }
#view-follow .follow-evidence-file { display: flex; align-items: center; gap: 8px; min-width: 0; }
#view-follow .follow-evidence-file > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text-dark); font-size: 13px; font-weight: 400; }
#view-follow .follow-evidence-file .btn { flex: 0 0 auto; }
#view-follow .follow-record,
#view-follow .follow-record-action,
#view-follow .follow-record-title,
#view-follow .follow-record-meta,
#view-follow .follow-record-empty { color: var(--text-dark); font-size: 13px; font-weight: 400; line-height: 1.55; }
#view-follow .follow-record { display: grid; gap: 6px; }
#view-follow .follow-record-action { color: var(--text-soft); }
#view-follow .follow-record-badge { margin-right: 8px; padding: 2px 6px; font-size: 13px; font-weight: 400; }
#view-follow .follow-record-title { color: var(--text-dark); }
#view-follow .follow-record-detail { display: block; margin-top: 3px; color: var(--text-soft); font-size: 13px; font-weight: 400; line-height: 1.55; }
#view-follow .follow-record-meta { display: block; margin-top: 3px; color: var(--text-soft); }
#view-follow .follow-record-empty { color: var(--text-soft); text-align: center; }
.num-val.assist { color: #75568f; }
#modalMask .modal.modal-stage .modal-body { overflow: visible; }
#mineBody .code,
#mineBody .title-cell { font-weight: 400; }
#mineBody .deadline { font-weight: 400; }

.collaboration-person { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.collaboration-separator { color: var(--text-soft); }
.collaboration-role { display: inline-flex; align-items: center; padding: 3px 8px; border: 1px solid; border-radius: 3px; font-size: 13px; font-weight: 400; letter-spacing: 0; line-height: 1.25; }
.collaboration-role-collaboration { color: #75568f; background: #f1eafb; border-color: #d8c6eb; }

#modalOverlay #btnCancel[hidden] { display: none !important; }
#mineBody .owner-tag.mine-status-tag,
#mineBody .owner-tag.mine-claimant-tag,
#mineBody .owner-tag.mine-relation-tag { border: 1px solid; border-radius: 3px; padding: 3px 8px; font-size: 13px; font-weight: 400; letter-spacing: 0; line-height: 1.25; }
#mineBody .mine-status-tag.mine-status-active { color: #2e6f8e; background: #e5f0f5; border-color: #b9d5e3; }
#mineBody .mine-status-tag.mine-status-pending { color: #875d18; background: #fbefd8; border-color: #e5c47f; }
#mineBody .mine-status-tag.mine-status-ended { color: #68786f; background: #edf0ee; border-color: #cfd7d2; }
#mineBody .mine-claimant-tag.mine-claimant-assigned { color: #1d7464; background: #e1f3ef; border-color: #a8d4ca; }
#mineBody .mine-claimant-tag.mine-claimant-unassigned { color: #6d756f; background: #f1f3f1; border-color: #d5dbd6; }
#mineBody .mine-relation-tag { color: #316c42; background: #e6f3e8; border-color: #afd1b5; }
#view-follow .follow-actions button:disabled,
#followDeadlineValue .date-trigger:disabled { cursor: not-allowed; opacity: .52; box-shadow: none; }
#followDeadlineValue .date-trigger:disabled { color: var(--text-soft); background: #f5f4ef; }
#modalOverlay #empId[readonly] { color: #64736b; background: #f5f4ef; cursor: not-allowed; }
.attachment-uploading { color: var(--text-soft); }
.attachment-status { margin-left: 6px; color: #875d18; font-size: 12px; font-weight: 400; }

body.prototype-shell:not(.login-active) .app-shell { min-height: 100vh; padding-left: 220px; }
body.prototype-shell:not(.login-active) .app-shell .sidebar { position: fixed; inset: 0 auto 0 0; height: 100vh; }
body.prototype-shell:not(.login-active) .app-shell .main { min-height: 100vh; }

/* The prototype panel clips absolute menus. Pager selects must be able to extend below it. */
.panel:has(.pagination) { overflow: visible; }
.pagination,
.pagination .pg-ctrl { position: relative; overflow: visible; }
.pagination .custom-select.pg-select { padding: 0; border: 0; border-radius: 0; background: transparent; font-size: inherit; outline: 0; }
.pagination .pg-select { width: 112px; min-width: 112px; }
.pagination .pg-select .cs-trigger { min-width: 112px; white-space: nowrap; }
.pagination .pg-select .cs-panel { right: 0; left: auto; min-width: 112px; width: 112px; }
.pagination .pg-select .cs-option { white-space: nowrap; word-break: normal; }
.pagination .custom-select .cs-panel { transition: none !important; }
.pagination .custom-select.open { z-index: 2400; }
.pagination .custom-select.open .cs-panel { z-index: 2401; opacity: 1 !important; visibility: visible !important; transform: translateY(0) scale(1) !important; }
#poolPageSize.open .cs-panel { display: block !important; z-index: 2401 !important; opacity: 1 !important; visibility: visible !important; transform: translateY(0) scale(1) !important; }
#toast { z-index: 4200; }

#initialPasswordMask { position: fixed; inset: 0; z-index: 2600; display: none; align-items: center; justify-content: center; padding: 16px; background: rgba(10,30,24,.5); backdrop-filter: blur(3px); }
#initialPasswordMask.show { display: flex; }
#initialPasswordMask .initial-password-dialog { width: min(420px, calc(100vw - 32px)); padding: 24px; border-top: 3px solid var(--gold2); border-radius: 8px; background: #fff; box-shadow: 0 16px 40px -10px rgba(0,0,0,.28); }
#initialPasswordMask h2 { margin: 0 0 6px; color: var(--ink2); font-size: 18px; }
#initialPasswordMask header small { color: var(--text-soft); font-size: 12px; }
#initialPasswordMask .login-field { margin-top: 16px; }
#initialPasswordMask .login-field label { display: block; margin-bottom: 6px; color: var(--text-mid); font-size: 12px; }
#initialPasswordMask .login-field input { width: 100%; padding: 9px 10px; border: 1px solid var(--border-light); border-radius: 5px; color: var(--text-dark); font: inherit; }
#initialPasswordMask .initial-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 22px; }
#initialPasswordMask .initial-actions button { padding: 7px 16px; border-radius: 4px; cursor: pointer; font: inherit; }
#initialPasswordMask .initial-actions .soft-btn { border: 1px solid var(--border-light); color: var(--text-mid); background: #fff; }
#initialPasswordMask .initial-actions .primary { border: 0; color: #fff; background: var(--green-light2); }

@media (max-width: 900px) {
  #loginPage .brand { padding: 44px 52px; }
  #loginPage .slogan { font-size: 44px; }
  #loginPage .flow { padding: 18px 20px; }
  #loginPage .flow-title { padding-right: 14px; }
}

/* Permission workspace: retain the existing matrix while keeping its controls compact. */
#workbenchShell .permission-layout { grid-template-columns: 270px minmax(0, 1fr); align-items: start; gap: 16px; }
#workbenchShell .role-directory > :not(.panel-head) { padding-top: 14px !important; }
#workbenchShell .permission-role-list { display: flex; flex-direction: column; gap: 6px; }
#workbenchShell .role-card { display: flex; min-height: 52px; align-items: center; justify-content: space-between; gap: 8px; border-color: #e4ddd0; border-radius: 5px; background: #fffefa; font-weight: 500; }
#workbenchShell .role-card.active { border-color: #a9c9ba; color: var(--green-deep); background: #edf6f1; }
#workbenchShell .role-card-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#workbenchShell .role-card-meta { display: inline-flex; align-items: center; flex: 0 0 auto; }
#workbenchShell .role-directory [data-action="addRole"],
#workbenchShell .role-directory [data-action="editRole"],
#workbenchShell .role-directory [data-action="deleteRole"] { min-height: 32px; padding: 6px 14px !important; font-size: 12px !important; line-height: 1.2; }
#workbenchShell .role-directory [data-action="addRole"] { font-weight: 400; }
#workbenchShell .permission-detail { display: flex; min-height: 0; max-height: calc(100vh - 122px); flex-direction: column; overflow: hidden; }
#workbenchShell .permission-title-row { position: relative; z-index: 2; flex: 0 0 auto; min-height: 58px; background: #fffefa; }
#workbenchShell .permission-head-actions { display: inline-flex; align-items: center; gap: 8px; }
#workbenchShell .permission-head-actions .btn { min-height: 32px; padding: 6px 14px; font-size: 12px; line-height: 1.2; }
#workbenchShell .permission-head-actions .permission-save:disabled { opacity: .42; background: #a9c9ba; border-color: #a9c9ba; color: #fff; }
#workbenchShell .permission-head-actions .permission-save:not(:disabled) { opacity: 1; background: var(--green-deep); border-color: var(--green-deep); color: #fff; }
#workbenchShell .permission-detail .permission-config-body { min-height: 0; flex: 1 1 auto; overflow-y: auto; padding: 16px; }
#workbenchShell .permission-matrix { display: grid; gap: 12px; }
#workbenchShell .permission-matrix .perm-module { margin: 0; }
#workbenchShell .permission-matrix .permission-toggle { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
#workbenchShell .permission-matrix .perm-switch-track.on { background: var(--green-light2); }
#workbenchShell .permission-matrix .perm-switch.is-partial .perm-switch-track { background: var(--gold2); }
#workbenchShell .permission-matrix .perm-pill input[type="checkbox"] { display: none; }
#workbenchShell .permission-matrix .perm-pill:not(.perm-pill-disabled):has(input:checked) { border-color: var(--green-light2); background: #edf6f1; }
#workbenchShell .permission-matrix .perm-pill:not(.perm-pill-disabled):has(input:checked) .dot { border-color: var(--green-light2); background: var(--green-light2); }
#workbenchShell .permission-matrix .perm-pill-gold:not(.perm-pill-disabled):has(input:checked) { border-color: var(--gold-soft2); background: linear-gradient(135deg, rgba(212,178,119,0.15), rgba(212,178,119,0.04)); }
#workbenchShell .permission-matrix .perm-pill-gold:not(.perm-pill-disabled):has(input:checked) .dot { border-color: var(--gold-soft2); background: var(--gold-soft2); }
#workbenchShell .permission-actions { display: none; }
.credential-once {
  margin: 14px 0;
  padding: 12px;
  overflow-wrap: anywhere;
  border: 1px solid #b8d8cd;
  border-radius: 4px;
  background: #f3faf7;
  color: #123f33;
  font: 600 13px/1.7 Consolas, "Courier New", monospace;
  white-space: pre-wrap;
}
