/* Кабинет: отдельный слой. Лендинг и публичные витрины его не подключают. */
.account-page {
    --paper: #f5f7f6; --ink: #263a34; --green: #116466;
    --muted: #60716b; --line: #dfe7e2; --serif: Arial, Helvetica, sans-serif;
    --workspace-surface: #fff; --workspace-soft: #edf4f0;
    --workspace-danger: #a43138; --workspace-radius: 16px;
    background: var(--paper); color: var(--ink); line-height: 1.55;
}
.account-shell { display: grid; grid-template-columns: 224px minmax(0, 1fr); min-height: 100dvh; }
.account-sidebar { position: sticky; top: 0; height: 100dvh; display: flex; flex-direction: column; gap: 26px; padding: 28px 18px 18px; background: #fff; border-right: 1px solid var(--line); min-width: 0; overflow-y: auto; }
.account-logo { display: flex; align-items: center; gap: 9px; color: var(--ink); text-decoration: none; font-size: 25px; font-weight: 700; letter-spacing: -.8px; flex-wrap: wrap; }
.account-logo > span:first-child { display: grid; place-items: center; width: 35px; height: 35px; background: var(--green); color: #fff; border-radius: 11px; letter-spacing: -1px; }
.account-logo .account-logo-note { width: 100%; padding-left: 44px; color: var(--muted); font-size: 11px; font-weight: 400; letter-spacing: 1px; margin-top: -7px; }
.sidebar-nav { display: grid; gap: 5px; }
.sidebar-nav a { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 44px; padding: 11px 12px; text-decoration: none; font-size: 14px; border-radius: 9px; }
.sidebar-nav a:hover { background: var(--paper); }
.sidebar-nav a[aria-current=page] { background: #e8f2ef; color: #0e5557; font-weight: 600; }
.sidebar-nav a > span { font-size: 18px; }
.sidebar-store { display: grid; gap: 7px; border-top: 1px solid var(--line); padding: 20px 12px 0; overflow-wrap: anywhere; }
.sidebar-store > span { color: var(--muted); font-size: 11px; letter-spacing: .5px; }
.sidebar-store > strong { font-size: 14px; }
.sidebar-store-nav { margin-top: -17px; }
.sidebar-hint { margin-top: auto; padding: 16px 12px; color: var(--muted); font-size: 12px; }
.sidebar-hint strong { color: var(--ink); font-weight: 600; }
.sidebar-hint p { margin: 7px 0 0; }
.sidebar-account { border-top: 1px solid var(--line); padding-top: 12px; }
.user-avatar { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--workspace-soft); color: var(--green); flex-shrink: 0; }
.user-name { flex: 1; min-width: 0; overflow-wrap: anywhere; font-size: 14px; }
.account-page .account-main { width: 100%; min-width: 0; max-width: 1680px; padding: 24px clamp(20px, 3vw, 48px) 64px; }
.account-topbar { min-height: 30px; display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 34px; font-size: 12px; color: var(--muted); }
.account-topbar > span { min-width: 0; overflow-wrap: anywhere; }
.account-topbar strong { font-weight: 400; color: var(--ink); }
.account-topbar > a { white-space: nowrap; text-decoration: none; }
.account-topbar > a:hover { text-decoration: underline; }
.account-page .account-main h1 { font-size: clamp(28px, 3vw, 40px); letter-spacing: -1.2px; font-weight: 600; line-height: 1.15; margin-bottom: 12px; }
.account-page .account-main h2 { font-size: 22px; font-weight: 600; letter-spacing: -.5px; line-height: 1.3; }
.account-page .account-main h3 { font-weight: 600; }
.account-page .eyebrow { color: var(--muted); font-size: 10px; letter-spacing: 1.8px; margin-bottom: 12px; }
.workspace-heading { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.workspace-heading > div { min-width: 0; }
.workspace-heading p:last-child { margin-bottom: 0; }
.workspace-heading > .button { flex-shrink: 0; }
.workspace-back { font-size: 13px; margin-bottom: 22px; }
.workspace-back a { text-decoration: none; color: var(--muted); }
.workspace-back a:hover { color: var(--ink); text-decoration: underline; }
.account-page .button { min-height: 44px; padding: 11px 18px; border: 1px solid transparent; border-radius: 9px; gap: 9px; background: var(--green); color: #fff; font: inherit; font-size: 14px; font-weight: 600; line-height: 1.4; cursor: pointer; text-align: center; }
.account-page .button:hover { background: #0c5153; }
.account-page .button--secondary { background: #fff; border-color: var(--line); color: var(--ink); }
.account-page .button--secondary:hover { background: var(--paper); border-color: #b9cdc3; }
.account-page .button--danger { background: var(--workspace-danger); color: #fff; }
.account-page .button--danger:hover { background: #82272c; }
.account-page .button:disabled { opacity: .5; cursor: not-allowed; }
.account-page :is(a, button, summary, input, select, textarea):focus-visible { outline: 3px solid #c88b52; outline-offset: 3px; }
.account-page .danger-link { color: var(--workspace-danger); }
.account-page .small { font-size: 12px; }
.account-page .account-message { max-width: none; border: 1px solid #cbded3; background: #eaf4ee; padding: 14px 18px; margin-bottom: 24px; border-radius: 10px; }
.account-page .account-message.error { border-color: #efc7c9; background: #fff3f3; }
.account-page .account-message.warning { border-color: #e9d9b7; background: #fff8e9; }
.trial-banner { display: flex; gap: 13px; align-items: center; padding: 15px 18px; margin-bottom: 26px; border: 1px solid var(--line); border-radius: 12px; background: #eef4f0; }
.trial-dot { width: 8px; height: 8px; flex-shrink: 0; border-radius: 50%; background: var(--green); }
.trial-banner-copy { flex: 1; display: flex; gap: 7px 14px; align-items: baseline; flex-wrap: wrap; min-width: 0; }
.trial-banner-copy strong { font-size: 13px; font-weight: 600; }
.trial-banner-copy > span { color: var(--muted); font-size: 12px; }
.action-menu { position: relative; }
.action-menu > summary { min-height: 44px; display: flex; align-items: center; justify-content: center; gap: 10px; padding: 9px 12px; border-radius: 9px; cursor: pointer; list-style: none; font-size: 13px; font-weight: 600; }
.action-menu > summary::-webkit-details-marker { display: none; }
.action-menu > summary:hover, .action-menu[open] > summary { background: var(--workspace-soft); }
.action-menu-content { position: absolute; top: calc(100% + 6px); right: 0; width: 224px; max-width: calc(100vw - 32px); padding: 7px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 12px 36px #243a3214; z-index: 30; font-size: 14px; }
.action-menu-content > a, .action-menu-content form > button { display: flex; align-items: center; min-height: 44px; padding: 10px 12px; border-radius: 7px; text-decoration: none; font: inherit; color: inherit; width: 100%; background: transparent; border: 0; cursor: pointer; text-align: left; overflow-wrap: anywhere; }
.action-menu-content > a:hover, .action-menu-content form > button:hover { background: var(--paper); }
.action-menu-content > a.danger-link { color: var(--workspace-danger); border-top: 1px solid var(--line); margin-top: 5px; border-radius: 0 0 7px 7px; }
.action-menu-content form { margin: 0; }
.account-user-menu > summary { padding: 6px; justify-content: flex-start; }
.account-user-menu .action-menu-content { bottom: calc(100% + 6px); top: auto; left: 0; right: auto; width: 100%; }
.trial-menu > summary { min-height: 36px; font-size: 12px; color: var(--green); }
.trial-conditions { width: 340px; padding: 20px; line-height: 1.6; }
.trial-conditions p { font-size: 13px; color: var(--muted); margin: 12px 0 0; }
.dashboard-stores { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 20px; align-items: start; }
.dashboard-store { min-width: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--workspace-radius); padding: 24px 24px 0; }
.store-card-heading { display: flex; align-items: center; gap: 13px; margin-bottom: 14px; }
.store-monogram { flex-shrink: 0; width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; background: #eaf1ee; color: #326456; font-size: 21px; font-weight: 600; }
.store-card-title { flex: 1; min-width: 0; }
.account-page .store-card-title h2 { font-size: 20px; letter-spacing: -.5px; margin: 0 0 3px; overflow-wrap: anywhere; }
.store-card-title h2 a { text-decoration: none; }
.store-card-title h2 a:hover { text-decoration: underline; }
.store-card-title > span { font-size: 12px; }
.status-badge { display: inline-flex; align-items: center; min-height: 26px; padding: 4px 9px; border-radius: 6px; color: #5c6862; background: #edf0ee; font-size: 11px; font-weight: 600; white-space: nowrap; vertical-align: middle; }
.status-badge--live { background: #e5f3eb; color: #28623e; }
.store-card-address { font-size: 13px; color: var(--muted); margin: 0 0 18px; overflow-wrap: anywhere; }
.store-next-step { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; background: #f6f8f6; border-radius: 10px; padding: 14px; margin: 18px 0; }
.step-mark { display: grid; place-items: center; background: #e7efea; color: #456b58; border-radius: 50%; width: 28px; height: 28px; font-size: 12px; flex-shrink: 0; }
.store-next-step p { flex: 1; min-width: 140px; margin: 0; font-size: 12px; }
.store-next-step p strong { display: block; font-size: 13px; font-weight: 600; }
.store-next-step p > span { display: block; margin-top: 3px; color: var(--muted); }
.store-next-step > a { font-size: 12px; font-weight: 600; text-decoration: none; color: var(--green); }
.store-live-note { margin: 20px 0; font-size: 13px; color: var(--muted); }
.store-live-note span { color: #3e8358; font-size: 10px; margin-right: 5px; }
.store-card-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; padding-bottom: 22px; }
.store-more { margin-left: auto; }
.store-card-folds { margin: 0 -24px; }
.account-disclosure { border-top: 1px solid var(--line); }
.account-disclosure > summary { display: flex; align-items: center; gap: 12px; min-height: 49px; padding: 13px 24px; list-style: none; cursor: pointer; font-size: 13px; font-weight: 500; }
.account-disclosure > summary::-webkit-details-marker, .settings-disclosure > summary::-webkit-details-marker { display: none; }
.account-disclosure > summary:hover { background: #f9fbf9; }
.account-disclosure:last-child > summary { border-radius: 0 0 16px 16px; }
.disclosure-hint { color: var(--muted); font-size: 11px; margin-left: auto; font-weight: 400; }
.disclosure-chevron { display: inline-block; transition: transform .15s ease; }
details[open] > summary .disclosure-chevron { transform: rotate(180deg); }
.disclosure-body { padding: 3px 24px 20px; }
.disclosure-body > p:last-child { margin: 12px 0 0; }
.disclosure-body progress { display: block; width: 100%; height: 7px; accent-color: var(--green); }
.compact-steps { list-style: none; padding: 8px 0 0; margin: 0; }
.compact-steps li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; font-size: 13px; padding: 9px 0; }
.compact-steps li > span { color: var(--muted); font-size: 12px; }
.compact-steps a { color: var(--green); }
.account-page .stats-periods { grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); gap: 12px; }
.account-page .stats-period { background: var(--paper); border: 0; border-radius: 9px; padding: 14px; font-size: 12px; }
.account-page .stats-period h3 { font-size: 13px; margin: 0 0 12px; }
.stats-period dl { margin: 0; }
.stats-period dl > div { display: flex; justify-content: space-between; gap: 12px; margin-top: 9px; }
.stats-period dd { margin: 0; font-weight: 600; }
.workspace-empty { grid-column: 1 / -1; display: flex; align-items: center; flex-direction: column; gap: 18px; padding: 64px 24px; text-align: center; background: #fff; border: 1px dashed #cbd8d0; border-radius: var(--workspace-radius); }
.empty-mark { display: grid; place-items: center; width: 56px; height: 56px; background: var(--workspace-soft); color: var(--green); border-radius: 16px; font-size: 30px; }
.workspace-empty h2, .workspace-empty p { margin: 0; }
.workspace-empty p { max-width: 440px; color: var(--muted); }
.workspace-empty--action { color: inherit; text-decoration: none; cursor: pointer; transition: background-color 160ms ease, border-color 160ms ease; }
.workspace-empty--action:hover, .workspace-empty--action:focus-visible { background: #f6faf8; border-color: #99b9aa; }
.account-page .workspace-empty--action:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { .workspace-empty--action { transition: none; } }
.store-shortcuts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 16px; margin-bottom: 28px; }
.store-shortcuts > a { display: grid; gap: 8px; padding: 22px; border: 1px solid var(--line); background: #fff; border-radius: 13px; text-decoration: none; }
.store-shortcuts > a:hover { border-color: #9abeb0; }
.store-shortcuts strong { display: flex; justify-content: space-between; gap: 18px; font-size: 16px; font-weight: 600; }
.store-shortcuts > a > span { color: var(--muted); font-size: 13px; }
.manage-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(280px, 1fr); align-items: start; gap: 24px; }
.settings-disclosure, .workspace-panel { min-width: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--workspace-radius); }
.settings-disclosure > summary { display: flex; align-items: center; justify-content: space-between; padding: 23px; gap: 18px; min-height: 82px; list-style: none; cursor: pointer; }
.settings-disclosure > summary strong { display: block; font-size: 18px; font-weight: 600; }
.settings-disclosure > summary .muted { display: block; font-size: 13px; margin-top: 4px; }
.settings-disclosure-body { padding: 0 24px 24px; }
.manage-side { display: grid; gap: 18px; }
.workspace-panel { padding: 24px; }
.workspace-panel p { font-size: 14px; color: var(--muted); }
.account-page .workspace-panel h2 { font-size: 18px; margin-bottom: 16px; }
.panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.account-page .panel-heading h2 { margin: 0; }
.account-page .publication-panel .account-form { margin: 20px 0 0; }
.store-danger-panel .danger-link { font-size: 13px; }
.account-page .store-danger-panel h2 { font-size: 15px; }
.account-page .account-form { max-width: 720px; }
.account-page .store-settings-form { max-width: none; margin: 0; }
.account-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 18px; margin-bottom: 24px; }
.account-field { min-width: 0; }
.account-field--wide { grid-column: 1 / -1; }
.account-page .account-form .is-recommended-empty > input:not([type=hidden]):not([type=checkbox]):not([type=radio]),
.account-page .account-form .is-recommended-empty > :is(select, textarea) { border-color: #d6b56c; }
.recommended-field-note { display: block; margin-top: 6px; font-size: 12px; line-height: 1.4; color: #85652d; }
.store-recommendations { margin: 0 0 18px; padding: 10px 12px; border: 1px solid #e9d9b7; border-radius: 8px; background: #fff8e9; color: #6f5b36; font-size: 13px; line-height: 1.5; overflow-wrap: anywhere; }
.recommended-field-note[hidden], .store-recommendations[hidden] { display: none; }
.account-page .account-form input:not([type=hidden]):not([type=checkbox]):not([type=radio]), .account-page .account-form :is(select, textarea) { border: 1px solid #cdd9d1; border-radius: 8px; background: #fff; padding: 11px 12px; color: var(--ink); min-height: 44px; font-size: 15px; }
.account-page .account-form label { font-size: 13px; font-weight: 600; }
.account-page .account-form .helptext { color: var(--muted); font-size: 12px; line-height: 1.5; }
.account-page .account-form input:disabled { background: #f4f7f5 !important; color: var(--muted); }
.account-page .account-form input:is([type=checkbox], [type=radio]) { width: 18px; height: 18px; accent-color: var(--green); }
.account-page .store-panel { max-width: none; }
.account-page .store-card { background: #fff; border-color: var(--line); border-radius: 13px; }
.delete-store-panel { background: #fff; border: 1px solid #ebd5d5; border-radius: 16px; padding: clamp(24px, 4vw, 42px); max-width: 760px; }
.danger-kicker { display: block; font-size: 11px; letter-spacing: 1px; text-transform: uppercase; color: var(--workspace-danger); margin-bottom: 15px; }
.deletion-summary { display: flex; gap: 24px; padding: 17px 20px; background: #fcf5f5; border-radius: 9px; margin-block: 24px; font-size: 14px; }
.deletion-summary strong { margin-left: 10px; }
.account-page .delete-store-form { margin: 28px 0 0; }
.account-page .confirmation-check { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 26px; font-size: 14px; font-weight: 400; cursor: pointer; }
.confirmation-check input { flex-shrink: 0; margin-top: 3px; }
.account-shell--guest { display: block; }
.account-shell--guest .account-main { max-width: 680px; margin-inline: auto; }
.catalog-workspace .catalog-toolbar { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-bottom: 24px; }
.catalog-workspace .catalog-toolbar .action-menu > summary { background: #fff; border: 1px solid var(--line); }
.catalog-category-disclosure { background: #fff; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 26px; }
.catalog-category-disclosure > summary { border-radius: 12px; padding-inline: 20px; }
.catalog-category-disclosure .disclosure-body { padding: 0 20px 18px; }
.catalog-workspace .catalog-categories { margin: 8px 0 16px; }
.catalog-workspace .catalog-categories li { padding-block: 10px; font-size: 14px; }
.catalog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 16px; align-items: start; }
.catalog-workspace .catalog-card { min-width: 0; padding: 18px; background: #fff; border-radius: 13px; gap: 16px; }
.catalog-workspace .catalog-photo { width: 82px; height: 90px; border-radius: 9px; }
.catalog-workspace .catalog-card h3 { font-size: 16px; overflow-wrap: anywhere; }
.catalog-price { font-size: 17px; font-weight: 600; }
.catalog-workspace .catalog-actions { margin-top: 12px; gap: 12px; font-size: 12px; }
.catalog-workspace .catalog-actions form { gap: 7px; }
.catalog-workspace .catalog-actions label { width: 100%; color: var(--muted); font-size: 11px; }
.catalog-workspace .catalog-actions select { min-height: 36px; background: #fff; border-color: var(--line); font-size: 12px; padding: 7px; }
.catalog-workspace .catalog-actions .button { min-height: 36px; padding: 8px 12px; font-size: 12px; }
@media (min-width: 1700px) { .account-shell { grid-template-columns: 244px minmax(0, 1fr); } }
@media (max-width: 1100px) { .manage-grid { grid-template-columns: 1fr; } .manage-side { grid-template-columns: repeat(2, minmax(0, 1fr)); } .account-fields { grid-template-columns: 1fr; } }
@media (max-width: 800px) {
    .account-shell { display: block; }
    .account-sidebar { position: static; height: auto; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 16px 20px; border-right: 0; border-bottom: 1px solid var(--line); overflow: visible; }
    .account-logo { font-size: 23px; }
    .account-logo .account-logo-note, .sidebar-hint, .sidebar-store { display: none; }
    .sidebar-nav { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px; }
    .sidebar-nav a { min-height: 40px; padding: 9px 12px; font-size: 13px; }
    .sidebar-store-nav { margin-top: 0; border-top: 1px solid var(--line); padding-top: 10px; }
    .sidebar-account { grid-column: 2; grid-row: 1; padding: 0; border: 0; }
    .user-name { max-width: 110px; }
    .account-user-menu .action-menu-content { top: calc(100% + 6px); bottom: auto; right: 0; left: auto; width: 224px; }
    .account-page .account-main { padding: 20px 20px 48px; }
    .account-topbar { margin-bottom: 25px; }
    .workspace-heading { align-items: flex-start; gap: 18px; flex-wrap: wrap; }
    .workspace-heading > .button { flex-shrink: 1; }
    .trial-banner { gap: 10px; padding: 12px 14px; }
    .dashboard-store { padding: 20px 20px 0; }
    .store-card-folds { margin-inline: -20px; }
    .account-disclosure > summary { padding-inline: 20px; }
    .manage-side { grid-template-columns: 1fr; }
}
@media (max-width: 440px) {
    .account-sidebar { padding-inline: 16px; }
    .account-page .account-main { padding-inline: 16px; }
    .account-page .account-main h1 { font-size: 29px; }
    .account-topbar { gap: 10px; font-size: 11px; }
    .trial-banner-copy { display: grid; gap: 4px; }
    .trial-dot { display: none; }
    .trial-conditions { position: fixed; top: 100px; left: 16px; right: 16px; width: auto; max-height: 65dvh; overflow: auto; }
    .store-card-heading { flex-wrap: wrap; }
    .store-card-heading .status-badge { margin-left: 59px; margin-top: -5px; }
    .store-card-title { flex-basis: calc(100% - 65px); }
    .store-card-actions { gap: 8px; }
    .store-card-actions > .button { flex: 1; padding-inline: 12px; }
    .store-more { margin-left: 0; }
    .store-next-step > a { margin-left: 40px; }
    .disclosure-hint { font-size: 10px; }
    .account-page .account-form input:not([type=checkbox]):not([type=radio]), .account-page .account-form :is(select, textarea) { font-size: 16px; }
    .catalog-workspace .catalog-card { flex-direction: row; }
    .catalog-workspace .catalog-photo { width: 64px; height: 74px; }
    .account-page .catalog-card-body { min-width: 0; width: auto; }
    .account-page .catalog-actions { align-items: flex-start; }
    .catalog-workspace .catalog-actions form { flex-direction: column; width: 100%; align-items: stretch; }
    .deletion-summary { flex-wrap: wrap; gap: 10px 20px; }
    .delete-store-form .form-actions { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) { .disclosure-chevron { transition: none; } }

/* Мастер черновика: один следующий шаг, без второго скрытого чек-листа. */
.launch-skip-form { margin: 12px 0 0; }
.quiet-button { border: 0; padding: 10px 0; background: transparent; color: var(--green); font: inherit; font-size: 12px; cursor: pointer; min-height: 40px; text-align: left; }
.quiet-button:hover { text-decoration: underline; }
.draft-secondary { display: flex; justify-content: flex-end; padding-bottom: 12px; }
.draft-secondary .store-more { margin: 0; }
.publication-preview { display: block; font-size: 13px; margin-bottom: 15px; }
.store-creation-form .store-details { margin-top: 22px; padding: 20px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.store-creation-form .store-details > summary { margin-bottom: 12px; }

/* График хранится прежним текстом; интерактивный редактор — только представление. */
.working-hours { min-width: 0; }
.working-hours [hidden] { display: none !important; }
.hours-summary { display: flex; gap: 14px; align-items: flex-start; flex-wrap: wrap; padding: 14px; border: 1px solid var(--line); border-radius: 9px; background: #f8faf8; }
.hours-summary > p { flex: 1; min-width: 170px; font-size: 14px; white-space: pre-line; margin: 0; line-height: 1.65; }
.hours-edit { padding: 4px 0; border: 0; background: transparent; color: var(--green); font: inherit; font-size: 13px; cursor: pointer; min-height: 36px; }
.hours-edit:hover { text-decoration: underline; }
.hours-editor { padding: 16px; margin-top: 10px; border: 1px solid #b9d1c3; border-radius: 10px; background: #fff; }
.hours-editor-heading { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: baseline; margin-bottom: 15px; font-size: 14px; }
.hours-copy { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; margin-bottom: 16px; padding: 12px; border-radius: 8px; background: var(--paper); }
.hours-copy > label { flex: 1; min-width: 150px; margin: 0 !important; }
.hours-copy select { margin-top: 6px; }
.hours-copy > .button { font-size: 12px; }
.hours-day { display: grid; grid-template-columns: minmax(115px, 1.2fr) minmax(85px, 1fr) 10px minmax(85px, 1fr); gap: 8px; align-items: center; border: 0; border-bottom: 1px solid var(--line); min-inline-size: 0; margin: 0 0 10px; padding: 0 0 12px; }
.hours-day legend { font-size: 13px; font-weight: 600; padding: 0 0 7px; }
.hours-day > label { margin: 0 !important; min-width: 0; }
.account-page .account-form .hours-day :is(input, select) { width: 100%; min-width: 0; padding: 8px; min-height: 40px; font-size: 13px; }
.hours-time-dash { color: var(--muted); font-size: 12px; }
.hours-error { color: #9b2933; font-size: 13px; padding: 10px; background: #fff3f3; border-radius: 7px; }
.hours-preserve-note { padding: 12px; border: 1px solid #e7d9bb; background: #fff9eb; border-radius: 8px; margin-bottom: 14px; font-size: 12px; }
.hours-preserve-note p { margin-bottom: 8px; }
.hours-preserve-note label { display: flex !important; align-items: flex-start; gap: 9px; }
.hours-preserve-note input { flex-shrink: 0; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
@media (max-width: 500px) {
    .hours-editor { padding: 12px; }
    .hours-day { grid-template-columns: minmax(0, 1fr) 10px minmax(0, 1fr); }
    .hours-mode-label { grid-column: 1 / -1; }
    .account-page .account-form .hours-day :is(input, select) { font-size: 16px; }
    .hours-copy > .button { width: 100%; }
}
/* Единая загрузка прайса и редактируемый предпросмотр. */
.import-methods { margin: 16px 0; }
.import-upload-panel { margin: 20px 0; }
.import-upload-panel > summary { cursor: pointer; font-weight: 600; padding: 12px 0; }
.import-dropzone { padding: 28px; border: 2px dashed #a8b9ad; border-radius: 16px; background: #f8faf8; }
.import-dropzone label { display: block; font-size: 18px; margin-bottom: 16px; }
.import-dropzone input { max-width: 100%; }
.import-stats { display: flex; flex-wrap: wrap; gap: 12px 28px; padding: 16px 0; }
.import-table-option { display: block; margin: 16px 0; }
.import-table-option > span { display: block; margin: 6px 0 0 24px; }
.import-preview-heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 20px; }
.import-preview-heading h2 { margin: 0; }
.import-confirm-check { font-weight: 600; }
.import-attention { margin: 12px 0; padding: 10px 12px; border: 1px solid #e9d9b7; border-radius: 8px; background: #fffcf5; font-size: 13px; }
.import-attention[hidden] { display: none; }
.import-attention > p { margin: 0; }
.import-ai-help > summary { min-height: 44px; display: flex; align-items: center; color: var(--green); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.import-ai-item { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; padding: 10px 0; border-top: 1px solid var(--line); overflow-wrap: anywhere; }
.import-ai-item p { flex-basis: 100%; margin: 0; }
.import-check { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; min-width: 44px; cursor: pointer; font-size: 13px; line-height: 1.4; }
.import-check input { width: 18px; height: 18px; margin: 0; flex-shrink: 0; accent-color: var(--green); }
.import-check:has(input:disabled) { cursor: default; color: var(--muted); }
.import-table-scroll { min-width: 0; width: min(100%, var(--import-table-width, 54rem)); border: 1px solid var(--line); border-radius: 12px; }
.import-table { border-collapse: collapse; table-layout: fixed; width: 100%; }
.import-col-include { width: 4.7rem; }
.import-col-name { width: var(--import-name-width, auto); }
.import-col-price { width: 6.3rem; }
.import-col-unit { width: 6.2rem; }
.import-col-category { width: var(--import-category-width, auto); }
.import-col-availability { width: 8.8rem; }
.import-table th, .import-table td { padding: 8px 6px; text-align: left; vertical-align: top; overflow-wrap: anywhere; }
.import-table th { background: #f0f5f1; font-size: 12px; font-weight: 600; }
.import-table tbody { border-top: 1px solid var(--line); }
.import-table input:not([type=checkbox]), .import-table select, .import-table textarea { width: 100%; min-width: 0; min-height: 44px; padding: 8px; border: 1px solid #adbdb2; border-radius: 6px; box-sizing: border-box; font: inherit; font-size: 14px; }
.import-table textarea { display: block; resize: none; overflow: hidden; white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.45; }
.import-table .import-cell-name :is(input, textarea) { font-weight: 600; }
.import-table .import-cell-price input { font-variant-numeric: tabular-nums; }
.import-table .import-cell-include, .import-table th:first-child { text-align: center; }
.import-field-label, .import-check-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.import-row-review { background: #fff8e7; }
.import-note { margin: 6px 0 0; color: #85652d; font-size: 12px; line-height: 1.45; overflow-wrap: anywhere; }
.import-warning, .import-table .errorlist { color: #a12620; }
.import-table td:has(> .import-note:not([hidden])) > :is(input, select, textarea) { border-color: #d6b56c; }
.import-table :is(input, select, textarea).import-field-error { border-color: #a12620; background: #fff9f8; }
.import-table .errorlist[hidden], .import-note[hidden] { display: none; }
.import-table .errorlist { margin: 6px 0 0; padding-left: 16px; font-size: 12px; }
.import-table .import-row-details > td { padding: 0 8px; }
.import-row-feedback > :is(p, details, button) { margin: 0 0 10px; }
.import-row-feedback details { font-size: 13px; }
.import-row-feedback :is(summary, button) { min-height: 44px; cursor: pointer; }
.import-save { margin-top: 16px; padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: #fff; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.import-save h3, .import-save-status { margin: 0; }
.import-save > .button { min-height: 48px; }
@media (max-width: 1100px) {
    .import-table-scroll { width: 100%; border: 0; border-radius: 0; }
    .import-table, .import-table tbody, .import-table .import-row-details, .import-table .import-row-details > td { display: block; width: 100%; min-width: 0; box-sizing: border-box; }
    .import-table colgroup { display: none; }
    .import-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
    .import-table tbody { margin-bottom: 12px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
    .import-table .import-row-review { border-color: #e9d9b7; background: #fffcf5; }
    .import-product-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-areas: "name name" "price unit" "category category" "availability availability" "include include"; gap: 10px; }
    .import-table .import-product-fields > td { display: block; min-width: 0; padding: 0; text-align: left; }
    .import-cell-name { grid-area: name; }
    .import-cell-price { grid-area: price; }
    .import-cell-unit { grid-area: unit; }
    .import-cell-category { grid-area: category; }
    .import-cell-availability { grid-area: availability; }
    .import-cell-include { grid-area: include; }
    .import-field-label, .import-check-text { position: static; width: auto; height: auto; margin: 0; overflow: visible; clip-path: none; white-space: normal; }
    .import-field-label { display: block; margin-bottom: 4px; color: var(--muted); font-size: 12px; }
    .import-table input:not([type=checkbox]), .import-table select, .import-table textarea { font-size: 16px; }
    .import-table .import-cell-availability select { width: auto; max-width: 100%; min-width: 150px; }
    .import-check { font-size: 14px; }
    .import-table .import-row-details > td { padding: 0; }
    .import-row-feedback > :is(p, details, button) { margin: 8px 0 0; }
    .import-confirm-check { width: 100%; min-height: 48px; }
    .import-confirm-check input { width: 20px; height: 20px; }
    .import-save { gap: 10px; padding: 12px; }
    .import-save > .button { width: 100%; }
}
.catalog-grid > .workspace-empty { padding: 24px; min-height: 0; }

/* Step 3 shares the step 2 upload area. */
.photo-dropzone { min-width: 0; overflow-wrap: anywhere; margin-bottom: 20px; }
.photo-dropzone input[type="file"] { width: 100%; min-height: 48px; box-sizing: border-box; }
.photo-dropzone details { margin-top: 16px; }
@media (max-width: 430px) { .photo-dropzone { padding: 16px; } .photo-dropzone h2 { font-size: 22px; } }

/* First mobile iteration: only the owner's dashboard, not editor/import forms. */
@media (max-width: 800px) {
    .dashboard-page .account-sidebar { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
    .dashboard-page .account-logo { flex-wrap: nowrap; min-width: 0; min-height: 44px; }
    .dashboard-page .account-logo > span:first-child { flex-shrink: 0; }
    .dashboard-page .sidebar-account { min-width: 0; }
    .dashboard-page .account-user-menu > summary { min-height: 44px; gap: 6px; }
    .dashboard-page .user-name { max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .dashboard-page .sidebar-nav a { min-height: 44px; }
    .dashboard-page .account-topbar > a { display: inline-flex; align-items: center; min-height: 44px; }
    .dashboard-page .trial-banner { flex-wrap: wrap; }
    .dashboard-page .trial-menu { flex-basis: 100%; min-width: 0; }
    .dashboard-page .trial-menu > summary { min-height: 44px; justify-content: flex-start; }
    .dashboard-page .trial-conditions { position: static; width: 100%; max-width: 100%; max-height: none; padding: 16px; box-shadow: none; }
    .dashboard-page .dashboard-store { padding: 16px 16px 0; }
    .dashboard-page .store-card-heading { display: grid; grid-template-columns: 46px minmax(0, 1fr); align-items: start; gap: 10px 12px; }
    .dashboard-page .store-card-heading .status-badge { grid-column: 2; justify-self: start; margin: 0; }
    .dashboard-page .store-card-title h2 a { display: inline-flex; align-items: center; min-height: 44px; max-width: 100%; }
    .dashboard-page .store-card-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: stretch; }
    .dashboard-page .store-card-actions > .button { min-width: 0; overflow-wrap: anywhere; }
    .dashboard-page .store-card-actions .store-more { grid-column: 1 / -1; justify-self: start; margin-left: 0; }
    .dashboard-page .store-card-actions .store-more .action-menu-content { left: 0; right: auto; }
    .dashboard-page .store-card-folds { margin-inline: -16px; }
}
@media (max-width: 440px) {
    .dashboard-page .launch-nav-steps { grid-template-columns: minmax(0, 1fr); }
}

/* Owner-only team controls, using the existing disclosure and form components. */
.team-panel { margin-top: 24px; min-width: 0; }
.team-add-form { margin-bottom: 24px; }
.team-list { list-style: none; margin: 0; padding: 0; }
.team-member { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 20px; padding-block: 20px; border-top: 1px solid var(--line); }
.team-identity { display: grid; align-content: start; gap: 4px; min-width: 0; overflow-wrap: anywhere; }
.team-identity > span { color: var(--muted); font-size: 13px; }
.team-controls { display: grid; gap: 12px; min-width: 0; }
.team-controls form { margin: 0; }
.team-role-form { display: flex; align-items: flex-end; flex-wrap: wrap; gap: 10px; }
.team-role-form label { flex: 1 1 12rem; min-width: 0; font-size: 13px; overflow-wrap: anywhere; }
.team-role-form select { display: block; width: 100%; min-width: 0; min-height: 44px; margin-top: 6px; border: 1px solid #cdd9d1; border-radius: 8px; padding: 10px; background: #fff; color: var(--ink); font: inherit; }
@media (max-width: 800px) {
    .team-member { grid-template-columns: minmax(0, 1fr); gap: 12px; }
    .team-panel .settings-disclosure-body { padding-inline: 16px; }
    .team-panel :is(input:not([type=hidden]), select) { font-size: 16px !important; }
    .team-panel .button { max-width: 100%; overflow-wrap: anywhere; }
}
@media (max-width: 440px) {
    .team-role-form { display: grid; grid-template-columns: minmax(0, 1fr); }
    .team-panel .button { width: 100%; }
}

/* Long catalog data must wrap inside its existing desktop/mobile card. */
.catalog-categories li > span { min-width: 0; overflow-wrap: anywhere; }
.catalog-categories li > a { flex-shrink: 0; }
.catalog-card-body > .muted { overflow-wrap: anywhere; }

/* Mobile iteration 2: shared account navigation, editors and import controls. */
/* Reset fields keep 16px despite the more specific shared desktop input rule. */
@media (max-width: 800px) {
    .account-page.password-reset-page .account-form input:not([type=hidden]):not([type=checkbox]):not([type=radio]) { font-size: 16px; }
}
@media (max-width: 800px) {
    .account-page .account-sidebar { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
    .account-page .account-logo { flex-wrap: nowrap; min-width: 0; min-height: 44px; }
    .account-page .account-logo > span:first-child { flex-shrink: 0; }
    .account-page .sidebar-account { min-width: 0; }
    .account-page .account-user-menu > summary { min-height: 44px; gap: 6px; }
    .account-page .user-name { max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .account-page .sidebar-nav a { min-height: 44px; }
    .account-page .account-topbar > a { display: inline-flex; align-items: center; min-height: 44px; }
    .account-page .account-main > p { overflow-wrap: anywhere; }
    .account-page .account-main > a, .account-page .account-main > p > a { display: inline-flex; align-items: center; min-height: 44px; max-width: 100%; overflow-wrap: anywhere; }
    .account-page .account-form { min-width: 0; width: 100%; max-width: 100%; overflow-wrap: anywhere; }
    .account-page .account-form :is(p, label, .helptext, .errorlist) { min-width: 0; overflow-wrap: anywhere; }
    .account-page .account-form :is(input:not([type=hidden]), select, textarea) { min-width: 0; max-width: 100%; font-size: 16px; }
    .account-page .account-form input[type=file] { width: 100%; min-height: 48px; padding: 8px; }
    .account-page .account-main .button { min-width: 0; max-width: 100%; overflow-wrap: anywhere; }
    .account-page .account-form .form-actions > .button { flex: 1 1 14rem; }
    .account-page .hours-edit { min-height: 44px; }
    .account-page .account-form .hours-day :is(input, select) { min-height: 44px; font-size: 16px; }
    .account-page .catalog-workspace .workspace-heading > .action-menu { width: 100%; }
    .account-page .catalog-workspace .workspace-heading .action-menu-content { left: 0; right: auto; width: 100%; max-width: 100%; }
    .account-page .catalog-categories li { align-items: flex-start; }
    .account-page .catalog-categories li > a { display: inline-flex; align-items: center; min-height: 44px; }
    .account-page .catalog-card-body { min-width: 0; }
    .account-page .catalog-workspace .catalog-actions { width: 100%; align-items: stretch; }
    .account-page .catalog-workspace .catalog-actions > a { display: inline-flex; align-items: center; min-height: 44px; }
    .account-page .catalog-workspace .catalog-actions form { display: grid; grid-template-columns: minmax(0, 1fr); width: 100%; }
    .account-page .catalog-workspace .catalog-actions select { width: 100%; min-width: 0; max-width: 100%; min-height: 44px; font-size: 16px; }
    .account-page .catalog-workspace .catalog-actions .button { min-height: 44px; font-size: 14px; }
    .account-page .import-dropzone, .account-page .import-table-option { overflow-wrap: anywhere; }
    .account-page .import-table-scroll { max-width: 100%; }
}
@media (max-width: 440px) {
    .account-page .catalog-workspace .catalog-card { flex-direction: column; }
    .account-page .catalog-workspace .catalog-photo { width: 100%; height: 160px; }
    .account-page .catalog-workspace .catalog-card-body { width: 100%; }
    .account-page .account-form > .button, .account-page .import-methods .button { width: 100%; }
    .account-page .import-dropzone { padding: 16px; }
    .account-page .import-product-fields { grid-template-columns: minmax(0, 1fr); grid-template-areas: "name" "price" "unit" "category" "availability" "include"; }
}
