/* Versioned UI overrides. The query string in index.php is generated from this file's mtime. */

.history-list,
.history-item,
.history-use {
    min-width: 0;
}

.history-item {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    border-radius: 8px;
}

.history-item:focus-within {
    border-color: #99f6e4;
    box-shadow: 0 0 0 3px rgba(15, 118, 110, .09);
}

.history-use {
    display: -webkit-box;
    max-width: 100%;
    overflow: hidden;
    overflow-wrap: anywhere;
    word-break: break-word;
    white-space: normal;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.history-delete {
    align-self: start;
    min-height: 30px;
    padding: 0 10px;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    background: #fff;
    color: #64748b;
    line-height: 1;
    white-space: nowrap;
}

.history-delete:hover {
    border-color: #fecaca;
    background: #fff1f2;
    color: var(--danger);
}

.history-clear {
    border-radius: 999px;
}

.history-clear:hover {
    background: #fff1f2;
}

.status-line,
.clarify-q,
.quality-warnings,
.material-list,
.page-link code {
    overflow-wrap: anywhere;
    word-break: break-word;
}

@media (max-width: 720px) {
    .history-panel {
        padding: 12px;
    }

    .history-item {
        gap: 10px;
        padding: 10px;
        background: #f8fafc;
    }

    .history-use {
        font-size: 13px;
        line-height: 1.55;
    }

    .history-delete,
    .history-clear {
        min-height: 32px;
        padding: 0 11px;
    }

    .segmented label {
        min-height: 50px;
    }
}

/* 2026-10-21 · Workbench UI refresh: desktop split layout, calmer hierarchy, stronger mobile ergonomics. */
:root {
    --bg: #f1f2ed;
    --panel: #ffffff;
    --text: #17211d;
    --muted: #66716b;
    --line: #dfe4df;
    --primary: #116149;
    --primary-dark: #0b4a38;
    --danger: #b42318;
    --surface: #f7f8f4;
    --surface-strong: #eef1eb;
    --ink-soft: #34423c;
    --shadow: 0 18px 55px rgba(31, 47, 39, .09);
}

html {
    background: var(--bg);
}

body {
    background:
        radial-gradient(circle at 8% 4%, rgba(17, 97, 73, .08), transparent 25rem),
        radial-gradient(circle at 92% 12%, rgba(194, 160, 98, .10), transparent 28rem),
        var(--bg);
    color: var(--text);
    font-family: "Avenir Next", "Segoe UI", -apple-system, BlinkMacSystemFont, "Microsoft YaHei", sans-serif;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

.wrap {
    width: min(1220px, calc(100% - 48px));
    padding: 28px 0 56px;
}

.app-header {
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 32px;
    overflow: hidden;
    margin-bottom: 18px;
    padding: 34px 38px 32px;
    border-radius: 24px;
    background:
        radial-gradient(circle at 88% 4%, rgba(210, 180, 121, .22), transparent 29%),
        linear-gradient(135deg, #10261f 0%, #173d31 58%, #1a473a 100%);
    color: #fff;
    box-shadow: 0 20px 60px rgba(18, 47, 37, .2);
}

.app-header::after {
    content: "";
    position: absolute;
    right: -80px;
    bottom: -155px;
    width: 330px;
    height: 330px;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 50%;
    box-shadow: 0 0 0 46px rgba(255, 255, 255, .035), 0 0 0 92px rgba(255, 255, 255, .025);
    pointer-events: none;
}

.brand-block {
    position: relative;
    z-index: 1;
    min-width: 0;
}

.eyebrow {
    margin: 0 0 10px;
    color: #bdd5c9;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .15em;
    text-transform: uppercase;
}

.app-header h1 {
    margin: 0;
    color: #fff;
    font-size: clamp(29px, 3.2vw, 42px);
    font-weight: 760;
    line-height: 1.08;
    letter-spacing: -.035em;
}

.lede {
    max-width: 640px;
    margin: 11px 0 0;
    color: rgba(237, 246, 241, .72);
    font-size: 14px;
    line-height: 1.65;
}

.top-links {
    position: relative;
    z-index: 1;
    flex: 0 0 auto;
    gap: 8px;
}

.top-links .back {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 0 14px;
    border: 1px solid rgba(255, 255, 255, .17);
    border-radius: 999px;
    background: rgba(255, 255, 255, .075);
    color: #f4faf7;
    font-size: 12.5px;
    font-weight: 700;
    text-decoration: none;
    transition: background .18s ease, border-color .18s ease, transform .18s ease;
}

.top-links .back:hover {
    border-color: rgba(255, 255, 255, .32);
    background: rgba(255, 255, 255, .13);
    transform: translateY(-1px);
}

.panel {
    margin-bottom: 16px;
    padding: 24px;
    border: 1px solid rgba(73, 94, 83, .14);
    border-radius: 18px;
    background: var(--panel);
    box-shadow: var(--shadow);
}

.workbench-panel {
    overflow: hidden;
    padding: 0;
    border-radius: 22px;
}

.generator-form {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(340px, .72fr);
    align-items: stretch;
}

.compose-column {
    min-width: 0;
    padding: 34px 38px 36px;
}

.settings-column {
    display: flex;
    min-width: 0;
    flex-direction: column;
    padding: 30px 30px 28px;
    border-left: 1px solid var(--line);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, .5), transparent 160px),
        var(--surface);
}

.column-heading {
    margin-bottom: 22px;
}

.column-heading.compact {
    margin-bottom: 18px;
}

.kicker {
    display: inline-flex;
    align-items: center;
    margin-bottom: 9px;
    color: var(--primary);
    font-size: 10.5px;
    font-weight: 850;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.column-heading h2 {
    margin: 0;
    color: var(--text);
    font-size: 23px;
    font-weight: 760;
    line-height: 1.25;
    letter-spacing: -.025em;
}

.column-heading p {
    max-width: 590px;
    margin: 8px 0 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.65;
}

.field {
    display: grid;
    gap: 8px;
}

label {
    margin: 0;
    color: var(--ink-soft);
    font-size: 13.5px;
    font-weight: 750;
}

textarea {
    width: 100%;
    min-height: 350px;
    resize: vertical;
    padding: 16px 17px;
    border: 1px solid #d4dad5;
    border-radius: 14px;
    background: #fcfdfb;
    color: var(--text);
    font: inherit;
    font-size: 15px;
    line-height: 1.75;
    outline: none;
    transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

textarea::placeholder {
    color: #8a958e;
}

textarea:focus {
    border-color: rgba(17, 97, 73, .65);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(17, 97, 73, .09);
}

.materials-box {
    gap: 9px;
    margin-top: 14px;
}

.drop-zone {
    display: flex;
    min-height: 104px;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 4px 10px;
    padding: 17px 20px;
    border: 1px dashed #adb9b0;
    border-radius: 14px;
    background: #f8faf6;
    color: var(--muted);
    text-align: left;
    transition: border-color .18s ease, background .18s ease, box-shadow .18s ease;
}

.drop-zone:hover,
.drop-zone:focus-visible,
.drop-zone.over {
    border-color: var(--primary);
    background: #f0f7f3;
    box-shadow: 0 0 0 4px rgba(17, 97, 73, .06);
    outline: none;
}

.drop-icon {
    display: inline-grid;
    width: 30px;
    height: 30px;
    place-items: center;
    border-radius: 9px;
    background: #e1eee7;
    color: var(--primary);
    font-size: 19px;
    font-weight: 500;
}

.drop-zone strong {
    color: var(--ink-soft);
    font-size: 13.5px;
}

.drop-zone span:last-child {
    flex-basis: 100%;
    color: #7b867f;
    font-size: 11.5px;
    line-height: 1.55;
    text-align: center;
}

.file-list {
    gap: 7px;
}

.file-item {
    padding: 9px 11px;
    border-color: #dde3de;
    border-radius: 10px;
    background: #fbfcfa;
}

.file-item button {
    min-height: 30px;
    border: 1px solid #e0e5e1;
    border-radius: 999px;
    background: #fff;
}

.history-panel {
    gap: 8px;
    margin-top: 16px;
    padding: 13px 14px;
    border-color: #e1e5e1;
    border-radius: 12px;
    background: #fbfcf9;
}

.history-head {
    min-height: 24px;
}

.history-title {
    color: #59655e;
    font-size: 11.5px;
    font-weight: 800;
    letter-spacing: .045em;
    text-transform: uppercase;
}

.history-empty {
    font-size: 12.5px;
    line-height: 1.55;
}

.history-item {
    padding: 9px 10px;
    border-color: #e0e5e1;
    border-radius: 9px;
    background: #fff;
}

.history-item:hover {
    border-color: #bfd6ca;
}

.storage-note {
    margin: 12px 0 0;
    color: #8a948e;
    font-size: 11.5px;
    line-height: 1.55;
}

.process-note {
    display: grid;
    gap: 10px;
    margin-top: 18px;
    padding: 14px 15px;
    border: 1px solid #e2e6e2;
    border-radius: 12px;
    background: #fbfcf9;
}

.process-title {
    color: #7a857f;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .09em;
    text-transform: uppercase;
}

.process-note ol {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.process-note li {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 7px;
    color: #59655e;
    font-size: 11px;
    line-height: 1.35;
}

.process-note li b {
    display: inline-grid;
    width: 23px;
    height: 23px;
    flex: 0 0 23px;
    place-items: center;
    border-radius: 7px;
    background: #e8f1eb;
    color: var(--primary);
    font-size: 9px;
    font-weight: 850;
}

.settings-stack {
    display: grid;
    gap: 0;
}

.settings-stack > * {
    margin: 0;
    padding: 0 0 15px;
    border-bottom: 1px solid #e3e7e3;
}

.settings-stack > * + * {
    padding-top: 15px;
}

.settings-stack > *:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.option-row {
    display: grid;
    gap: 7px;
    margin: 0;
}

#thinkingOption[hidden] {
    display: none !important;
}

.option-row > label,
.number-control > label {
    color: var(--ink-soft);
    font-size: 12.5px;
}

.hint {
    margin: 0;
    color: #7a857f;
    font-size: 11.5px;
    line-height: 1.55;
}

.language-select,
.number-control input {
    width: 100%;
    min-height: 45px;
    padding: 0 12px;
    border: 1px solid #d3dad4;
    border-radius: 10px;
    background-color: #fff;
    color: var(--text);
    font-size: 13.5px;
    font-weight: 700;
    outline: none;
    transition: border-color .18s ease, box-shadow .18s ease;
}

.language-select:focus,
.number-control input:focus {
    border-color: rgba(17, 97, 73, .65);
    box-shadow: 0 0 0 4px rgba(17, 97, 73, .08);
}

.segmented {
    width: 100%;
    max-width: none;
    gap: 4px;
    padding: 4px;
    border: 1px solid #dce1db;
    border-radius: 12px;
    background: #e9ede7;
}

.segmented.output-type {
    max-width: none;
}

.segmented.density-segmented {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: none;
}

.segmented.density-segmented label {
    min-height: 34px;
}

.segmented label {
    min-height: 38px;
    padding: 4px 6px;
    border-radius: 9px;
    color: #59645e;
    font-size: 12.5px;
    font-weight: 750;
    line-height: 1.3;
    text-align: center;
}

.segmented label:hover {
    color: var(--primary);
}

.segmented label:has(input:checked) {
    background: var(--primary);
    box-shadow: 0 2px 8px rgba(17, 97, 73, .16);
    color: #fff;
}

.segmented input:focus-visible + * {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.check {
    width: 100%;
    max-width: none;
    align-items: flex-start;
    padding: 11px 12px;
    border: 1px solid #d9dfd9;
    border-radius: 10px;
    background: #fff;
    color: var(--ink-soft);
    font-size: 12px;
    line-height: 1.5;
}

.check input {
    flex: 0 0 17px;
    width: 17px;
    height: 17px;
    margin-top: 1px;
}

.advanced-settings {
    border: 0 !important;
    border-bottom: 1px solid #e3e7e3 !important;
    border-radius: 0;
    background: transparent;
}

.advanced-settings summary {
    display: flex;
    min-height: 32px;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    color: var(--ink-soft);
    cursor: pointer;
    font-size: 12.5px;
    font-weight: 750;
    list-style: none;
}

.advanced-settings summary::-webkit-details-marker {
    display: none;
}

.advanced-settings summary::after {
    content: "+";
    display: grid;
    width: 24px;
    height: 24px;
    flex: 0 0 24px;
    place-items: center;
    border: 1px solid #d6ddd7;
    border-radius: 50%;
    background: #fff;
    color: var(--primary);
    font-size: 16px;
    font-weight: 500;
}

.advanced-settings[open] summary::after {
    content: "−";
}

.advanced-settings summary span {
    margin-left: auto;
    color: #8a948e;
    font-size: 10.5px;
    font-weight: 600;
}

.advanced-body {
    display: grid;
    gap: 8px;
    padding: 2px 0 2px;
}

.number-control {
    display: grid;
    max-width: none;
    gap: 7px;
    margin: 0;
}

.form-footer {
    display: grid;
    gap: 9px;
    margin-top: 24px;
    padding-top: 18px;
    border-top: 1px solid #dfe4df;
}

.actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin: 0;
}

button,
.button {
    min-height: 45px;
    border-radius: 10px;
    padding: 0 16px;
    font-size: 13.5px;
    font-weight: 750;
    transition: background .18s ease, border-color .18s ease, color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.primary {
    background: var(--primary);
    box-shadow: 0 8px 20px rgba(17, 97, 73, .18);
    color: #fff;
}

.primary:hover {
    background: var(--primary-dark);
    box-shadow: 0 10px 24px rgba(17, 97, 73, .24);
    transform: translateY(-1px);
}

.ghost {
    border: 1px solid #d8ded8;
    background: #fff;
    color: #4c5952;
}

.ghost:hover {
    border-color: #bfc9c1;
    background: #f7f9f6;
    color: var(--primary);
}

.actions .primary {
    grid-column: 1 / -1;
    min-height: 49px;
    font-size: 14.5px;
}

.form-note {
    margin: 0;
    color: #89938d;
    font-size: 10.5px;
    line-height: 1.5;
    text-align: center;
}

.alert {
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(60, 27, 22, .06);
}

.test-panel,
.progress-panel {
    border-radius: 18px;
}

.test-panel > strong,
.progress-panel > strong {
    color: var(--text);
    font-size: 18px;
    letter-spacing: -.015em;
}

.test-grid {
    gap: 8px;
}

.test-item {
    padding: 12px 13px;
    border-color: #e0e5e0;
    border-radius: 11px;
    background: var(--surface);
}

.test-item span {
    color: #7c8780;
    font-size: 10.5px;
    letter-spacing: .045em;
    text-transform: uppercase;
}

.test-item strong {
    color: var(--text);
    font-size: 13px;
}

.test-output {
    max-height: 330px;
    padding: 15px;
    border-color: #28362f;
    border-radius: 12px;
    background: #14211b;
    color: #dce7e0;
    font-size: 12px;
    line-height: 1.65;
}

.jobs-list {
    gap: 10px;
}

.job-card {
    gap: 11px;
    padding: 16px;
    border-color: #e0e5e0;
    border-radius: 13px;
    background: #fbfcfa;
}

.job-head {
    color: var(--text);
    font-size: 13px;
}

.progress-track {
    height: 8px;
    background: #e5eae5;
}

.progress-bar {
    background: linear-gradient(90deg, var(--primary), #4c9b7d);
}

.status-line {
    color: #69746e;
    font-size: 12.5px;
    line-height: 1.65;
}

.job-timer {
    color: var(--primary);
    font-size: 11.5px;
}

.link-row,
.page-link,
.pages-list {
    min-width: 0;
}

.link-row {
    border-color: #dfe5df;
    border-radius: 12px;
    background: var(--surface);
}

.page-link {
    border-color: #e0e5e0;
    border-radius: 10px;
    background: #fff;
}

.clarify-box {
    border-color: #bcd8c9;
    border-radius: 13px;
    background: #f3f8f4;
}

.clarify-item {
    border-color: #d6e6dc;
    border-radius: 11px;
}

.clarify-group {
    color: var(--primary);
}

.clarify-option {
    border-color: #d0e3d7;
    border-radius: 9px;
}

.clarify-option:has(input:checked) {
    border-color: var(--primary);
    background: #edf7f0;
}

.direction-pick {
    border-color: #d2e2d8;
    border-radius: 13px;
    background: #f7f9f6;
}

.direction-card {
    border-color: #dfe5df;
    border-radius: 11px;
}

.direction-card.is-selected {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(17, 97, 73, .09);
}

.direction-preview {
    border-radius: 8px;
}

.direction-density {
    display: block;
    margin-top: 5px;
    color: #476458;
    font-size: 11.5px;
    line-height: 1.55;
}

.quality-warnings {
    border-radius: 11px;
}

.resume-row {
    border-color: #c8ddcf;
    border-radius: 12px;
    background: #f3f8f4;
}

.module-edit {
    border-color: #d8dfd9;
    border-radius: 13px;
    background: #fbfcfa;
}

@media (max-width: 980px) {
    .wrap {
        width: min(760px, calc(100% - 32px));
    }

    .app-header {
        align-items: flex-start;
        flex-direction: column;
        gap: 20px;
        padding: 30px 30px 28px;
    }

    .top-links {
        width: 100%;
    }

    .generator-form {
        grid-template-columns: 1fr;
    }

    .compose-column {
        padding: 30px 30px 28px;
    }

    .settings-column {
        padding: 28px 30px 30px;
        border-top: 1px solid var(--line);
        border-left: 0;
    }

    textarea {
        min-height: 240px;
    }

    .form-footer {
        margin-top: 22px;
    }
}

@media (max-width: 720px) {
    body::after {
        content: "";
        position: fixed;
        right: 0;
        bottom: 0;
        left: 0;
        z-index: 70;
        height: calc(82px + env(safe-area-inset-bottom, 0px));
        background: linear-gradient(180deg, rgba(241, 242, 237, 0), rgba(241, 242, 237, .94) 54%, var(--bg) 100%);
        pointer-events: none;
    }

    .wrap {
        width: calc(100% - 24px);
        padding: 12px 0 calc(96px + env(safe-area-inset-bottom));
    }

    .app-header {
        gap: 17px;
        margin-bottom: 12px;
        padding: 23px 20px 21px;
        border-radius: 18px;
    }

    .app-header h1 {
        font-size: clamp(26px, 8vw, 32px);
        line-height: 1.1;
    }

    .eyebrow {
        margin-bottom: 7px;
        font-size: 9.5px;
        letter-spacing: .13em;
    }

    .lede {
        margin-top: 9px;
        font-size: 12.5px;
        line-height: 1.6;
    }

    .top-links {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 7px;
    }

    .top-links .back {
        width: 100%;
        min-height: 40px;
        padding: 0 10px;
        font-size: 12px;
    }

    .panel {
        margin-bottom: 12px;
        padding: 17px 16px;
        border-radius: 15px;
    }

    .workbench-panel {
        padding: 0;
        border-radius: 18px;
    }

    .compose-column {
        padding: 23px 17px 20px;
    }

    .settings-column {
        padding: 21px 17px 23px;
    }

    .column-heading,
    .column-heading.compact {
        margin-bottom: 17px;
    }

    .kicker {
        margin-bottom: 7px;
        font-size: 9.5px;
    }

    .column-heading h2 {
        font-size: 21px;
    }

    .column-heading p {
        margin-top: 6px;
        font-size: 12px;
        line-height: 1.6;
    }

    .field {
        gap: 7px;
    }

    label {
        font-size: 13px;
    }

    textarea {
        min-height: 212px;
        padding: 14px;
        border-radius: 12px;
        font-size: 16px;
        line-height: 1.65;
    }

    .drop-zone {
        min-height: 118px;
        padding: 16px 13px;
        border-radius: 12px;
    }

    .drop-zone span:last-child {
        font-size: 11px;
    }

    .history-panel {
        margin-top: 13px;
        padding: 12px;
        border-radius: 11px;
    }

    .history-item {
        gap: 8px;
        padding: 9px 10px;
        background: #fff;
    }

    .history-use {
        font-size: 12.5px;
    }

    .history-delete,
    .history-clear {
        min-height: 34px;
        padding: 0 11px;
    }

    .storage-note {
        margin-top: 11px;
        font-size: 11px;
    }

    .process-note {
        margin-top: 14px;
        padding: 12px;
    }

    .process-note li {
        align-items: flex-start;
        flex-direction: column;
        gap: 4px;
        font-size: 10.5px;
    }

    .process-note li b {
        width: 21px;
        height: 21px;
        flex-basis: 21px;
    }

    .settings-stack > * {
        padding-bottom: 13px;
    }

    .settings-stack > * + * {
        padding-top: 13px;
    }

    .option-row {
        gap: 6px;
    }

    .language-select,
    .number-control input {
        min-height: 48px;
        border-radius: 10px;
        font-size: 16px;
    }

    .segmented {
        gap: 3px;
        padding: 3px;
        border-radius: 11px;
    }

    .segmented label {
        min-height: 46px;
        padding: 3px 4px;
        border-radius: 8px;
        font-size: 12px;
        line-height: 1.3;
    }

    .segmented.output-type label {
        min-height: 48px;
        font-size: 12.5px;
        white-space: normal;
    }

    .hint {
        font-size: 11px;
        line-height: 1.55;
    }

    .check {
        min-height: 46px;
        padding: 11px;
        font-size: 12px;
    }

    .advanced-settings summary {
        min-height: 42px;
    }

    .form-footer {
        gap: 8px;
        margin-top: 20px;
        padding-top: 16px;
        padding-bottom: 4px;
    }

    .actions {
        gap: 7px;
    }

    .actions .primary {
        grid-column: auto;
    }

    #generateBtn {
        position: fixed;
        right: 12px;
        bottom: calc(12px + env(safe-area-inset-bottom, 0px));
        left: 12px;
        z-index: 80;
        min-height: 54px;
        border: 1px solid rgba(255, 255, 255, .16);
        border-radius: 14px;
        box-shadow: 0 13px 34px rgba(17, 97, 73, .3), 0 4px 12px rgba(18, 36, 28, .14);
        font-size: 15px;
    }

    .actions button,
    .actions .button {
        min-height: 46px;
        padding: 0 9px;
        font-size: 13px;
    }

    .test-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 7px;
    }

    .test-item {
        padding: 11px;
    }

    .test-output {
        max-height: 270px;
        padding: 12px;
        font-size: 11.5px;
    }

    .job-card {
        padding: 13px;
    }

    .module-edit-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 380px) {
    .wrap {
        width: calc(100% - 18px);
    }

    .app-header {
        padding: 21px 17px 19px;
    }

    .compose-column,
    .settings-column {
        padding-right: 14px;
        padding-left: 14px;
    }

    .segmented.output-type {
        grid-template-columns: 1fr;
    }

    .segmented.density-segmented {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .segmented.density-segmented label {
        min-height: 46px;
    }

    .segmented.output-type label {
        min-height: 42px;
    }

    .actions {
        grid-template-columns: 1fr;
    }

    .actions .primary {
        grid-column: auto;
    }
}
