/* The settings kit (scripts/settings-kit.js), in the mockup's own type and palette: Inter, the Dashboard's navy and
   ink, its muted grey, its hairlines and its page ground. The layout is the one the products people use share for
   settings (Linear, Notion, Vercel, Framer): one centred column, the page's name, sections each a name over one
   bordered card of rows, the control at a row's right. Figures are tabular. Nothing moves on its own; a control
   answers the pointer with its wash in 120ms, and all of it is still under reduced motion. */
:root { --st-ink: #172033; --st-navy: #172944; --st-navy-hover: #263c5b; --st-muted: #687386; --st-faint: #8a94a6; --st-line: #e4e8ef; --st-rule: #eef1f5; --st-soft: #f5f7fa; --st-ground: #fafbfc; --st-red: #c9363e; --st-red-ink: #a3262d; --st-green: #147a52; --st-amber: #8f5f12; }
/* The page fills the content area as the Dashboard's does: its frame, its 18px sides, its title where the Dashboard's
   title stands. */
.st-page { width: 100%; max-width: 1680px; margin: 0; padding: 26px 18px 64px; color: var(--st-ink); font-variant-numeric: tabular-nums; }
.st-page.is-wide { width: 100%; }
/* A connection's own steps stay one narrow column, as a wizard's do. */
.st-page.st-flow { width: min(100%, 760px); margin: 0 auto; padding: 40px 40px 88px; }
.st-page :is(h1, h2, h3, p) { margin: 0; }

/* The back link over a page that sits under another, as Linear's "‹ Teams". */
.st-back { display: inline-flex; align-items: center; gap: 4px; margin: -8px 0 14px -6px; padding: 4px 8px 4px 4px; border: 0; border-radius: 7px; background: transparent; color: var(--st-muted); font: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer; transition: background-color var(--m-hover) ease, color var(--m-hover) ease; }
.st-back .icon { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.st-back:hover { background: var(--st-soft); color: var(--st-ink); }

/* The page's name, the Dashboard's title. */
.st-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 52px; margin-bottom: 18px; }
.st-head-copy { min-width: 0; }
.st-title { color: var(--st-navy); font-size: 24px; font-weight: 700; line-height: 1.25; letter-spacing: -.02em; outline: none; }
.st-lead { max-width: 62ch; margin-top: 8px !important; color: var(--st-muted); font-size: 13px; line-height: 1.6; }
.st-head-actions { display: flex; flex: none; flex-wrap: wrap; gap: 8px; }

/* Sections and their cards. */
.st-section + .st-section { margin-top: 32px; }
.st-section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 10px; }
.st-section-head h2 { color: var(--st-ink); font-size: 14px; font-weight: 650; line-height: 1.4; }
.st-section-head p { margin-top: 3px !important; color: var(--st-muted); font-size: 12.5px; line-height: 1.5; }
.st-section-actions { display: flex; flex: none; gap: 8px; }
.st-card { overflow: hidden; border: 1px solid var(--st-line); border-radius: 10px; background: #fff; }
.st-card + .st-card { margin-top: 12px; }

/* A row: what it is on the left, its control on the right; rows ruled inside the card's padding. */
.st-row { position: relative; display: flex; align-items: center; gap: 14px; min-height: 64px; padding: 14px 20px; }
.st-row + .st-row::before { content: ""; position: absolute; top: 0; right: 20px; left: 20px; height: 1px; background: var(--st-rule); }
.st-row-mark { display: grid; flex: none; width: 36px; height: 36px; place-items: center; border-radius: 9px; background: var(--st-soft); color: var(--st-muted); }
.st-row-mark .icon { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.st-row-mark .provider-brand-logo, .st-row-mark .channel-mark { width: 20px; height: 20px; }
.st-row-mark .biz-tile { width: 36px; height: 36px; font-size: 11px; }
.st-row-copy { display: grid; flex: 1 1 auto; gap: 3px; min-width: 0; }
.st-row-copy > strong { min-width: 0; overflow-wrap: anywhere; color: var(--st-ink); font-size: 13px; font-weight: 600; line-height: 1.45; }
.st-row-copy > span { min-width: 0; overflow-wrap: anywhere; color: var(--st-muted); font-size: 12.5px; line-height: 1.5; }
.st-row-control { display: flex; flex: none; align-items: center; justify-content: flex-end; gap: 8px; max-width: 60%; color: var(--st-muted); font-size: 13px; text-align: right; }
.st-row.is-danger .st-row-copy > strong { color: var(--st-red-ink); }
/* A row that opens what it names: the whole row answers, with the chevron at its end (Notion's Delete my account). */
.st-row-button { width: 100%; margin: 0; border: 0; background: transparent; font: inherit; text-align: left; cursor: pointer; transition: background-color var(--m-hover) ease; }
.st-row-button:hover { background: var(--st-ground); }
.st-row-button:focus-visible { outline: 2px solid rgba(47, 98, 164, .55); outline-offset: -2px; }
.st-row-button .st-row-control > .icon { width: 16px; height: 16px; fill: none; stroke: #9aa3b2; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* Buttons. */
.st-btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 34px; padding: 0 14px; border: 1px solid #dde2e9; border-radius: 8px; background: #fff; color: var(--st-ink); font: inherit; font-size: 12.5px; font-weight: 600; line-height: 1.2; white-space: nowrap; cursor: pointer; transition: background-color var(--m-hover) ease, border-color var(--m-hover) ease, color var(--m-hover) ease; }
.st-btn:hover { border-color: #c9d1dc; background: var(--st-soft); }
.st-btn .icon { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.st-btn.is-primary { border-color: var(--st-navy); background: var(--st-navy); color: #fff; }
.st-btn.is-primary:hover { border-color: var(--st-navy-hover); background: var(--st-navy-hover); }
.st-btn.is-danger { color: var(--st-red-ink); }
.st-btn.is-danger:hover { border-color: #ecc9c9; background: #fdf3f2; }
.st-btn.is-danger-fill { border-color: var(--st-red); background: var(--st-red); color: #fff; }
.st-btn.is-danger-fill:hover { border-color: #ae2931; background: #ae2931; }
.st-btn:disabled, .st-btn[aria-disabled="true"] { opacity: .5; cursor: default; }
.st-btn:disabled:hover { border-color: #dde2e9; background: #fff; }
.st-btn.is-primary:disabled:hover { border-color: var(--st-navy); background: var(--st-navy); }
.st-btn:focus-visible, .st-link:focus-visible, .st-icon-btn:focus-visible, .st-select select:focus-visible { outline: 3px solid rgba(47, 98, 164, .3); outline-offset: 2px; }
.st-link { display: inline-flex; align-items: center; gap: 4px; padding: 0; border: 0; background: transparent; color: #2f62a4; font: inherit; font-size: 12.5px; font-weight: 600; text-decoration: underline; text-decoration-color: rgba(47, 98, 164, .35); text-underline-offset: 3px; cursor: pointer; }
.st-link:hover { text-decoration-color: currentColor; }
.st-icon-btn { display: grid; flex: none; width: 32px; height: 32px; place-items: center; padding: 0; border: 1px solid transparent; border-radius: 8px; background: transparent; color: var(--st-muted); cursor: pointer; transition: background-color var(--m-hover) ease, border-color var(--m-hover) ease, color var(--m-hover) ease; }
.st-icon-btn:hover, .st-icon-btn[aria-expanded="true"] { border-color: var(--st-line); background: var(--st-soft); color: var(--st-ink); }
.st-icon-btn .icon { width: 18px; height: 18px; fill: currentColor; stroke: none; }
.st-icon-btn .icon[data-icon="kit-download"] { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.lkd-spin { width: 14px; height: 14px; border: 2px solid rgba(255, 255, 255, .45); border-top-color: #fff; border-radius: 50%; animation: spin .8s linear infinite; }
.st-btn:not(.is-primary):not(.is-danger-fill) .lkd-spin { border-color: #d5dbe4; border-top-color: var(--st-navy); }

/* Pills and states. */
.st-pill { display: inline-flex; align-items: center; min-height: 20px; padding: 0 8px; border-radius: 999px; background: #eef1f5; color: #4a5568; font-size: 11px; font-weight: 650; line-height: 1; white-space: nowrap; }
.st-pill.is-navy { background: var(--st-navy); color: #fff; }
.st-pill.is-gold { background: #fbf1dc; color: #7b5310; }
.st-pill.is-good { background: #e8f5ee; color: var(--st-green); }
.st-pill.is-warn { background: #fdf2df; color: var(--st-amber); }
.st-state { display: inline-flex; align-items: center; gap: 6px; color: var(--st-muted); font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.st-state i { width: 7px; height: 7px; flex: none; border-radius: 50%; background: #a8b1bf; }
.st-state.is-good { color: var(--st-green); }
.st-state.is-good i { background: #1f9a63; }
.st-state.is-bad { color: var(--st-red-ink); }
.st-state.is-bad i { background: var(--st-red); }
.st-state.is-warn { color: var(--st-amber); }
.st-state.is-warn i { background: #d99a2b; }

/* Fields and selects. */
.st-field { display: grid; gap: 6px; min-width: 0; }
.st-field > label { color: var(--st-ink); font-size: 12.5px; font-weight: 600; }
.st-field > label em { color: var(--st-faint); font-style: normal; font-weight: 500; }
.st-input, .st-field textarea { width: 100%; min-width: 0; min-height: 38px; padding: 8px 12px; border: 1px solid #dde2e9; border-radius: 8px; background: #fff; color: var(--st-ink); font: inherit; font-size: 13px; line-height: 1.4; transition: border-color var(--m-hover) ease, box-shadow var(--m-hover) ease; }
.st-field textarea { min-height: 76px; resize: vertical; }
.st-input:focus, .st-field textarea:focus { border-color: #8aa6cc; outline: none; box-shadow: 0 0 0 3px rgba(47, 98, 164, .14); }
.st-input:disabled, .st-input[readonly] { background: var(--st-ground); color: var(--st-muted); }
.st-field.is-refused :is(.st-input, textarea, select) { border-color: var(--st-red); box-shadow: 0 0 0 3px rgba(201, 54, 62, .1); }
.st-hint { color: var(--st-muted); font-size: 12px; line-height: 1.5; }
.st-error { color: var(--st-red-ink); font-size: 12px; font-weight: 600; line-height: 1.5; }
.st-select { position: relative; display: inline-flex; min-width: 0; }
.st-select select { min-height: 34px; max-width: 260px; padding: 0 32px 0 12px; border: 1px solid #dde2e9; border-radius: 8px; background: #fff; color: var(--st-ink); font: inherit; font-size: 12.5px; font-weight: 600; text-overflow: ellipsis; appearance: none; cursor: pointer; transition: border-color var(--m-hover) ease, background-color var(--m-hover) ease; }
.st-select select:hover { border-color: #c9d1dc; background: var(--st-ground); }
.st-select select:disabled { background: var(--st-ground); color: var(--st-muted); cursor: default; }
.st-select > .icon { position: absolute; top: 50%; right: 10px; width: 14px; height: 14px; margin-top: -7px; fill: none; stroke: var(--st-muted); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; pointer-events: none; }
.st-field .st-select, .st-field .st-select select { width: 100%; max-width: none; height: 38px; min-height: 38px; font-weight: 500; font-size: 13px; }
.st-select select { height: 34px; margin: 0; line-height: 1.2; box-shadow: none; }

/* A form's foot, as Notion's Update and Cancel stand under the form. */
.st-form-foot { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.st-form-card { padding: 20px; }
.st-form-card > .st-field + .st-field, .st-form-card > .st-pair + .st-field, .st-form-card > .st-field + .st-pair, .st-form-card > .st-pair + .st-pair { margin-top: 16px; }
.st-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }

/* Tables: a head row on the soft ground, dense rows ruled, figures right-aligned. */
.st-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.st-table th { padding: 10px 16px; background: var(--st-ground); color: var(--st-muted); font-size: 11.5px; font-weight: 600; text-align: left; white-space: nowrap; }
.st-table td { padding: 12px 16px; border-top: 1px solid var(--st-rule); color: var(--st-ink); vertical-align: middle; }
.st-table th:first-child, .st-table td:first-child { padding-left: 20px; }
.st-table th:last-child, .st-table td:last-child { padding-right: 14px; }
.st-table .is-num { text-align: right; white-space: nowrap; }
.st-table .is-end { width: 1%; text-align: right; white-space: nowrap; }
.st-table .st-group-row td { padding: 8px 20px; background: var(--st-ground); color: var(--st-muted); font-size: 12px; font-weight: 600; }
.st-table .st-group-row td b { margin-left: 6px; color: var(--st-faint); font-weight: 600; }
.st-who { display: flex; align-items: center; gap: 12px; min-width: 0; }
.st-who > span:last-child { display: grid; gap: 2px; min-width: 0; }
.st-who strong { display: flex; align-items: center; gap: 8px; min-width: 0; color: var(--st-ink); font-size: 13px; font-weight: 600; }
.st-who strong > span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.st-who small { overflow: hidden; color: var(--st-muted); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.st-avatar { display: grid; flex: none; width: 32px; height: 32px; place-items: center; border-radius: 50%; background: #edf1f6; color: #4b6283; font-size: 11px; font-weight: 750; }
.st-avatar.tint-blue { background: #e8effa; color: #2a5896; }
.st-avatar.tint-green { background: #e4f4ec; color: #12704a; }
.st-avatar.tint-purple { background: #f0eafa; color: #63428f; }
.st-avatar.tint-amber { background: #fcf1db; color: #8a5709; }
.st-avatar .icon { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

.st-title:focus, .st-title:focus-visible { outline: none; box-shadow: none; }

/* Profil, as Notion's account settings: no card; the parts of the page each under a hairline, the first under the
   page's name; the person's mark, then the email and the name, then the deletion row. */
.st-flat-section { padding: 24px 0; border-top: 1px solid var(--st-line); }
.st-page > .st-head:has(+ .st-flat-section) { margin-bottom: 0; padding-bottom: 20px; }
.st-avatar.is-large { width: 64px; height: 64px; background: #f0e6d5; color: #6c512b; font-size: 20px; }
.st-profile-info { display: grid; gap: 20px; }
.st-profile-value { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px; min-width: 0; color: var(--st-ink); font-size: 15px; line-height: 1.5; }
.st-profile-value > span { min-width: 0; overflow-wrap: anywhere; }
.st-profile-delete { padding: 12px 0; }
.st-profile-delete > .st-row { width: calc(100% + 24px); margin: 0 -12px; padding: 12px; border-radius: 8px; }
.st-row.is-done .st-row-copy > strong { color: var(--st-green); }
/* The page's foot: Simpan and Batal at the bottom of the screen with a hairline over them, as Notion's Update and
   Cancel; the page's ground and the hairline run under the whole content area. */
.st-page.has-foot { display: flex; flex-direction: column; min-height: 100dvh; padding-bottom: 0; }
.st-page-foot { position: sticky; z-index: 2; bottom: 0; display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding: 16px 0; border-image: linear-gradient(var(--st-line) 0 1px, #f8f8f7 1px) fill 0 / 0 / 0 100vmax; }
.st-profile-delete { margin-bottom: 24px; }
.st-profile-delete > .st-row { flex-wrap: nowrap; }

/* Two columns: a page's parts stand side by side, as the Dashboard's widgets do, instead of one under another. The
   page's name and its banners run over both. A part with no name of its own starts level with its neighbour's card. */
/* pg (foundation): neutralised — the settings frame is one column; was:
.st-page:is([data-settings-page="bisnis"], [data-settings-page="account"], [data-settings-page="account_security"]),
.st-page[data-settings-page="koneksi"] .st-koneksi,
.st-page[data-settings-page="plan"] .lb-plans,
.st-page[data-settings-page="payment_methods"] .lacak-billing { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; align-items: start; align-content: start; } */
.st-page[data-settings-page] .st-koneksi > .st-section + .st-section, .st-page[data-settings-page] .lb-plans > * + *, .st-page[data-settings-page="payment_methods"] .lacak-billing > * + *, .st-page:is([data-settings-page="bisnis"], [data-settings-page="account"], [data-settings-page="account_security"], [data-settings-page="organization"]) > * + * { margin-top: 18px; }
.st-page:is([data-settings-page="bisnis"], [data-settings-page="account"], [data-settings-page="account_security"]) > :is(.st-head, .st-back, .lacak-banner-slot) { grid-column: 1 / -1; }
.st-page:is([data-settings-page="bisnis"], [data-settings-page="account"], [data-settings-page="account_security"]) > .st-head { margin-bottom: 0; }
:is(.st-koneksi, .lb-plans, .lacak-billing) > :is(.st-section, .st-card) + :is(.st-section, .st-card),
.st-page[data-settings-page="koneksi"] .st-koneksi .st-section + .st-section,
.st-page[data-settings-page="bisnis"] > .st-card + .st-card,
.st-page[data-settings-page="account_security"] > .st-section + .st-section { margin-top: 0; }
/* A section with a name is one widget, as the Dashboard's are: its name and its action in the card's head, its rows
   under it; its own cards lose their frame inside it. */
.st-page .st-section:has(> .st-section-head) { overflow: hidden; border: 1px solid var(--st-line); border-radius: 12px; background: #fff; }
.st-page .st-section:has(> .st-section-head) > .st-section-head { align-items: center; min-height: 56px; margin: 0; padding: 10px 20px; border-bottom: 1px solid var(--st-rule); }
.st-page .st-section:has(> .st-section-head) > :is(.st-card, .lb-plan) { border: 0; border-radius: 0; }
.st-page .st-section:has(> .st-section-head) > .st-card + .st-card { margin-top: 0; border-top: 1px solid var(--st-rule); }
.st-card { border-radius: 12px; }
/* Organisasi: its details on the left, the time zone and the currency they give on the right. */
/* pg (foundation): neutralised — the settings frame is one column; was:
.st-page[data-settings-page="organization"] { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; align-items: start; align-content: start; } */

.st-page[data-settings-page="organization"] > .st-head { grid-column: 1 / -1; margin-bottom: 0; }
.st-page[data-settings-page="organization"] > .st-card + .st-card { margin-top: 0; }
.st-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; padding: 20px; }
.st-fact { display: grid; gap: 4px; min-width: 0; }
.st-fact > span { color: var(--st-muted); font-size: 12px; }
.st-fact > b { color: var(--st-ink); font-size: 18px; font-weight: 700; overflow-wrap: anywhere; }
/* Umum: the Bisnis's icon beside its name; Target ROAS as a widget with its value. */
.st-umum-form { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: end; gap: 16px 18px; }
.st-umum-form > .st-form-foot { grid-column: 1 / -1; margin-top: 0; }
.st-big-value { padding: 18px 20px; color: var(--st-navy); font-size: 22px; font-weight: 700; letter-spacing: -.01em; }
.st-big-value.is-none { color: var(--st-muted); font-size: 15px; font-weight: 600; }
/* Profil: the person on the left, their language and the deletion request on the right. */
/* pg (foundation): neutralised placement in the old two-column grid: .st-page[data-settings-page="account"] > .st-profile-info { grid-column: 1; grid-row: 2 / span 2; } */
/* Profil's parts as cards, as every other page's. */
.st-page[data-settings-page="account"] { column-gap: 18px; row-gap: 18px; }
.st-page[data-settings-page="account"] > .st-head { padding-bottom: 0; }
.st-page[data-settings-page="account"] > .st-flat-section { margin: 0; padding: 20px; border: 1px solid var(--st-line); border-radius: 12px; background: #fff; }
.st-page[data-settings-page="account"] > .st-profile-delete { padding: 8px 20px; }
/* pg (foundation): neutralised placement in the old two-column grid: .st-page[data-settings-page="account"] > .st-profile-language { grid-column: 2; grid-row: 2; } */
/* pg (foundation): neutralised placement in the old two-column grid: .st-page[data-settings-page="account"] > .st-profile-delete { grid-column: 2; grid-row: 3; } */
/* Paket: the subscription and its price on the left; its quota, its period and cancelling on the right. */
/* pg (foundation): neutralised placement in the old two-column grid: .st-page[data-settings-page="plan"] .lb-plans > .st-section:first-child { grid-column: 1; grid-row: 1 / span 2; } */
/* pg (foundation): neutralised placement in the old two-column grid: .st-page[data-settings-page="plan"] .lb-plans > .st-section:nth-child(2) { grid-column: 2; grid-row: 1; } */
/* pg (foundation): neutralised placement in the old two-column grid: .st-page[data-settings-page="plan"] .lb-plans > .lb-plan-foot { grid-column: 2; grid-row: 2; margin-top: 0; } */
/* Metode pembayaran: the methods on the left, Tagih otomatis on the right. */
/* pg (foundation): neutralised placement in the old two-column grid: .st-page[data-settings-page="payment_methods"] .lacak-billing > .lb-methods { grid-column: 1; grid-row: 1; } */
/* pg (foundation): neutralised placement in the old two-column grid: .st-page[data-settings-page="payment_methods"] .lacak-billing > .lb-card-note { grid-column: 1; grid-row: 2; } */
/* pg (foundation): neutralised placement in the old two-column grid: .st-page[data-settings-page="payment_methods"] .lacak-billing > .lb-auto-card { grid-column: 2; grid-row: 1; margin-top: 0; } */
@media (max-width: 1080px) {
  .st-page:is([data-settings-page="bisnis"], [data-settings-page="account"], [data-settings-page="account_security"]),
  .st-page[data-settings-page="koneksi"] .st-koneksi,
  .st-page[data-settings-page="plan"] .lb-plans,
  .st-page[data-settings-page="payment_methods"] .lacak-billing { grid-template-columns: minmax(0, 1fr); }
  .st-page[data-settings-page="account"] > *,
  .st-page[data-settings-page="plan"] .lb-plans > *,
  .st-page[data-settings-page="payment_methods"] .lacak-billing > * { grid-column: 1; grid-row: auto; }
  .st-page[data-settings-page="organization"] { grid-template-columns: minmax(0, 1fr); }
}

/* A list's next page: its loading row stands where the rows will arrive. */
.st-loading { display: flex; align-items: center; gap: 8px; min-height: 52px; padding: 0 20px; color: var(--st-muted); font-size: 12.5px; }
.st-arrived { animation: lacak-fade-in 180ms linear both; }

/* A row an action just changed washes once, as Pelanggan's do. */
.st-fresh { animation: st-fresh 1.2s ease-out both; }
@keyframes st-fresh { 0%, 35% { background-color: #fff5d6; } 100% { background-color: transparent; } }

/* The kit's menu: the mockup's menu frame without its name on the desktop, where its ⋯ says what it is. */
.inbox-menu.st-menu:not(.is-sheet) .inbox-menu-head { display: none; }
.inbox-menu.st-menu:not(.is-sheet) .inbox-menu-list { padding: 5px; }
.st-menu .st-menu-option { min-height: 36px; }
.st-menu .st-menu-option.is-danger b { color: #a3262d; }
.st-menu .st-menu-option:disabled { opacity: .45; cursor: default; }

@media (max-width: 720px) {
  /* Under the phone's bar, the page's foot still meets the bottom of the screen. */
  .st-page.has-foot { min-height: calc(100dvh - 54px); }
}
@media (max-width: 640px) {
  .st-page, .st-page.is-wide { padding: 22px 16px 64px; }
  .st-page.has-foot { padding-bottom: 0; }
  .st-title { font-size: 21px; }
  .st-head { flex-direction: column; align-items: flex-start; gap: 14px; min-height: 0; margin-bottom: 22px; }
  .st-row { flex-wrap: wrap; padding: 14px 16px; }
  .st-row + .st-row::before { right: 16px; left: 16px; }
  .st-row-control { max-width: 100%; }
  .st-row:not(.st-row-button) .st-row-control:not(:has(.st-icon-btn:only-child)) { flex-basis: 100%; justify-content: flex-start; margin-left: calc(var(--st-mark, 0px)); }
  .st-row:has(.st-row-mark) { --st-mark: 50px; }
  /* A row with a mark keeps its mark beside its words however long they are, its control under the words, a lone ⋯ at
     the row's right. */
  .st-row:has(> .st-row-mark):not(.st-row-button) { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; align-items: center; gap: 10px 14px; }
  .st-row:has(> .st-row-mark):not(.st-row-button) > .st-row-mark { grid-column: 1; grid-row: 1; align-self: start; }
  .st-row:has(> .st-row-mark):not(.st-row-button) > .st-row-copy { grid-column: 2 / 4; grid-row: 1; }
  .st-row:has(> .st-row-mark):not(.st-row-button) > .st-row-control:not(:has(.st-icon-btn:only-child)) { grid-column: 2 / 4; margin-left: 0; }
  .st-row:has(> .st-row-mark):not(.st-row-button) > .st-row-copy:has(+ .st-row-control > .st-icon-btn:only-child) { grid-column: 2; }
  .st-row:has(> .st-row-mark):not(.st-row-button) > .st-row-control:has(> .st-icon-btn:only-child) { grid-column: 3; grid-row: 1; }
  .st-pair { grid-template-columns: 1fr; }
  .st-form-card { padding: 16px; }
  .st-section-head { flex-wrap: wrap; align-items: flex-start; }
  /* What stands at a section's right wraps under its name rather than past the screen's edge. */
  .st-section-actions { flex: 0 1 auto; flex-wrap: wrap; min-width: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .st-page *, .st-menu * { animation: none !important; transition: none !important; }
}
/* Profil: who they are spans both rows on the left; Bahasa and the deletion request stand one under the other. */
.st-page[data-settings-page="account"] { grid-template-rows: auto auto 1fr; }
.st-page[data-settings-page="account"] > .st-profile-delete { align-self: start; }
@media (max-width: 1080px) { .st-page[data-settings-page="account"] { grid-template-rows: none; } }
