:root {
    --ink: #142039;
    --muted: #71809a;
    --line: #dce4f0;
    --line-soft: #eaf0f7;
    --canvas: #f6f9fd;
    --blue: #1769ff;
    --blue-strong: #0e5bea;
    --blue-soft: #edf4ff;
    --navy: #0d1b32;
    --green: #12a87a;
    --shadow: 0 18px 48px rgba(20, 48, 91, .09);
    --radius: 18px;
    font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
    color: var(--ink);
}

* { box-sizing: border-box; }
html, body { min-width: 0; min-height: 100%; margin: 0; background: var(--canvas); }
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
button:focus-visible, input:focus-visible, select:focus-visible, [role="button"]:focus-visible {
    outline: 3px solid rgba(23, 105, 255, .18);
    outline-offset: 2px;
}
[hidden] { display: none !important; }

.minutes-space-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 72px 272px minmax(0, 1fr);
}

.product-rail {
    position: sticky;
    top: 0;
    z-index: 20;
    height: 100vh;
    padding: 18px 12px;
    color: #738197;
    background: #fff;
    border-right: 1px solid var(--line);
    box-shadow: 8px 0 24px rgba(31,45,72,.035);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}
.brand-mark {
    width: 42px;
    height: 42px;
    margin-bottom: 14px;
    overflow: hidden;
    border-radius: 13px;
    background: transparent;
    box-shadow: none;
    display: grid;
    place-items: center;
}
.brand-mark img { width: 100%; height: 100%; object-fit: contain; }
.rail-link {
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 13px;
    color: inherit;
    background: transparent;
    display: grid;
    place-items: center;
    text-decoration: none;
    cursor: pointer;
    position: relative;
}
.rail-link svg { width: 20px; height: 20px; stroke-width: 1.8; }
.rail-link span {
    position: absolute;
    left: 55px;
    z-index: 50;
    width: max-content;
    padding: 7px 10px;
    border: 1px solid var(--line);
    border-radius: 9px;
    color: #fff;
    border-color: #273449;
    background: #1b2638;
    box-shadow: 0 8px 22px rgba(0,0,0,.18);
    font-size: 10px;
    font-weight: 650;
    opacity: 0;
    pointer-events: none;
    transform: translateX(-5px);
    transition: opacity .16s ease, transform .16s ease;
}
.rail-link:hover, .rail-link:focus-visible { color: var(--blue); background: var(--blue-soft); }
.rail-link:hover span, .rail-link:focus-visible span { opacity: 1; transform: translateX(0); }
.rail-link.active { color: var(--blue); background: var(--blue-soft); }
.rail-link.active::before {
    content: "";
    position: absolute;
    left: -12px;
    width: 3px;
    height: 22px;
    border-radius: 0 3px 3px 0;
    background: var(--blue);
}
.account-anchor { position: relative; margin-top: auto; }
.account-button {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    padding: 0;
    appearance: none;
    border-radius: 50%;
    border: 2px solid #dce5f4;
    color: #fff;
    background: linear-gradient(145deg, #2d70ff, #554fe8);
    font-weight: 800;
    cursor: pointer;
    overflow: hidden;
    background-size: cover;
    background-position: center;
}
.account-button.has-avatar {
    color: var(--ink);
    background: #fff;
    box-shadow: none;
}
.account-button > #accountAvatar {
    display: grid;
    width: 100%;
    height: 100%;
    border-radius: inherit;
    place-items: center;
    line-height: 1;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}
.account-button.has-avatar > #accountAvatar { background-color: #fff; }
.account-popover {
    position: absolute;
    left: 58px;
    bottom: 0;
    z-index: 100;
    width: 286px;
    padding: 10px;
    color: var(--ink);
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #fff;
    box-shadow: var(--shadow);
}
.account-popover::before {
    content: "";
    position: absolute;
    left: -8px;
    bottom: 22px;
    width: 14px;
    height: 14px;
    transform: rotate(45deg);
    border-left: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    background: #fff;
}
.account-summary { display: flex; align-items: center; gap: 12px; padding: 8px 8px 12px; }
.account-summary > div:last-child { min-width: 0; display: grid; gap: 3px; }
.account-summary strong, .account-summary span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-summary span { color: var(--muted); font-size: 12px; }
.account-avatar-large {
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    overflow: hidden;
    color: #fff;
    border-radius: 50%;
    background: linear-gradient(135deg, #347dff, #6942d9);
    background-size: cover;
    background-position: center;
    font-weight: 800;
}
.account-credit-card {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    margin: 0 4px 8px;
    padding: 10px;
    border: 1px solid #e7edf7;
    border-radius: 12px;
    background: #f8fbff;
}
.account-credit-card .credit-symbol {
    width: 34px;
    height: 34px;
    object-fit: contain;
    border-radius: 10px;
    background: #eaf1ff;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.7);
}
.account-credit-card span { display: grid; gap: 2px; min-width: 0; }
.account-credit-card small, .account-credit-card b { color: var(--muted); font-size: 10px; }
.account-credit-card strong { font-size: 18px; }
.account-ledger {
    display: grid;
    gap: 7px;
    margin: 0 4px 8px;
    padding: 8px 10px;
    border-top: 1px solid #edf2f8;
    border-bottom: 1px solid #edf2f8;
}
.account-ledger-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; font-size: 11px; }
.account-ledger-row span { overflow: hidden; color: var(--muted); text-overflow: ellipsis; white-space: nowrap; }
.account-ledger-row b { color: var(--ink); }
.popover-action {
    width: 100%;
    min-height: 40px;
    padding: 0 10px;
    border: 0;
    border-radius: 10px;
    color: var(--ink);
    background: transparent;
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    cursor: pointer;
}
.popover-action:hover { background: var(--blue-soft); }
.popover-action-icon {
    width: 18px;
    height: 18px;
    object-fit: contain;
}
.popover-action.danger { color: #d83a4a; }
.popover-action svg { width: 17px; height: 17px; }

.minutes-sidebar {
    position: sticky;
    top: 0;
    z-index: 12;
    height: 100vh;
    padding: 30px 24px 22px;
    background: #fff;
    border-right: 1px solid var(--line);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.sidebar-brand { padding: 0 0 20px; }
.sidebar-brand h1 { margin: 0; font-size: 22px; letter-spacing: -.03em; }
.primary-action {
    width: 100%;
    height: 50px;
    border: 0;
    border-radius: 13px;
    color: #fff;
    background: linear-gradient(135deg, var(--blue), #286ef0);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-weight: 750;
    cursor: pointer;
    box-shadow: 0 12px 28px rgba(23,105,255,.22);
}
.primary-action:hover { background: var(--blue-strong); transform: translateY(-1px); }
.primary-action svg { width: 18px; }
.source-navigation {
    margin-top: 24px;
    min-height: 0;
    overflow-y: auto;
    padding-right: 4px;
}
.source-group + .source-group { margin-top: 12px; }
.source-heading { display: grid; grid-template-columns: minmax(0,1fr) 32px; gap: 5px; align-items: center; }
.source-filter, .folder-row {
    border: 0;
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    color: #56657c;
}
.source-filter {
    min-width: 0;
    height: 44px;
    border-radius: 11px;
    gap: 10px;
    padding: 0 12px;
    font-size: 15px;
}
.source-filter svg { width: 18px; height: 18px; }
.source-filter span { flex: 1; text-align: left; }
.source-filter b { font-size: 12px; font-weight: 650; color: #9aa7ba; }
.source-filter:hover, .source-filter.active { color: var(--blue); background: var(--blue-soft); }
.source-filter.active { box-shadow: inset 3px 0 var(--blue); }
.folder-add {
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 9px;
    color: #8795aa;
    background: transparent;
    cursor: pointer;
}
.folder-add:hover { background: #f0f4f9; color: var(--blue); }
.folder-add svg { width: 16px; height: 16px; }
.folder-tree { margin: 4px 0 0 22px; border-left: 1px solid #e8edf5; }
.folder-item { position: relative; }
.folder-row-wrap {
    display: flex;
    align-items: center;
    border-radius: 8px;
}
.folder-row-wrap.active { background: transparent; }
.folder-row-wrap > .folder-row { min-width: 0; flex: 1; }
.folder-row {
    width: 100%;
    min-height: 36px;
    padding: 6px 6px 6px calc(10px + var(--depth, 0) * 12px);
    gap: 8px;
    border-radius: 8px;
    font-size: 13px;
}
.folder-row:hover { background: var(--surface-soft); }
.folder-row-wrap.active > .folder-row {
    color: var(--blue);
    background: transparent;
    box-shadow: none;
    font-weight: 650;
}
.folder-row-wrap.active > .folder-row:hover { background: transparent; }
.folder-row img { width: 20px; height: 20px; object-fit: contain; }
.folder-row span { min-width: 0; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: left; }
.folder-row b { font-size: 11px; color: #98a5b8; }
.folder-row .folder-more { display: none; width: 22px; height: 22px; border: 0; border-radius: 6px; background: transparent; padding: 3px; cursor: pointer; }
.folder-row:hover .folder-more { display: grid; place-items: center; }
.folder-empty { padding: 8px 12px; color: #a0adbf; font-size: 12px; }
.minutes-content { min-width: 0; padding: 32px 50px 60px; }
.library-toolbar, .library-controls, .panel-label, .upload-file-copy {
    display: flex;
    align-items: center;
}
.eyebrow { color: #8da0bd; font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.library-search {
    height: 48px;
    border: 1px solid var(--line);
    border-radius: 13px;
    background: #fff;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 14px;
    color: #8a99ae;
}
.library-search svg { width: 18px; }
.library-search input { min-width: 0; flex: 1; border: 0; outline: 0; background: transparent; color: var(--ink); }
kbd { border: 1px solid #e4eaf2; border-radius: 7px; padding: 3px 7px; background: #f7f9fc; color: #8996a9; font-size: 11px; }

.action-studio { display: grid; grid-template-columns: 1.08fr .92fr; gap: 16px; }
.studio-panel {
    min-height: 284px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    box-shadow: 0 16px 40px rgba(25,55,96,.06);
    transition: border-color .2s, box-shadow .2s;
}
.studio-panel.is-focused { border-color: #7fa9ff; box-shadow: 0 0 0 4px rgba(23,105,255,.1), var(--shadow); }
.panel-label { height: 56px; padding: 0 20px; gap: 10px; border-bottom: 1px solid var(--line-soft); }
.label-icon {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    color: var(--blue);
    background: var(--blue-soft);
}
.label-icon.neutral { color: #66758a; background: #f1f4f8; }
.label-icon svg { width: 17px; }
.record-stage { padding: 20px 30px 26px; text-align: center; }
.record-stage time { display: block; font-size: 42px; font-weight: 800; letter-spacing: .03em; }
.record-stage p { margin: 6px 0 12px; color: var(--muted); font-size: 13px; }
#recordWaveformCanvas { width: 100%; height: 58px; display: block; margin: 0 auto 16px; }
.record-button, .choose-file-button {
    border: 0;
    border-radius: 12px;
    color: #fff;
    background: var(--blue);
    font-weight: 750;
    cursor: pointer;
}
.record-button { min-width: 144px; height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; }
.record-button:hover, .choose-file-button:hover { background: var(--blue-strong); }
.record-button svg { width: 18px; }
.upload-dropzone {
    min-height: 202px;
    margin: 16px;
    padding: 20px;
    border: 1.5px dashed #aebbd0;
    border-radius: 15px;
    background: #fbfdff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    cursor: pointer;
}
.upload-dropzone:hover, .upload-dropzone.dragging { border-color: var(--blue); background: #f6f9ff; }
.dropzone-icon {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: var(--blue);
    background: var(--blue-soft);
}
.dropzone-icon svg { width: 27px; height: 27px; }
.upload-dropzone strong { margin-top: 14px; font-size: 18px; }
.upload-dropzone p { margin: 8px 0 4px; color: var(--muted); font-size: 13px; }
.upload-dropzone small { color: #92a0b4; }
.choose-file-button { margin-top: 16px; padding: 10px 22px; color: var(--blue); border: 1px solid #cfe0ff; background: #fff; }
.upload-progress { margin: 16px; padding: 20px; border: 1px solid var(--line); border-radius: 15px; }
.upload-file-copy { gap: 12px; }
.upload-file-icon { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: var(--blue-soft); color: var(--blue); }
.upload-file-copy > div { min-width: 0; flex: 1; }
.upload-file-copy strong, .upload-file-copy small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.upload-file-copy small { margin-top: 4px; color: var(--muted); }
.upload-file-copy button { border: 0; background: transparent; color: #8a98aa; cursor: pointer; }
.progress-track { height: 7px; margin-top: 16px; border-radius: 9px; background: #edf1f7; overflow: hidden; }
.progress-track span { display: block; width: 0; height: 100%; border-radius: inherit; background: var(--blue); transition: width .15s; }

.library-section { margin-top: 32px; }
.library-toolbar { justify-content: space-between; gap: 30px; margin-bottom: 14px; }
.library-toolbar h3 { margin: 4px 0 0; font-size: 21px; letter-spacing: -.03em; }
.library-controls { gap: 9px; }
.library-search { width: 240px; height: 42px; }
.library-controls select, .refresh-button, .view-toggle button {
    height: 42px;
    border: 1px solid var(--line);
    background: #fff;
    border-radius: 10px;
    cursor: pointer;
}
.library-controls select { padding: 0 32px 0 12px; color: #56657b; }
.view-toggle { display: flex; gap: 4px; padding: 3px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.view-toggle button { width: 34px; height: 34px; border: 0; display: grid; place-items: center; color: #8592a6; }
.view-toggle button.active { background: var(--blue-soft); color: var(--blue); }
.view-toggle svg, .refresh-button svg { width: 17px; }
.refresh-button { width: 42px; display: grid; place-items: center; color: #6c7c92; }

.session-table { border: 1px solid var(--line); border-radius: 16px; background: #fff; overflow: visible; box-shadow: 0 14px 34px rgba(25,55,96,.05); }
.session-table-head, .session-item {
    display: grid;
    grid-template-columns: minmax(230px, 1.65fr) minmax(180px, 1.2fr) 110px 80px 100px 160px 76px;
    gap: 16px;
    align-items: center;
}
.session-table-head { min-height: 50px; padding: 0 20px; border-bottom: 1px solid var(--line); color: #8795aa; font-size: 12px; }
.session-item { min-height: 74px; padding: 10px 20px; border-bottom: 1px solid var(--line-soft); position: relative; }
.session-item:last-child { border-bottom: 0; }
.session-item:hover { background: #fbfdff; }
.session-name-button { min-width: 0; border: 0; background: transparent; display: flex; align-items: center; gap: 12px; text-align: left; cursor: pointer; }
.session-source-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: #f0f5ff;
    display: grid;
    place-items: center;
    overflow: hidden;
    flex: 0 0 auto;
}
.session-source-icon svg { width: 20px; height: 20px; }
.session-name-button span:last-child { min-width: 0; }
.session-name-button strong, .session-name-button small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.session-name-button strong { font-size: 14px; }
.session-name-button small { margin-top: 4px; color: #8896a9; font-size: 11px; }
.session-topic, .session-updated, .session-duration, .session-source { color: #65758d; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.status-pill { width: max-content; padding: 5px 9px; border-radius: 99px; color: #159b73; background: #eaf9f3; display: flex; align-items: center; gap: 5px; font-size: 12px; }
.status-pill.processing { color: #b87a18; background: #fff6e5; }
.status-pill.ready { color: #77859a; background: #f1f4f8; }
.status-pill svg { width: 13px; height: 13px; }
.session-actions { display: flex; justify-content: flex-end; gap: 5px; }
.session-action { width: 34px; height: 34px; border: 0; border-radius: 9px; background: transparent; display: grid; place-items: center; color: #6f7e92; cursor: pointer; }
.session-action:hover { color: var(--blue); background: var(--blue-soft); }
.session-action svg { width: 17px; height: 17px; }

.grid-mode { border: 0; box-shadow: none; background: transparent; }
.grid-mode .session-table-head { display: none; }
.grid-mode .session-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.grid-mode .session-item {
    min-height: 190px;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 15px;
    background: #fff;
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-areas: "name actions" "topic topic" "status status" "source updated";
    align-content: start;
    gap: 14px;
}
.grid-mode .session-name-button { grid-area: name; }
.grid-mode .session-topic { grid-area: topic; white-space: normal; line-height: 1.6; }
.grid-mode .session-status { grid-area: status; }
.grid-mode .session-duration { display: none; }
.grid-mode .session-source { grid-area: source; }
.grid-mode .session-updated { grid-area: updated; text-align: right; }
.grid-mode .session-actions { grid-area: actions; }

.loading-state, .empty-state { min-height: 260px; display: grid; place-items: center; align-content: center; text-align: center; color: #8391a5; }
.spinner { width: 28px; height: 28px; border: 3px solid #dce5f2; border-top-color: var(--blue); border-radius: 50%; animation: spin .8s linear infinite; }
.loading-state p { margin: 12px 0 0; }
.empty-icon { width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center; background: var(--blue-soft); color: var(--blue); }
.empty-state h4 { margin: 18px 0 6px; font-size: 20px; color: var(--ink); }
.empty-state p { margin: 0; font-size: 13px; }
@keyframes spin { to { transform: rotate(360deg); } }

.context-menu {
    position: fixed;
    z-index: 90;
    width: 190px;
    padding: 7px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 18px 54px rgba(20,40,75,.18);
}
.context-menu button {
    width: 100%;
    height: 38px;
    padding: 0 10px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 13px;
}
.context-menu button:hover { background: #f4f7fb; }
.context-menu button.danger { color: #d64f55; }
.context-menu svg { width: 16px; }

.action-dialog {
    width: min(520px, calc(100vw - 40px));
    border: 0;
    border-radius: 18px;
    padding: 0;
    color: var(--ink);
    box-shadow: 0 28px 90px rgba(12,31,66,.26);
}
.action-dialog::backdrop { background: rgba(11,25,48,.48); backdrop-filter: blur(5px); }

.action-dialog form { padding: 22px; }
.action-dialog header, .action-dialog header > div, .action-dialog footer, .audio-export-row { display: flex; align-items: center; }
.action-dialog header { justify-content: space-between; padding-bottom: 18px; border-bottom: 1px solid var(--line-soft); }
.action-dialog header > div { gap: 12px; }
.dialog-icon { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; color: var(--blue); background: var(--blue-soft); }
.dialog-icon svg { width: 18px; }
.action-dialog h3 { margin: 0; font-size: 19px; }
.action-dialog header p { margin: 4px 0 0; color: var(--muted); font-size: 12px; }
.action-dialog header button { width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 10px; background: #fff; display: grid; place-items: center; cursor: pointer; }
.action-dialog label > span:first-child { display: block; margin: 18px 0 8px; font-size: 12px; font-weight: 750; }
.action-dialog input[type="text"], .action-dialog input:not([type]), .action-dialog select {
    width: 100%;
    height: 46px;
    border: 1px solid var(--line);
    border-radius: 11px;
    padding: 0 12px;
    outline: 0;
}
.action-dialog footer { justify-content: flex-end; gap: 9px; margin-top: 22px; }
.action-dialog footer button, .audio-export-row button { height: 42px; padding: 0 18px; border: 1px solid var(--line); border-radius: 10px; background: #fff; cursor: pointer; }
.action-dialog footer .confirm { border-color: var(--blue); color: #fff; background: var(--blue); }
.export-dialog fieldset { margin: 18px 0 0; padding: 0; border: 0; }
.export-dialog legend { margin-bottom: 9px; font-size: 12px; font-weight: 800; }
.option-card {
    min-height: 62px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 11px;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}
.option-card + .option-card { margin-top: 8px; }
.option-card span { display: block; }
.option-card b, .option-card small { display: block; }
.option-card small { margin-top: 3px; color: var(--muted); font-size: 11px; }
.format-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.format-grid label { cursor: pointer; }
.format-grid input { position: absolute; opacity: 0; }
.format-grid span { padding: 11px; border: 1px solid var(--line); border-radius: 10px; display: block; text-align: center; }
.format-grid input:checked + span { border-color: var(--blue); color: var(--blue); background: var(--blue-soft); }
.format-grid small { display: block; margin-top: 2px; color: #8d9aaf; }
.export-dialog details { margin-top: 18px; padding: 12px; border: 1px solid var(--line); border-radius: 11px; }
.export-dialog summary { cursor: pointer; font-size: 13px; font-weight: 750; }
.audio-export-row { gap: 8px; margin-top: 12px; }
.audio-export-row select { flex: 1; }
.audio-export-row button { display: flex; align-items: center; gap: 7px; }
.audio-export-row svg { width: 16px; }

.toast-region { position: fixed; z-index: 120; right: 24px; bottom: 24px; display: grid; gap: 10px; }
.toast { min-width: 250px; max-width: 390px; padding: 13px 16px; border: 1px solid #dce5f2; border-radius: 11px; background: #fff; box-shadow: 0 16px 46px rgba(20,44,82,.18); font-size: 13px; }
.toast.success { color: #087e60; border-color: #bde7d9; background: #f1fcf8; }
.toast.error { color: #bd424a; border-color: #f0c5c8; background: #fff6f6; }

@media (max-width: 1080px) {
    .minutes-space-shell { grid-template-columns: 72px 244px minmax(0,1fr); }
    .minutes-content { padding: 30px 32px 50px; }
    .session-table-head, .session-item { grid-template-columns: minmax(210px, 1.5fr) minmax(150px, 1fr) 104px 74px 92px 142px 68px; gap: 10px; }
}

@media (max-width: 1180px) {
    .action-studio { grid-template-columns: minmax(0, 1fr); }
    .library-toolbar { align-items: flex-start; flex-wrap: wrap; }
    .library-controls { flex-wrap: wrap; justify-content: flex-end; }
    .session-table { border: 0; background: transparent; box-shadow: none; }
    .session-table-head { display: none; }
    .session-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
    .session-item {
        min-height: 190px;
        padding: 20px;
        border: 1px solid var(--line);
        border-radius: 15px;
        background: #fff;
        grid-template-columns: minmax(0, 1fr) auto;
        grid-template-areas: "name actions" "topic topic" "status status" "source updated";
        align-content: start;
        gap: 13px;
    }
    .session-item:last-child { border-bottom: 1px solid var(--line); }
    .session-name-button { grid-area: name; }
    .session-topic { grid-area: topic; white-space: normal; line-height: 1.6; }
    .session-status { grid-area: status; }
    .session-duration { display: none; }
    .session-source { grid-area: source; }
    .session-updated { grid-area: updated; text-align: right; }
    .session-actions { grid-area: actions; }
}

@media (max-width: 760px) {
    .minutes-space-shell { grid-template-columns: 64px minmax(0, 1fr); }
    .minutes-sidebar { display: none; }
    .product-rail { width: 64px; padding-inline: 10px; }
    .minutes-content { padding: 24px 18px 44px; }
    .record-stage { padding-inline: 20px; }
    .library-controls, .library-search { width: 100%; }
    .library-controls select { flex: 1; }
}

/* 2026-08-20 · 轻量主操作按钮 */
#newSessionButton, #heroStartButton {
    border: 1px solid #c8d9ef; border-radius: 14px; color: #18385f;
    background: linear-gradient(180deg, #fff 0%, #f2f7fd 100%);
    box-shadow: 0 8px 20px rgba(42,72,111,.10), inset 0 1px 0 rgba(255,255,255,.96);
    font-weight: 850; letter-spacing: .01em;
    transition: transform .16s ease, border-color .16s ease, background .16s ease, box-shadow .16s ease, color .16s ease;
}
#newSessionButton svg, #heroStartButton svg { color: #1169ff; stroke-width: 2.15; }
#newSessionButton:hover, #heroStartButton:hover {
    color: #0b3978; border-color: #8eb4ea; background: linear-gradient(180deg, #fff 0%, #eaf3ff 100%);
    box-shadow: 0 11px 24px rgba(42,87,145,.14); transform: translateY(-1px);
}
#newSessionButton:active, #heroStartButton:active { transform: translateY(0); box-shadow: 0 5px 12px rgba(42,72,111,.10); }
#newSessionButton:focus-visible, #heroStartButton:focus-visible { outline: 3px solid rgba(17,105,255,.18); outline-offset: 2px; }
