:root {
    --text: #1a1d31;
    --muted: #5e667b;
    --subtle: #737a8d;
    --canvas: #f6f7fb;
    --surface: #fff;
    --line: #e2e5ef;
    --accent: #5143c6;
    --accent-hover: #3f32ac;
    --accent-light: #eeeaff;
    --sidebar: #17162a;
    --sidebar-text: #d9d7e8;
    --sidebar-muted: #aaa6c0;
    --shadow: 0 3px 12px rgb(29 32 65 / 4%);
    --radius: 14px;
    font-family: "Segoe UI", system-ui, sans-serif;
    font-size: 100%;
    color: var(--text);
    background: var(--canvas);
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; line-height: 1.5; }
h1, h2, p { margin: 0; }
h1 { font-size: clamp(1.8rem, 3.1vw, 2.45rem); line-height: 1.14; letter-spacing: -.04em; }
h2 { font-size: 1.12rem; line-height: 1.35; letter-spacing: -.018em; }
a { color: var(--accent); text-underline-offset: .18em; }
button, input, select, textarea { font: inherit; }
button, summary { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .6; }
:focus-visible { outline: 3px solid #7566e8; outline-offset: 3px; }
code, pre, .code-field { font-family: "Cascadia Code", Consolas, ui-monospace, monospace; }
code { font-size: .88em; }
code, dd, .wrap-cell { overflow-wrap: anywhere; }
pre { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.muted { color: var(--muted); }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    min-height: 2.55rem;
    padding: .47rem .9rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    color: var(--text);
    text-decoration: none;
    font-size: .9rem;
    font-weight: 650;
    line-height: 1.24;
    white-space: nowrap;
}
.button:hover { border-color: #c9c4e9; background: #faf9ff; }
.primary { border-color: var(--accent); color: #fff; background: var(--accent); box-shadow: 0 5px 12px rgb(81 67 198 / 17%); }
.primary:hover { border-color: var(--accent-hover); color: #fff; background: var(--accent-hover); }
.text-button { border-color: transparent; background: transparent; }
.danger { background: #a1283e; border-color: #a1283e; color: #fff; }
.danger:hover { background: #852036; border-color: #852036; }
.danger-outline { color: #a1283e; border-color: #e8c4cb; }
.danger-outline:hover { background: #fff4f5; border-color: #d7939f; }
.success { background: #157354; border-color: #157354; color: #fff; }
.success:hover { background: #0e5a40; border-color: #0e5a40; }
.icon-button { width: 2.55rem; min-width: 2.55rem; padding-inline: 0; }
.icon { display: inline-grid; place-items: center; min-width: 1rem; line-height: 1; font-size: 1.08em; }
svg.icon { width: 1.15rem; height: 1.15rem; flex: none; }
.button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.icon-detail, .icon-delete { position: relative; height: 1rem; }
.icon-detail::before, .icon-detail::after, .icon-delete::before, .icon-delete::after { content: ""; position: absolute; left: 50%; top: 50%; }
.icon-detail::before { width: .92rem; height: .58rem; border: 1.5px solid currentColor; border-radius: 70% 48%; transform: translate(-50%, -50%); }
.icon-detail::after { width: .25rem; height: .25rem; border-radius: 50%; background: currentColor; transform: translate(-50%, -50%); }
.icon-delete::before { width: .57rem; height: .6rem; border: 1.5px solid currentColor; border-top: 0; border-radius: 0 0 2px 2px; transform: translate(-50%, -33%); }
.icon-delete::after { width: .83rem; height: 1.5px; border-radius: 2px; background: currentColor; transform: translate(-50%, -.22rem); }

.brand { display: flex; align-items: center; gap: .72rem; text-decoration: none; color: inherit; font-weight: 760; letter-spacing: -.025em; font-size: 1.22rem; white-space: nowrap; }
.brand-mark { width: 2rem; height: 2rem; position: relative; border-radius: 9px; background: #6c5ce8; box-shadow: inset 0 1px 0 rgb(255 255 255 / 24%); flex: none; }
.brand-mark::before { content: ""; position: absolute; top: 8px; left: 7px; width: 5px; height: 5px; background: #fff; border-radius: 50%; box-shadow: 0 11px #fff, 13px 5.5px #fff; }
.brand-mark::after { content: ""; position: absolute; inset: 10px 11px 10px 10px; border: solid #fff; border-width: 1.5px 1.5px 1.5px 0; border-radius: 0 4px 4px 0; }
.app-shell { display: grid; grid-template-columns: 248px minmax(0, 1fr); min-height: 100vh; }
.sidebar { position: sticky; top: 0; align-self: start; display: flex; flex-direction: column; height: 100dvh; padding: 1.45rem 1rem 1rem; background: var(--sidebar); color: #fff; }
.sidebar > .brand { margin: .05rem .32rem 1.2rem; }
.sidebar-nav { overflow-y: auto; padding: 0 .1rem .5rem; flex: 1; }
.nav-head { margin: 1.15rem .65rem .38rem; color: var(--sidebar-muted); font-size: .78rem; font-weight: 660; }
.nav-item { display: flex; align-items: center; gap: .65rem; min-height: 2.42rem; margin: .16rem 0; padding: .38rem .65rem; border-radius: 7px; color: var(--sidebar-text); text-decoration: none; font-size: .9rem; font-weight: 600; }
.nav-item > span:first-child { text-align: center; width: 1.06rem; color: #b4aaf7; flex: none; }
.nav-item:hover { background: #2b2841; color: #fff; }
.nav-item.current { background: #342c63; color: #fff; box-shadow: inset 2px 0 #998bff; }
.sidebar-bottom { border-top: 1px solid #36324b; margin-top: .65rem; padding-top: .65rem; }
.sidebar-profile { display: flex; align-items: center; gap: .65rem; padding: .38rem .65rem; border-radius: 7px; color: inherit; text-decoration: none; font-size: .9rem; }
.sidebar-profile[href]:hover, .sidebar-profile:focus-visible { background: #2b2841; }
.sidebar-profile .avatar { display: grid; place-items: center; width: 2.05rem; height: 2.05rem; border-radius: 9px; background: #3b326d; color: #efeaff; flex: none; }
.sidebar-bottom .nav-item { margin-top: .45rem; }
.account-restricted .sidebar-bottom { margin-top: auto; }
.account-status-page { display: grid; place-items: center; min-height: 68dvh; }
.account-status { width: min(100%, 44rem); padding: clamp(1.5rem, 4vw, 3rem); text-align: center; }
.account-status h1 { margin: 1rem 0 0; font-size: clamp(1.3rem, 3vw, 2rem); }
.identity { min-width: 0; }
.identity strong, .identity small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.identity small { color: var(--sidebar-muted); font-size: .76rem; font-weight: 450; }
.app-main { min-width: 0; }
.topbar { height: 4.15rem; padding: 0 clamp(1rem, 3.5vw, 2.75rem); display: flex; align-items: center; justify-content: space-between; gap: .5rem; background: var(--surface); border-bottom: 1px solid var(--line); }
.topbar-start { display: flex; align-items: center; gap: .68rem; min-width: 0; font-size: .9rem; }
.topbar-actions { display: flex; align-items: center; gap: .2rem; }
.topbar-start strong { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.topbar-section, .breadcrumb-separator { color: var(--muted); white-space: nowrap; }
.mobile-menu { display: none; }
.page { max-width: 94rem; margin: auto; padding: clamp(1.4rem, 3.7vw, 2.85rem) clamp(1rem, 3.5vw, 2.75rem) 3.5rem; }

.page-heading { margin-bottom: 1.65rem; }
.heading-row, .panel-head, .filter-fields, .filter-end, .row-actions, .form-actions { display: flex; align-items: center; gap: .65rem; }
.heading-row, .panel-head { justify-content: space-between; }
.heading-row h1 { display: flex; align-items: center; gap: .62rem; overflow-wrap: anywhere; }
.heading-row h1 .icon { padding: .47rem; width: 2.65rem; height: 2.65rem; border-radius: 10px; background: var(--accent-light); color: var(--accent); font-size: 1.45rem; flex-shrink: 0; }
.heading-flag { display: grid; place-items: center; flex: none; width: 2.65rem; height: 2.65rem; border-radius: 10px; background: var(--accent-light); }
.heading-actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: .52rem; }
.page-heading p { color: var(--muted); margin-top: .55rem; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); min-width: 0; }
.notice { border: 1px solid #d9d2f8; background: #f2efff; color: #403482; border-radius: 9px; padding: .72rem .95rem; margin-bottom: 1.15rem; }
.panel-head { margin-bottom: .95rem; }
.panel-head p { color: var(--muted); font-size: .9rem; margin-top: .2rem; }
.panel-head > .muted { font-size: .84rem; }

.metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; margin-bottom: 1.18rem; }
.metric { padding: 1rem 1.13rem 1.05rem; }
.metric > div { display: flex; align-items: center; justify-content: space-between; gap: .48rem; color: var(--muted); font-size: .9rem; font-weight: 640; }
.metric > strong { display: block; font-size: clamp(1.65rem, 2.9vw, 2.08rem); letter-spacing: -.045em; line-height: 1.28; margin: .18rem 0; }
.metric > small, .metric a { font-size: .83rem; }
.metric > small { color: var(--muted); }
.metric-icon, .feature-icon { display: inline-grid; place-items: center; width: 2.15rem; height: 2.15rem; border-radius: 8px; flex: none; }
.violet, .feature-icon { color: var(--accent); background: var(--accent-light); }
.teal { color: #08746b; background: #e3f6f2; }
.blue { color: #2c5e9b; background: #e7f0ff; }
.amber { color: #815115; background: #fff1dc; }

.table-panel .panel-head { padding: 1.05rem 1.15rem .9rem; margin: 0; }
.project-tabs { display: flex; flex-wrap: wrap; gap: .35rem; padding: .75rem 1rem; border-bottom: 1px solid var(--line); }
.project-tabs a { padding: .5rem .7rem; border-radius: 8px; color: var(--muted); font-size: .89rem; font-weight: 650; text-decoration: none; }
.project-tabs a:hover, .project-tabs a[aria-current="page"] { background: var(--accent-light); color: var(--accent); }
.project-favorite.is-favorite { color: #815115; background: #fff1dc; border-color: #e9cc9a; }
.project-favorite.is-favorite .icon-star { fill: currentColor; }
.project-discussion, .project-outputs { margin-block: 1rem; }
#taches-projet, .task-history { margin-block: 1rem; }
.summary-strip.dashboard-task-counts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(8rem, 100%), 1fr)); }
.dashboard-task-counts .summary-card { min-width: 0; }
.dashboard-task-counts .summary-card .badge { width: fit-content; }
.task-actions { margin-bottom: 0; }
.project-discussion h3, .project-outputs h3 { margin: 0; font-size: 1rem; }
.project-thread-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(13rem, 1fr); gap: 1.25rem; }
.project-messages { position: relative; display: grid; align-content: start; gap: .65rem; max-height: 30rem; overflow: auto; padding: .35rem; }
.project-message { min-width: 0; padding: .8rem .9rem; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.project-message.own-message { border-color: #ded7fa; background: #faf8ff; }
.project-message:target { outline: 2px solid var(--accent); outline-offset: -2px; }
.project-message header, .project-message header > div:first-child { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem; }
.project-message header { justify-content: space-between; }
.project-message small, .project-link-list small { color: var(--muted); }
.message-text { white-space: pre-wrap; overflow-wrap: anywhere; margin: .5rem 0 .2rem; }
.message-links { display: flex; flex-wrap: wrap; gap: .35rem; list-style: none; margin: .55rem 0 0; padding: 0; }
.message-links li { min-width: 0; max-width: 100%; }
.message-links a { text-decoration: none; overflow-wrap: anywhere; white-space: normal; }
.message-links a:hover { text-decoration: underline; }
.project-todos { min-width: 0; padding: .8rem 1rem; border: 1px solid var(--line); border-radius: 12px; background: var(--canvas); }
.project-todos .panel-head { margin-bottom: .35rem; }
.project-link-list { padding: 0; margin: 0; list-style: none; }
.project-link-list li { padding: .55rem 0; overflow-wrap: anywhere; }
.project-link-list li + li { border-top: 1px solid var(--line); }
.project-link-list small { display: block; }
.thread-navigation { display: flex; flex-wrap: wrap; gap: .75rem; font-size: .85rem; margin: .3rem 0; }
.project-composer { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.project-composer > label, .composer-options label, .project-composer .panel-head label { font-weight: 650; }
.project-composer .panel-head label { display: grid; gap: .25rem; min-width: min(12rem, 100%); }
.project-composer textarea, .composer-options input[type="file"] { width: 100%; }
.project-composer [hidden] { display: none; }
.project-composer .form-actions { justify-content: flex-end; margin-top: .8rem; }
.composer-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; margin-block: .55rem; }
.composer-choice { padding: .55rem .65rem; border: 1px solid var(--line); border-radius: 8px; }
.composer-choice > input { margin-top: .45rem; width: 100%; }
.composer-checklist { max-height: 10rem; overflow: auto; }
.composer-checklist label { display: block; padding: .2rem 0; overflow-wrap: anywhere; font-weight: 400; }
.mention-field { position: relative; }
.mention-results { position: absolute; bottom: 100%; z-index: 3; inset-inline: 0; max-height: 12rem; overflow: auto; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); box-shadow: var(--shadow); }
.mention-results button { display: block; width: 100%; padding: .45rem .65rem; text-align: left; border: 0; background: transparent; color: var(--text); }
.mention-results button:hover, .mention-results button.selected { background: var(--accent-light); color: var(--accent); }
.project-output-group, .project-output-empty { padding: .25rem 1.15rem .85rem; }
.project-output-group + .project-output-group { border-top: 1px solid var(--line); padding-top: .85rem; }
@media (max-width: 760px) {
    .project-thread-grid, .composer-options { grid-template-columns: minmax(0, 1fr); }
    .project-message header { align-items: start; }
}
.table-scroll { overflow-x: auto; position: relative; }
table { width: 100%; border-collapse: collapse; text-align: left; font-size: .88rem; }
th, td { padding: .68rem 1rem; border-bottom: 1px solid var(--line); vertical-align: middle; }
thead th { color: #4e566c; font-size: .82rem; font-weight: 690; background: #f7f8fc; white-space: nowrap; }
tbody tr:last-child td { border-bottom: none; }
.table-scroll td:first-child, .table-scroll th:first-child { padding-left: 1.15rem; }
.table-scroll td:last-child, .table-scroll th:last-child { text-align: right; padding-right: 1.15rem; }
.table-scroll td.empty-row { text-align: center; padding-block: 1.65rem; color: var(--muted); }
.table-scroll tbody tr:hover { background: #fbfaff; }
.row-actions { justify-content: flex-end; gap: .32rem; }
.row-actions .icon-button, td .icon-button { width: 2.23rem; min-width: 2.23rem; min-height: 2.21rem; }
.filter-bar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: .65rem 1rem;
    padding: .82rem 1rem;
    border-bottom: 1px solid var(--line);
    color: var(--muted);
    font-size: .89rem;
}
.filter-fields { flex-wrap: wrap; align-items: end; min-width: 0; }
.filter-fields > .icon { align-self: end; margin-bottom: .75rem; }
.filter-fields > label {
    display: grid;
    flex: 0 1 auto;
    gap: .2rem;
    min-width: min(7.25rem, 100%);
    max-width: min(17rem, 100%);
    font-weight: 600;
    overflow-wrap: anywhere;
}
.filter-fields > label[hidden] { display: none; }
.filter-fields > label > :is(input, select, .select-filter) { width: 100%; min-width: 0; font-weight: 400; }
.filter-fields > .project-list-switch { display: flex; max-width: none; }
.filter-fields > label:has(input[type="search"]) { width: 15rem; }
.filter-end { justify-self: end; justify-content: end; text-align: end; }
.filter-end > .button { flex: none; }
.list-empty { padding: .85rem 1rem; text-align: center; color: var(--muted); }
[data-list-row-hidden] { display: none !important; }
.pagination { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: .65rem; padding: .85rem 1.12rem; color: var(--muted); border-top: 1px solid var(--line); font-size: .9rem; }
.empty { text-align: center; padding: 1.45rem .8rem 1.75rem; border-top: 1px solid var(--line); }
.empty .feature-icon { margin-bottom: .55rem; }
.empty strong { display: block; }
.empty p { margin-top: .25rem; color: var(--muted); font-size: .9rem; }
.summary-strip { display: flex; flex-wrap: wrap; gap: .9rem; margin-bottom: 1.05rem; }
.summary-card { min-width: min(100%, 13.5rem); padding: .85rem 1.12rem; text-decoration: none; display: grid; color: var(--muted); font-size: .91rem; }
.summary-card:hover { border-color: #c9c4e9; }
.summary-card strong { color: var(--accent); font-size: 1.65rem; }

.badge { display: inline-flex; align-items: center; gap: .37rem; border: 0; border-radius: 99px; padding: .2rem .58rem; font-size: .8rem; font-weight: 710; white-space: nowrap; list-style: none; }
.badge::before { content: ""; height: .36rem; width: .36rem; border-radius: 50%; background: currentColor; }
.badge-with-icon::before { display: none; }
.badge-with-icon .icon { width: 1em; height: 1em; }
.badge.green { color: #106347; background: #e2f5eb; }
.badge.amber { color: #80511a; background: #fff1dc; }
.badge.red { color: #9a2842; background: #fce7ed; }
.badge.gray { color: #515b70; background: #edf0f6; }
.status-dialog table { margin-top: .45rem; white-space: normal; }
.status-dialog table :is(th, td):is(:first-child, :last-child) { padding: .4rem .55rem; text-align: start; }

.form-panel, .detail-panel, .linked-panel { padding: clamp(1rem, 3vw, 1.55rem); }
.form-panel { max-width: 40rem; }
.form-panel.wide { max-width: 56rem; }
.form-panel h2 + p, .form-panel label + p { margin-top: .4rem; color: var(--muted); }
.form-panel > .form-actions, .form-panel > form.form-actions { margin-top: 1rem; }
.form-actions { justify-content: flex-end; flex-wrap: wrap; }
.field-form { display: grid; align-items: start; justify-items: stretch; gap: .39rem; }
.field-form[hidden] { display: none; }
.field-form label:not(:first-child) { margin-top: .5rem; }
.field-form > button[type="submit"] { margin-top: .75rem; justify-self: end; }
label { font-size: .93rem; font-weight: 690; }
input:not([type="checkbox"], [type="hidden"]), select, textarea {
    width: 100%;
    border: 1px solid #d7dbea;
    border-radius: 8px;
    padding: .56rem .69rem;
    color: var(--text);
    background: #fff;
    font-size: .94rem;
    min-height: 2.55rem;
}
input::placeholder { color: #6d7388; }
textarea { resize: vertical; }
select { appearance: none; padding-right: 1.62rem; background-image: linear-gradient(45deg, transparent 50%, #5e667b 50%), linear-gradient(135deg, #5e667b 50%, transparent 50%); background-position: calc(100% - .85rem) 50%, calc(100% - .58rem) 50%; background-size: .27rem .29rem; background-repeat: no-repeat; }
.select-filter { display: block; min-width: 0; max-width: 100%; }
.select-filter[hidden], .select-filter-native, .select-filter-panel[hidden] { display: none !important; }
.select-filter-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .6rem;
    width: 100%;
    min-height: 2.55rem;
    padding: .56rem .69rem;
    border: 1px solid #d7dbea;
    border-radius: 8px;
    background: #fff;
    color: var(--text);
    font-size: .94rem;
    font-weight: 400;
    text-align: start;
    cursor: pointer;
}
.select-filter-trigger::after { content: ""; border: .27rem solid transparent; border-top-color: #5e667b; border-bottom: 0; }
.select-filter-trigger[aria-expanded="true"] { border-color: var(--accent); }
.select-filter-trigger:disabled { opacity: .65; cursor: default; }
.select-filter-value { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.select-filter-error { display: block; margin-top: .25rem; color: #8d2038; font-size: .83rem; }
.select-filter-error[hidden] { display: none; }
.select-filter-panel {
    position: fixed;
    inset: auto;
    z-index: 100;
    display: flex;
    flex-direction: column;
    gap: .4rem;
    margin: 0;
    padding: .45rem;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: #fff;
    box-shadow: 0 8px 26px rgb(27 28 47 / 18%);
    color: var(--text);
}
.select-filter-panel > input[type="search"] { flex: none; }
.select-filter-panel .dialog-header h2 { font-size: 1rem; }
.select-filter-panel .dialog-header .feature-icon { width: 1.8rem; height: 1.8rem; }
.select-filter-panel .dialog-actions { padding-top: .25rem; }
.select-filter-options { overflow: auto; min-height: 0; max-height: 16rem; margin: 0; padding: 0; list-style: none; overscroll-behavior: contain; }
.select-filter-option { padding: .43rem .6rem; border-radius: 5px; cursor: pointer; overflow-wrap: anywhere; }
.select-filter-option:is(:hover, .current) { background: var(--accent-light); color: var(--accent); }
.select-filter-option[aria-selected="true"] { font-weight: 680; }
.select-filter-option[aria-selected="true"]::after { content: "✓"; margin-inline-start: .5rem; color: var(--accent); }
.select-filter-empty { margin: 0; padding: .35rem .6rem; color: var(--muted); }
.check { display: flex; gap: .45rem; align-items: center; }
input[type="checkbox"] { accent-color: var(--accent); width: 1rem; height: 1rem; }
.field-help, .copy-message { color: var(--muted); font-size: .89rem; }
.copy-message:empty { display: none; }
.copy-message { margin-top: .55rem; }
.validation-summary-valid { display: none; }
.validation-summary-errors { border: 1px solid #e9c1c9; border-radius: 8px; padding: .55rem .72rem; background: #fff0f3; color: #8d2038; font-size: .9rem; }
.validation-summary-errors ul { padding-left: 1.12rem; margin: .1rem 0; }
.input-validation-error { border-color: #ca657b !important; }
.code-field { margin-top: .65rem; tab-size: 2; line-height: 1.58; color: #282449; background: #faf9ff; }
.form-account { margin-bottom: .75rem; color: var(--muted); overflow-wrap: anywhere; }
.account-profile { max-width: 56rem; overflow-wrap: anywhere; }
.flagged-value { display: inline-flex; align-items: center; gap: .45rem; min-width: 0; max-width: 100%; vertical-align: middle; }
.flag-list { display: flex; flex-wrap: wrap; gap: .35rem .8rem; }
.flag-icon { width: 26px; height: 18px; }
.flag-fallback { color: var(--muted); font-size: 1rem; line-height: 18px; text-align: center; }
.account-fields label.flagged-value { display: flex; }
.account-verification { margin-top: 1rem; }
.account-fields { min-width: 0; margin: 0 0 .75rem; padding: .75rem 1rem 1rem; border: 1px solid var(--line); border-radius: 8px; }
.account-fields legend { padding-inline: .35rem; font-weight: 700; }
.account-fields label { display: block; margin: 0 0 .25rem; }
.details-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.2rem; margin: 0; }
dt { color: var(--muted); font-size: .9rem; margin-bottom: .25rem; }
dd { margin: 0; }
.detail-panel > .button { margin-top: 1rem; }
.enterprise-detail { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(1rem, 2vw, 1.5rem); }
.enterprise-detail > :is(.detail-tiles, .notice) { margin-block: 0; }
.enterprise-detail > .detail-panel > h2 { margin-block-end: .75rem; }
.domain-enrollment { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .65rem; }
.domain-enrollment .button { margin-inline-start: auto; }
.linked-panel { margin-top: 1.05rem; }
.linked-item { display: block; border-top: 1px solid var(--line); padding: .56rem 0; }
.member-row { display: flex; justify-content: space-between; align-items: center; gap: .55rem; padding: .6rem 0; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.member-row small { display: block; color: var(--muted); font-size: .85rem; }

.public-shell { background: #f8f8fc; min-height: 100vh; display: flex; flex-direction: column; }
.public-top { border-bottom: 1px solid var(--line); background: var(--surface); }
.public-top-inner, .public-footer, .public-content { width: min(100%, 79rem); margin-inline: auto; padding-inline: clamp(1rem, 4.5vw, 3rem); }
.public-top-inner, .public-footer { display: flex; justify-content: space-between; align-items: center; gap: .65rem; min-height: 4.5rem; }
.public-top nav, .landing-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem; }
.public-content { flex: 1; padding-block: clamp(1.5rem, 4vw, 3rem) 3.5rem; }
.public-footer { border-top: 1px solid var(--line); justify-content: flex-start; gap: 1rem; font-size: .9rem; color: var(--muted); flex-wrap: wrap; }
.public-footer span { color: var(--text); font-weight: 700; margin-right: auto; }
.landing { display: grid; align-items: center; grid-template-columns: minmax(0, 1fr) minmax(0, 1.03fr); gap: clamp(1.2rem, 5.8vw, 5.4rem); padding-block: clamp(1rem, 3.4vw, 3.6rem); }
.landing-label { color: #5143a4; font-size: .91rem; font-weight: 700; margin-bottom: 1.08rem; }
.landing-label span, .console-indicator { display: inline-block; width: .45rem; height: .45rem; border-radius: 50%; background: #7563ec; margin-right: .32rem; vertical-align: .1rem; }
.landing h1 { font-size: clamp(2.6rem, 6.3vw, 5.8rem); line-height: 1; letter-spacing: -.065em; }
.landing h1 em { color: var(--accent); font-style: normal; }
.landing h1 + p { color: var(--muted); max-width: 35ch; margin-top: 1.2rem; font-size: 1.03rem; }
.landing-actions { margin-top: 1.3rem; gap: .65rem; }
.landing-console { background: #19182e; color: #e6e2ff; min-width: 0; border: 1px solid #35315a; border-radius: 15px; box-shadow: 0 18px 38px rgb(40 35 98 / 15%); }
.console-top, .console-request, .console-footer { display: flex; justify-content: space-between; gap: .55rem; align-items: center; padding: .82rem 1.14rem; font-size: .87rem; }
.console-top { border-bottom: 1px solid #393650; font-weight: 700; }
.console-dots { color: #aaa1e2; font-size: .65rem; }
.console-request { justify-content: flex-start; align-items: start; color: #f0ebff; }
.console-request strong { padding: .1rem .35rem; border-radius: 4px; background: #3b326f; color: #e0d6ff; line-height: 1.2; }
.landing-console pre { padding: .52rem 1.14rem 1rem; color: #d6d1ef; font-size: .98rem; }
.console-footer { justify-content: flex-start; border-top: 1px solid #393650; color: #cbc5e5; }
.console-indicator { background: #73d6b1; margin-right: 0; }
.landing-features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .95rem; margin-top: 1.5rem; }
.landing-features article { padding: 1.12rem; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.landing-features h2 { margin-top: .6rem; }
.landing-features p { margin-top: .36rem; color: var(--muted); font-size: .93rem; }
.auth-card { max-width: 31rem; margin: clamp(.35rem, 3vw, 2.4rem) auto 0; padding: clamp(1.25rem, 4vw, 2rem); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); background: #fff; }
.auth-card h1 { margin-top: .7rem; }
.auth-card h1 + p { margin: .55rem 0 1.03rem; color: var(--muted); }
.auth-card .field-form > button:not(.icon-button) { justify-self: stretch; }
.form-footer { margin-top: 1.05rem; font-size: .9rem; color: var(--muted); }

.doc-frame { display: grid; grid-template-columns: minmax(0, 12rem) minmax(0, 1fr); gap: 1.05rem; align-items: start; }
.doc-side { display: grid; gap: .34rem; padding: .72rem 0; }
.doc-side strong { padding: .3rem .6rem; }
.doc-side a { color: var(--muted); text-decoration: none; padding: .44rem .6rem; border-radius: 8px; }
.doc-side a:hover, .doc-side a.selected { background: var(--accent-light); color: var(--accent); }
.doc { padding: clamp(1.1rem, 4vw, 2rem); min-width: 0; }
.doc-controls { display: flex; justify-content: flex-end; margin-bottom: .65rem; }
.doc h2, .doc h3 { margin-top: 1.3rem; }
.doc p, .doc ul, .doc ol, .doc table { margin: .65rem 0; }
.doc li + li { margin-top: .28rem; }
.doc pre { padding: .85rem; border: 1px solid var(--line); border-radius: 8px; background: #f7f6fb; }
.doc p code, .doc li code, .doc td code { color: #413384; background: #f1effa; padding: .08rem .2rem; border-radius: 3px; }
.help-content table { display: block; overflow-x: auto; }
.help-content th, .help-content td { vertical-align: top; }
.help-content { overflow-wrap: anywhere; }
.help-content h1 { margin: 0 0 1rem; }
.help-content h2[id], .help-content h3[id] { scroll-margin-top: 5rem; }
.help-content :is(h2, h3):target { color: var(--accent); }
.help-content blockquote { margin: 1rem 0; padding: .3rem 1rem; border-inline-start: 3px solid var(--accent); border-radius: 6px; background: var(--accent-light); }
.help-content pre { overflow-x: auto; }
.help-sidebar { display: grid; gap: .65rem; min-width: 0; }
.help-menu summary { padding: .75rem .85rem; font-weight: 680; cursor: pointer; }
.help-menu .doc-side { display: grid; padding: 0 .32rem .4rem; }

.setup-card { max-width: 37rem; }
.setup-card .brand { margin-bottom: 1.1rem; }
.setup-steps { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; padding: 0; margin: 1rem 0; list-style: none; }
.setup-steps li { border-bottom: 2px solid var(--line); padding: .42rem 0; color: var(--muted); font-size: .9rem; }
.setup-steps [aria-current] { border-color: var(--accent); color: var(--accent); font-weight: 720; }
.setup-copy { margin-bottom: .8rem; }
.setup-server { display: grid; grid-template-columns: minmax(0, 1fr) 6rem; gap: .6rem; }
.setup-server label { display: block; margin-bottom: .2rem; }
.setup-fields { display: grid; gap: .42rem; margin: .62rem 0 .2rem; padding: .75rem .9rem; border: 1px solid var(--line); border-radius: 8px; min-width: 0; }
.setup-fields legend { padding-inline: .35rem; font-weight: 700; }
.setup-fields .field-help { margin-bottom: .12rem; }
.setup-fields label { margin-top: .18rem !important; }
.token-providers { margin-bottom: 1.13rem; }
.detail-actions { margin-top: 1rem; }
.audio-player { display: block; margin-top: 1rem; width: min(100%, 30rem); }
.communication-media { display: block; width: min(100%, 54rem); max-height: 65vh; margin-top: 1rem; background: #141925; }
.communication-note { display: block; white-space: pre-wrap; overflow-wrap: anywhere; }
.section-actions { display: flex; justify-content: flex-end; flex-wrap: wrap; align-items: center; gap: .55rem; margin-bottom: .9rem; }
.form-panel.key-form-panel { max-width: 68rem; }
.key-form-panel .field-form > .form-actions { justify-content: space-between; margin-top: .75rem; }
.key-name-field { display: grid; gap: .4rem; max-width: 27rem; }
.key-permissions { min-width: 0; border: 0; margin: 1.1rem 0 .35rem; padding: 0; }
.key-permission-toolbar { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .8rem 1rem; margin-bottom: .85rem; }
.key-permission-title { display: flex; align-items: center; gap: .5rem; }
.key-permission-toolbar h2 { margin: 0; font-size: 1.13rem; }
.key-permission-toolbar p { margin: .17rem 0 0; }
.key-permission-toolbar .section-actions { margin: 0; }
.key-permissions [hidden] { display: none; }
.key-permission-table { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.key-permission-columns, .key-permission-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.45fr) 4.75rem; align-items: center; gap: 1rem; padding: .55rem .95rem; }
.key-permission-columns { background: var(--canvas); color: var(--muted); font-size: .83rem; font-weight: 650; }
.key-permission-columns :last-child { text-align: right; }
.key-permission-group-title { background: var(--accent-light); border-top: 1px solid var(--line); color: var(--accent); }
.key-permission-group-title h3 { grid-column: 1 / -2; margin: 0; font-size: .95rem; }
.field-form .key-permission-group-title label { display: inline; margin: 0; cursor: pointer; }
.field-form label.key-permission-child { min-height: 3.4rem; margin: 0; border-top: 1px solid var(--line); cursor: pointer; }
.key-permission-child > span:first-child { padding-inline-start: 1rem; border-inline-start: 2px solid var(--line); }
.key-permission-child:hover, .key-permission-child:has(input:checked) { background: #f3f8ff; }
.key-permission-description { color: var(--muted); font-weight: 400; }
.key-permission-rules { padding-inline-start: 1.3rem; }
.key-permission-rules li + li { margin-top: .65rem; }

.permission-summary-table { margin-block-start: .9rem; border: 1px solid var(--line); border-radius: 10px; }
.permission-summary-table:not(:has(tbody:not([data-list-row-hidden]))) { display: none; }
.permission-summary-table table { table-layout: fixed; }
.permission-summary-action-column { width: 37%; }
.permission-summary-table th:last-child, .permission-summary-table td:last-child { text-align: start; }
.permission-summary-table tbody :is(th, td) { overflow-wrap: anywhere; }
.permission-summary-table tbody + tbody { border-block-start: 1px solid var(--line); }
.permission-summary-group th { padding-block: 0; background: var(--accent-light); color: var(--accent); }
.permission-summary-toggle { display: inline-flex; align-items: center; gap: .65rem; min-height: 2.75rem; padding: .3rem 0; border: 0;
    background: transparent; color: inherit; font-weight: 700; text-align: start; cursor: pointer; }
.permission-summary-toggle::before { content: ""; width: .45rem; height: .45rem; border: solid currentColor; border-width: 0 2px 2px 0;
    transform: rotate(-45deg); margin-inline: .1rem; flex: none; }
.permission-summary-toggle[aria-expanded="true"]::before { transform: rotate(45deg); }
.permission-summary-toggle:disabled { cursor: default; }
.permission-summary-toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.permission-summary-table th.permission-summary-action { position: relative; padding-inline-start: 2.75rem; font-weight: 650; }
.permission-summary-action::before, .permission-summary-action::after { content: ""; position: absolute; inset-inline-start: 1.45rem; }
.permission-summary-action::before { inset-block: 0; border-inline-start: 1px solid var(--line); }
.permission-summary-action::after { inset-block-start: 50%; width: .75rem; border-block-start: 1px solid var(--line); }
.permission-summary-table tr:not(:has(~ tr:not([data-list-row-hidden]))) .permission-summary-action::before { inset-block-end: 50%; }
.permission-summary-table tbody td { color: var(--muted); }
.permission-summary-table tbody tr:last-child th { border-block-end: 0; }
.key-list-name { display: grid; grid-template-columns: 2.23rem minmax(0, 1fr); align-items: center; gap: .65rem; }
.key-list-name strong { grid-column: 2; }
.switch-row { display: flex; align-items: center; justify-content: space-between; gap: .85rem; cursor: pointer; }
.switch-control { position: relative; display: grid; align-items: center; justify-self: end; flex: none; width: 3.75rem; min-height: 2.75rem; }
.switch-control input[type="checkbox"] { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.switch-track { pointer-events: none; width: 3.75rem; height: 2rem; border-radius: 99px; background: #cbd4e1; transition: background-color 140ms ease; }
.switch-track::after { content: ""; display: block; width: 1.5rem; height: 1.5rem; margin: .25rem; border-radius: 50%; background: #fff; transition: transform 140ms ease; }
.switch-control input:checked ~ .switch-track { background: var(--accent); }
.switch-control input:checked ~ .switch-track::after { transform: translateX(1.75rem); }
.key-permission-group-title input:indeterminate ~ .switch-track { background: var(--accent); }
.key-permission-group-title input:indeterminate ~ .switch-track::after { transform: translateX(.88rem) scaleY(.25); }
.switch-control input:focus-visible ~ .switch-track { outline: 3px solid var(--accent); outline-offset: 3px; }
.switch-control input:disabled ~ .switch-track { opacity: .5; }
.switch-row small { display: block; color: var(--muted); font-weight: 400; margin-top: .2rem; }
.flag-icon, .enterprise-icon { display: block; flex: none; object-fit: contain; }
.enterprise-icon { border-radius: .2rem; }
.enterprise-icon-preview .enterprise-icon { width: 3rem; height: 3rem; }
.app-dialog { width: min(31rem, calc(100% - 1.5rem)); max-height: 85dvh; overflow: auto; padding: 1.15rem; color: var(--text); }
.app-dialog::backdrop { background: rgb(26 31 51 / 46%); }
.dialog-header { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: .5rem .65rem; flex: none; text-align: start; }
.dialog-header h2 { margin: 0; font-size: 1.22rem; overflow-wrap: anywhere; }
.dialog-header p { grid-column: 1 / -1; margin: 0; color: var(--muted); font-size: .92rem; white-space: normal; }
.app-dialog > .dialog-header { margin-bottom: .75rem; }
.dialog-actions { display: flex; justify-content: flex-end; flex-wrap: wrap; align-items: center; gap: .55rem; flex: none; padding-top: .8rem; }
.choice-dialog[open] { display: flex; flex-direction: column; }
.choice-dialog .filter-bar { flex: none; grid-template-columns: minmax(0, 1fr) auto; gap: .5rem; padding-inline: 0; }
.dialog-options { min-height: 0; overflow-y: auto; padding: .1rem 2px; }
.workspace-option { display: flex; align-items: center; justify-content: space-between; gap: .75rem; }
.workspace-option { width: 100%; padding: .75rem .85rem; margin: .35rem 0; text-align: left; background: var(--surface, #fff); border: 1px solid var(--line, #d9dfee); border-radius: .65rem; color: var(--text); cursor: pointer; }
.workspace-option:is(:hover, .selected) { border-color: var(--accent); }
.workspace-option strong, .workspace-option small { display: block; overflow-wrap: anywhere; }
.workspace-option small { color: var(--muted); }
.workspace-choice-label { flex: 1; min-width: 0; }
.parameter-sections { display: grid; gap: 1rem; max-width: 40rem; }
.parameter-filter .filter-bar { border-bottom: 0; }
.parameter-filter .filter-fields { flex-wrap: nowrap; }
.parameter-filter .filter-fields > label { flex: 1; min-width: 0; max-width: none; }
.parameter-section > h2 {
    display: flex;
    align-items: center;
    gap: .6rem;
    margin: 0;
    padding: .85rem 1rem;
    border-bottom: 1px solid var(--line);
    font-size: .96rem;
}
.parameter-section > h2 .icon { color: var(--accent); }
.parameter-row { display: grid; gap: .55rem .85rem; padding: .95rem 1rem; overflow-wrap: anywhere; }
.parameter-row + .parameter-row { border-top: 1px solid var(--line); }
.parameter-row-inline { grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
.parameter-row > [role="alert"] { grid-column: 1 / -1; }
.parameter-row label, .parameter-name { font-size: .9rem; font-weight: 690; }
.parameter-row label[for] { cursor: pointer; }
.parameter-description { margin: .2rem 0 0; color: var(--muted); font-size: .83rem; }
.parameter-controls { display: flex; align-items: center; gap: .55rem; min-width: 0; }
.parameter-controls > input { min-width: 0; }
.parameter-status { margin-top: .3rem; color: var(--muted); font-size: .78rem; font-weight: 650; }
.parameter-enabled, .parameter-row:has(input:checked) .parameter-disabled { display: none; }
.parameter-row:has(input:checked) .parameter-enabled { display: inline; color: var(--accent); }
.parameter-status span::before { content: ""; display: inline-block; width: .42rem; height: .42rem; margin-inline-end: .35rem; border-radius: 50%; background: currentColor; vertical-align: .08em; }
.parameter-value { display: inline-block; margin-top: .35rem; }
.key-prefix { display: flex; align-items: center; gap: .5rem; }
.key-prefix .icon-button { width: 2.15rem; min-width: 2.15rem; min-height: 2.15rem; }
.icon-copy { position: relative; height: 1rem; }
.icon-copy::before, .icon-copy::after { content: ""; position: absolute; width: .61rem; height: .7rem; border: 1.5px solid currentColor; border-radius: 2px; }
.icon-copy::before { top: .04rem; left: .06rem; border-right-color: transparent; border-bottom-color: transparent; }
.icon-copy::after { top: .26rem; left: .3rem; }
.api-connection-choice { margin-block: .85rem; }
.api-connection-command { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: .5rem; margin-top: .65rem; }
.detail-panel + .api-connection-step { margin-block-start: 1rem; }
.api-connection-step > header { display: flex; align-items: center; justify-content: space-between; gap: .6rem; margin-bottom: .45rem; }
.api-connection-step > header h2 { margin: 0; }
.api-connection-step .form-actions { flex-wrap: wrap; }
.api-connection-step textarea { display: block; margin-top: .45rem; }
.powershell-source { margin: 0; padding: .8rem .9rem; border: 1px solid var(--line); border-radius: 8px; font-size: .87rem; white-space: pre; overflow-x: auto; }
.powershell-keyword { color: #813669; font-weight: 700; }
.powershell-command { color: #5126a0; }
.powershell-variable { color: #0c5390; }
.powershell-string { color: #176044; }
.powershell-parameter, .powershell-type { color: #865024; }
.powershell-comment { color: #58586e; }
.api-markdown-actions { margin: .75rem 0 0; flex-wrap: wrap; }
.api-markdown-dialog { width: min(56rem, calc(100% - 1.5rem)); }
.api-markdown-dialog .code-field { display: block; width: 100%; height: min(53dvh, 30rem); min-height: 8rem; resize: vertical; }
@media (max-width: 650px) {
    .key-permission-columns { display: none; }
    .key-permission-row { grid-template-columns: minmax(0, 1fr) 3.75rem; gap: .15rem .6rem; padding: .6rem .7rem; }
    .key-permission-description { grid-column: 1; grid-row: 2; font-size: .84rem; }
    .key-permission-row .switch-control { grid-column: 2; grid-row: 1 / span 2; }
    .key-permission-group-title .switch-control { grid-row: 1; }
    .key-permission-child .key-permission-description { padding-inline-start: calc(1rem + 2px); }
    .permission-summary-action-column { width: 45%; }
    .permission-summary-table :is(th, td):is(:first-child, :last-child) { padding-inline: .65rem; }
    .permission-summary-table th.permission-summary-action { padding-inline-start: 1.8rem; }
    .permission-summary-action::before, .permission-summary-action::after { inset-inline-start: .8rem; }
    .permission-summary-action::after { width: .6rem; }
}
@media (prefers-reduced-motion: reduce) {
    .switch-track, .switch-track::after { transition: none; }
}

@media (max-width: 1080px) {
    .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 800px) {
    .filter-bar { grid-template-columns: minmax(0, 1fr); }
    .filter-bar .filter-fields { display: grid; grid-template-columns: minmax(0, 1fr); }
    .filter-bar .filter-fields > .icon { display: none; }
    .filter-fields > label, .filter-fields > label:has(input[type="search"]) { width: 100%; max-width: none; }
    .filter-bar .filter-fields > .button { justify-self: end; }
    .parameter-filter .filter-bar .filter-fields { grid-template-columns: minmax(0, 1fr) auto; }
    .app-shell { display: block; }
    .sidebar { display: none; position: fixed; inset: 0 auto 0 0; z-index: 10; width: min(82vw, 17.5rem); box-shadow: 20px 0 70px rgb(16 12 35 / 28%); }
    .sidebar.open { display: flex; }
    .mobile-menu { display: inline-flex; }
    .topbar-section, .breadcrumb-separator { display: none; }
    .landing { grid-template-columns: 1fr; }
    .doc-frame { grid-template-columns: minmax(0, 1fr); gap: .55rem; }
    .help-navigation { max-height: 13rem; overflow-y: auto; }
    .doc-side { display: flex; flex-wrap: wrap; align-items: center; padding: 0; }
}
@media (max-width: 530px) {
    .heading-row { flex-wrap: wrap; }
    .heading-actions { width: 100%; }
    .heading-actions .button:not(.icon-button) { flex: 1; }
    .metrics, .landing-features, .details-grid { grid-template-columns: 1fr; }
    .public-top-inner { flex-wrap: wrap; padding-block: .62rem; }
    .public-top nav { flex: 1; justify-content: flex-end; }
    .summary-card { width: 100%; }
    .panel-head { flex-wrap: wrap; }
}
.navigation-tiles, .detail-tiles {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 215px), 1fr));
    gap: 12px;
    margin: 0 0 16px;
}
.navigation-tile {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: start;
    gap: 12px;
    padding: 16px;
    color: inherit;
    text-decoration: none;
}
.navigation-tile:hover, .navigation-tile:focus-visible { border-color: #7568dc; }
.navigation-tile strong, .navigation-tile small { display: block; }
.navigation-tile small, .detail-tile dt, .detail-tile small { color: #5d6276; }
.navigation-tile small { margin-top: 4px; }
.navigation-arrow { color: #5546c4; }
.provider-choice { display: grid; gap: .8rem; grid-template-rows: auto 1fr auto; }
.provider-choice header { display: flex; align-items: center; gap: .65rem; }
.provider-choice header h2, .provider-choice p { margin: 0; }
.provider-choice p { color: var(--muted); }
.provider-choice .section-actions { margin: 0; flex-wrap: wrap; }
.detail-tile { min-width: 0; padding: 14px 16px; }
.detail-tile dd { margin: 4px 0 0; font-size: 1.13rem; font-weight: 650; overflow-wrap: anywhere; }
.detail-tile small { display: block; margin-top: 5px; }
.database-code { max-width: 100%; overflow: auto; white-space: pre-wrap; overflow-wrap: anywhere; }
.database-line { display: block; min-width: 12rem; max-width: 35rem; white-space: pre-wrap; overflow-wrap: anywhere; }
.sql-editor { min-height: 10rem; font-family: ui-monospace, monospace; }
.sql-results { max-height: 34rem; }
.sql-results td { max-width: 32rem; white-space: pre-wrap; overflow-wrap: anywhere; }
.maintenance-tiles article { margin: 0; }

.project-explorer { margin-bottom: 1.2rem; }
.explorer-header { padding: 1.15rem 1.2rem; margin: 0; flex-wrap: wrap; }
.explorer-commands { margin: 0; }
.explorer-workspace { display: grid; grid-template-columns: minmax(11rem, 15rem) minmax(0, 1fr); border-top: 1px solid var(--line); }
.explorer-sidebar { min-width: 0; padding: .9rem .65rem .9rem .85rem; background: var(--canvas); border-right: 1px solid var(--line); }
.explorer-sidebar h3 { color: var(--muted); font-size: .87rem; margin: 0 0 .6rem .2rem; }
.explorer-sidebar ul { margin: 0; padding-left: .7rem; list-style: none; }
.explorer-sidebar [data-explorer-tree] > ul { padding-left: 0; }
.explorer-tree-item { display: flex; align-items: stretch; gap: .15rem; min-width: 0; border-radius: 7px; }
.explorer-tree-item .explorer-icon-button, .explorer-tree-spacer { width: 1.4rem; min-width: 1.4rem; min-height: 2.15rem; }
.explorer-tree-item .explorer-icon-button { padding-block: 0; background: transparent; border-color: transparent; }
.explorer-tree-name, .explorer-entry-name { font: inherit; min-width: 0; display: flex; align-items: center; gap: .48rem; border: 0; background: transparent; text-align: left; color: var(--text); text-decoration: none; padding: .35rem .45rem; border-radius: 7px; overflow-wrap: anywhere; }
.explorer-tree-name { flex: 1; min-height: 2.16rem; }
.explorer-tree-name:hover, .explorer-entry-name:hover, .explorer-crumb:hover { color: var(--accent); background: var(--accent-light); }
.explorer-tree-name[aria-current="location"], .explorer-crumb[aria-current="location"] { background: var(--accent-light); color: var(--accent); font-weight: 650; }
.explorer-glyph { position: relative; display: inline-block; width: 1rem; height: .92rem; flex: 0 0 1rem; }
.explorer-glyph.folder { height: .72rem; border-radius: 2px; margin-top: .14rem; background: #e6a83e; }
.explorer-glyph.folder::before { content: ""; position: absolute; left: 0; top: -.17rem; width: .52rem; height: .25rem; border-radius: 2px 2px 0 0; background: #e6a83e; }
.explorer-glyph.file { width: .76rem; flex-basis: .76rem; border: 1.5px solid #6b7d9d; border-radius: 2px; }
.explorer-glyph.file::after { content: ""; position: absolute; top: .21rem; left: .15rem; right: .15rem; height: 1px; background: currentColor; box-shadow: 0 3px currentColor; opacity: .4; }
.explorer-glyph.file[data-media="image"] { color: #17735c; border-color: #17735c; }
.explorer-glyph.file[data-media="video"], .explorer-glyph.file[data-media="audio"] { color: var(--accent); border-color: var(--accent); }
.explorer-content { min-width: 0; }
.explorer-path { display: flex; align-items: center; flex-wrap: wrap; gap: .25rem; min-width: 0; padding: .65rem 1rem 0; }
.explorer-crumb { background: transparent; color: var(--text); font: inherit; border: 0; border-radius: 6px; padding: .28rem .38rem; overflow-wrap: anywhere; }
.explorer-path-divider { color: var(--muted); }
.explorer-status, .explorer-move-bar { display: flex; flex-wrap: wrap; align-items: center; gap: .55rem 1rem; padding: .5rem 1rem; font-size: .87rem; color: var(--muted); }
.explorer-status:empty { padding: 0; }
.explorer-move-bar { justify-content: flex-end; background: var(--accent-light); color: var(--text); padding-block: .7rem; }
.explorer-move-bar > span { margin-inline-end: auto; }
.project-explorer [hidden] { display: none; }
.explorer-table { min-width: 35rem; }
.explorer-table th, .explorer-table td { padding: .43rem .7rem; }
.explorer-table .explorer-icon-button { width: 1.85rem; min-width: 1.85rem; min-height: 1.85rem; }
.explorer-table .explorer-row-actions { gap: .28rem; }
.explorer-result-path { display: block; margin: .1rem 0 .12rem 1.65rem; color: var(--muted); overflow-wrap: anywhere; }
.explorer-drop-target { outline: 2px dashed var(--accent); outline-offset: -2px; background: var(--accent-light); }
.explorer-dialog { width: min(33rem, calc(100% - 1.5rem)); }
.explorer-dialog [role="alert"]:empty { display: none; }
.explorer-preview { width: min(69rem, calc(100% - 1.5rem)); max-height: 92dvh; }
.explorer-preview-body { min-height: 6rem; margin-top: .7rem; background: var(--canvas); padding: .65rem; border-radius: 7px; }
.explorer-preview-body :is(img, video) { display: block; max-width: 100%; max-height: 58dvh; margin: auto; object-fit: contain; }
.explorer-preview-body audio { width: 100%; }
.explorer-preview-body pre { max-height: 54dvh; overflow: auto; }
.explorer-pdf { display: block; width: 100%; height: min(60dvh, 45rem); border: 0; }
@media (max-width: 760px) {
    .explorer-workspace { grid-template-columns: minmax(0, 1fr); }
    .explorer-sidebar { border-right: 0; border-bottom: 1px solid var(--line); max-height: 14rem; overflow: auto; }
    .explorer-commands { width: 100%; }
    .explorer-header { padding: .8rem; }
}
