:root {
    --sidebar: #15171c;
    --sidebar-soft: #1d2027;
    --canvas: #f7f8fa;
    --surface: #ffffff;
    --surface-2: #f3f4f7;
    --text: #171923;
    --muted: #6f7481;
    --muted-2: #9ba0aa;
    --border: #e2e4e9;
    --border-strong: #cfd2da;
    --violet: #6d4aff;
    --violet-dark: #5635e8;
    --violet-soft: #f0edff;
    --green: #159556;
    --green-soft: #eaf8f0;
    --amber: #d67a00;
    --amber-soft: #fff6e8;
    --red: #d64444;
    --red-soft: #fff0f0;
    --blue: #2675e8;
    --blue-soft: #edf4ff;
    --teal: #158d82;
    --teal-soft: #e9f8f6;
    --rose: #c44483;
    --rose-soft: #fff0f7;
    --shadow: 0 16px 50px rgba(21, 23, 28, .12);
    --radius: 10px;
    --font: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { min-height: 100%; background: var(--canvas); }
body { margin: 0; min-height: 100vh; color: var(--text); background: var(--canvas); font-family: var(--font); font-size: 14px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; color: inherit; }
button, select { cursor: pointer; }
a { color: inherit; text-decoration: none; }
svg { display: block; }
.icon { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: 0 0 auto; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.muted { color: var(--muted); }

:focus-visible { outline: 3px solid rgba(109, 74, 255, .24); outline-offset: 2px; }
::selection { background: #dcd3ff; color: #24145e; }

.brand { display: inline-flex; align-items: center; gap: 13px; min-width: 0; }
.brand__mark { position: relative; display: block; width: 34px; height: 40px; border: 3px solid var(--violet); transform: skewY(-8deg); }
.brand__mark::before { content: ""; position: absolute; inset: 6px -7px 6px 7px; border: 3px solid #8b70ff; }
.brand__mark span { position: absolute; width: 11px; height: 3px; background: var(--sidebar); right: -6px; top: 7px; }
.brand__text { display: flex; flex-direction: column; min-width: 0; }
.brand__text strong { color: white; font-size: 20px; letter-spacing: -.025em; line-height: 1.1; white-space: nowrap; }
.brand__text strong span { color: #8c70ff; }
.brand__text small { color: #9b87ed; letter-spacing: .27em; font-size: 8px; margin-top: 5px; font-weight: 700; }
.brand--large { gap: 28px; }
.brand--large .brand__mark { width: 58px; height: 70px; border-width: 5px; }
.brand--large .brand__mark::before { inset: 10px -11px 10px 12px; border-width: 5px; }
.brand--large .brand__mark span { width: 18px; height: 5px; right: -10px; top: 12px; }
.brand--large .brand__text strong { font-size: 46px; }
.brand--large .brand__text small { font-size: 12px; letter-spacing: .45em; margin-top: 9px; }

/* Login */
.login-page { background: white; }
.login-shell { min-height: 100vh; display: grid; grid-template-columns: minmax(460px, 42%) 1fr; }
.login-visual { position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; background: var(--sidebar); border-right: 1px solid #2b2e36; }
.login-visual::before, .login-visual::after { content: ""; position: absolute; inset: 0; pointer-events: none; }
.login-visual::before { background-image: linear-gradient(#292c34 1px, transparent 1px), linear-gradient(90deg, #292c34 1px, transparent 1px); background-size: 136px 136px; opacity: .6; }
.login-visual::after { inset: 18% 14%; border: 1px solid #363a44; }
.login-brand { position: relative; z-index: 2; }
.portal-lines { position: absolute; inset: 18% 14%; opacity: .75; }
.portal-lines::before, .portal-lines::after, .portal-lines span { content: ""; position: absolute; border: 1px solid #464a55; inset: 14%; transform: perspective(320px) rotateX(4deg); }
.portal-lines::after { inset: 28%; }
.portal-lines span:nth-child(1) { inset: 0 auto auto 0; width: 18px; height: 18px; border-right: 0; border-bottom: 0; border-color: var(--violet); }
.portal-lines span:nth-child(2) { inset: 0 0 auto auto; width: 18px; height: 18px; border-left: 0; border-bottom: 0; border-color: var(--violet); }
.portal-lines span:nth-child(3) { inset: auto 0 0 auto; width: 18px; height: 18px; border-left: 0; border-top: 0; border-color: var(--violet); }
.login-content { display: flex; align-items: center; justify-content: center; padding: 56px clamp(40px, 8vw, 130px); background: white; }
.login-form-wrap { width: min(100%, 530px); }
.mobile-brand { display: none; }
.login-form-wrap > h1 { margin: 0 0 8px; font-size: 32px; line-height: 1.18; letter-spacing: -.035em; }
.login-intro { color: var(--muted); margin: 0 0 32px; font-size: 15px; }
.form-stack { display: flex; flex-direction: column; gap: 20px; }
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.field > span:first-child, .field > small:first-child, .field > label:first-child { color: #30333b; font-size: 13px; font-weight: 650; }
.field span small, .field > span > small { color: var(--muted); font-weight: 450; }
.field input, .field select, .field textarea, .search-form input, .comment-form textarea { width: 100%; border: 1px solid var(--border-strong); border-radius: 7px; background: white; transition: border-color .16s, box-shadow .16s, background .16s; }
.field input, .field select { height: 46px; padding: 0 13px; }
.field textarea, .comment-form textarea { padding: 12px 13px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus, .search-form input:focus, .comment-form textarea:focus { border-color: var(--violet); box-shadow: 0 0 0 3px rgba(109, 74, 255, .11); outline: 0; }
.input-icon { position: relative; display: block; }
.input-icon > .icon { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: #7f8490; pointer-events: none; }
.input-icon input { padding-left: 48px; height: 54px; font-size: 15px; }
.input-password input { padding-right: 48px; }
.reveal-password { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; display: grid; place-items: center; padding: 0; border: 0; color: var(--muted); background: transparent; border-radius: 5px; }
.reveal-password:hover { color: var(--text); background: var(--surface-2); }
.check-row { display: flex; align-items: center; gap: 10px; width: max-content; cursor: pointer; color: #3d4048; }
.check-row input, .assignee-option input { accent-color: var(--violet); width: 17px; height: 17px; }
.security-note { display: grid; grid-template-columns: 1fr auto 1fr; gap: 12px; align-items: center; margin-top: 2px; color: var(--muted); }
.security-note span { height: 1px; background: var(--border); }
.security-note .icon { color: var(--violet); }
.security-note p { grid-column: 1 / -1; text-align: center; margin: -6px 0 0; font-size: 13px; }
.button { min-height: 42px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid transparent; border-radius: 7px; padding: 0 16px; font-size: 13px; font-weight: 650; white-space: nowrap; transition: transform .12s, background .16s, border-color .16s, color .16s, box-shadow .16s; }
.button:hover { transform: translateY(-1px); }
.button:active { transform: translateY(0); }
.button--primary { color: white; background: var(--violet); border-color: var(--violet); box-shadow: 0 5px 14px rgba(109, 74, 255, .17); }
.button--primary:hover { background: var(--violet-dark); border-color: var(--violet-dark); }
.button--secondary { color: #333640; background: white; border-color: var(--border-strong); box-shadow: none; }
.button--secondary:hover { background: var(--surface-2); border-color: #b9bdc7; }
.button--success { color: #087940; background: white; border-color: #36b875; }
.button--success:hover { background: var(--green-soft); }
.button--danger { color: var(--red); background: white; border-color: #efb2b2; }
.button--danger:hover { background: var(--red-soft); }
.button--small { min-height: 36px; padding: 0 12px; font-size: 12px; }
.button--wide { width: 100%; min-height: 50px; font-size: 15px; }
.login-help { margin: 30px 0 0; text-align: center; color: var(--muted); font-size: 13px; }

/* App shell */
.app-shell { min-height: 100vh; display: grid; grid-template-columns: 232px minmax(0, 1fr); }
.sidebar { position: sticky; top: 0; z-index: 30; height: 100vh; display: flex; flex-direction: column; color: #e6e7eb; background: var(--sidebar); border-right: 1px solid #292c34; }
.sidebar__brand { height: 92px; display: flex; align-items: center; justify-content: space-between; padding: 0 21px; border-bottom: 1px solid #2a2d34; }
.sidebar-close { display: none; }
.main-nav { display: flex; flex-direction: column; gap: 3px; padding: 18px 10px; overflow-y: auto; }
.nav-item { position: relative; height: 48px; display: flex; align-items: center; gap: 13px; padding: 0 13px; color: #bec1c9; border-radius: 6px; transition: color .15s, background .15s; }
.nav-item .icon { width: 19px; height: 19px; }
.nav-item span { flex: 1; }
.nav-item small { font-size: 8px; color: #9284cd; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; }
.nav-item:hover { color: white; background: #1d2027; }
.nav-item.is-active { color: #a991ff; background: #262432; }
.nav-item.is-active::before { content: ""; position: absolute; left: -10px; top: 8px; bottom: 8px; width: 3px; background: var(--violet); }
.sidebar__user { margin-top: auto; min-height: 88px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; padding: 15px 16px; border-top: 1px solid #2c2f37; }
.sidebar__identity { min-width: 0; display: flex; flex-direction: column; }
.sidebar__identity strong { color: white; font-size: 13px; overflow: hidden; text-overflow: ellipsis; }
.sidebar__identity small { color: #8c7bd1; font-size: 8px; text-transform: uppercase; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.avatar { width: 30px; height: 30px; display: inline-grid; place-items: center; flex: 0 0 auto; color: white; background: #5544a7; border: 1px solid rgba(255,255,255,.16); border-radius: 5px; font-size: 9px; font-style: normal; font-weight: 800; letter-spacing: -.02em; }
.avatar--lg { width: 38px; height: 38px; font-size: 11px; }
.avatar--xl { width: 64px; height: 64px; font-size: 17px; border-radius: 8px; }
.avatar--more { background: var(--surface-2); border-color: var(--border-strong); color: var(--muted); }
.icon-button { width: 36px; height: 36px; display: inline-grid; place-items: center; flex: 0 0 auto; padding: 0; color: var(--muted); background: transparent; border: 0; border-radius: 6px; transition: color .15s, background .15s; }
.icon-button:hover { color: var(--text); background: var(--surface-2); }
.icon-button--dark { color: #8f939d; }
.icon-button--dark:hover { color: white; background: #252831; }
.icon-button--danger { color: var(--red); }
.icon-button--danger:hover { background: var(--red-soft); color: #b52b2b; }
.app-main { min-width: 0; }
.topbar { position: sticky; top: 0; z-index: 20; height: 64px; display: flex; align-items: center; gap: 16px; padding: 0 clamp(20px, 2.5vw, 38px); background: rgba(255,255,255,.96); border-bottom: 1px solid var(--border); }
.topbar__context { color: var(--muted); font-size: 12px; font-weight: 650; }
.topbar__actions { margin-left: auto; display: flex; align-items: center; gap: 24px; }
.sync-status { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 11px; }
.sync-status i { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px var(--green-soft); }
.topbar-user { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 650; }
.mobile-menu { display: none; }
.content { width: 100%; max-width: 1500px; margin: 0 auto; padding: 36px clamp(20px, 3vw, 44px) 64px; }
.page-heading { min-height: 68px; display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; margin-bottom: 26px; }
.page-heading h1 { margin: 0; font-size: clamp(27px, 2.3vw, 34px); line-height: 1.15; letter-spacing: -.035em; }
.page-heading p { margin: 8px 0 0; color: var(--muted); font-size: 14px; }
.page-heading .button { margin-top: 3px; }

/* Feedback */
.flash-stack { display: flex; flex-direction: column; gap: 10px; margin-bottom: 22px; }
.login-form-wrap > .flash-stack { margin: 0 0 22px; }
.flash { display: flex; align-items: flex-start; gap: 14px; border: 1px solid var(--border); border-left-width: 3px; padding: 13px 14px; background: white; border-radius: 7px; }
.flash > div { flex: 1; min-width: 0; }
.flash strong { font-size: 12px; }
.flash p { margin: 2px 0 0; color: var(--muted); font-size: 12px; }
.flash--success { border-left-color: var(--green); background: #fbfffc; }
.flash--warning { border-left-color: var(--amber); background: #fffdfa; }
.flash--error { border-left-color: var(--red); background: #fffafa; }
.flash-close { width: 28px; height: 28px; display: grid; place-items: center; padding: 0; color: var(--muted); background: transparent; border: 0; border-radius: 4px; }
.flash-close .icon { width: 16px; height: 16px; }
.credential { margin-top: 9px; display: flex; align-items: center; gap: 8px; }
.credential code { flex: 1; min-width: 0; padding: 7px 9px; border: 1px dashed #bdb4e8; background: white; border-radius: 5px; font-weight: 700; letter-spacing: .04em; overflow-wrap: anywhere; }
.copy-button { display: inline-flex; align-items: center; gap: 5px; padding: 7px 9px; border: 1px solid var(--border-strong); border-radius: 5px; background: white; font-size: 11px; }
.copy-button .icon { width: 14px; height: 14px; }
.inline-error, .inline-warning { margin: 20px; padding: 16px; border-left: 3px solid var(--red); background: var(--red-soft); }
.inline-error p, .inline-warning p { margin: 3px 0 0; color: var(--muted); }
.inline-warning { margin: 0 0 24px; border-left-color: var(--amber); background: var(--amber-soft); }

/* Dashboard */
.stat-strip { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); margin-bottom: 24px; background: white; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.stat { min-height: 108px; display: flex; align-items: center; gap: 13px; padding: 18px; border-right: 1px solid var(--border); }
.stat:last-child { border-right: 0; }
.stat__icon { width: 35px; height: 35px; display: grid; place-items: center; color: var(--muted); border: 1px solid var(--border); border-radius: 6px; }
.stat__icon .icon { width: 18px; height: 18px; }
.stat__icon--violet { color: var(--violet); background: var(--violet-soft); border-color: #d7cffc; }
.stat__icon--red { color: var(--red); background: var(--red-soft); border-color: #f4caca; }
.stat__icon--amber { color: var(--amber); background: var(--amber-soft); border-color: #f1d5a9; }
.stat__icon--green { color: var(--green); background: var(--green-soft); border-color: #b9e7ce; }
.stat div { min-width: 0; display: grid; grid-template-columns: auto 1fr; align-items: baseline; column-gap: 6px; }
.stat small { grid-column: 1 / -1; color: #4e525d; font-size: 11px; white-space: nowrap; }
.stat strong { font-size: 24px; line-height: 1.25; letter-spacing: -.03em; }
.stat div > span { color: var(--muted); font-size: 10px; white-space: nowrap; }
.panel { background: white; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.panel--spaced { margin-top: 24px; }
.panel__header { min-height: 70px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 20px; border-bottom: 1px solid var(--border); }
.panel__header h2 { margin: 0; font-size: 16px; letter-spacing: -.02em; }
.panel__header p { margin: 3px 0 0; color: var(--muted); font-size: 11px; }
.empty-compact { margin: 0; padding: 22px 18px; color: var(--muted); font-size: 12px; }

/* Tables */
.table-wrap { width: 100%; overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; table-layout: auto; }
.data-table th { height: 42px; padding: 0 13px; color: var(--muted); background: #fbfbfc; border-bottom: 1px solid var(--border); font-size: 10px; font-weight: 650; text-align: left; white-space: nowrap; }
.data-table td { height: 66px; padding: 8px 13px; border-bottom: 1px solid var(--border); font-size: 11px; vertical-align: middle; }
.data-table tbody tr:last-child td { border-bottom: 0; }
.data-table tbody tr:hover { background: #fbfbfd; }
.task-table th:first-child, .task-table td:first-child { padding-left: 19px; min-width: 240px; }
.task-title { display: flex; align-items: center; gap: 10px; min-width: 0; }
.task-title > .icon { width: 17px; height: 17px; color: #9a9eaa; }
.task-title > span { display: flex; flex-direction: column; min-width: 0; }
.task-title strong { max-width: 390px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 650; }
.task-title small { margin-top: 2px; color: var(--muted-2); font-size: 9px; }
.task-row.is-completed .task-title strong { color: var(--muted); text-decoration: line-through; }
.section-label { display: inline-flex; align-items: center; min-height: 24px; padding: 0 8px; border: 1px solid var(--border); border-radius: 4px; color: var(--muted); background: var(--surface-2); font-size: 9px; font-weight: 650; }
.section-label--blue { color: var(--blue); border-color: #cadffc; background: var(--blue-soft); }
.section-label--teal { color: var(--teal); border-color: #bfe8e3; background: var(--teal-soft); }
.section-label--violet { color: var(--violet); border-color: #d8cffd; background: var(--violet-soft); }
.section-label--amber { color: var(--amber); border-color: #f0d4aa; background: var(--amber-soft); }
.section-label--rose { color: var(--rose); border-color: #f0c8dd; background: var(--rose-soft); }
.status { display: inline-flex; align-items: center; min-height: 24px; padding: 0 8px; border: 1px solid var(--border-strong); border-radius: 4px; color: var(--muted); background: white; font-size: 9px; font-weight: 650; white-space: nowrap; }
.status--in_progress { color: var(--amber); border-color: #efcd97; background: var(--amber-soft); }
.status--completed { color: var(--green); border-color: #b7e1c9; background: var(--green-soft); }
.avatar-stack { display: flex; padding-left: 6px; min-width: 60px; }
.avatar-stack .avatar { width: 26px; height: 26px; margin-left: -6px; border: 2px solid white; border-radius: 5px; font-size: 8px; }
.due-date { white-space: nowrap; color: #4f535e; }
.due-date.is-overdue { color: var(--red); font-weight: 650; }
.empty-table { min-height: 170px; display: flex; flex-direction: column; align-items: center; justify-content: center; color: var(--muted); }
.empty-table > span { width: 42px; height: 42px; display: grid; place-items: center; margin-bottom: 10px; color: var(--green); background: var(--green-soft); border-radius: 50%; }
.empty-table strong { color: #4c505a; }
.empty-table p { margin: 3px 0 0; font-size: 11px; }

/* Dialog and forms */
.dialog { width: min(640px, calc(100vw - 32px)); max-height: calc(100vh - 40px); padding: 0; border: 0; border-radius: 11px; box-shadow: var(--shadow); overflow: hidden; }
.dialog::backdrop { background: rgba(15, 17, 22, .52); backdrop-filter: blur(2px); }
.dialog__surface { max-height: calc(100vh - 40px); display: flex; flex-direction: column; background: white; }
.dialog__header { min-height: 79px; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 17px 22px; border-bottom: 1px solid var(--border); }
.dialog__header h2 { margin: 0; font-size: 19px; letter-spacing: -.025em; }
.dialog__header p { margin: 3px 0 0; color: var(--muted); font-size: 11px; }
.dialog__body { padding: 22px; overflow-y: auto; }
.dialog__footer { display: flex; justify-content: flex-end; gap: 9px; padding: 14px 22px; border-top: 1px solid var(--border); background: #fbfbfc; }
.assignee-fieldset { min-width: 0; padding: 0; border: 0; margin: 0; }
.assignee-fieldset legend { margin-bottom: 8px; color: #30333b; font-size: 13px; font-weight: 650; }
.assignee-options { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.assignee-options[hidden] { display: none; }
.assignee-option { min-height: 52px; display: grid; grid-template-columns: auto auto 1fr; align-items: center; gap: 9px; padding: 8px 10px; border: 1px solid var(--border); border-radius: 7px; cursor: pointer; }
.assignee-option:has(input:checked) { border-color: #b9aafb; background: var(--violet-soft); }
.assignee-option > span:last-child { min-width: 0; display: flex; flex-direction: column; }
.assignee-option strong { overflow: hidden; text-overflow: ellipsis; font-size: 12px; }
.assignee-option small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); font-size: 9px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-hint { margin: -5px 0 0; color: var(--muted); font-size: 11px; }

/* Task drawer */
.drawer-backdrop { position: fixed; z-index: 50; inset: 0; background: rgba(16, 18, 23, .34); }
.drawer-backdrop a { display: block; width: 100%; height: 100%; }
.task-drawer { position: fixed; z-index: 55; top: 0; right: 0; bottom: 0; width: min(450px, 100vw); display: flex; flex-direction: column; background: white; box-shadow: -18px 0 50px rgba(14, 16, 21, .18); animation: drawer-in .2s ease-out both; }
@keyframes drawer-in { from { transform: translateX(28px); opacity: .5; } to { transform: translateX(0); opacity: 1; } }
.drawer__top { height: 64px; display: flex; align-items: center; justify-content: space-between; padding: 0 20px; border-bottom: 1px solid var(--border); }
.drawer__scroll { flex: 1; overflow-y: auto; padding: 0 20px 30px; }
.task-detail-heading { padding: 22px 0 20px; border-bottom: 1px solid var(--border); }
.detail-status { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 13px; color: var(--muted); font-size: 10px; }
.detail-status > span:last-child { display: flex; align-items: center; gap: 5px; }
.detail-status .icon { width: 14px; height: 14px; }
.task-detail-heading h2 { margin: 0; font-size: 21px; line-height: 1.3; letter-spacing: -.025em; }
.task-detail-heading > p { margin: 8px 0 0; color: var(--muted); font-size: 10px; }
.drawer-section { padding: 20px 0; border-bottom: 1px solid var(--border); }
.drawer-section h3, .edit-task summary { margin: 0 0 12px; color: #343740; font-size: 12px; font-weight: 700; }
.drawer-section h3 span { color: var(--muted); font-weight: 500; }
.description-text { color: #50545e; font-size: 12px; line-height: 1.65; }
.assigned-list { display: flex; flex-wrap: wrap; gap: 8px; }
.assigned-list > span { display: inline-flex; align-items: center; gap: 6px; padding: 4px 8px 4px 4px; border: 1px solid var(--border); border-radius: 5px; font-size: 10px; }
.assigned-list .avatar { width: 24px; height: 24px; font-size: 7px; }
.file-list { display: flex; flex-direction: column; gap: 7px; }
.file-row { display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: 9px; padding: 9px; border: 1px solid var(--border); border-radius: 6px; }
.file-row:hover { border-color: #c6bcf6; background: #fcfbff; }
.file-icon { width: 34px; height: 34px; display: grid; place-items: center; color: var(--violet); background: var(--violet-soft); border-radius: 5px; }
.file-icon .icon { width: 17px; height: 17px; }
.file-row > span:nth-child(2) { display: flex; flex-direction: column; min-width: 0; }
.file-row strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 10px; }
.file-row small { color: var(--muted); font-size: 9px; }
.file-row > .icon { width: 17px; height: 17px; color: var(--muted); }
.upload-form { margin-top: 12px; padding: 12px; border: 1px dashed var(--border-strong); border-radius: 7px; background: #fbfbfc; }
.upload-actions { display: flex; gap: 7px; }
.upload-selection { margin: 8px 0 0; color: var(--muted); font-size: 9px; }
.upload-submit { margin-top: 9px; }
.upload-submit:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.comment-list { display: flex; flex-direction: column; gap: 15px; }
.comment { display: flex; gap: 9px; }
.comment > div { min-width: 0; flex: 1; }
.comment header { display: flex; justify-content: space-between; gap: 10px; }
.comment header strong { font-size: 10px; }
.comment time { color: var(--muted); font-size: 9px; }
.comment p { margin: 4px 0 0; color: #555963; font-size: 11px; line-height: 1.55; overflow-wrap: anywhere; }
.comment-form { display: grid; grid-template-columns: auto 1fr; gap: 9px; margin-top: 18px; }
.comment-form textarea { font-size: 11px; }
.comment-form .button { margin-top: 7px; }
.drawer__actions { min-height: 70px; display: flex; align-items: center; gap: 8px; padding: 12px 18px; border-top: 1px solid var(--border); background: white; }
.drawer__actions form { margin: 0; }
.drawer__actions form:last-child { margin-left: auto; }
.edit-task { margin: 15px 0 0; padding: 11px 12px; border: 1px solid var(--border); border-radius: 7px; background: #fbfbfc; }
.edit-task summary { display: flex; align-items: center; gap: 8px; margin: 0; cursor: pointer; list-style: none; }
.edit-task summary::-webkit-details-marker { display: none; }
.edit-task summary .icon { width: 16px; height: 16px; color: var(--violet); }
.edit-task[open] summary { margin-bottom: 15px; }
.compact-form { gap: 13px; }
.assignee-options--compact { max-height: 170px; overflow-y: auto; grid-template-columns: 1fr; }
.assignee-options--compact .assignee-option { min-height: 43px; }

/* Player search */
.player-search { min-height: 400px; }
.search-form { min-height: 78px; display: flex; align-items: center; justify-content: center; gap: 10px; padding: 16px 20px; border-bottom: 1px solid var(--border); }
.search-form label { position: relative; width: min(100%, 520px); }
.search-form label .icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.search-form input { height: 46px; padding: 0 14px 0 44px; }
.search-empty { min-height: 320px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 30px; }
.search-empty > span { width: 56px; height: 56px; display: grid; place-items: center; color: var(--violet); background: var(--violet-soft); border-radius: 50%; }
.search-empty h2 { margin: 17px 0 3px; font-size: 18px; }
.search-empty p { max-width: 430px; margin: 0; color: var(--muted); font-size: 12px; }
.player-result { padding: 26px; }
.player-profile { display: flex; gap: 17px; align-items: center; padding-bottom: 23px; border-bottom: 1px solid var(--border); }
.player-profile > div { min-width: 0; }
.player-name-row { display: flex; align-items: center; gap: 10px; }
.player-name-row h2 { margin: 0; font-size: 22px; letter-spacing: -.02em; }
.player-profile p { margin: 3px 0 8px; color: var(--muted); font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 10px; overflow-wrap: anywhere; }
.online-state { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 10px; font-weight: 650; }
.online-state i { width: 7px; height: 7px; border-radius: 50%; background: #afb3bd; }
.online-state.is-online { color: var(--green); }
.online-state.is-online i { background: var(--green); box-shadow: 0 0 0 3px var(--green-soft); }
.rank-list { display: flex; flex-wrap: wrap; gap: 5px; }
.rank-list span { padding: 3px 7px; color: var(--violet); background: var(--violet-soft); border: 1px solid #d8d0fb; border-radius: 4px; font-size: 9px; font-weight: 650; }
.info-grid { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--border); border-radius: 8px; margin-top: 22px; overflow: hidden; }
.info-cell { min-height: 75px; display: flex; flex-direction: column; justify-content: center; gap: 4px; padding: 14px 16px; border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.info-cell:nth-child(3n) { border-right: 0; }
.info-cell:nth-last-child(-n+3) { border-bottom: 0; }
.info-cell small, .sensitive-grid small { color: var(--muted); font-size: 9px; }
.info-cell strong { font-size: 13px; }
.sensitive-panel { margin-top: 22px; border: 1px solid #ebc3c3; border-radius: 8px; overflow: hidden; }
.sensitive-panel > header { display: flex; align-items: center; justify-content: space-between; padding: 13px 15px; background: var(--red-soft); border-bottom: 1px solid #ebc3c3; }
.sensitive-panel > header > div { display: flex; gap: 9px; align-items: center; }
.sensitive-panel header .icon { color: var(--red); }
.sensitive-panel header span { display: flex; flex-direction: column; }
.sensitive-panel header strong { font-size: 11px; }
.sensitive-panel header small { color: #a16b6b; font-size: 9px; }
.sensitive-grid { display: grid; grid-template-columns: 1fr 1fr; padding: 15px; gap: 15px; }
.sensitive-grid > div { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.sensitive-grid code { width: max-content; max-width: 100%; padding: 4px 6px; color: #642b2b; background: #fff6f6; border: 1px solid #f0d6d6; border-radius: 4px; font-size: 10px; overflow-wrap: anywhere; }
.sensitive-grid--ips { grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr); }
.ip-value-list { display: flex; flex-wrap: wrap; gap: 6px; }
.sensitive-grid code.ip-value { color: #21242b; background: #f6f6f8; border-color: var(--border-strong); font-weight: 650; }
.sensitive-api-source { display: flex; flex-direction: column; gap: 6px; padding: 12px 15px; background: #fffafa; border-top: 1px solid #f0d6d6; }
.sensitive-api-source small { color: #a16b6b; font-size: 8px; font-weight: 650; text-transform: uppercase; letter-spacing: .04em; }
.sensitive-api-source code { max-width: 100%; color: #785353; font-size: 8px; overflow-wrap: anywhere; }
.punishments, .server-playtime { margin-top: 24px; }
.punishments h3, .server-playtime h3 { margin: 0 0 10px; font-size: 13px; }
.punishments article { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--border); }
.punishment-type { padding: 4px 6px; color: var(--red); background: var(--red-soft); border-radius: 4px; font-size: 8px; font-weight: 800; }
.punishments article strong { font-size: 11px; }
.punishments article p { margin: 2px 0 0; color: var(--muted); font-size: 9px; }
.server-list { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
.server-list div { display: flex; justify-content: space-between; gap: 15px; padding: 9px 0; border-bottom: 1px solid var(--border); font-size: 10px; }
.server-list span { color: var(--muted); }

/* Bann-Auditlog */
.audit-section { margin-top: 24px; }
.audit-access { display: inline-flex; align-items: center; gap: 7px; color: var(--violet); font-size: 10px; font-weight: 700; white-space: nowrap; }
.audit-access .icon { width: 16px; height: 16px; }
.audit-table { min-width: 840px; }
.audit-table th:first-child, .audit-table td:first-child { padding-left: 19px; }
.audit-table td { height: 62px; }
.audit-player, .audit-actor { display: inline-flex; align-items: center; gap: 9px; white-space: nowrap; }
.audit-player strong { font-size: 11px; }
.audit-player .avatar, .audit-actor .avatar { width: 28px; height: 28px; font-size: 8px; }
.audit-reason { display: block; max-width: 390px; color: #4e525c; line-height: 1.45; }
.audit-actor { color: #3f434d; font-size: 10px; font-weight: 600; }
.audit-actor--hidden { color: var(--muted); font-weight: 500; }
.audit-actor--hidden .icon { width: 15px; height: 15px; color: var(--violet); }
.audit-time { color: var(--muted); font-size: 10px; white-space: nowrap; }
.audit-source { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 10px 19px; border-top: 1px solid var(--border); background: #fbfbfc; }
.audit-source > span { flex: 0 0 auto; color: var(--muted); font-size: 9px; font-weight: 650; }
.audit-source code { min-width: 0; padding: 5px 7px; color: #4c3b8c; background: var(--violet-soft); border: 1px solid #d8d0fb; border-radius: 4px; font-size: 9px; overflow-wrap: anywhere; }

/* Netzwerk */
.network-hero { display: grid; grid-template-columns: minmax(250px, .75fr) minmax(0, 1.45fr); margin-bottom: 24px; overflow: hidden; }
.network-total { display: flex; align-items: center; gap: 17px; padding: 24px; border-right: 1px solid var(--border); }
.network-pulse { position: relative; width: 58px; height: 58px; display: grid; flex: 0 0 auto; place-items: center; color: var(--violet); background: var(--violet-soft); border: 1px solid #d8d0fb; border-radius: 12px; }
.network-pulse > i { position: absolute; right: 7px; top: 7px; width: 7px; height: 7px; background: var(--green); border: 2px solid white; border-radius: 50%; box-sizing: content-box; }
.network-pulse .icon { width: 25px; height: 25px; }
.network-total > div { display: grid; grid-template-columns: auto 1fr; align-items: end; column-gap: 9px; }
.network-total small { grid-column: 1 / -1; color: var(--muted); font-size: 9px; font-weight: 650; }
.network-total strong { font-size: 34px; line-height: 1; letter-spacing: -.04em; }
.network-total p { margin: 0 0 3px; color: var(--muted); font-size: 9px; }
.network-summary { display: grid; grid-template-columns: repeat(4, 1fr); }
.network-summary > div { min-width: 0; display: flex; flex-direction: column; justify-content: center; gap: 5px; padding: 19px; border-right: 1px solid var(--border); }
.network-summary > div:last-child { border-right: 0; }
.network-summary small { color: var(--muted); font-size: 8px; font-weight: 650; white-space: nowrap; }
.network-summary strong { font-size: 14px; }
.live-panel { margin-bottom: 24px; }
.live-badge, .monitoring-state { display: inline-flex; align-items: center; gap: 7px; color: var(--green); font-size: 9px; font-weight: 750; text-transform: uppercase; letter-spacing: .05em; }
.live-badge i, .monitoring-state i { width: 7px; height: 7px; background: currentColor; border-radius: 50%; box-shadow: 0 0 0 3px var(--green-soft); }
.server-card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; padding: 16px; }
.server-card { min-width: 0; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
.server-card > header { min-height: 45px; display: flex; align-items: center; justify-content: space-between; padding: 9px 12px; background: #fbfbfc; border-bottom: 1px solid var(--border); }
.server-card > header span { display: inline-flex; align-items: center; gap: 7px; font-size: 10px; font-weight: 750; }
.server-card > header span i { width: 6px; height: 6px; background: var(--green); border-radius: 50%; }
.server-card > header > strong { min-width: 25px; height: 25px; display: grid; place-items: center; color: var(--violet); background: var(--violet-soft); border-radius: 5px; font-size: 10px; }
.online-player-list { display: flex; flex-direction: column; padding: 4px 11px 7px; }
.online-player-list > div { min-height: 44px; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 9px; border-bottom: 1px solid var(--border); }
.online-player-list > div:last-child { border-bottom: 0; }
.online-player-list .avatar { width: 26px; height: 26px; font-size: 8px; }
.online-player-list strong { min-width: 0; font-size: 10px; overflow: hidden; text-overflow: ellipsis; }
.online-player-list small { color: var(--green); font-size: 8px; }
.network-empty { min-height: 180px; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 25px; text-align: center; }
.network-empty .icon { width: 28px; height: 28px; margin-bottom: 10px; color: var(--muted-2); }
.network-empty strong { font-size: 12px; }
.network-empty p { margin: 3px 0 0; color: var(--muted); font-size: 9px; }
.offline-server-row { display: flex; align-items: flex-start; gap: 15px; padding: 12px 16px; background: #fbfbfc; border-top: 1px solid var(--border); }
.offline-server-row > span { flex: 0 0 auto; padding-top: 4px; color: var(--muted); font-size: 8px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.offline-server-row > div { display: flex; flex-wrap: wrap; gap: 5px; }
.offline-server-row > div span { padding: 3px 6px; color: #777b84; background: white; border: 1px solid var(--border); border-radius: 4px; font-size: 8px; }
.monitoring-grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(300px, .75fr); gap: 24px; margin-bottom: 24px; align-items: stretch; }
.monitoring-state { color: var(--red); }
.monitoring-state i { box-shadow: 0 0 0 3px var(--red-soft); }
.monitoring-state.is-online { color: var(--green); }
.monitoring-state.is-online i { box-shadow: 0 0 0 3px var(--green-soft); }
.metric-cards { display: grid; grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid var(--border); }
.metric-cards > div { display: flex; flex-direction: column; gap: 5px; padding: 17px 19px; border-right: 1px solid var(--border); }
.metric-cards > div:last-child { border-right: 0; }
.metric-cards small, .incidence-stats small { color: var(--muted); font-size: 8px; }
.metric-cards strong { font-size: 15px; }
.monitoring-chart { padding: 17px 19px 14px; }
.monitoring-chart > div { display: flex; align-items: center; justify-content: space-between; margin-bottom: 9px; }
.monitoring-chart span { font-size: 9px; font-weight: 700; }
.monitoring-chart small { color: var(--muted); font-size: 8px; }
.monitoring-chart svg { width: 100%; height: 132px; display: block; overflow: visible; }
.monitoring-chart svg path { fill: none; stroke: var(--border); stroke-width: 1; }
.monitoring-chart svg polyline { fill: none; stroke: var(--violet); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.incidence-count { color: var(--muted); font-size: 9px; }
.incidence-stats { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid var(--border); }
.incidence-stats > div { display: flex; flex-direction: column; gap: 4px; padding: 15px 17px; border-right: 1px solid var(--border); }
.incidence-stats > div:last-child { border-right: 0; }
.incidence-stats strong { font-size: 13px; }
.incidence-list { padding: 3px 16px 8px; }
.incidence-list article { min-height: 49px; display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: 9px; border-bottom: 1px solid var(--border); }
.incidence-list article:last-child { border-bottom: 0; }
.incidence-mark { width: 7px; height: 7px; background: #c3c6cd; border-radius: 50%; }
.incidence-mark.is-active { background: var(--red); box-shadow: 0 0 0 3px var(--red-soft); }
.incidence-list strong { font-size: 9px; }
.incidence-list p { margin: 2px 0 0; color: var(--muted); font-size: 8px; }
.incidence-list > article > small { color: var(--muted); font-size: 8px; }
.backups-panel { margin-bottom: 24px; }
.backup-progress { padding: 15px 19px; background: #fbfaff; border-bottom: 1px solid #ddd6fb; }
.backup-progress > div { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 9px; }
.backup-progress span { display: flex; flex-direction: column; }
.backup-progress strong { font-size: 10px; }
.backup-progress small { color: var(--muted); font-size: 8px; }
.backup-progress progress { width: 100%; height: 7px; display: block; overflow: hidden; appearance: none; border: 0; border-radius: 20px; background: #e7e4f4; }
.backup-progress progress::-webkit-progress-bar { background: #e7e4f4; border-radius: 20px; }
.backup-progress progress::-webkit-progress-value { background: var(--violet); border-radius: 20px; }
.backup-progress progress::-moz-progress-bar { background: var(--violet); border-radius: 20px; }
.backup-create-form { display: flex; align-items: flex-end; gap: 10px; padding: 16px 19px; border-bottom: 1px solid var(--border); }
.backup-create-form .field { width: min(100%, 390px); }
.backup-table { min-width: 760px; }
.backup-table td:first-child strong { display: block; font-size: 10px; }
.backup-id { display: block; max-width: 230px; margin-top: 2px; color: var(--muted); font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 7px; overflow: hidden; text-overflow: ellipsis; }

/* Strafhistorie */
.history-block { margin: 0; border-top: 1px solid var(--border); }
.history-header { min-height: 60px; display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 13px 26px; background: #fbfbfc; border-bottom: 1px solid var(--border); }
.history-header h3 { margin: 0; font-size: 13px; }
.history-header p { margin: 2px 0 0; color: var(--muted); font-size: 8px; }
.history-access { display: inline-flex; align-items: center; gap: 6px; color: var(--violet); font-size: 9px; font-weight: 700; }
.history-access .icon { width: 14px; height: 14px; }
.history-list { padding: 0 26px; }
.history-entry { min-height: 66px; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; border-bottom: 1px solid var(--border); }
.history-entry__main strong { display: block; font-size: 10px; }
.history-entry__main p { margin: 3px 0 0; color: var(--muted); font-size: 8px; }
.history-entry__meta { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.history-entry__meta small { color: var(--muted); font-size: 8px; }
.history-notes { padding: 18px 26px; background: #fbfbfc; }
.history-notes h4 { margin: 0 0 8px; font-size: 10px; }
.history-notes article { padding: 9px 0; border-top: 1px solid var(--border); }
.history-notes strong, .history-notes small { font-size: 8px; }
.history-notes p { margin: 3px 0; color: #50545e; font-size: 9px; line-height: 1.5; }
.history-lock { display: flex; align-items: center; gap: 11px; padding: 18px 26px; color: var(--muted); background: #fbfbfc; }
.history-lock > .icon { width: 20px; height: 20px; color: var(--violet); }
.history-lock strong { color: var(--text); font-size: 10px; }
.history-lock p { margin: 2px 0 0; font-size: 9px; }

/* Media */
.media-search { min-height: 400px; }
.playtime-result { padding: 26px; }
.playtime-result > header { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 16px; padding-bottom: 22px; border-bottom: 1px solid var(--border); }
.playtime-result > header small { color: var(--muted); font-size: 8px; }
.playtime-result > header h2 { margin: 2px 0; font-size: 20px; }
.playtime-result > header p { margin: 0; color: var(--muted); font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 8px; overflow-wrap: anywhere; }
.playtime-result > header > strong { font-size: 20px; letter-spacing: -.02em; }
.playtime-result--total > header { padding-bottom: 0; border-bottom: 0; }

/* Administration */
.tab-nav { display: flex; align-items: center; gap: 25px; margin: -4px 0 24px; border-bottom: 1px solid var(--border-strong); }
.tab-nav a { position: relative; padding: 0 1px 12px; color: var(--muted); font-size: 12px; font-weight: 650; }
.tab-nav a.is-active { color: var(--text); }
.tab-nav a.is-active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--violet); }
.admin-member-grid { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 24px; align-items: start; }
.member-list { display: flex; flex-direction: column; }
.member-row { border-bottom: 1px solid var(--border); }
.member-row:last-child { border-bottom: 0; }
.member-row > summary { min-height: 72px; display: grid; grid-template-columns: auto minmax(140px, 1fr) auto 105px auto; align-items: center; gap: 12px; padding: 10px 16px; cursor: pointer; list-style: none; }
.member-row > summary::-webkit-details-marker { display: none; }
.member-row > summary:hover { background: #fbfbfc; }
.member-row > summary > .icon { width: 17px; height: 17px; color: var(--muted); transition: transform .15s; }
.member-row[open] > summary > .icon { transform: rotate(90deg); }
.member-identity { min-width: 0; display: flex; flex-direction: column; }
.member-identity strong { font-size: 12px; }
.member-identity small { color: var(--muted); font-size: 9px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.member-sections { display: flex; gap: 5px; }
.section-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--muted-2); }
.section-dot--blue { background: var(--blue); }.section-dot--teal { background: var(--teal); }.section-dot--violet { background: var(--violet); }.section-dot--amber { background: var(--amber); }.section-dot--rose { background: var(--rose); }
.member-sync { display: flex; flex-direction: column; color: #4f535d; font-size: 10px; }
.member-sync small { color: var(--muted); font-size: 8px; }
.member-detail { padding: 18px; background: #fbfbfc; border-top: 1px solid var(--border); }
.permission-list h3 { margin: 0; font-size: 12px; }
.permission-list > p { margin: 3px 0 12px; color: var(--muted); font-size: 10px; }
.permission-row { min-height: 48px; display: flex; align-items: center; justify-content: space-between; gap: 15px; border-top: 1px solid var(--border); }
.permission-row > span { display: flex; flex-direction: column; font-size: 11px; font-weight: 650; }
.permission-row small { color: var(--muted); font-size: 8px; font-weight: 450; }
.toggle { position: relative; width: 38px; height: 22px; padding: 0; border: 0; border-radius: 20px; background: #c9ccd3; }
.toggle i { position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: white; box-shadow: 0 1px 3px rgba(0,0,0,.2); transition: left .15s; }
.toggle.is-on { background: var(--violet); }
.toggle.is-on i { left: 19px; }
.toggle:disabled { cursor: not-allowed; opacity: .68; }
.special-access { display: flex; align-items: center; gap: 11px; padding: 13px; color: var(--violet); background: var(--violet-soft); border: 1px solid #d8d0fb; border-radius: 7px; }
.special-access div { color: var(--text); }
.special-access strong { font-size: 11px; }
.special-access p { margin: 2px 0 0; color: var(--muted); font-size: 9px; }
.member-actions { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; margin-top: 16px; }
.inline-form { display: flex; align-items: flex-end; gap: 8px; }
.inline-form .field { width: 220px; }
.inline-form .field input { height: 36px; font-size: 11px; }
.panel-form { padding: 20px; }
.add-member-panel { position: sticky; top: 88px; }

/* Account */
.account-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(320px, .8fr); gap: 24px; align-items: start; }
.account-hero { display: flex; align-items: center; gap: 15px; padding: 22px; border-bottom: 1px solid var(--border); }
.account-hero h2 { margin: 0; font-size: 20px; }
.account-hero p { margin: 3px 0 0; color: var(--muted); font-size: 11px; }
.account-profile dl { margin: 0; padding: 4px 22px; }
.account-profile dl div { display: grid; grid-template-columns: 145px minmax(0,1fr); gap: 15px; padding: 13px 0; border-bottom: 1px solid var(--border); }
.account-profile dt { color: var(--muted); font-size: 10px; }
.account-profile dd { margin: 0; font-size: 11px; overflow-wrap: anywhere; }
.account-permissions { padding: 18px 22px 22px; }
.account-permissions h3 { margin: 0 0 8px; font-size: 12px; }
.account-permissions > div { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 8px; padding: 7px 0; }
.account-permissions strong { font-size: 11px; }
.account-permissions small { color: var(--muted); font-size: 9px; }

/* Responsive */
.mobile-backdrop { display: none; }
@media (max-width: 1180px) {
    .stat-strip { grid-template-columns: repeat(3, 1fr); }
    .stat:nth-child(3) { border-right: 0; }
    .stat:nth-child(-n+3) { border-bottom: 1px solid var(--border); }
    .admin-member-grid { grid-template-columns: 1fr; }
    .add-member-panel { position: static; }
    .server-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .monitoring-grid { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
    .login-shell { grid-template-columns: 1fr; }
    .login-visual { display: none; }
    .login-content { min-height: 100vh; padding: 40px 24px; }
    .mobile-brand { display: block; margin-bottom: 54px; }
    .mobile-brand .brand__text strong { color: var(--text); }
    .mobile-brand .brand__mark span { background: white; }
    .app-shell { display: block; }
    .sidebar { position: fixed; left: 0; transform: translateX(-102%); width: 245px; transition: transform .2s ease; }
    body.sidebar-open .sidebar { transform: translateX(0); }
    .mobile-backdrop { position: fixed; z-index: 29; inset: 0; background: rgba(16,18,23,.48); }
    body.sidebar-open .mobile-backdrop { display: block; }
    .sidebar-close { display: grid; place-items: center; width: 34px; height: 34px; color: #b7bac3; background: transparent; border: 0; }
    .sidebar-close .icon { width: 18px; height: 18px; }
    .mobile-menu { display: grid; }
    .topbar__context { display: none; }
    .content { padding-top: 27px; }
    .account-grid { grid-template-columns: 1fr; }
    .network-hero { grid-template-columns: 1fr; }
    .network-total { border-right: 0; border-bottom: 1px solid var(--border); }
}

@media (max-width: 700px) {
    .topbar { padding: 0 15px; }
    .sync-status { display: none; }
    .topbar-user > span:last-child { display: none; }
    .content { padding: 23px 14px 45px; }
    .page-heading { min-height: auto; align-items: flex-start; margin-bottom: 20px; }
    .page-heading h1 { font-size: 26px; }
    .page-heading p { font-size: 12px; }
    .page-heading > .button { min-width: 42px; padding: 0 11px; font-size: 0; }
    .page-heading > .button .icon { margin: 0; }
    .stat-strip { grid-template-columns: 1fr 1fr; }
    .stat { min-height: 92px; border-bottom: 1px solid var(--border); }
    .stat:nth-child(3) { border-right: 1px solid var(--border); }
    .stat:nth-child(2n) { border-right: 0; }
    .stat:last-child { grid-column: 1 / -1; border-bottom: 0; }
    .stat small { white-space: normal; }
    .task-table th:nth-child(2), .task-table td:nth-child(2), .task-table th:nth-child(4), .task-table td:nth-child(4) { display: none; }
    .panel__header { padding: 13px 15px; }
    .assignee-options { grid-template-columns: 1fr; }
    .dialog__body { padding: 17px; }
    .form-row { grid-template-columns: 1fr; }
    .drawer__actions { flex-wrap: wrap; }
    .drawer__actions .button { font-size: 11px; }
    .search-form { align-items: stretch; flex-direction: column; }
    .search-form label { width: 100%; }
    .player-result { padding: 18px; }
    .info-grid { grid-template-columns: 1fr 1fr; }
    .info-cell:nth-child(3n) { border-right: 1px solid var(--border); }
    .info-cell:nth-child(2n) { border-right: 0; }
    .info-cell:nth-last-child(-n+3) { border-bottom: 1px solid var(--border); }
    .info-cell:nth-last-child(-n+2) { border-bottom: 0; }
    .sensitive-grid, .sensitive-grid--ips, .server-list { grid-template-columns: 1fr; }
    .member-row > summary { grid-template-columns: auto minmax(100px,1fr) auto; }
    .member-sections, .member-sync { display: none; }
    .member-actions, .inline-form { align-items: stretch; flex-direction: column; }
    .inline-form .field { width: 100%; }
    .account-profile dl div { grid-template-columns: 1fr; gap: 3px; }
    .network-summary { grid-template-columns: 1fr 1fr; }
    .network-summary > div { border-bottom: 1px solid var(--border); }
    .network-summary > div:nth-child(2n) { border-right: 0; }
    .network-summary > div:nth-last-child(-n+2) { border-bottom: 0; }
    .server-card-grid { grid-template-columns: 1fr; }
    .backup-create-form { align-items: stretch; flex-direction: column; }
    .backup-create-form .field, .backup-create-form .button { width: 100%; }
    .playtime-result { padding: 18px; }
    .playtime-result > header { grid-template-columns: auto minmax(0, 1fr); }
    .playtime-result > header > strong { grid-column: 1 / -1; }
    .history-header, .history-list { padding-left: 18px; padding-right: 18px; }
}

@media (max-width: 420px) {
    .login-content { padding: 30px 18px; }
    .mobile-brand { margin-bottom: 42px; }
    .security-note { grid-template-columns: 1fr auto 1fr; }
    .stat { padding: 13px; gap: 9px; }
    .stat__icon { display: none; }
    .task-table th:nth-child(5), .task-table td:nth-child(5) { display: none; }
    .player-profile { align-items: flex-start; }
    .player-profile .avatar--xl { width: 50px; height: 50px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
