[hidden] { display: none !important; }

.resource-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
    align-items: end;
}
.resource-grid label { display: flex; flex-direction: column; gap: 6px; }
.company-resource-card { padding: 18px 0; border-bottom: 1px solid var(--line); }
.resource-help { color: var(--muted); font-size: 0.9rem; }

:root {
    font-family: "Avenir Next", Avenir, "Segoe UI", sans-serif;
    color: var(--ink);
    background: var(--page-bg);
    color-scheme: light;
    font-synthesis: none;
    text-rendering: optimizeLegibility;
    --ink: #182621;
    --muted: #67746d;
    --green: #176b50;
    --accent-strong: #145b43;
    --line: #dce3dc;
    --primary: #176b50;
    --primary-hover: #105a42;
    --page-bg: #f4f6f0;
    --surface: #fff;
    --surface-hover: #edf3ee;
    --surface-hover-muted: #f4f6f0;
    --surface-hover-strong: #e8eee8;
    --surface-active: #e8f1ea;
    --surface-active-hover: #dcebe0;
    --surface-subtle: #f7f8f5;
    --surface-muted: #f8f9f6;
    --surface-faint: #fbfcfa;
    --surface-card: #fafbf9;
    --surface-form: #f9faf7;
    --surface-tinted: #f5f8f4;
    --surface-open: #f7faf7;
    --surface-drop-target: #f1f8f2;
    --surface-success: #e3efe6;
    --surface-completed: #eef0ed;
    --surface-muted-row: #e7e9e7;
    --surface-attachment: #f3f7f3;
    --surface-progress: #e6ede7;
    --surface-attachment-link: #f7f9f5;
    --surface-notification-target: #fffdf4;
    --surface-danger-warning: #fff7f5;
    --surface-danger: #fff0ed;
    --surface-danger-hover: #fcf2f0;
    --surface-danger-hover-soft: #f8e9e7;
    --surface-warning: #fff1dc;
    --surface-warning-hover: #ffe7c3;
    --surface-info: #e8f3eb;
    --surface-info-hover: #dceee1;
    --surface-chrome-hover: #f1f4ef;
    --line-subtle: #edf0eb;
    --line-muted: #e6eae4;
    --line-chip: #e1e6e1;
    --line-strong: #a9b8ac;
    --line-accent: #b6d1be;
    --line-accent-muted: #9eb9a7;
    --line-success: #cfe1d4;
    --line-warning: #e8c28f;
    --line-danger: #efd0ca;
    --line-danger-alert: #ebc4bf;
    --line-danger-soft: #e7c2bd;
    --line-danger-button: #e5c9c5;
    --line-control: #e4e9e2;
    --line-control-hover: #cbd6cb;
    --line-attachment: #c6d8ca;
    --line-comment-attachment: #dce6dd;
    --line-info: #b9d4c1;
    --line-critical: #b94b43;
    --line-delete-button: #a51f16;
    --line-delete-button-hover: #861d16;
    --line-attention: #c9a33d;
    --text-on-accent: #fff;
    --handle-border: #fff;
    --muted-subtle: #8a968d;
    --muted-disabled: #a4afa7;
    --text-navigation: #33433a;
    --text-subtle: #526158;
    --text-quiet: #43554a;
    --text-completed: #77827b;
    --text-completed-muted: #858d87;
    --text-separator: #9aa59c;
    --text-timestamp: #7a857d;
    --text-success: #21744b;
    --text-success-chip: #176b50;
    --text-error: #9b443a;
    --text-error-strong: #a1372d;
    --text-error-dark: #7b2e28;
    --text-warning: #815321;
    --text-warning-strong: #875716;
    --text-critical: #a73831;
    --text-info: #176b50;
    --background-critical: #c85047;
    --background-critical-hover: #b9473f;
    --background-danger: #b42318;
    --background-danger-hover: #981b13;
    --notice-bg: #26372e;
    --focus-ring: #176b5022;
    --focus-danger: #b42318;
    --overlay: #17261f77;
    --shadow-soft: #18262124;
    --shadow-strong: #18262133;
    --shadow-deep: #18262155;
    --tutorial-highlight: #efbd4f;
    --tutorial-glow-soft: #efbd4f22;
    --tutorial-glow-medium: #efbd4f33;
    --tutorial-glow-strong: #efbd4f55;
}

:root[data-theme="cloud-forest"] {
    --ink: #242424;
    --muted: #605e5c;
    --green: #0f6cbd;
    --accent-strong: #004578;
    --line: #d1d1d1;
    --primary: #0f6cbd;
    --primary-hover: #115ea3;
    --page-bg: #f5f5f5;
    --surface: #fff;
    --surface-hover: #f3f2f1;
    --surface-hover-muted: #f3f2f1;
    --surface-hover-strong: #edebe9;
    --surface-active: #e5f1fb;
    --surface-active-hover: #d6eaf9;
    --surface-subtle: #f5f5f5;
    --surface-muted: #f8f8f8;
    --surface-faint: #fafafa;
    --surface-card: #f8f8f8;
    --surface-form: #fafafa;
    --surface-tinted: #f3f6f8;
    --surface-open: #f4f8fb;
    --surface-drop-target: #eaf4fc;
    --surface-success: #e8f3ed;
    --surface-completed: #f1f1f1;
    --surface-muted-row: #e7e7e7;
    --surface-attachment: #f4f7f9;
    --surface-progress: #e8edf0;
    --surface-attachment-link: #f5f7f8;
    --surface-notification-target: #fff9e6;
    --surface-danger-warning: #fef6f5;
    --surface-danger: #fff0ee;
    --surface-danger-hover: #fcefeb;
    --surface-danger-hover-soft: #f8e9e7;
    --surface-warning: #fff4dc;
    --surface-warning-hover: #ffe6b3;
    --surface-info: #eaf3fa;
    --surface-info-hover: #d7eaf8;
    --surface-chrome-hover: #f3f2f1;
    --line-subtle: #e1dfdd;
    --line-muted: #e1dfdd;
    --line-chip: #e1dfdd;
    --line-strong: #8a8886;
    --line-accent: #8ab8e8;
    --line-accent-muted: #8ab8e8;
    --line-success: #b4d7c3;
    --line-warning: #e8c28f;
    --line-danger: #f2cbc7;
    --line-danger-alert: #e8b9b4;
    --line-danger-soft: #e8b9b4;
    --line-danger-button: #e5c9c5;
    --line-control: #e1dfdd;
    --line-control-hover: #c8c6c4;
    --line-attachment: #c6d8e4;
    --line-comment-attachment: #d7e2e9;
    --line-info: #9bc2e5;
    --line-critical: #a4262c;
    --text-on-accent: #fff;
    --handle-border: #fff;
    --muted-subtle: #706e6c;
    --muted-disabled: #73716f;
    --text-navigation: #323130;
    --text-subtle: #605e5c;
    --text-quiet: #484644;
    --text-completed: #73716f;
    --text-completed-muted: #6d6b69;
    --text-separator: #706e6c;
    --text-timestamp: #747270;
    --text-success: #107c41;
    --text-success-chip: #107c41;
    --text-error: #a4262c;
    --text-error-strong: #a4262c;
    --text-error-dark: #7a271a;
    --text-warning: #8a5600;
    --text-warning-strong: #8a5600;
    --text-critical: #a4262c;
    --text-info: #0f6cbd;
    --background-critical: #c6443e;
    --background-critical-hover: #ad3733;
    --notice-bg: #323130;
    --focus-ring: #0f6cbd33;
    --focus-danger: #a4262c;
    --overlay: #1b1a1980;
    --shadow-soft: #0000001a;
    --shadow-strong: #00000024;
    --shadow-deep: #00000038;
}

:root[data-theme="dark-grove"] {
    color-scheme: dark;
    --ink: #e8edef;
    --muted: #a7b4ba;
    --green: #91c9a8;
    --accent-strong: #b6dfc6;
    --line: #3b474d;
    --primary: #315e48;
    --primary-hover: #294f3d;
    --page-bg: #151d22;
    --surface: #20292f;
    --surface-hover: #2a353c;
    --surface-hover-muted: #2a353c;
    --surface-hover-strong: #303b41;
    --surface-active: #233b31;
    --surface-active-hover: #2a4939;
    --surface-subtle: #263138;
    --surface-muted: #242e34;
    --surface-faint: #222c32;
    --surface-card: #242f35;
    --surface-form: #252f35;
    --surface-tinted: #2b353b;
    --surface-open: #29343a;
    --surface-drop-target: #20362b;
    --surface-success: #20382e;
    --surface-completed: #273137;
    --surface-muted-row: #29343a;
    --surface-attachment: #263238;
    --surface-progress: #303a40;
    --surface-attachment-link: #27343a;
    --surface-notification-target: #383322;
    --surface-danger-warning: #422a28;
    --surface-danger: #3d2927;
    --surface-danger-hover: #4b302d;
    --surface-danger-hover-soft: #4b302d;
    --surface-warning: #3d3324;
    --surface-warning-hover: #514228;
    --surface-info: #20382e;
    --surface-info-hover: #294538;
    --surface-chrome-hover: #2c373d;
    --line-subtle: #323d43;
    --line-muted: #39454b;
    --line-chip: #3a464d;
    --line-strong: #617077;
    --line-accent: #4c715f;
    --line-accent-muted: #587b69;
    --line-success: #3f604b;
    --line-warning: #6e5c37;
    --line-danger: #70443f;
    --line-danger-alert: #70433e;
    --line-danger-soft: #70433e;
    --line-danger-button: #714944;
    --line-control: #3d484d;
    --line-control-hover: #56636a;
    --line-attachment: #475b51;
    --line-comment-attachment: #44555b;
    --line-info: #4b705e;
    --line-critical: #b05c55;
    --line-delete-button: #a63c33;
    --line-delete-button-hover: #87312a;
    --line-attention: #806a35;
    --text-on-accent: #fff;
    --handle-border: #151d22;
    --muted-subtle: #8f9da3;
    --muted-disabled: #89979c;
    --text-navigation: #d7e0e3;
    --text-subtle: #c0cbd0;
    --text-quiet: #b5c2c7;
    --text-completed: #92a09e;
    --text-completed-muted: #849391;
    --text-separator: #849297;
    --text-timestamp: #97a4a9;
    --text-success: #9ed5aa;
    --text-success-chip: #9ed6ad;
    --text-error: #f2aaa2;
    --text-error-strong: #f2aaa2;
    --text-error-dark: #ffc0b8;
    --text-warning: #f2c77c;
    --text-warning-strong: #f2c77c;
    --text-critical: #f2aaa2;
    --text-info: #91c9a8;
    --background-critical: #9f423c;
    --background-critical-hover: #8e3832;
    --background-danger: #b42318;
    --background-danger-hover: #981b13;
    --notice-bg: #2b4338;
    --focus-ring: #91c9a844;
    --focus-danger: #f2aaa2;
    --overlay: #00000099;
    --shadow-soft: #0000003a;
    --shadow-strong: #00000055;
    --shadow-deep: #00000077;
}

:root[data-theme="blue-lagoon"] {
    --ink: #183044;
    --muted: #536c7c;
    --green: #276b91;
    --accent-strong: #1d5575;
    --line: #c8dbe7;
    --primary: #276b91;
    --primary-hover: #205978;
    --page-bg: #eef6fb;
    --surface: #fafdff;
    --surface-hover: #e9f3f9;
    --surface-hover-muted: #f0f7fb;
    --surface-hover-strong: #e3eff6;
    --surface-active: #dceef9;
    --surface-active-hover: #cce5f4;
    --surface-subtle: #f3f8fb;
    --surface-muted: #f5f9fc;
    --surface-faint: #f8fbfd;
    --surface-card: #f5f9fc;
    --surface-form: #f7fafc;
    --surface-tinted: #f0f7fb;
    --surface-open: #f0f7fb;
    --surface-drop-target: #e4f2fa;
    --surface-success: #e7f2ed;
    --surface-completed: #eaf1f5;
    --surface-muted-row: #e2ebf0;
    --surface-attachment: #edf5f9;
    --surface-progress: #e2edf3;
    --surface-attachment-link: #edf5f9;
    --surface-notification-target: #fdf8e8;
    --surface-danger-warning: #fdf5f4;
    --surface-danger: #fff0ee;
    --surface-danger-hover: #fae9e7;
    --surface-danger-hover-soft: #f6e8e6;
    --surface-warning: #fff4dd;
    --surface-warning-hover: #ffe8bd;
    --surface-info: #e2f0f8;
    --surface-info-hover: #cfe7f4;
    --surface-chrome-hover: #e9f3f9;
    --line-subtle: #d8e5ec;
    --line-muted: #d4e2e9;
    --line-chip: #d2e0e8;
    --line-strong: #90a9b7;
    --line-accent: #8ebbd7;
    --line-accent-muted: #82abc5;
    --line-success: #bfdbce;
    --line-warning: #e8c28f;
    --line-danger: #efc9c4;
    --line-danger-alert: #e4b8b3;
    --line-danger-soft: #e4b8b3;
    --line-danger-button: #e5c9c5;
    --line-control: #d7e3e9;
    --line-control-hover: #b6cbd7;
    --line-attachment: #c2d7e3;
    --line-comment-attachment: #cbdce5;
    --line-info: #9dc4dc;
    --line-critical: #b94b43;
    --text-on-accent: #fff;
    --handle-border: #fff;
    --muted-subtle: #5d7481;
    --muted-disabled: #5e7785;
    --text-navigation: #203b4d;
    --text-subtle: #496475;
    --text-quiet: #3d5a6b;
    --text-completed: #587281;
    --text-completed-muted: #5e7582;
    --text-separator: #657c89;
    --text-timestamp: #5b727f;
    --text-success: #26734f;
    --text-success-chip: #26734f;
    --text-error: #a5463c;
    --text-error-strong: #9d3d35;
    --text-error-dark: #79342e;
    --text-warning: #80551c;
    --text-warning-strong: #80551c;
    --text-critical: #a13e35;
    --text-info: #276b91;
    --background-critical: #bd4b43;
    --background-critical-hover: #a83e38;
    --notice-bg: #203b4d;
    --focus-ring: #276b9133;
    --focus-danger: #a5463c;
    --overlay: #17304477;
    --shadow-soft: #18304424;
    --shadow-strong: #18304433;
    --shadow-deep: #18304455;
}

:root[data-theme="silky-luna"] {
    color-scheme: dark;
    --ink: #f2ecd9;
    --muted: #d0c6ac;
    --green: #e1c879;
    --accent-strong: #f0dda7;
    --line: #5b5547;
    --primary: #846f43;
    --primary-hover: #715e39;
    --page-bg: #3a382f;
    --surface: #464338;
    --surface-hover: #524d3d;
    --surface-hover-muted: #4b483a;
    --surface-hover-strong: #5c5642;
    --surface-active: #5a523d;
    --surface-active-hover: #665c40;
    --surface-subtle: #414035;
    --surface-muted: #484438;
    --surface-faint: #3f3d33;
    --surface-card: #48443a;
    --surface-form: #4c483c;
    --surface-tinted: #4e493c;
    --surface-open: #504b3b;
    --surface-drop-target: #554e38;
    --surface-success: #3c4735;
    --surface-completed: #413e34;
    --surface-muted-row: #4d483b;
    --surface-attachment: #494538;
    --surface-progress: #5c5643;
    --surface-attachment-link: #4d493c;
    --surface-notification-target: #55492e;
    --surface-danger-warning: #4b302d;
    --surface-danger: #422d2a;
    --surface-danger-hover: #563632;
    --surface-danger-hover-soft: #563632;
    --surface-warning: #51452e;
    --surface-warning-hover: #65563a;
    --surface-info: #4c4634;
    --surface-info-hover: #5a5038;
    --surface-chrome-hover: #524d3d;
    --line-subtle: #514c40;
    --line-muted: #5b5549;
    --line-chip: #5b5549;
    --line-strong: #8b805f;
    --line-accent: #a18c55;
    --line-accent-muted: #8a7950;
    --line-success: #5a7058;
    --line-warning: #857145;
    --line-danger: #80504a;
    --line-danger-alert: #80504a;
    --line-danger-soft: #80504a;
    --line-danger-button: #80504a;
    --line-control: #5b5549;
    --line-control-hover: #82734e;
    --line-attachment: #71674e;
    --line-comment-attachment: #615a48;
    --line-info: #927f50;
    --line-critical: #b05c55;
    --line-attention: #b99a50;
    --text-on-accent: #fff;
    --handle-border: #f2ecd9;
    --muted-subtle: #beb397;
    --muted-disabled: #c2b99f;
    --text-navigation: #ede5ce;
    --text-subtle: #d2c8ad;
    --text-quiet: #d9cfb6;
    --text-completed: #c8bea6;
    --text-completed-muted: #c0b79e;
    --text-separator: #b8ad93;
    --text-timestamp: #d0c6ad;
    --text-success: #a5d3a3;
    --text-success-chip: #b5d7aa;
    --text-error: #ffb3a8;
    --text-error-strong: #ffb3a8;
    --text-error-dark: #ffc0b8;
    --text-warning: #f2d08b;
    --text-warning-strong: #f2d08b;
    --text-critical: #ffb3a8;
    --text-info: #e1c879;
    --background-critical: #bd4b43;
    --background-critical-hover: #a83e38;
    --notice-bg: #4a4536;
    --focus-ring: #e1c87966;
    --focus-danger: #ffb3a8;
    --overlay: #1b1912b3;
    --shadow-soft: #00000055;
    --shadow-strong: #00000077;
    --shadow-deep: #00000099;
}

* { box-sizing: border-box; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
body { min-width: 320px; min-height: 100vh; margin: 0; }
.login-shell { display: grid; grid-template-columns: minmax(320px, 500px) minmax(280px, 1fr); min-height: 100vh; }
.login-column { display: flex; flex-direction: column; min-width: 0; }
.login-brand { width: min(100% - 64px, 360px); margin: 48px auto 0; }
.login-panel { align-self: center; width: min(100% - 64px, 360px); margin: auto; padding: 48px 0; }
.eyebrow { color: var(--green); font-size: 12px; font-weight: 700; text-transform: uppercase; }
h1 { margin: 48px 0 12px; font-size: 36px; line-height: 1.12; }
.login-panel > h1 { margin-top: 0; }
.intro { margin: 0 0 32px; color: var(--muted); }
.login-language-picker { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px; margin-top: 18px; }
.login-language-picker label { color: var(--muted); font-size: 12px; font-weight: 600; }
.login-language-picker select { min-width: 126px; min-height: 34px; padding: 0 10px; border: 1px solid var(--line); border-radius: 4px; background: var(--surface); color: var(--ink); font: inherit; font-size: 12px; }
.login-language-picker select:focus { border-color: var(--green); outline: 3px solid var(--focus-ring); }
.login-form { display: grid; gap: 10px; }
.login-form label { margin-top: 8px; font-size: 13px; font-weight: 650; }
.login-form input { height: 44px; padding: 0 12px; border: 1px solid var(--line); border-radius: 4px; background: var(--surface); font: inherit; }
.login-form input:focus { border-color: var(--green); outline: 3px solid var(--focus-ring); }
.login-form button { height: 46px; margin-top: 18px; border: 0; border-radius: 4px; background: var(--primary); color: var(--text-on-accent); font: inherit; font-weight: 700; cursor: pointer; }
.login-form button:hover { background: var(--primary-hover); }
.login-form button:disabled { opacity: .65; cursor: wait; }
.auth-navigation { display: flex; flex-wrap: wrap; gap: 12px 20px; margin: 20px 0 0; }
.auth-remember { display: flex; align-items: flex-start; gap: 10px; margin-top: 10px !important; color: var(--ink); font-size: 13px; font-weight: 500 !important; line-height: 1.45; }
.login-form .auth-remember input { flex: 0 0 18px; width: 18px; height: 18px; margin: 2px 0 0; padding: 0; accent-color: var(--green); }
.auth-hint { margin: 0 0 4px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.auth-instructions { margin: 0 0 18px; padding: 14px; border: 1px solid var(--line); border-radius: 5px; background: var(--surface); }
.auth-instructions p, .auth-instructions li { color: var(--muted); font-size: 13px; line-height: 1.5; }
.auth-instructions p { margin: 0; }
.auth-instructions ol { display: grid; gap: 6px; margin: 12px 0 16px; padding-left: 20px; }
.mfa-qr-code { display: block; width: 205px; max-width: 100%; height: auto; margin: 12px 0; padding: 8px; border: 1px solid var(--line); border-radius: 4px; background: #fff; image-rendering: pixelated; }
.auth-manual-hint { margin: 0 0 8px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.auth-secret { display: grid; gap: 8px; padding: 12px; border: 1px solid var(--line); border-radius: 4px; background: var(--surface-active); }
.auth-secret > span { color: var(--muted); font-size: 12px; font-weight: 650; }
.auth-secret code { overflow-wrap: anywhere; color: var(--ink); font-size: 15px; font-weight: 700; letter-spacing: .08em; }
.auth-secret .outline-button { justify-self: start; }
.login-panel > .outline-button { min-height: 38px; padding: 0 12px; border: 1px solid var(--line); border-radius: 4px; background: var(--surface); color: var(--green); font: inherit; font-size: 13px; font-weight: 650; cursor: pointer; }
.login-panel > .outline-button:hover { background: var(--surface-active); }
.login-aside { display: flex; flex-direction: column; justify-content: space-between; min-height: 100vh; padding: 48px; background: #d8e9dd; background-image: linear-gradient(135deg, #e4eee5 0%, #d4e7dc 48%, #bfdccf 100%); }
.brand-mark { display: grid; place-items: center; width: 58px; aspect-ratio: 1; border-radius: 16px 16px 16px 4px; background: var(--primary); color: var(--text-on-accent); font-size: 17px; font-weight: 800; }
.brand-mark span { color: #f1c85c; }
.login-artwork { display: grid; flex: 1; place-items: center; min-height: 180px; }
.login-artwork svg { display: block; width: min(100%, 400px); height: auto; }
.login-aside p { max-width: 440px; margin: 0; font-size: 32px; font-weight: 650; line-height: 1.16; }
@media (max-width: 700px) {
    .login-shell { grid-template-columns: 1fr; }
    .login-brand { width: min(100% - 40px, 360px); margin-top: 24px; }
    .login-panel { width: min(100% - 40px, 360px); }
    h1 { margin-top: 20px; font-size: 32px; }
    .login-aside { min-height: 180px; padding: 24px; }
    .login-aside p { font-size: 22px; }
}

.workspace-page { height: 100vh; height: 100dvh; overflow: hidden; background: var(--page-bg); }
.workspace { display: grid; grid-template-columns: 250px minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); height: 100%; min-height: 0; overflow: hidden; }
.sidebar { display: flex; flex-direction: column; height: 100%; min-height: 0; overflow: hidden; padding: 16px 12px 12px; border-right: 1px solid var(--line); background: var(--surface); }
.environment-banner { flex: 0 0 auto; margin: -16px -12px 12px; padding: 8px 12px; background: #f97316; color: #1c1917; font-size: 12px; font-weight: 700; line-height: 1.4; text-align: center; }
.sidebar-top { display: flex; align-items: center; gap: 8px; margin: 0 4px 18px; }
.wordmark { display: flex; flex: 0 0 auto; align-items: center; margin: 0; color: var(--ink); text-decoration: none; }
.brand-mark { flex: 0 0 auto; width: 38px; height: 38px; border-radius: 11px 11px 11px 3px; font-size: 12px; }
.sidebar-heading { display: flex; align-items: center; justify-content: space-between; padding: 0 8px 10px; color: var(--muted); font-size: 12px; font-weight: 700; text-transform: uppercase; }
.sidebar-heading-actions { display: flex; align-items: center; gap: 5px; }
.sidebar-reorder-button { min-height: 34px; padding: 0 7px; border: 1px solid var(--line); border-radius: 4px; background: var(--surface); color: var(--green); font: inherit; font-size: 11px; font-weight: 650; text-transform: none; cursor: pointer; }
.sidebar-reorder-icon { display: grid; place-items: center; }
.sidebar-reorder-icon svg { width: 16px; height: 16px; }
.sidebar-reorder-button:hover, .sidebar-reorder-button[aria-pressed="true"] { border-color: var(--line-accent); background: var(--surface-active); }
.sidebar-reorder-button:disabled { cursor: not-allowed; opacity: .55; }
.sidebar-reorder-button:focus-visible, .list-reorder-move:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
.icon-button { display: inline-grid; place-items: center; width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 4px; background: var(--surface); color: var(--ink); font: inherit; font-size: 20px; cursor: pointer; }
.icon-button:hover, .outline-button:hover, .quiet-button:hover { background: var(--surface-hover); }
#list-navigation { display: grid; flex: 1 1 auto; align-content: start; gap: 2px; min-height: 0; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; }
.list-navigation-item { display: flex; align-items: center; gap: 2px; min-width: 0; border-radius: 4px; }
.list-navigation-item.is-dragging { opacity: .45; }
.list-navigation-item.drop-before { border-top: 2px solid var(--green); }
.list-navigation-item.drop-after { border-bottom: 2px solid var(--green); }
.list-reorder-grip { display: grid; flex: 0 0 14px; place-items: center; color: var(--muted-subtle); }
.list-reorder-grip svg { width: 13px; height: 13px; }
.list-link { display: flex; flex: 1 1 auto; align-items: center; justify-content: space-between; min-width: 0; min-height: 34px; padding: 0 8px; border: 0; border-radius: 4px; background: transparent; color: var(--text-navigation); font: inherit; font-size: 13px; text-align: left; cursor: pointer; }
.list-navigation-item.is-reorderable .list-link { cursor: grab; }
.list-navigation-item.is-reorderable:active .list-link { cursor: grabbing; }
.list-link span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.list-link:hover { background: var(--surface-hover-muted); }
.list-link.active { background: var(--surface-active); color: var(--accent-strong); font-weight: 650; }
.list-navigation-item[draggable="true"] { cursor: grab; }
.list-navigation-item[draggable="true"]:active { cursor: grabbing; }
.list-reorder-controls { display: flex; flex: 0 0 auto; gap: 1px; }
.list-reorder-move { display: grid; place-items: center; width: 22px; height: 24px; padding: 0; border: 0; border-radius: 3px; background: transparent; color: var(--muted); font: inherit; font-size: 13px; cursor: pointer; }
.list-reorder-move:hover:not(:disabled) { background: var(--surface-hover); color: var(--green); }
.list-reorder-move:disabled { cursor: not-allowed; opacity: .4; }
.lock-label, .permission-pill { color: var(--muted); font-size: 11px; }
.sidebar-bottom { display: grid; gap: 8px; margin-top: auto; padding: 12px 4px 0; border-top: 1px solid var(--line-subtle); }
.signed-in-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-width: 0; padding-top: 4px; }
.signed-in-row form { flex: 0 0 auto; margin: 0; }
.signed-in-user { display: flex; flex: 1 1 auto; align-items: center; gap: 6px; min-width: 0; }
.signed-in { min-width: 0; overflow: hidden; font-size: 12px; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
.live-update-status-wrap { position: relative; display: inline-flex; flex: 0 0 auto; }
.live-update-status { display: inline-grid; place-items: center; width: 22px; height: 24px; border-radius: 4px; color: #f59e0b; cursor: help; }
.live-update-status:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
.live-update-status-icon { display: block; width: 12px; height: 12px; border: 1px solid var(--muted); border-radius: 50%; background: currentColor; }
.live-update-status[data-state="active"] { color: #22c55e; }
.live-update-status[data-state="unavailable"], .live-update-status[data-state="offline"], .live-update-status[data-state="expired"] { color: #ef4444; }
.live-update-status[data-state="not-used"] { color: var(--muted); }
.live-update-tooltip { position: absolute; z-index: 20; bottom: 100%; left: -6px; width: 190px; max-width: calc(100vw - 40px); padding: 9px 11px; border: 1px solid var(--line); border-radius: 5px; background: var(--surface); color: var(--ink); box-shadow: 0 4px 16px var(--shadow-strong); font-size: 12px; font-weight: 400; line-height: 1.45; white-space: normal; visibility: hidden; opacity: 0; }
.live-update-status-wrap:not([data-tooltip-dismissed]):hover .live-update-tooltip,
.live-update-status-wrap:not([data-tooltip-dismissed]):focus-within .live-update-tooltip { visibility: visible; opacity: 1; }
.text-button { justify-self: start; padding: 0; border: 0; background: transparent; color: var(--green); font: inherit; font-size: 13px; cursor: pointer; }
.signed-in-row .text-button { white-space: nowrap; }
.main-panel { width: min(100%, 1120px); height: 100%; min-height: 0; margin: 0 auto; overflow-y: auto; overscroll-behavior: contain; padding: 40px 24px 64px; }
.content-header { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 28px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.content-header .eyebrow { margin: 0 0 8px; }
.content-header h1 { margin: 0; font-size: 28px; }
.workspace-title { flex: 1 1 auto; min-width: 0; }
.workspace-title h1 { overflow-wrap: anywhere; }
.task-name-row { display: flex; align-items: center; gap: 6px; min-width: 0; }
.task-name-row h1 { flex: 0 1 auto; min-width: 0; overflow: hidden; overflow-wrap: normal; text-overflow: ellipsis; white-space: nowrap; }
.task-name-row > .list-tool-button { flex: 0 0 24px; }
.task-name-row.is-complete h1 { color: var(--text-completed); text-decoration: line-through; }
.task-name-row form { flex: 1 1 auto; min-width: 0; }
.task-name-row form input { width: 100%; min-height: 42px; padding: 4px 8px; border: 1px solid var(--green); border-radius: 4px; background: var(--surface); color: var(--ink); font: inherit; font-size: 28px; font-weight: 650; }
.task-name-row form input:focus { outline: 3px solid var(--focus-ring); }
.list-title-row { display: flex; align-items: center; gap: 6px; min-height: 24px; }
.list-title-row .eyebrow { margin: 0; }
.list-owner { margin: 6px 0 0; color: var(--muted); font-size: 13px; overflow-wrap: anywhere; }
.list-title-actions { display: flex; align-items: center; gap: 2px; }
.list-tool-button { display: grid; place-items: center; width: 24px; height: 24px; padding: 0; border: 0; border-radius: 3px; background: transparent; color: var(--text-subtle); cursor: pointer; }
.list-tool-button:hover { background: var(--surface-hover-strong); }
.list-tool-button:disabled { cursor: not-allowed; opacity: .45; }
.list-tool-button.danger { color: var(--text-error); }
.list-tool-button svg { width: 14px; height: 14px; }
.header-actions { display: flex; align-items: center; flex: 0 0 auto; gap: 6px; }
.task-header-tools { display: grid; justify-items: end; gap: 8px; }
.toolbar-icon { display: inline-grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 1px solid var(--line); border-radius: 4px; background: var(--surface); color: var(--ink); cursor: pointer; }
.toolbar-icon:hover { background: var(--surface-hover); }
.toolbar-icon.is-active { border-color: var(--line-accent); background: var(--surface-active); color: var(--green); }
.toolbar-icon:disabled { cursor: not-allowed; opacity: .55; }
.toolbar-icon:focus-visible, .list-tool-button:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
.toolbar-icon.danger { color: var(--text-error); }
.toolbar-icon svg { width: 18px; height: 18px; }
.toolbar-icon[data-action="toggle-approval-process"] svg { width: 20px; height: 20px; }
.toolbar-icon[data-action="toggle-task-recurrence"] svg { width: 20px; height: 20px; }
.outline-button, .primary-button { min-height: 38px; padding: 0 13px; border: 1px solid var(--line); border-radius: 4px; background: var(--surface); color: var(--ink); font: inherit; font-size: 13px; font-weight: 650; cursor: pointer; }
.primary-button { border-color: var(--green); background: var(--primary); color: var(--text-on-accent); }
.primary-button:hover { background: var(--primary-hover); }
.task-section { display: grid; gap: 12px; }
.detail-section-title { margin: 0; color: var(--muted); font-size: 13px; font-weight: 650; line-height: 1.4; }
.approval-workflow-region, .recurrence-workflow-region { scroll-margin-top: 20px; margin: 24px 0 20px; }
.task-description-card.approval-panel { display: grid; grid-template-columns: minmax(0, 1fr); row-gap: 12px; width: 100%; margin: 0; padding: 12px; border: 1px solid var(--line); border-radius: 5px; background: var(--surface); white-space: normal; }
.approval-panel.has-actions { grid-template-columns: minmax(0, 1fr) auto; column-gap: 20px; align-items: stretch; }
.approval-status { grid-column: 1; grid-row: 1; min-width: 0; }
.approval-fields { display: grid; grid-column: 1; grid-row: 2; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 12px 20px; width: 100%; min-width: 0; }
.approval-field { display: grid; align-self: start; align-content: start; gap: 6px; min-width: 0; color: var(--muted); font-size: 12px; font-weight: 650; }
.approval-field > span { flex: 0 0 auto; }
.approval-field-value { box-sizing: border-box; display: flex; align-self: start; align-items: center; height: 34px; min-height: 34px; min-width: 0; color: var(--ink); font-size: 13px; font-weight: 400; }
.approval-field-value strong { font-weight: 600; overflow-wrap: anywhere; }
.approval-value-button { display: inline-flex; align-items: center; max-width: 100%; min-height: 34px; padding: 0; border: 0; border-bottom: 1px dashed var(--line-accent-muted); background: transparent; color: var(--ink); font: inherit; text-align: left; overflow-wrap: anywhere; cursor: pointer; }
.approval-value-button:hover { color: var(--green); }
.task-owner-detail.approval-approver-detail { justify-content: flex-start; min-height: 34px; }
.approval-approver-detail .quiet-button { white-space: nowrap; }
.approval-approver-detail .owner-picker-menu { top: calc(100% + 1px); padding: 0 4px; }
.approval-status { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; margin: 0; padding: 10px 12px; border: 1px solid var(--line-warning); border-left: 3px solid var(--text-warning); border-radius: 4px; background: var(--surface-warning); }
.approval-status.is-approved { border-color: var(--line-success); border-left-color: var(--text-success); background: var(--surface-success); }
.approval-status.is-rejected { border-color: var(--line-danger); border-left-color: var(--text-error); background: var(--surface-danger-warning); }
.approval-status-label { display: inline-flex; flex: 0 0 auto; align-items: center; min-height: 24px; padding: 0 9px; border-radius: 999px; background: var(--surface); color: var(--text-warning); font-size: 11px; font-weight: 750; }
.approval-status.is-approved .approval-status-label { background: var(--surface-success); color: var(--text-success); }
.approval-status.is-rejected .approval-status-label { background: var(--surface-danger); color: var(--text-error); }
.approval-status-message { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.45; }
.approval-status.is-approved .approval-status-message { color: var(--text-success); }
.approval-status.is-rejected .approval-status-message { color: var(--text-error-dark); }
.approval-decision-time { color: var(--muted); font-size: 12px; font-weight: 400; }
.approval-actions { display: flex; flex: 0 0 auto; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px; grid-column: 2; grid-row: 1; justify-self: end; align-self: stretch; }
.approval-actions > [data-action="decide-approval"] { width: 112px; align-self: stretch; }
.approval-actions > [data-action="reset-approval"] { align-self: stretch; }
.approval-actions .outline-button, .approval-actions .primary-button { min-height: 34px; }
.recurrence-panel, .recurrence-readonly { display: grid; gap: 16px; width: 100%; margin: 0; white-space: normal; }
.recurrence-form-fields { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.recurrence-base-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 12px 16px; }
.recurrence-field { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; min-width: 0; color: var(--muted); font-size: 12px; font-weight: 650; }
.recurrence-field > span:first-child { flex: 0 0 auto; }
.recurrence-base-field { display: grid; align-content: start; gap: 6px; }
.recurrence-field input:not([type="hidden"]), .recurrence-field select, .recurrence-pattern-option select { box-sizing: border-box; height: 34px; min-height: 34px; min-width: 80px; padding: 0 8px; border: 1px solid var(--line); border-radius: 4px; background: var(--surface); color: var(--ink); font: inherit; font-size: 12px; }
.recurrence-base-field input:not([type="hidden"]), .recurrence-base-field select { width: 100%; height: 38px; min-height: 38px; }
.recurrence-base-field > select { height: 38px; }
.recurrence-date-control { display: flex; width: 100%; }
.recurrence-date-picker-trigger { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; height: 38px; min-height: 38px; padding: 0 10px; border: 1px solid var(--line); border-radius: 4px; background: var(--surface); color: var(--ink); font: inherit; font-size: 13px; text-align: left; cursor: pointer; }
.recurrence-date-picker-trigger:hover { border-color: var(--line-strong); background: var(--surface-hover-muted); }
.recurrence-date-picker-trigger:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
.recurrence-date-picker-trigger svg { flex: 0 0 16px; width: 16px; height: 16px; color: var(--muted); }
.recurrence-interval-control { display: inline-flex; align-items: center; gap: 8px; }
.recurrence-interval-control input { width: 88px; flex: 0 0 88px; }
.recurrence-interval-control > span { color: var(--muted); font-size: 12px; font-weight: 500; }
.recurrence-frequency-fields { display: grid; grid-column: 1 / -1; align-content: start; gap: 14px; min-width: 0; margin: 0; padding: 14px; border: 1px solid var(--line-subtle); border-radius: 4px; background: var(--surface-subtle); }
.recurrence-frequency-fields[hidden], .recurrence-pattern-options [hidden] { display: none !important; }
.recurrence-frequency-fields > legend { padding: 0 5px; color: var(--ink); font-size: 12px; font-weight: 700; }
.recurrence-weekdays { display: grid; gap: 10px; min-width: 0; margin: 0; padding: 0; border: 0; }
.recurrence-weekdays > legend { color: var(--muted); font-size: 12px; font-weight: 650; }
.recurrence-weekday-options { display: flex; flex-wrap: wrap; gap: 8px; }
.recurrence-weekday-toggle { position: relative; display: inline-flex; cursor: pointer; user-select: none; }
.recurrence-weekday-toggle > span { display: inline-flex; align-items: center; justify-content: center; min-height: 36px; padding: 0 12px; border: 1px solid var(--line); border-radius: 5px; background: var(--surface); color: var(--muted); font-size: 12px; font-weight: 600; transition: background-color .14s, border-color .14s, color .14s; }
.recurrence-weekday-toggle:hover > span { border-color: var(--line-accent); background: var(--surface-hover); color: var(--ink); }
.recurrence-weekday-toggle > input:checked + span { border-color: var(--line-accent); background: var(--surface-active); color: var(--green); box-shadow: inset 0 0 0 1px var(--line-accent); }
.recurrence-weekday-toggle > input:focus-visible + span { outline: 2px solid var(--green); outline-offset: 2px; }
.recurrence-pattern-options { display: grid; justify-items: stretch; gap: 8px; }
.recurrence-pattern-option { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; width: 100%; padding: 8px 10px; border: 1px solid var(--line-subtle); border-radius: 4px; background: var(--surface); color: var(--ink); font-size: 12px; }
.recurrence-pattern-option > span { min-width: 80px; }
.recurrence-pattern-option input { flex: 0 0 auto; accent-color: var(--green); }
.recurrence-pattern-option select:disabled { cursor: not-allowed; opacity: .58; }
.recurrence-preview-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.recurrence-preview { flex: 1 1 auto; min-width: 0; margin: 0; padding: 10px 12px; border-left: 3px solid var(--line-accent); border-radius: 3px; background: var(--surface-subtle); color: var(--muted); font-size: 13px; line-height: 1.45; }
.recurrence-status { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; margin: 0; padding: 10px 12px; border: 1px solid var(--line-subtle); border-left: 3px solid var(--line-accent); border-radius: 4px; background: var(--surface-subtle); }
.recurrence-status.is-active { border-left-color: var(--line-success); }
.recurrence-status.is-inactive { border-color: var(--line-danger); border-left-color: var(--text-error); background: var(--surface-danger-warning); }
.recurrence-status-label { display: inline-flex; flex: 0 0 auto; align-items: center; min-height: 24px; padding: 0 9px; border-radius: 999px; background: var(--surface); color: var(--muted); font-size: 11px; font-weight: 750; }
.recurrence-status.is-active .recurrence-status-label { background: var(--surface-success); color: var(--text-success); }
.recurrence-status.is-inactive .recurrence-status-label { background: var(--surface-danger); color: var(--text-error); }
.recurrence-status p, .recurrence-readonly > p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.45; }
.recurrence-status.is-inactive p { color: var(--text-error-dark); }
.recurrence-actions { display: flex; flex: 0 0 auto; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.recurrence-actions button:disabled { cursor: wait; opacity: .6; }
.owner-picker { position: relative; min-width: 0; }
.owner-picker-input { width: 100%; color: var(--ink); caret-color: var(--green); }
.owner-picker-input::placeholder { color: var(--muted); opacity: 1; }
.owner-picker-menu { position: absolute; top: calc(100% + 5px); left: 0; z-index: 8; width: max-content; min-width: min(400px, calc(100vw - 24px)); max-width: min(640px, calc(100vw - 24px)); padding: 4px; border: 1px solid var(--line); border-radius: 5px; background: var(--surface); box-shadow: 0 10px 30px var(--shadow-soft); }
.owner-picker-menu[hidden] { display: none; }
.owner-picker-options { max-height: min(260px, 40vh); overflow-y: auto; overscroll-behavior: contain; }
.owner-picker-option { display: grid; grid-template-columns: minmax(0, 1fr); align-content: center; gap: 3px; width: 100%; min-height: 44px; padding: 6px 8px; border: 0; border-radius: 3px; background: var(--surface); color: var(--ink); font: inherit; font-size: 12px; text-align: left; cursor: pointer; }
.owner-picker-option:hover, .owner-picker-option[aria-selected="true"] { background: var(--surface-hover); }
.owner-picker-option:focus-visible { outline: 2px solid var(--green); outline-offset: -2px; }
.owner-picker-option-username { min-width: 0; overflow-wrap: anywhere; font-weight: 650; white-space: normal; }
.owner-picker-option-name { min-width: 0; overflow-wrap: anywhere; color: var(--muted); font-size: 11px; white-space: normal; }
.owner-picker-empty { padding: 8px; color: var(--muted); font-size: 12px; }
.task-list-controls { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 18px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 5px; background: var(--surface-subtle); }
.task-list-primary-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; }
.task-list-controls label { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 12px; }
.task-list-controls select { box-sizing: border-box; height: 34px; max-width: min(100%, 290px); min-height: 34px; padding: 0 9px; border: 1px solid var(--line); border-radius: 4px; background: var(--surface); color: var(--ink); font: inherit; font-size: 12px; }
.owner-filter { position: relative; flex: 0 0 auto; }
.owner-filter > summary { display: flex; align-items: center; gap: 8px; min-height: 34px; padding: 0 9px; border: 1px solid var(--line); border-radius: 4px; background: var(--surface); color: var(--muted); font-size: 12px; list-style: none; cursor: pointer; }
.task-list-controls .owner-filter > summary { box-sizing: border-box; height: 34px; }
.owner-filter > summary::marker { content: ""; }
.owner-filter > summary::-webkit-details-marker { display: none; }
.owner-filter > summary::after { color: var(--muted); content: "▾"; font-size: 11px; }
.owner-filter > summary strong { max-width: 180px; overflow: hidden; color: var(--ink); font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.owner-filter[open] > summary { border-color: var(--line-accent); background: var(--surface-open); }
.owner-filter-menu { position: absolute; top: calc(100% + 5px); right: 0; z-index: 7; display: grid; gap: 4px; width: min(280px, calc(100vw - 36px)); padding: 8px; border: 1px solid var(--line); border-radius: 5px; background: var(--surface); box-shadow: 0 10px 30px var(--shadow-soft); }
.owner-filter-options { display: grid; max-height: 240px; overflow-y: auto; overscroll-behavior: contain; }
.owner-filter-menu .owner-filter-option { display: flex; align-items: center; gap: 9px; min-height: 34px; padding: 5px 8px; border-radius: 3px; color: var(--ink); font-size: 12px; cursor: pointer; }
.owner-filter-menu .owner-filter-option:hover { background: var(--surface-hover-muted); }
.owner-filter-menu .owner-filter-option input { flex: 0 0 auto; margin: 0; accent-color: var(--green); }
.owner-filter-all { margin-bottom: 3px; padding-bottom: 7px !important; border-bottom: 1px solid var(--line-subtle); }
.task-list { display: grid; gap: 0; }
.completed-task-group { display: grid; gap: 2px; margin-top: 10px; padding-top: 8px; border-top: 1px solid var(--line); }
.completed-task-group h3 { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0 8px 4px; color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.completed-task-toggle, .completed-task-toggle:visited { color: var(--green); font-size: 11px; font-weight: 500; letter-spacing: normal; text-decoration: none; text-transform: none; }
.completed-task-toggle:hover { text-decoration: underline; text-underline-offset: 2px; }
.completed-task-toggle:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
.completed-task-group .task-list[hidden] { display: none; }
.task-row { border-bottom: 1px solid var(--line-muted); }
.task-row, .task-name-row { transition: opacity .35s ease; }
.task-row.is-fading-out, .task-name-row.is-fading-out { opacity: 0; pointer-events: none; }
.task-row.is-fading-in, .task-name-row.is-fading-in { animation: task-completion-fade-in .35s ease both; }
@keyframes task-completion-fade-in { from { opacity: 0; } to { opacity: 1; } }
.task-row:not(.task-create-row):has(+ .task-create-row) { margin-bottom: 2px; border-bottom: 0; }
.task-list > .task-row:not(.task-create-row):nth-child(odd) { background: var(--surface); }
.task-list > .task-row:not(.task-create-row):nth-child(even) { background: var(--surface-subtle); }
.task-list > .task-row.is-complete:nth-child(odd) { background: var(--surface-completed); }
.task-list > .task-row.is-complete:nth-child(even) { background: var(--surface-muted-row); }
.task-create-row { background: var(--surface); }
.task-row.is-pending-create { opacity: .8; }
.task-row.is-pending-create .task-title, .task-row.is-pending-create .task-title:hover strong { cursor: default; text-decoration: none; }
.task-main { display: flex; align-items: center; gap: 8px; min-height: 30px; padding: 4px 8px; }
.task-create-submit { flex: 0 0 52px; width: 52px; min-height: 26px; padding: 0 8px; font-size: 11px; }
.task-create-name { width: 100%; min-width: 0; min-height: 26px; padding: 2px 4px; border: 1px solid transparent; border-radius: 3px; background: transparent; color: var(--ink); font: inherit; font-size: 14px; font-weight: 400; }
.task-create-name::placeholder { color: var(--muted); font-weight: 500; opacity: 1; }
.task-create-name:focus { border-color: var(--green); outline: 2px solid var(--focus-ring); outline-offset: 1px; background: var(--surface); }
.task-create-owner { flex: 0 1 20%; min-width: 0; }
.task-create-owner .owner-picker-input { min-height: 26px; padding: 3px 6px; border: 1px solid transparent; border-radius: 4px; background: transparent; color: var(--muted); font: inherit; font-size: 11px; text-align: right; }
.task-create-owner .owner-picker-input:focus { border-color: var(--green); outline: 2px solid var(--focus-ring); outline-offset: 1px; background: var(--surface); color: var(--ink); }
.task-drag-handle { display: grid; flex: 0 0 22px; place-items: center; width: 22px; height: 26px; padding: 0; border: 0; border-radius: 3px; background: transparent; color: var(--muted-subtle); cursor: grab; }
.task-drag-handle:hover { background: var(--surface-hover); color: var(--green); }
.task-drag-handle:active { cursor: grabbing; }
.task-drag-handle.is-locked { color: var(--muted-disabled); cursor: not-allowed; }
.task-drag-handle:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
.task-drag-handle svg { width: 16px; height: 16px; }
.task-row.is-dragging { opacity: .45; }
.task-row.drop-before { border-top: 2px solid var(--green); }
.task-row.drop-after { border-bottom: 2px solid var(--green); }
.check-button { appearance: none; flex: 0 0 auto; display: grid; place-items: center; width: 22px; height: 22px; margin: 1px 0 0; border: 1px solid var(--line-strong); border-radius: 3px; background: var(--surface); cursor: pointer; }
.check-button:checked { border-color: var(--green); background: var(--surface-success); }
.check-button:checked::after { width: 5px; height: 9px; border: solid var(--green); border-width: 0 2px 2px 0; content: ""; transform: rotate(45deg) translate(-1px, -1px); }
.check-button:disabled { cursor: default; opacity: .65; }
.task-row.is-complete { background: var(--surface-completed); }
.task-copy { flex: 1 1 0; min-width: 0; }
.task-save-indicator { display: block; margin-top: 2px; color: var(--muted); font-size: 10px; }
.task-title { display: block; max-width: 100%; padding: 0; border: 0; background: transparent; color: inherit; font: inherit; text-align: left; text-decoration: none; cursor: pointer; }
.task-title:hover strong { text-decoration: underline; text-underline-offset: 3px; }
.task-copy strong { display: block; overflow-wrap: anywhere; font-size: 14px; font-weight: 400; }
.task-owner { flex: 0 1 20%; min-width: 0; margin-left: 0; overflow: hidden; color: var(--muted); font-size: 11px; text-align: right; text-overflow: ellipsis; white-space: nowrap; }
.task-date-group { display: flex; flex: 0 0 auto; align-items: center; gap: 4px; }
.task-date-controls-detail { justify-content: flex-end; }
.task-date-control { position: relative; display: inline-flex; }
.task-date-control-row { flex: 0 0 132px; width: 132px; }
.task-date-chip { display: inline-flex; align-items: center; gap: 5px; min-height: 26px; padding: 3px 6px; border: 1px solid transparent; border-radius: 4px; color: var(--green); font: inherit; font-size: 10px; line-height: 1.2; white-space: nowrap; }
.task-date-chip.task-date-row { width: 100%; justify-content: space-between; }
.task-date-row .task-date-value { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
button.task-date-chip, .task-date-chip[role="button"] { cursor: pointer; }
.task-date-chip[aria-disabled="true"] { cursor: not-allowed; }
.task-date-chip:hover { filter: brightness(.97); }
button.task-date-chip:focus-visible, .task-date-chip[role="button"]:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
.task-date-chip.is-on-track { border-color: var(--line-success); background: var(--surface-active); color: var(--text-success-chip); }
.task-date-chip.task-date-work { border-left-width: 2px; }
.task-date-chip.is-overdue { border-color: var(--line-danger); background: var(--surface-danger); color: var(--text-error-strong); }
.task-date-chip.is-unset { border-color: var(--line-chip); border-style: dashed; background: var(--surface-subtle); color: var(--muted); }
.task-date-label { display: inline-flex; align-items: center; gap: 3px; font-weight: 700; }
.task-date-label svg { flex: 0 0 auto; width: 12px; height: 12px; }
.task-date-value { font-weight: 550; }
.task-date-chip.task-date-approval .task-date-value { flex: 1 1 auto; min-width: 0; white-space: normal; }
.task-date-detail { min-height: 28px; padding: 4px 8px; font-size: 11px; }
.task-date-picker { position: absolute; top: calc(100% + 6px); right: 0; z-index: 6; display: grid; gap: 8px; width: 264px; padding: 12px; border: 1px solid var(--line); border-radius: 5px; background: var(--surface); box-shadow: 0 10px 30px var(--shadow-soft); color: var(--ink); }
.task-date-picker-floating { position: fixed; top: 0; right: auto; z-index: 20; }
.date-picker-header { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.date-picker-header strong { font-size: 13px; text-transform: capitalize; }
.date-picker-header button, .date-picker-footer button { min-height: 30px; padding: 0 7px; border: 1px solid transparent; border-radius: 3px; background: transparent; color: var(--ink); font: inherit; font-size: 12px; cursor: pointer; }
.date-picker-header button { width: 30px; padding: 0; font-size: 20px; }
.date-picker-header button:hover, .date-picker-footer button:hover { border-color: var(--line); background: var(--surface-hover-muted); }
.date-picker-weekdays, .date-picker-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 2px; text-align: center; }
.date-picker-weekdays { color: var(--muted); font-size: 10px; font-weight: 650; }
.date-picker-weekdays span { padding: 3px 0; }
.calendar-day, .calendar-day-empty { display: grid; place-items: center; min-width: 0; min-height: 30px; }
.calendar-day { padding: 0; border: 1px solid transparent; border-radius: 4px; background: transparent; color: var(--ink); font: inherit; font-size: 12px; cursor: pointer; }
.calendar-day:hover { background: var(--surface-hover); }
.calendar-day:disabled { color: var(--muted); cursor: not-allowed; opacity: .4; }
.calendar-day.is-today { border-color: var(--line-accent); color: var(--green); font-weight: 700; }
.calendar-day.is-selected { background: var(--primary); color: var(--text-on-accent); }
.calendar-day.is-selected:hover { background: var(--primary-hover); }
.calendar-day:focus-visible, .date-picker-header button:focus-visible, .date-picker-footer button:focus-visible { outline: 2px solid var(--green); outline-offset: 1px; }
.date-picker-footer { display: flex; align-items: center; justify-content: flex-end; gap: 4px; padding-top: 4px; border-top: 1px solid var(--line-subtle); }
.date-picker-footer span { flex: 1; }
.is-complete .task-copy strong { color: var(--text-completed); text-decoration: line-through; }
.is-complete .task-copy p, .is-complete .task-copy small { color: var(--text-completed-muted); }
.task-breadcrumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; margin: -14px 0 22px; color: var(--muted); font-size: 13px; }
.task-breadcrumbs button, .task-breadcrumbs a { padding: 0; border: 0; background: transparent; color: var(--green); font: inherit; text-decoration: none; cursor: pointer; }
.task-breadcrumbs button:hover, .task-breadcrumbs a:hover > span { text-decoration: underline; text-underline-offset: 3px; }
.task-breadcrumbs button::after, .task-breadcrumbs a::after { margin-left: 7px; color: var(--text-separator); content: "/"; text-decoration: none; }
.task-breadcrumbs [aria-current="page"] { color: var(--ink); font-weight: 650; }
.task-description-card { min-height: 54px; margin: 8px 0 20px; padding: 12px; border: 1px solid var(--line); border-radius: 5px; background: var(--surface); color: var(--ink); font-size: 14px; line-height: 1.5; overflow-wrap: anywhere; white-space: pre-wrap; }
.task-description-section { display: grid; gap: 8px; margin: 24px 0 20px; }
.task-description-section .task-description-card, .task-description-section .task-description-edit { margin: 0; }
.task-description-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.task-description-heading .outline-button { min-height: 32px; }
.task-description-card.is-editable { color: var(--muted); cursor: text; }
.task-description-card.is-editable:hover { border-color: var(--line-strong); }
.task-description-card img { max-width: 100%; height: auto; vertical-align: middle; border-radius: 4px; }
.task-description-edit { display: grid; justify-items: end; gap: 8px; margin: 8px 0 20px; }
.task-description-edit textarea { width: 100%; min-height: 130px; padding: 12px; border: 1px solid var(--line); border-radius: 5px; background: var(--surface); color: var(--ink); font: inherit; font-size: 14px; line-height: 1.5; resize: vertical; }
.task-description-edit textarea:focus { border-color: var(--green); outline: 3px solid var(--focus-ring); }
.task-description-edit button:disabled { cursor: default; opacity: .5; }
.rich-description-form { justify-items: stretch; gap: 8px; }
.editor-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; padding: 6px; border: 1px solid var(--line); border-radius: 5px; background: var(--surface); }
.editor-toolbar > button, .editor-color-toggle { display: inline-grid; place-items: center; min-width: 34px; height: 34px; padding: 0 7px; border: 1px solid transparent; border-radius: 3px; background: transparent; color: var(--ink); font: inherit; cursor: pointer; }
.editor-toolbar > .editor-link-button { display: inline-flex; align-items: center; justify-content: center; gap: 5px; padding: 0 9px; white-space: nowrap; }
.editor-link-button span { font-size: 13px; }
.editor-toolbar > button:hover:not(:disabled), .editor-color-toggle:hover:not(:disabled) { border-color: var(--line); background: var(--surface-hover); }
.editor-toolbar [aria-pressed="true"], .editor-color-toggle[aria-expanded="true"] { border-color: var(--line-strong); background: var(--surface-active); }
.editor-toolbar button:focus-visible, .editor-size-label select:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
.editor-toolbar svg { width: 18px; height: 18px; }
.editor-toolbar-separator { align-self: stretch; width: 1px; min-height: 24px; margin: 3px; background: var(--line); }
.editor-color-picker { position: relative; }
.editor-color-toggle { display: flex; gap: 4px; }
.editor-color-toggle::after { content: ""; width: 0; height: 0; border: 3px solid transparent; border-top-color: currentColor; transform: translateY(2px); }
.editor-color-symbol { min-width: 18px; border-bottom: 3px solid var(--green); font-size: 15px; font-weight: 700; line-height: 19px; }
.editor-background-symbol { border: 1px solid var(--line-strong); border-radius: 2px; background: var(--surface-active); }
.editor-color-menu { position: absolute; z-index: 6; top: calc(100% + 6px); left: 0; display: grid; width: 208px; gap: 10px; padding: 12px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); color: var(--ink); box-shadow: 0 6px 20px var(--shadow-soft); }
.editor-color-menu[hidden] { display: none; }
.editor-color-menu[data-editor-palette="foreColor"] { width: 244px; }
.editor-color-menu-title { font-size: 12px; font-weight: 650; }
.editor-color-grid { display: grid; grid-template-columns: repeat(5, 28px); justify-content: start; gap: 10px; }
.editor-color-menu[data-editor-palette="foreColor"] .editor-color-grid { grid-template-columns: repeat(6, 28px); }
.editor-color-swatch { display: grid; width: 28px; height: 28px; place-items: center; padding: 0; border: 1px solid #64748b; border-radius: 50%; background: var(--swatch); cursor: pointer; }
.editor-color-swatch[aria-pressed="true"] { background: var(--swatch); outline: 2px solid var(--ink); outline-offset: 2px; }
.editor-color-swatch:hover { border-color: var(--ink); }
.editor-color-reset { min-height: 32px; padding: 4px 6px; border: 1px solid var(--line); border-radius: 3px; background: var(--surface); color: var(--ink); font: inherit; font-size: 12px; cursor: pointer; }
dialog.editor-link-dialog { width: min(calc(100vw - 32px), 480px); height: fit-content; margin: auto; padding: 16px; border: 1px solid var(--line); color: var(--ink); text-align: left; white-space: normal; }
dialog.editor-link-dialog[open] { display: grid; align-content: start; grid-auto-rows: max-content; gap: 10px; }
dialog.editor-link-dialog::backdrop { background: var(--overlay); }
.editor-link-field { display: grid; gap: 6px; color: var(--ink); font-size: 13px; }
.editor-link-field input { width: 100%; min-height: 38px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 4px; background: var(--surface); color: var(--ink); font: inherit; }
.editor-link-field input:focus { outline: 2px solid var(--green); outline-offset: 2px; }
dialog.editor-link-dialog footer { flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
dialog.editor-link-dialog footer > span { flex: 1; }
dialog.editor-link-dialog [hidden] { display: none; }
.rich-editor a[data-website-link], .task-description-card a[data-website-link], .task-comment-content a[data-website-link] { color: var(--green); text-decoration: underline; text-underline-offset: 2px; overflow-wrap: anywhere; }
.rich-editor a[data-website-link] { cursor: text; }
.editor-size-label { display: inline-flex; align-items: center; gap: 6px; margin-left: 4px; color: var(--muted); font-size: 12px; }
.editor-size-label select { min-height: 32px; padding: 0 7px; border: 1px solid var(--line); border-radius: 3px; background: var(--surface); color: var(--ink); font: inherit; }
.rich-editor-shell { position: relative; }
.rich-editor { min-height: 150px; max-height: 55vh; overflow: auto; padding: 12px; border: 1px solid var(--line); border-radius: 5px; background: var(--surface); color: var(--ink); font-size: 14px; line-height: 1.55; overflow-wrap: anywhere; white-space: pre-wrap; }
.rich-editor:focus { border-color: var(--green); outline: 3px solid var(--focus-ring); }
.rich-editor[aria-busy="true"] { cursor: wait; }
.rich-editor.is-file-drop-target { border-color: var(--green); background: var(--surface-drop-target); }
.rich-editor img { max-width: 100%; height: auto; vertical-align: middle; border-radius: 4px; cursor: grab; }
.rich-editor img.is-uploading { opacity: .68; }
.rich-editor img.is-selected { outline: 2px solid var(--green); outline-offset: 2px; }
.rich-editor .is-dragging { opacity: .4; }
.editor-attachment-link { display: inline-block; margin: 2px 3px; padding: 5px 8px; border: 1px solid var(--line-attachment); border-radius: 4px; background: var(--surface-attachment); color: var(--green); font-size: 13px; text-decoration: underline; overflow-wrap: anywhere; }
.rich-editor .editor-attachment-link { cursor: grab; user-select: none; }
.editor-attachment-link.is-uploading { opacity: .68; }
.rich-editor hr, .task-description-card hr, .task-comment-content hr { clear: both; margin: 14px 0; border: 0; border-top: 1px solid var(--line-strong); }
.rich-editor ul, .task-description-card ul, .task-comment-content ul { padding-inline-start: 24px; }
.image-resize-handle { position: absolute; z-index: 2; width: 16px; height: 16px; padding: 0; border: 2px solid var(--handle-border); border-radius: 50%; background: var(--green); box-shadow: 0 1px 5px var(--shadow-deep); cursor: nwse-resize; touch-action: none; }
.image-resize-handle:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.description-editor-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.editor-hint { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.45; }
.description-progress { display: grid; width: 100%; gap: 6px; }
.description-progress[hidden] { display: none; }
.description-progress-label { color: var(--muted); font-size: 12px; }
.description-progress-track { height: 7px; overflow: hidden; border-radius: 999px; background: var(--surface-progress); }
.description-progress-value { width: 0; height: 100%; border-radius: inherit; background: var(--green); transition: width .16s ease-out; }
.description-progress.is-indeterminate .description-progress-value { animation: task-save-progress 1.1s ease-in-out infinite alternate; }
@keyframes task-save-progress { from { transform: translateX(-110%); } to { transform: translateX(310%); } }
@media (prefers-reduced-motion: reduce) {
    .description-progress-value { transition: none; }
    .description-progress.is-indeterminate .description-progress-value { animation-duration: 2s; }
}
.attachments-dialog { display: grid; gap: 14px; width: min(100%, 680px); }
.attachments-dialog footer { justify-content: flex-end; }
.attachment-list { display: grid; max-height: min(55vh, 520px); overflow: auto; }
.attachment-empty { margin: 0; padding: 18px 8px; color: var(--muted); font-size: 13px; }
.attachment-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 62px; padding: 10px 4px; border-bottom: 1px solid var(--line-subtle); }
.attachment-thumbnail { flex: 0 0 48px; width: 48px; height: 48px; border: 1px solid var(--line); border-radius: 4px; object-fit: cover; background: var(--surface-hover-muted); }
.attachment-copy { display: grid; min-width: 0; gap: 4px; }
.attachment-copy strong { overflow-wrap: anywhere; font-size: 13px; font-weight: 650; }
.attachment-copy small { color: var(--muted); font-size: 11px; }
.attachment-actions { display: flex; flex: 0 0 auto; align-items: center; gap: 6px; }
.attachment-actions .outline-button { display: inline-flex; align-items: center; justify-content: center; min-height: 32px; padding: 0 9px; font-size: 12px; text-decoration: none; }
.outline-button.danger-button { border-color: var(--line-danger-button); color: var(--text-error); }
.outline-button.danger-button:hover { background: var(--surface-danger-hover); }
.unsaved-changes-dialog { display: grid; gap: 14px; width: min(100%, 440px); }
.unsaved-changes-dialog p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.5; }
.unsaved-changes-dialog footer { justify-content: flex-end; flex-wrap: wrap; }
.task-detail-meta { display: grid; justify-items: end; gap: 6px; }
.task-owner-detail { display: flex; align-items: center; justify-content: flex-end; gap: 5px; min-height: 24px; margin: 0; color: var(--muted); font-size: 13px; }
.task-owner-detail strong { color: var(--ink); font-weight: 600; }
.task-owner-detail .owner-picker { flex: 0 1 400px; }
.task-owner-detail .owner-picker-input { min-height: 34px; padding: 0 8px; border: 1px solid var(--line); border-radius: 4px; background: var(--surface); font: inherit; font-size: 12px; }
.parent-picker-dialog { display: grid; gap: 16px; }
.parent-picker-tree { max-height: min(55vh, 500px); overflow: auto; padding: 8px; border: 1px solid var(--line); border-radius: 4px; }
.parent-picker-tree ul { margin: 0; padding-left: 22px; list-style: none; }
.parent-picker-tree > ul { padding-left: 0; }
.parent-picker-tree li { margin: 2px 0; }
.parent-tree-row { display: flex; align-items: center; gap: 5px; min-height: 34px; }
.tree-toggle, .tree-toggle-placeholder { display: grid; flex: 0 0 26px; place-items: center; width: 26px; height: 26px; }
.tree-toggle { border: 1px solid var(--line); border-radius: 3px; background: var(--surface); color: var(--ink); font: inherit; cursor: pointer; }
.parent-tree-select, .parent-root-option { display: flex; align-items: center; gap: 8px; min-height: 34px; padding: 5px 9px; border: 1px solid transparent; border-radius: 3px; background: transparent; color: var(--ink); font: inherit; text-align: left; cursor: pointer; }
.parent-tree-select input, .parent-root-option input { flex: 0 0 auto; margin: 0; accent-color: var(--green); }
.parent-tree-select.selected, .parent-root-option.selected { border-color: var(--line-accent); background: var(--surface-active); color: var(--accent-strong); }
.parent-tree-select:hover, .parent-root-option:hover { background: var(--surface-hover); }
.parent-root-option { width: 100%; margin-bottom: 6px; }
.quiet-button { min-height: 30px; padding: 0 7px; border: 0; border-radius: 3px; background: transparent; color: var(--text-quiet); font: inherit; font-size: 12px; cursor: pointer; }
.quiet-button.danger, .icon-button.danger { color: var(--text-error); }
.empty-workspace { display: grid; justify-items: center; align-content: center; min-height: 75vh; text-align: center; }
.empty-workspace h1 { margin: 18px 0 8px; font-size: 28px; }
.empty-workspace p, .empty-tasks { color: var(--muted); font-size: 14px; }
.empty-mark { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px 14px 14px 4px; background: var(--surface-active-hover); color: var(--green); font-size: 24px; }
.notice { position: fixed; z-index: 10; right: 20px; bottom: 20px; max-width: min(420px, calc(100vw - 40px)); padding: 12px 16px; border-radius: 4px; background: var(--notice-bg); color: var(--text-on-accent); opacity: 0; pointer-events: none; transform: translateY(8px); transition: opacity .16s, transform .16s; }
.notice.visible { opacity: 1; transform: translateY(0); }
.notice.has-action { display: flex; align-items: center; gap: 14px; pointer-events: auto; }
.notice-action { flex: 0 0 auto; min-height: 32px; padding: 4px 11px; border: 1px solid var(--line); border-radius: 4px; background: var(--surface); color: var(--green); font: inherit; font-size: 12px; font-weight: 700; cursor: pointer; }
.notice-action:hover { background: var(--surface-active); color: var(--accent-strong); }
.notice-action:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
.notice-action:disabled { cursor: wait; opacity: .65; }
.dialog-backdrop { position: fixed; inset: 0; z-index: 5; display: grid; place-items: center; padding: 20px; background: var(--overlay); }
#task-composer-exit-dialog { z-index: 60; }
.dialog { width: min(100%, 520px); max-height: min(80vh, 700px); overflow: auto; padding: 20px; border-radius: 5px; background: var(--surface); box-shadow: 0 18px 55px var(--shadow-strong); }
.dialog header, .dialog footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.confirmation-dialog { display: grid; gap: 16px; }
.confirmation-dialog p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.5; }
.confirmation-dialog .confirmation-object-name { color: var(--ink); font-weight: 650; }
.confirmation-dialog footer { justify-content: flex-end; }
.dialog h2 { margin: 0; font-size: 19px; }
.create-list-backdrop { -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.create-list-dialog { display: grid; gap: 22px; width: min(100%, 460px); padding: 24px; border-radius: 8px; }
.create-list-dialog header { align-items: flex-start; gap: 16px; }
.create-list-heading { display: flex; align-items: flex-start; gap: 12px; min-width: 0; }
.create-list-mark { display: grid; flex: 0 0 38px; place-items: center; width: 38px; height: 38px; border-radius: 12px 12px 12px 4px; background: var(--surface-active-hover); color: var(--green); font-size: 24px; line-height: 1; }
.create-list-title-copy { display: grid; gap: 5px; min-width: 0; }
.create-list-title-copy h2 { font-size: 18px; line-height: 1.35; }
.create-list-description { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.create-list-field { display: grid; gap: 8px; color: var(--muted); font-size: 12px; font-weight: 650; }
.create-list-field input { width: 100%; min-height: 42px; padding: 0 11px; border: 1px solid var(--line); border-radius: 4px; background: var(--surface); color: var(--ink); font: inherit; font-size: 14px; }
.create-list-field input:focus { border-color: var(--green); outline: 3px solid var(--focus-ring); }
.create-list-dialog footer { justify-content: flex-end; flex-wrap: wrap; }
.create-list-dialog button:disabled { cursor: wait; opacity: .65; }
.archive-list-backdrop { -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.archive-list-dialog { display: grid; gap: 20px; width: min(100%, 460px); padding: 24px; border-radius: 8px; }
.archive-list-dialog header { align-items: flex-start; gap: 16px; }
.archive-list-heading { display: flex; align-items: flex-start; gap: 12px; min-width: 0; }
.archive-list-mark { display: grid; flex: 0 0 38px; place-items: center; width: 38px; height: 38px; border-radius: 12px 12px 12px 4px; background: var(--surface-active-hover); color: var(--green); }
.archive-list-mark svg { width: 19px; height: 19px; }
.archive-list-copy { display: grid; gap: 5px; min-width: 0; }
.archive-list-copy h2 { font-size: 18px; line-height: 1.35; }
.archive-list-description { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.archive-confirmation-list-name { margin: 0; padding: 12px 14px; border: 1px solid var(--line); border-radius: 5px; background: var(--surface-card); color: var(--ink); font-size: 14px; font-weight: 650; line-height: 1.45; overflow-wrap: anywhere; }
.archive-list-dialog footer { justify-content: flex-end; flex-wrap: wrap; }
.archive-list-dialog button:disabled { cursor: wait; opacity: .65; }
.company-name-confirmation { display: grid; gap: 16px; }
.company-name-confirmation header { justify-content: flex-start; }
.company-name-confirmation p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.5; }
.company-name-confirmation footer { justify-content: flex-end; flex-wrap: wrap; }
.task-delete-backdrop { -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.task-delete-dialog { display: grid; gap: 16px; width: min(100%, 560px); }
.task-delete-dialog header { align-items: flex-start; }
.task-delete-warning { margin: 0; padding: 12px 14px; border: 1px solid var(--line-danger-alert); border-left: 4px solid var(--background-danger); border-radius: 4px; background: var(--surface-danger-warning); color: var(--text-error-dark); font-size: 13px; line-height: 1.5; }
.task-delete-option { display: flex; align-items: flex-start; gap: 10px; padding: 10px 12px; border: 1px solid var(--line-control); border-radius: 4px; background: var(--surface-card); color: var(--ink); font-size: 13px; line-height: 1.45; cursor: pointer; }
.task-delete-option:hover { border-color: var(--line-control-hover); background: var(--surface-hover-muted); }
.task-delete-option input { flex: 0 0 auto; margin: 2px 0 0; accent-color: var(--green); }
.task-delete-dialog footer { justify-content: flex-end; flex-wrap: wrap; }
.task-delete-confirm-button { min-height: 38px; padding: 0 14px; border: 1px solid var(--line-delete-button); border-radius: 4px; background: var(--background-danger); color: var(--text-on-accent); font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.task-delete-confirm-button:hover:not([aria-disabled="true"]):not(:disabled) { border-color: var(--line-delete-button-hover); background: var(--background-danger-hover); }
.task-delete-confirm-button[aria-disabled="true"] { cursor: not-allowed; opacity: .58; }
.task-delete-confirm-button:focus-visible { outline: 2px solid var(--focus-danger); outline-offset: 2px; }
dialog.task-list-delete-dialog { width: min(560px, calc(100% - 24px)); border: 1px solid var(--line); color: var(--ink); }
dialog.task-list-delete-dialog:not([open]) { display: none; }
dialog.task-list-delete-dialog::backdrop { background: var(--overlay); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.task-list-delete-dialog form { display: grid; gap: 16px; }
.task-list-delete-name { display: grid; gap: 8px; font-size: 13px; font-weight: 650; }
.task-list-delete-name input { width: 100%; min-width: 0; padding: 10px 12px; border: 1px solid var(--line-control); border-radius: 4px; background: var(--surface-card); color: var(--ink); font: inherit; }
.task-list-delete-name input:focus { border-color: var(--green); outline: 3px solid var(--focus-ring); }
.task-list-delete-help { margin: -8px 0 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.task-list-delete-feedback { margin: 0; color: var(--text-error-dark); font-size: 13px; line-height: 1.5; }
.task-list-delete-dialog button:disabled { cursor: not-allowed; opacity: .58; }
dialog.sharing-dialog, dialog.sharing-confirmation-dialog { width: min(720px, calc(100% - 24px)); max-width: calc(100% - 24px); max-height: calc(100dvh - 24px); border: 1px solid var(--line); border-radius: 8px; color: var(--ink); }
dialog.sharing-dialog:not([open]), dialog.sharing-confirmation-dialog:not([open]) { display: none; }
dialog.sharing-dialog::backdrop, dialog.sharing-confirmation-dialog::backdrop { background: var(--overlay); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.sharing-dialog { padding: 24px; }
.sharing-dialog header { align-items: flex-start; }
.sharing-list-name { margin: 8px 0 0; color: var(--muted); font-size: 13px; line-height: 1.5; overflow-wrap: anywhere; }
.sharing-add-form { display: grid; grid-template-columns: minmax(0, 1fr) minmax(140px, auto) auto; align-items: end; gap: 12px; margin: 20px 0 24px; padding: 16px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface-subtle); }
.sharing-add-form h3 { grid-column: 1 / -1; margin: 0; font-size: 14px; }
.sharing-field { display: grid; gap: 7px; min-width: 0; color: var(--muted); font-size: 12px; }
.sharing-add-form input[type="text"], .sharing-dialog select { width: 100%; min-width: 0; height: 40px; min-height: 40px; padding: 8px 10px; border: 1px solid var(--line-control); border-radius: 4px; background: var(--surface); color: var(--ink); font: inherit; font-size: 13px; }
.sharing-add-form input[type="text"]:focus, .sharing-dialog select:focus { border-color: var(--green); outline: 3px solid var(--focus-ring); }
.sharing-add-form > button { min-height: 40px; }
.sharing-no-candidates { grid-column: 1 / -1; margin: 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.sharing-access-heading { margin: 0 0 10px; font-size: 14px; }
.sharing-table-wrap { max-height: min(38vh, 360px); overflow: auto; border: 1px solid var(--line); border-radius: 5px; }
.sharing-table { width: 100%; table-layout: fixed; border-collapse: collapse; }
.sharing-table th, .sharing-table td { padding: 10px 12px; border-bottom: 1px solid var(--line-subtle); font-size: 13px; text-align: left; }
.sharing-table th:first-child { width: 60%; }
.sharing-table thead th { position: sticky; top: 0; background: var(--surface-subtle); color: var(--muted); font-size: 11px; }
.sharing-table tbody th { font-weight: 400; }
.sharing-table tbody tr:last-child > * { border-bottom: 0; }
.sharing-user-name, .sharing-username { display: block; overflow-wrap: anywhere; }
.sharing-user-name { font-weight: 650; line-height: 1.5; }
.sharing-username { margin-top: 3px; color: var(--muted); font-size: 12px; line-height: 1.4; }
.sharing-empty { margin: 0; padding: 18px; border: 1px dashed var(--line); border-radius: 5px; color: var(--muted); font-size: 13px; line-height: 1.6; }
.sharing-feedback { margin: 12px 0; color: var(--text-error-dark); font-size: 13px; line-height: 1.5; }
.sharing-status { margin: 12px 0; color: var(--muted); font-size: 13px; }
.sharing-status:empty { display: none; }
.sharing-dialog footer { justify-content: flex-end; margin-top: 20px; }
.sharing-dialog button:disabled, .sharing-dialog input:disabled, .sharing-dialog select:disabled, .sharing-confirmation-dialog button:disabled { cursor: not-allowed; opacity: .58; }
dialog.sharing-confirmation-dialog { width: min(520px, calc(100% - 24px)); height: fit-content; align-content: start; }
.sharing-confirmation-dialog form { display: grid; gap: 18px; }
.sharing-confirmation-dialog p { overflow-wrap: anywhere; }
.sharing-confirmation-dialog .sharing-feedback { color: var(--text-error-dark); }
.loading-state { padding: 80px 20px; color: var(--muted); text-align: center; }
.sidebar-section-nav { display: grid; gap: 6px; margin: 0; }
.admin-link { min-height: 38px; margin: 0; padding: 0 10px; border: 1px solid var(--line); border-radius: 4px; background: var(--surface); color: var(--green); font: inherit; font-size: 13px; text-align: left; cursor: pointer; }
.admin-link:hover, .admin-link.active { border-color: var(--line-accent); background: var(--surface-active); }
.admin-link:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
.admin-section { margin: 0 0 36px; }
.admin-section h2 { margin: 0 0 14px; font-size: 17px; }
.admin-directory .content-header { align-items: center; }
.admin-user-table { min-width: 760px; }
.admin-user-table th:first-child { width: 64px; }
.admin-username { overflow-wrap: anywhere; }
.user-status { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border: 1px solid var(--line); border-radius: 4px; font-weight: 750; }
.user-status.is-active { color: var(--text-success); background: var(--surface-success); border-color: var(--line-success); }
.user-status.is-inactive { color: var(--muted); background: var(--surface-subtle); }
.user-status.is-invited { color: var(--text-info); background: var(--surface-info); border-color: var(--line-info); }
.user-status svg { width: 17px; height: 17px; }
.user-status:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
dialog.account-modal { box-sizing: border-box; border: 1px solid var(--line); color: var(--ink); max-height: min(88vh, 800px); }
dialog.account-modal.unsaved-changes-dialog { height: fit-content; align-content: start; }
dialog.account-modal::backdrop { background: var(--overlay); }
.account-edit-form, .profile-email-fields { display: grid; gap: 14px; min-width: 0; }
fieldset.profile-email-fields { margin: 0; padding: 0; border: 0; }
.profile-email-fields[hidden], .account-verification[hidden] { display: none; }
.account-edit-form label { display: grid; gap: 6px; color: var(--muted); font-size: 12px; font-weight: 650; }
.account-edit-form input, .account-edit-form select, .resource-grid select { box-sizing: border-box; width: 100%; min-height: 40px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 4px; color: var(--ink); background: var(--surface); font: inherit; font-size: 14px; }
.account-edit-form input:focus, .account-edit-form select:focus, .resource-grid select:focus { border-color: var(--green); outline: 3px solid var(--focus-ring); }
.account-edit-form :disabled { opacity: .65; }
.account-name-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.account-help { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.account-verification { display: grid; gap: 12px; padding: 14px; border: 1px solid var(--line-info); border-radius: 5px; background: var(--surface-info); }
.account-verification > button, .profile-email-fields > button { justify-self: start; }
.account-mfa-row { display: flex; gap: 12px; align-items: center; justify-content: space-between; color: var(--muted); font-size: 13px; }
.account-security-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.account-edit-form footer { flex-wrap: wrap; justify-content: flex-end; }
.account-dialog-notice { text-align: left; }
.invitation-company { margin: 0 0 12px; color: var(--green); font-size: 18px; font-weight: 700; overflow-wrap: anywhere; }
@media (max-width: 560px) {
    .account-name-fields { grid-template-columns: 1fr; }
    dialog.account-modal { width: calc(100% - 24px); padding: 16px; }
    .account-edit-form footer { gap: 8px; }
    .account-mfa-row { align-items: flex-start; flex-direction: column; }
}
.profile-page { display: grid; gap: 18px; }
.profile-page .content-header { margin-bottom: 0; }
.profile-account-name { margin: 4px 0 0; color: var(--muted); font-size: 13px; overflow-wrap: anywhere; }
.profile-section { display: grid; gap: 16px; padding: 20px; border: 1px solid var(--line); border-radius: 5px; background: var(--surface); }
.profile-section-heading h2 { margin: 0 0 6px; font-size: 17px; }
.profile-section-heading p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.profile-language-field, .profile-form label { display: grid; gap: 7px; max-width: 480px; color: var(--muted); font-size: 12px; font-weight: 650; }
.profile-language-field select, .profile-form input { width: 100%; min-height: 40px; padding: 0 10px; border: 1px solid var(--line); border-radius: 4px; background: var(--surface); color: var(--ink); font: inherit; font-size: 14px; }
.profile-language-field select:focus, .profile-form input:focus { border-color: var(--green); outline: 3px solid var(--focus-ring); }
.profile-form { display: grid; gap: 12px; max-width: 480px; }
.profile-feedback { min-height: 20px; margin: 0; color: var(--green); font-size: 13px; }
.profile-feedback[hidden] { display: none; }
.profile-feedback.is-error { min-height: 0; padding: 10px 12px; border: 1px solid var(--line-danger-alert); border-left: 4px solid var(--background-danger); border-radius: 4px; background: var(--surface-danger-warning); color: var(--text-error-dark); font-size: 13px; font-weight: 650; line-height: 1.45; }
.profile-form .primary-button { justify-self: start; }
.mfa-status-badge { display: inline-flex; align-items: center; width: fit-content; min-height: 28px; padding: 0 10px; border: 1px solid var(--line-warning); border-radius: 999px; background: var(--surface-warning); color: var(--text-warning); font-size: 12px; font-weight: 700; }
.mfa-status-badge.is-active { border-color: var(--line-success); background: var(--surface-success); color: var(--text-success); }
#profile-mfa-status { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
#profile-mfa-notice:empty { display: none; }
.profile-mfa-success { display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; border: 1px solid var(--line-success); border-left: 4px solid var(--text-success); border-radius: 4px; background: var(--surface-success); color: var(--text-success); }
.profile-mfa-success p { margin: 0; font-size: 13px; font-weight: 650; line-height: 1.5; }
.profile-mfa-success-icon { display: grid; flex: 0 0 22px; width: 22px; height: 22px; place-items: center; border-radius: 50%; background: var(--text-success); color: var(--text-on-accent); font-size: 14px; font-weight: 800; }
#profile-mfa-workflow { display: grid; gap: 14px; }
#profile-mfa-workflow > p { max-width: 620px; margin: 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.user-mfa-management { border-top: 1px solid var(--line); }
.user-mfa-management .outline-button { margin-left: auto; }
.admin-create { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.admin-create input, .admin-create select, .user-form input:not([type="checkbox"]) { min-width: 150px; min-height: 38px; padding: 0 10px; border: 1px solid var(--line); border-radius: 4px; background: var(--surface); color: var(--ink); font: inherit; font-size: 13px; }
.user-create { display: grid; grid-template-columns: repeat(3, minmax(130px, 1fr)); padding: 14px; border: 1px solid var(--line); border-radius: 5px; background: var(--surface); }
.company-list, .user-list { display: grid; border-top: 1px solid var(--line); }
.company-row { display: flex; gap: 8px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.company-row input { flex: 1; min-width: 120px; min-height: 36px; padding: 0 9px; border: 1px solid transparent; border-radius: 3px; background: transparent; font: inherit; }
.company-row input:focus { border-color: var(--green); background: var(--surface); outline: none; }
.user-record { border-bottom: 1px solid var(--line); }
.user-record summary { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 54px; cursor: pointer; list-style-position: inside; }
.user-record summary span { font-size: 14px; font-weight: 650; }
.user-record summary small { color: var(--muted); font-size: 12px; }
.user-form { display: grid; grid-template-columns: repeat(3, minmax(120px, 1fr)); gap: 8px; padding: 12px; background: var(--surface); }
.checkbox-label { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.role-management { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 0 12px 14px; background: var(--surface); color: var(--muted); font-size: 12px; }
.role-label { display: inline-flex; align-items: center; gap: 7px; padding: 5px 7px; border: 1px solid var(--line); border-radius: 3px; color: var(--ink); }
.grant-form { display: flex; gap: 6px; margin-left: auto; }

.joe-says-link { display: flex; flex: 1 1 auto; align-items: center; gap: 6px; width: auto; height: 38px; min-height: 38px; margin: 0; padding: 0 7px; border: 1px solid var(--line-info); border-radius: 4px; background: var(--surface-info); color: var(--text-info); font: inherit; font-size: 12px; text-align: left; cursor: pointer; }
.joe-says-link:hover { background: var(--surface-info-hover); }
.joe-says-link[data-severity="informative"] { border-color: var(--line-warning); background: var(--surface-warning); color: var(--text-warning); }
.joe-says-link[data-severity="informative"]:hover { background: var(--surface-warning-hover); }
.joe-says-link[data-severity="critical"] { border-color: var(--line-critical); background: var(--background-critical); color: var(--text-on-accent); }
.joe-says-link[data-severity="critical"]:hover { background: var(--background-critical-hover); }
.joe-says-icon { flex: 0 0 20px; width: 20px; height: 20px; }
.joe-says-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.joe-says-count { display: inline-grid; flex: 0 0 auto; min-width: 20px; height: 20px; place-items: center; margin-left: auto; padding: 0 4px; border-radius: 999px; background: var(--surface); color: var(--green); font-size: 10px; font-weight: 750; }
.joe-says-link[data-severity="informative"] .joe-says-count { color: var(--text-warning-strong); }
.joe-says-link[data-severity="critical"] .joe-says-count { color: var(--text-critical); }
.joe-says-link:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }

.task-comments-section { display: grid; gap: 24px; margin-top: 30px; }
.comment-composer-section, .task-comment-history { display: grid; gap: 12px; }
.comment-compose-trigger { display: flex; align-items: center; width: 100%; min-height: 46px; padding: 0 13px; border: 1px solid var(--line); border-radius: 5px; background: var(--surface); color: var(--muted); font: inherit; text-align: left; cursor: text; }
.comment-compose-trigger:hover { border-color: var(--line-strong); color: var(--ink); }
.comment-readonly-note { margin: 0; padding: 12px 14px; border: 1px solid var(--line); border-radius: 5px; background: var(--surface-muted); color: var(--muted); font-size: 13px; }
.comment-editor-form { margin: 0; padding: 12px; border: 1px solid var(--line); border-radius: 5px; background: var(--surface-form); white-space: normal; }
.comment-editor-form .rich-editor { min-height: 130px; }
.comment-editor-form .description-editor-footer { flex-wrap: wrap; }
.comment-editor-actions { display: flex; flex: 0 0 auto; align-items: center; gap: 8px; }
.comment-editor-actions button { flex: 0 0 auto; white-space: nowrap; }
.comment-editor-actions .primary-button { min-height: 36px; }
.comment-attachment-edit-list { display: flex; flex-wrap: wrap; gap: 6px; }
.comment-attachment-edit-item { display: inline-flex; align-items: center; gap: 6px; min-width: 0; padding: 5px 7px; border: 1px solid var(--line); border-radius: 4px; background: var(--surface); font-size: 12px; }
.comment-attachment-edit-item span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.comment-attachment-edit-item button { display: grid; width: 22px; height: 22px; place-items: center; padding: 0; border: 0; border-radius: 3px; background: transparent; color: var(--text-error); cursor: pointer; }
.comment-attachment-edit-item button:hover { background: var(--surface-danger-hover-soft); }
.mention-picker { position: absolute; z-index: 4; top: calc(100% + 5px); left: 8px; display: grid; width: min(280px, calc(100% - 16px)); max-height: 220px; overflow-y: auto; padding: 5px; border: 1px solid var(--line); border-radius: 5px; background: var(--surface); box-shadow: 0 8px 24px var(--shadow-soft); }
.mention-picker[hidden] { display: none; }
.mention-picker-option { padding: 8px 9px; border: 0; border-radius: 3px; background: transparent; color: var(--ink); font: inherit; font-size: 13px; text-align: left; cursor: pointer; }
.mention-picker-option:hover, .mention-picker-option[aria-selected="true"] { background: var(--surface-hover); }
.mention-picker-empty { margin: 0; padding: 8px 9px; color: var(--muted); font-size: 12px; }
.comment-mention { display: inline-block; padding: 1px 4px; border-radius: 3px; background: var(--surface-active); color: var(--accent-strong); font-weight: 650; white-space: nowrap; }
.task-comment-list { display: grid; gap: 10px; }
.task-comment { padding: 15px; border: 1px solid var(--line); border-radius: 5px; background: var(--surface); }
.task-comment.is-notification-target { outline: 3px solid var(--line-attention); outline-offset: 2px; background: var(--surface-notification-target); }
.task-comment-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.task-comment-author { font-size: 14px; font-weight: 700; }
.task-comment-time { display: flex; flex-wrap: wrap; gap: 4px 8px; margin-top: 3px; color: var(--muted); font-size: 11px; }
.task-comment-time time { color: var(--text-timestamp); }
.task-comment-tools { display: flex; flex: 0 0 auto; gap: 2px; }
.task-comment-tools .list-tool-button { width: 30px; height: 30px; }
.task-comment-tools .list-tool-button svg { width: 16px; height: 16px; }
.task-comment-content { color: var(--ink); font-size: 14px; line-height: 1.55; overflow-wrap: anywhere; white-space: pre-wrap; }
.task-comment-content:empty { display: none; }
.task-comment-content p:first-child { margin-top: 0; }
.task-comment-content p:last-child { margin-bottom: 0; }
.task-comment-content img { max-width: 100%; height: auto; border-radius: 4px; }
.task-comment-content a { color: var(--green); }
.comment-attachments { display: flex; flex-wrap: wrap; gap: 7px; margin: 10px 0; }
.comment-attachment-link { display: inline-flex; align-items: center; gap: 8px; min-width: 0; max-width: 100%; padding: 5px 8px; border: 1px solid var(--line-comment-attachment); border-radius: 4px; background: var(--surface-attachment-link); color: var(--green); font-size: 12px; text-decoration: none; }
.comment-attachment-link:hover { background: var(--surface-hover); text-decoration: underline; }
.comment-attachment-link img { flex: 0 0 32px; width: 32px; height: 32px; border-radius: 3px; object-fit: cover; }
.comment-attachment-link span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.comment-empty, .comment-loading, .comment-error { margin: 0; padding: 16px; border: 1px dashed var(--line); border-radius: 5px; color: var(--muted); font-size: 13px; text-align: center; }
.comment-error { border-color: var(--line-danger-soft); color: var(--text-error); }

.notification-page { display: grid; gap: 18px; }
.notification-page .content-header { margin-bottom: 0; }
.notification-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.notification-controls label { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 12px; }
.notification-controls select { min-height: 36px; padding: 0 9px; border: 1px solid var(--line); border-radius: 4px; background: var(--surface); color: var(--ink); font: inherit; }
.archive-table.notification-table { min-width: 780px; }
.archive-table.notification-table tbody tr.is-read,
.archive-table.notification-table tbody tr.is-read:nth-child(even) { background: var(--surface-muted-row); }
.notification-time-cell { color: var(--muted); }
.notification-time-cell[data-severity="critical"] { background: var(--background-critical); color: var(--text-on-accent); font-weight: 700; }
.notification-creator { font-weight: 650; }
.notification-table .notification-copy { min-width: 260px; }
.notification-message { color: var(--green); line-height: 1.45; text-decoration: none; }
a.notification-message:hover { text-decoration: underline; text-underline-offset: 2px; }
.notification-object-link { color: var(--green); text-decoration: underline; text-underline-offset: 2px; }
.notification-object-link:hover { color: var(--ink); }
.notification-recipient { color: var(--muted); }
.notification-table .notification-action-cell { text-align: right; white-space: nowrap; }
.notification-action-cell .outline-button { min-height: 32px; padding: 0 9px; font-size: 12px; }
.notification-empty { font-size: 14px; }
.notification-filter-users { position: relative; }
.notification-filter-users .owner-filter-options { max-height: 300px; }

.archive-page { display: grid; gap: 18px; }
.archive-page .content-header { margin-bottom: 0; }
.archive-controls { display: flex; flex-wrap: wrap; align-items: end; gap: 12px 18px; }
.archive-controls label { display: grid; gap: 6px; color: var(--muted); font-size: 12px; }
.archive-search-field { flex: 1 1 280px; }
.archive-scope-field { flex: 0 1 240px; }
.archive-controls input, .archive-controls select, .archive-page-size select { min-height: 38px; padding: 0 10px; border: 1px solid var(--line); border-radius: 4px; background: var(--surface); color: var(--ink); font: inherit; font-size: 13px; }
.archive-controls input, .archive-controls select { box-sizing: border-box; height: 38px; }
.archive-controls input:focus, .archive-controls select:focus, .archive-page-size select:focus { border-color: var(--green); outline: 3px solid var(--focus-ring); }
#archive-results { min-width: 0; }
.archive-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 5px; background: var(--surface); }
.archive-table { width: 100%; min-width: 620px; border-collapse: collapse; }
.archive-table th, .archive-table td { padding: 12px 14px; border-bottom: 1px solid var(--line-subtle); font-size: 13px; text-align: left; }
.archive-page .archive-table th, .archive-page .archive-table td { padding: 5px 12px; }
.archive-table th { background: var(--surface-subtle); color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .02em; text-transform: uppercase; }
.archive-table tbody tr:nth-child(even) { background: var(--surface-faint); }
.archive-table tbody tr:last-child td { border-bottom: 0; }
.archive-list-name { color: var(--green); font-weight: 650; text-decoration: none; }
.archive-list-name:hover { text-decoration: underline; text-underline-offset: 2px; }
.archive-action { white-space: nowrap; }
.archive-page .archive-action { min-height: 28px; padding: 0 9px; font-size: 12px; }
.archive-action:disabled { cursor: not-allowed; opacity: .55; }
.archive-message { margin: 0; padding: 38px 20px; border: 1px dashed var(--line); border-radius: 5px; color: var(--muted); font-size: 14px; text-align: center; }
.archive-error { border-color: var(--line-danger-soft); color: var(--text-error); }
.archive-pagination { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 18px; }
.archive-page-size { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 12px; }
.archive-page-size select { min-height: 34px; }
.archive-page-summary { color: var(--muted); font-size: 12px; }
.archive-page-controls { display: flex; align-items: center; gap: 10px; }
.archive-page-controls span { color: var(--muted); font-size: 12px; white-space: nowrap; }
.archive-page-controls .outline-button:disabled { cursor: not-allowed; opacity: .55; }
.template-controls .owner-filter { flex: 0 1 300px; }
.template-controls .owner-filter > summary { box-sizing: border-box; height: 38px; }
.template-table { min-width: 700px; }
.template-table th:nth-child(3), .template-table td:nth-child(3) { width: 100px; text-align: center; }
.template-table th:nth-child(4), .template-table td:nth-child(4) { width: 160px; }
.template-usage-count { font-variant-numeric: tabular-nums; }
.template-detail-header { align-items: flex-start; }
.template-name-label { display: flex; align-items: center; gap: 4px; min-height: 24px; }
.template-name-label .eyebrow { overflow-wrap: anywhere; }
.template-name-edit-form, .template-task-name-form { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; margin: 0; }
.template-name-edit-form input, .template-task-name-form input { min-height: 38px; padding: 4px 9px; border: 1px solid var(--green); border-radius: 4px; background: var(--surface); color: var(--ink); font: inherit; }
.template-name-edit-form input { width: min(420px, 60vw); }
.template-task-name-form { flex: 1 1 auto; min-width: 0; }
.template-task-name-form input { flex: 1 1 220px; min-width: 0; font-size: 24px; font-weight: 650; }
.template-task-name-row { flex-wrap: wrap; }
.template-task-name-row h1 { overflow-wrap: anywhere; white-space: normal; }
.template-meta { display: grid; justify-items: end; gap: 4px; color: var(--muted); font-size: 12px; text-align: right; }
.template-meta strong { color: var(--ink); font-weight: 600; }
.template-permission-message { max-width: min(560px, 70vw); line-height: 1.4; white-space: normal; }
.template-task-section { gap: 12px; }
.template-task-list { width: 100%; overflow: hidden; border: 1px solid var(--line); border-radius: 5px; background: var(--surface); }
.template-task-row { display: block; min-height: 36px; margin: 0; padding: 0; border-bottom: 1px solid var(--line-subtle); background: var(--surface); }
.template-task-row:nth-child(even) { background: var(--surface-faint); }
.template-task-row:last-child { border-bottom: 0; }
.template-task-main { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 36px; padding: 0 12px; }
.template-task-link { display: block; flex: 1 1 auto; min-width: 0; padding: 8px 0; overflow-wrap: anywhere; color: var(--green); font-size: 14px; text-decoration: none; }
.template-task-link:hover { text-decoration: underline; text-underline-offset: 2px; }
.approval-indicator { display: inline-grid; flex: 0 0 auto; place-items: center; width: 28px; height: 28px; margin-left: 4px; color: var(--green); }
.approval-indicator svg { width: 19px; height: 19px; }
.approval-indicator.is-empty { visibility: hidden; }
.template-task-create-row { width: 100%; margin: 0; padding: 9px; border: 1px dashed var(--line); border-radius: 5px; background: var(--surface-faint); }
.template-task-composer { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 10px; }
.template-task-composer .task-create-name { min-height: 38px; padding: 0 10px; border: 1px solid var(--line); border-radius: 4px; background: var(--surface); color: var(--ink); font: inherit; font-size: 13px; }
.template-task-composer .task-create-name:focus { border-color: var(--green); outline: 3px solid var(--focus-ring); }
.template-unavailable { min-height: 220px; }
.template-unavailable p { max-width: 560px; color: var(--muted); line-height: 1.5; }
.template-create-dialog, .template-picker-dialog { display: grid; gap: 14px; width: min(100%, 600px); }
.template-create-dialog > p, .template-picker-dialog > p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.template-create-dialog > label, .template-picker-search { display: grid; gap: 6px; color: var(--muted); font-size: 12px; }
.template-create-dialog input, .template-picker-search input { min-height: 38px; padding: 0 10px; border: 1px solid var(--line); border-radius: 4px; background: var(--surface); color: var(--ink); font: inherit; font-size: 13px; }
.template-create-dialog input:focus, .template-picker-search input:focus { border-color: var(--green); outline: 3px solid var(--focus-ring); }
.template-create-dialog footer, .template-picker-dialog footer { justify-content: flex-end; flex-wrap: wrap; }
.template-picker-backdrop { align-items: start; padding-top: clamp(20px, 7vh, 56px); }
.template-picker-results { display: grid; align-content: start; grid-auto-rows: min-content; max-height: min(44vh, 400px); overflow: auto; border: 1px solid var(--line); border-radius: 5px; background: var(--surface); }
.template-picker-option { display: grid; gap: 3px; width: 100%; min-height: 56px; padding: 9px 12px; border: 0; border-bottom: 1px solid var(--line-subtle); background: transparent; color: var(--ink); font: inherit; text-align: left; cursor: pointer; }
.template-picker-option:last-child { border-bottom: 0; }
.template-picker-option:hover, .template-picker-option:focus-visible { background: var(--surface-hover); outline: none; }
.template-picker-option strong { color: var(--green); font-size: 14px; font-weight: 650; }
.template-picker-option small { color: var(--muted); font-size: 11px; }
.template-picker-selected { display: grid; gap: 4px; padding: 12px; border: 1px solid var(--line); border-radius: 5px; background: var(--surface-subtle); }
.template-picker-selected strong { overflow-wrap: anywhere; font-size: 15px; }
.template-picker-selected span { color: var(--muted); font-size: 12px; }
.template-permissions-dialog { display: grid; gap: 14px; width: min(100%, 760px); }
.template-permissions-dialog > p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.template-owner-management { display: flex; align-items: end; flex-wrap: wrap; gap: 8px 12px; padding: 12px; border: 1px solid var(--line-subtle); border-radius: 5px; background: var(--surface-faint); }
.template-owner-management label { display: grid; flex: 1 1 220px; gap: 5px; color: var(--muted); font-size: 12px; }
.template-owner-management select { min-height: 36px; padding: 0 9px; border: 1px solid var(--line); border-radius: 4px; background: var(--surface); color: var(--ink); font: inherit; }
.template-owner-management p { flex: 1 0 100%; margin: 0; color: var(--muted); font-size: 11px; }
.template-permissions-table-wrap { max-height: min(45vh, 420px); overflow: auto; border: 1px solid var(--line); border-radius: 5px; }
.template-permissions-table { width: 100%; table-layout: fixed; border-collapse: collapse; }
.template-permission-user-column { width: 65%; }
.template-permission-capability-column { width: 17.5%; }
.template-permissions-table th, .template-permissions-table td { padding: 8px 12px; border-bottom: 1px solid var(--line-subtle); font-size: 12px; text-align: left; }
.template-permissions-table thead th { position: sticky; top: 0; background: var(--surface-subtle); color: var(--muted); font-size: 11px; text-transform: uppercase; }
.template-permissions-table thead th:nth-child(2), .template-permissions-table thead th:nth-child(3) { text-align: center; }
.template-permissions-table td { text-align: center; }
.template-permissions-table input { display: block; width: 17px; height: 17px; margin: 0 auto; accent-color: var(--green); }
.template-permissions-dialog footer { justify-content: flex-end; }
.archive-detail-back { margin: -10px 0 14px; }
.my-work-page .content-header { margin-bottom: 0; }
.my-work-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-width: 0; border-bottom: 1px solid var(--line); }
.my-work-tabs { display: flex; flex: 1 1 auto; align-items: center; gap: 4px; min-width: 0; overflow-x: auto; }
.my-work-tab { flex: 0 0 auto; padding: 9px 13px; border: 1px solid transparent; border-bottom: 2px solid transparent; border-radius: 4px 4px 0 0; color: var(--muted); font-size: 13px; text-decoration: none; white-space: nowrap; }
.my-work-tab:hover { background: var(--surface-hover); color: var(--ink); }
.my-work-tab.is-active { border-color: var(--line); border-bottom-color: var(--green); background: var(--surface); color: var(--green); font-weight: 700; }
.my-work-tab:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
.my-work-controls { flex: 0 0 auto; align-items: center; justify-content: flex-end; min-height: 38px; }
.my-work-controls > label { display: flex; align-items: center; gap: 8px; }
#my-work-results { min-width: 0; }
.my-work-table { table-layout: fixed; }
.my-work-tasks-table { min-width: 1064px; }
.my-work-mentions-table { min-width: 920px; }
.my-work-approvals-table { min-width: 1064px; }
.my-work-recurrences-table { min-width: 850px; }
.my-work-complete-column { width: 86px; }
.my-work-task-column { width: 32%; }
.my-work-list-column { width: 180px; }
.my-work-parent-column { width: 210px; }
.my-work-date-column { width: 155px; }
.my-work-tasks-table .my-work-complete-column { width: 4.5%; }
.my-work-tasks-table .my-work-task-column { width: 30.5%; }
.my-work-tasks-table .my-work-list-column { width: 17%; }
.my-work-tasks-table .my-work-parent-column { width: 17%; }
.my-work-tasks-table .my-work-date-column { width: 15.5%; }
.my-work-mentions-table .my-work-mention-time-column { width: 150px; }
.my-work-mentions-table .my-work-task-column { width: 30%; }
.my-work-mentions-table .my-work-parent-column { width: 170px; }
.my-work-mentions-table .my-work-list-column { width: 180px; }
.my-work-mentions-table .my-work-count-column { width: 100px; }
.my-work-approvals-table .my-work-approval-date-column { width: 130px; }
.my-work-approvals-table .my-work-status-column { width: 100px; }
.my-work-approvals-table .my-work-task-status-column { width: 110px; }
.my-work-approvals-table .my-work-task-column { width: 32%; }
.my-work-approvals-table .my-work-parent-column { width: 175px; }
.my-work-approvals-table .my-work-list-column { width: 175px; }
.my-work-recurrences-table .my-work-task-column { width: 32%; }
.my-work-recurrences-table .my-work-parent-column { width: 22%; }
.my-work-recurrences-table .my-work-list-column { width: 25%; }
.my-work-next-occurrence-column { width: 180px; }
.my-work-mention-time-column { width: 180px; }
.my-work-count-column { width: 100px; }
.my-work-approval-date-column { width: 140px; }
.my-work-status-column { width: 140px; }
.my-work-complete-cell { text-align: center !important; }
.my-work-complete { margin: 0 auto; }
.my-work-complete[aria-disabled="true"] { cursor: not-allowed; opacity: .42; }
.my-work-task-cell { min-width: 0; }
.my-work-task-link { display: block; overflow-wrap: anywhere; color: var(--green); font-weight: 600; text-decoration: none; }
.my-work-task-link:hover { text-decoration: underline; text-underline-offset: 2px; }
.my-work-context-link { color: var(--green); text-decoration: none; }
.my-work-context-link:hover { text-decoration: underline; text-underline-offset: 2px; }
.my-work-list-name, .my-work-parent-name { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.my-work-count { font-variant-numeric: tabular-nums; }
.my-work-approval-status { display: inline-flex; align-items: center; min-height: 25px; padding: 3px 8px; border: 1px solid var(--line-chip); border-radius: 999px; background: var(--surface-subtle); color: var(--text-quiet); font-size: 11px; font-weight: 700; white-space: nowrap; }
.my-work-approval-status.is-approved { border-color: var(--line-success); background: var(--surface-success); color: var(--text-success); }
.my-work-approval-status.is-rejected { border-color: var(--line-danger); background: var(--surface-danger); color: var(--text-error); }
.my-work-row { transition: opacity .35s ease; }
.my-work-row.is-fading-out { opacity: 0; pointer-events: none; }
.my-work-row.is-fading-in { animation: my-work-fade-in .35s ease both; }
@keyframes my-work-fade-in { from { opacity: 0; } to { opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
    .my-work-row, .task-row, .task-name-row { transition: none; }
    .my-work-row.is-fading-in, .task-row.is-fading-in, .task-name-row.is-fading-in { animation: none; }
}

@media (max-width: 820px) {
    .workspace { grid-template-columns: 220px minmax(0, 1fr); }
    .sidebar-heading { padding-right: 4px; padding-left: 4px; }
    .main-panel { padding: 32px 12px 48px; }
    .task-list-controls { justify-content: flex-start; }
}
@media (max-width: 620px) {
    .workspace { grid-template-columns: 1fr; grid-template-rows: auto minmax(0, 1fr); }
    .sidebar { height: auto; min-height: 0; max-height: none; overflow: hidden; padding: 10px 12px 9px; border-right: 0; border-bottom: 1px solid var(--line); }
    .environment-banner { margin-top: -10px; margin-bottom: 8px; }
    .sidebar-top { margin: 0 4px 8px; }
    .sidebar-heading { padding: 0 4px 6px; }
    .sidebar-bottom { display: grid; gap: 6px; margin-top: 8px; padding: 8px 2px 0; border-top: 1px solid var(--line-subtle); }
    .sidebar-section-nav { display: flex; flex-wrap: wrap; gap: 4px; }
    .admin-link { flex: 1 1 auto; min-height: 32px; padding: 0 8px; font-size: 12px; }
    .signed-in-row { padding-top: 2px; }
    .signed-in { display: block; }
    .sidebar-bottom form { margin: 0; }
    #list-navigation { display: flex; flex: 0 0 auto; gap: 6px; min-height: 36px; max-width: 100%; overflow-x: auto; overflow-y: hidden; padding-bottom: 2px; }
    .list-navigation-item { flex: 0 0 auto; }
    .list-link { flex: 0 0 auto; max-width: 210px; min-height: 36px; border: 1px solid var(--line); }
    .list-reorder-controls { align-self: center; }
    .profile-section { padding: 16px; }
    .main-panel { padding: 26px 8px 40px; }
    .content-header { align-items: flex-start; flex-wrap: wrap; gap: 12px; }
    .header-actions { margin-left: auto; }
    .content-header h1 { font-size: 23px; }
    .task-main { flex-wrap: wrap; gap: 8px; }
    .task-copy { flex: 1 1 calc(100% - 72px); }
    .task-date-group { flex: 1 1 calc(100% - 58px); max-width: calc(100% - 58px); flex-wrap: wrap; margin-left: 58px; }
    .task-owner { flex: 1 1 auto; max-width: 36%; text-align: left; }
    .task-create-owner { flex: 1 1 auto; max-width: 36%; margin-left: 58px; }
    .task-create-owner .owner-picker-input { text-align: left; }
    .task-list-controls { align-items: stretch; flex-direction: column; gap: 7px; }
    .task-list-primary-controls { align-items: stretch; flex-direction: column; gap: 7px; }
    .task-list-primary-controls > label { justify-content: space-between; }
    .task-list-controls select { flex: 1 1 auto; max-width: 68%; }
    .owner-filter > summary { justify-content: space-between; }
    .owner-filter-menu { right: auto; left: 0; }
    .task-detail-meta { max-width: 100%; }
    .template-detail-header .task-header-tools { justify-items: start; width: 100%; }
    .template-detail-header .header-actions { margin-left: 0; flex-wrap: wrap; }
    .template-meta { justify-items: start; text-align: left; }
    .template-permission-message { max-width: 100%; text-align: left; }
    .template-controls { align-items: stretch; flex-direction: column; }
    .template-controls .owner-filter { flex-basis: auto; }
    .template-task-composer { grid-template-columns: 1fr; }
    .template-task-composer .primary-button { justify-self: start; }
    .template-owner-management { align-items: stretch; flex-direction: column; }
    .template-owner-management label { flex-basis: auto; }
    .template-owner-management p { flex-basis: auto; }
    .template-permissions-table th, .template-permissions-table td { padding: 7px 8px; }
    .sharing-dialog { padding: 18px; }
    .sharing-add-form { grid-template-columns: minmax(0, 1fr); padding: 12px; }
    .sharing-table { table-layout: auto; }
    .sharing-table th:first-child { width: auto; }
    .sharing-table th, .sharing-table td { padding: 8px; }
    .sharing-table select { min-width: 144px; }
    .task-date-controls-detail { flex-wrap: wrap; }
    .task-date-picker { width: min(264px, calc(100vw - 36px)); }
    .approval-workflow-region, .recurrence-workflow-region { gap: 10px; margin-bottom: 26px; }
    .approval-panel.has-actions { grid-template-columns: minmax(0, 1fr); row-gap: 12px; }
    .recurrence-base-fields { grid-template-columns: minmax(0, 1fr); gap: 10px; }
    .recurrence-frequency-fields { padding: 12px; }
    .recurrence-weekday-options { gap: 7px; }
    .recurrence-weekday-toggle > span { min-height: 34px; padding: 0 10px; }
    .recurrence-pattern-option { align-items: flex-start; }
    .recurrence-preview-row { align-items: stretch; flex-direction: column; }
    .recurrence-preview { flex: 0 0 auto; }
    .recurrence-actions { justify-content: flex-start; }
    .approval-actions { grid-column: 1; grid-row: auto; justify-content: flex-start; }
    .approval-fields { grid-template-columns: 1fr; gap: 10px; }
    .task-owner-detail { justify-content: flex-start; flex-wrap: wrap; }
    .attachment-row { align-items: flex-start; flex-direction: column; gap: 8px; }
    .attachment-actions { flex-wrap: wrap; }
    .user-create, .user-form { grid-template-columns: 1fr; }
    .user-record summary { align-items: flex-start; flex-direction: column; justify-content: center; gap: 3px; padding: 8px 0; }
    .grant-form { margin-left: 0; }
    .task-comment { padding: 12px; }
    .notification-row { grid-template-columns: 1fr; }
    .notification-cell, .notification-action-cell { grid-column: auto; justify-content: flex-start; padding: 8px 10px; }
    .notification-time-cell { padding-bottom: 2px; }
    .notification-action-cell { padding-top: 2px; }
    .archive-pagination { align-items: stretch; flex-direction: column; }
    .archive-page-size { justify-content: space-between; }
    .archive-page-controls { justify-content: space-between; }
    .my-work-toolbar { gap: 8px; }
}

#tutorial-root { position: fixed; z-index: 50; inset: 0; pointer-events: none; }
#tutorial-root[hidden] { display: none; }
.tutorial-scrim, .tutorial-catalog-scrim { position: fixed; inset: 0; background: var(--overlay); pointer-events: auto; }
.tutorial-card { position: fixed; z-index: 2; width: min(420px, calc(100vw - 24px)); border: 1px solid var(--line); border-radius: 7px; background: var(--surface); box-shadow: 0 18px 55px var(--shadow-strong); pointer-events: auto; }
.tutorial-card.tutorial-card-click-through { pointer-events: none; }
.tutorial-card.tutorial-card-click-through .tutorial-close,
.tutorial-card.tutorial-card-click-through .tutorial-end,
.tutorial-card.tutorial-card-click-through .tutorial-answer { pointer-events: auto; }
.tutorial-card.tutorial-card-click-through.is-movable .tutorial-card-header { pointer-events: auto; }
.tutorial-card.is-movable .tutorial-card-header { cursor: grab; touch-action: none; user-select: none; }
.tutorial-card.is-movable .tutorial-card-header button { cursor: pointer; touch-action: auto; }
.tutorial-card.is-dragging .tutorial-card-header { cursor: grabbing; }
.tutorial-card::before { position: absolute; z-index: 0; width: 13px; height: 13px; border: 1px solid var(--line); background: var(--surface); content: ""; transform: rotate(45deg); }
.tutorial-card[data-placement="right"]::before { top: calc(var(--tutorial-arrow-y, 50%) - 7px); left: -7px; border-top: 0; border-right: 0; }
.tutorial-card[data-placement="left"]::before { top: calc(var(--tutorial-arrow-y, 50%) - 7px); right: -7px; border-bottom: 0; border-left: 0; }
.tutorial-card[data-placement="top"]::before { top: -7px; left: calc(var(--tutorial-arrow-x, 50%) - 7px); border-right: 0; border-bottom: 0; }
.tutorial-card[data-placement="bottom"]::before { bottom: -7px; left: calc(var(--tutorial-arrow-x, 50%) - 7px); border-top: 0; border-left: 0; }
.tutorial-card[data-placement="center"]::before { display: none; }
.tutorial-card-scroll { position: relative; z-index: 1; display: grid; gap: 12px; max-height: min(78vh, 720px); max-height: min(78dvh, 720px); overflow: auto; padding: 18px; }
#tutorial-root.is-centered .tutorial-card { top: 50%; left: 50%; transform: translate(-50%, -50%); }
#tutorial-root.is-bottom-positioned .tutorial-card { top: auto; right: auto; bottom: 12px; left: 50%; transform: translateX(-50%); }
.tutorial-card-header, .tutorial-speaker-wrap { display: flex; align-items: center; gap: 10px; }
.tutorial-card-header { justify-content: space-between; }
.tutorial-language-title { margin: 0; color: var(--ink); font-size: 18px; line-height: 1.35; }
.tutorial-avatar { display: grid; flex: 0 0 auto; place-items: center; width: 34px; height: 34px; border-radius: 12px 12px 12px 4px; background: var(--surface-active); color: var(--green); font-weight: 800; }
.tutorial-speaker-wrap strong { font-size: 14px; }
.tutorial-close { display: grid; flex: 0 0 auto; place-items: center; width: 32px; height: 32px; border: 0; border-radius: 4px; background: transparent; color: var(--muted); font: inherit; font-size: 22px; cursor: pointer; }
.tutorial-close:hover { background: var(--surface-chrome-hover); color: var(--ink); }
.tutorial-step-count { margin: 0; color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; }
.tutorial-message { position: relative; min-height: 48px; margin: 0; color: var(--ink); font-size: 14px; line-height: 1.58; white-space: pre-wrap; }
.tutorial-message-reservation { display: block; visibility: hidden; }
.tutorial-message [data-tutorial-typed] { position: absolute; inset: 0; display: block; }
.tutorial-card-footer { display: grid; justify-items: stretch; gap: 8px; }
.tutorial-answer { min-height: 42px; padding: 9px 12px; border: 1px solid var(--line-accent); border-radius: 4px; background: var(--surface-active); color: var(--accent-strong); font: inherit; font-size: 13px; font-weight: 650; line-height: 1.4; text-align: left; cursor: pointer; }
.tutorial-answer:hover:not(:disabled) { border-color: var(--green); background: var(--surface-active-hover); }
.tutorial-answer:disabled { cursor: not-allowed; opacity: .5; }
.tutorial-end { justify-self: end; padding: 4px 0; border: 0; background: transparent; color: var(--muted); font: inherit; font-size: 12px; cursor: pointer; }
.tutorial-end:hover { color: var(--green); text-decoration: underline; text-underline-offset: 3px; }
.tutorial-highlight { outline: 3px solid var(--tutorial-highlight) !important; outline-offset: 3px; box-shadow: 0 0 0 7px var(--tutorial-glow-medium); animation: tutorial-glow 1.3s ease-in-out infinite alternate; }
@keyframes tutorial-glow {
    from { box-shadow: 0 0 0 4px var(--tutorial-glow-soft); }
    to { box-shadow: 0 0 0 8px var(--tutorial-glow-strong); }
}
.tutorial-catalog-scrim { z-index: 1; }
.tutorial-catalog { position: fixed; z-index: 2; top: 50%; left: 50%; display: grid; gap: 16px; width: min(620px, calc(100vw - 32px)); max-height: min(82vh, 760px); max-height: min(82dvh, 760px); overflow: auto; padding: 22px; border-radius: 6px; background: var(--surface); box-shadow: 0 18px 55px var(--shadow-strong); pointer-events: auto; transform: translate(-50%, -50%); }
.tutorial-catalog header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.tutorial-catalog header .eyebrow { margin: 0 0 5px; }
.tutorial-catalog h2 { margin: 0; font-size: 22px; }
.tutorial-catalog-intro { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.tutorial-catalog-list { display: grid; gap: 9px; overflow-y: auto; }
.tutorial-catalog-item { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 13px; width: 100%; padding: 13px; border: 1px solid var(--line); border-radius: 5px; background: var(--surface); color: var(--ink); font: inherit; text-align: left; cursor: pointer; }
.tutorial-catalog-item:hover, .tutorial-catalog-item:focus-visible { border-color: var(--line-accent); background: var(--surface-tinted); }
.tutorial-catalog-number { color: var(--green); font-size: 11px; font-weight: 750; text-transform: uppercase; white-space: nowrap; }
.tutorial-catalog-copy { display: grid; gap: 4px; min-width: 0; }
.tutorial-catalog-copy strong { font-size: 14px; }
.tutorial-catalog-copy small { color: var(--muted); font-size: 12px; line-height: 1.45; }
.tutorial-play-icon { display: grid; flex: 0 0 auto; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--surface-active); color: var(--green); }
.tutorial-play-icon svg { width: 17px; height: 17px; }
.tutorial-catalog footer { display: flex; justify-content: flex-end; }
@media (max-width: 620px) {
    .tutorial-card-scroll { max-height: min(78vh, 680px); max-height: min(78dvh, 680px); padding: 15px; }
    .tutorial-catalog { width: calc(100vw - 24px); padding: 16px; }
    .tutorial-catalog-item { grid-template-columns: minmax(0, 1fr) auto; gap: 7px 10px; padding: 11px; }
    .tutorial-catalog-number { grid-column: 1; }
    .tutorial-catalog-copy { grid-column: 1; }
    .tutorial-play-icon { grid-column: 2; grid-row: 1 / span 2; }
}