/* Customer workspace. Public website styles remain outside this surface. */
.account { --account-auth-width: 640px; --form-title-size: 21px; --form-title-gap: 20px; --form-block-gap: 20px; max-width: 1440px; margin: 0 auto; padding: 40px clamp(18px, 4vw, 58px) 72px; overflow: visible; }
.account-heading { padding: 32px; background: var(--navy); border-radius: var(--radius-lg); color: white; margin-bottom: var(--notification-gap); }
.account-heading h1 { font-size: clamp(28px, 4vw, 42px); line-height: 1.15; margin: 0; }
.account-heading .section-kicker { color: var(--orange); margin-bottom: 12px; }
.account-body { background: #f5f7fa; }
.account-topbar { height: 72px; padding: 0 32px; display: flex; align-items: center; gap: 32px; background: white; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.account-brand { display: inline-flex; align-items: center; gap: 24px; flex-shrink: 0; }
.account-brand img { display: block; }
.account-cabinet-link { border-left: 1px solid var(--line); padding-left: 24px; font-size: 14px; color: var(--muted); }
.account-support { display: flex; align-items: center; gap: 20px; margin-left: auto; font-size: 13px; }
.account-support > span { color: var(--muted); }
.account-support a { font-weight: 700; white-space: nowrap; }
.account-mobile-support { display: none; }
.account-site-link { font-size: 14px; color: var(--muted); white-space: nowrap; }
.account-site-link span { padding-left: 6px; }
.account-workspace { max-width: none; padding: 0; background: #f5f7fa; min-height: calc(100vh - 72px); --form-block-gap: 16px; --radius-sm: 8px; --radius-md: 12px; --control-border: #bdc7d4; --notification-gap: 20px; }
.account-shell { display: grid; grid-template-columns: 232px minmax(0, 1fr); align-items: start; }
.account-sidebar { position: sticky; top: 72px; min-height: calc(100vh - 72px); overflow: visible; z-index: 30; padding: 28px 18px 20px; display: flex; flex-direction: column; gap: 24px; background: white; border-right: 1px solid var(--line); }
.account-sidebar .account-company-form { gap: 8px; }
.account-sidebar .account-company-form label { color: var(--muted); font-size: 12px; font-weight: 400; }
.account-sidebar .account-company-form select { font-size: 13px; font-weight: 600; }
.account-sidebar .account-company-form button { justify-self: stretch; min-height: 36px; font-size: 12px; padding: 7px 10px; background: #f6f8fb; border-color: var(--line); }
.account-name { font-weight: 700; margin: 0; overflow-wrap: anywhere; font-size: 14px; }
.account-nav { display: grid; gap: 5px; }
.account-nav a { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: var(--radius-sm); font-size: 14px; font-weight: 600; color: #516078; }
.account-nav svg { flex-shrink: 0; }
.account-nav a[href]:hover { background: #f5f7fa; color: var(--navy); }
.account-nav a[aria-current] { background: #fff0e9; color: #ad3816; }
.account-profile { margin-top: auto; padding-top: 20px; border-top: 1px solid var(--line); }
.account-profile-link { display: block; min-height: 24px; color: inherit; text-decoration: none; }
.account-profile-link:hover .account-name { text-decoration: underline; }
.account-profile .account-small { margin: 4px 0 12px; font-size: 12px; overflow-wrap: anywhere; }
.account-content { min-width: 0; }
.account-workspace .account-content { padding: 28px 32px 56px; }
.account-page-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.account-page-heading h1 { font-size: clamp(24px, 2.3vw, 30px); line-height: 1.25; letter-spacing: -.6px; margin: 0; }
.account-page-heading .button { gap: 7px; min-height: 42px; box-shadow: none; }
.account-eyebrow { font-size: 12px; color: var(--muted); margin: 0 0 8px; }
.account-content:has(> .account-auth) { max-width: var(--account-auth-width); margin-inline: auto; }
.account-content > :is(.account-message, .account-warning) { margin-block: 0 var(--notification-gap); }
.account-card { border: 1px solid var(--line); border-radius: var(--radius-md); padding: 24px; background: white; }
.account-card + .account-card { margin-top: 20px; }
.account-card h2 { font-size: 21px; line-height: 1.3; margin: 0 0 20px; letter-spacing: -.25px; }
.account-card:has(form) > h2, .account form .account-card > h2 { font-size: var(--form-title-size); margin-bottom: var(--form-title-gap); }
.account-auth { max-width: var(--account-auth-width); margin: 0 auto; }
.account p { line-height: 1.5; }
.account label:where(:not(.account-order-main *)) { display: block; font-weight: 600; font-size: 13px; line-height: 1.5; }
.account label:where(:not(.account-order-main *)):has(> :is(input:not([type=checkbox]):not([type=radio]):not([type=hidden]), select, textarea)) { display: grid; gap: var(--form-field-gap); align-content: start; min-width: 0; }
.account input:not([type=checkbox]):not([type=radio]):not([type=hidden]):where(:not(.account-order-main *)), .account select, .account textarea { display: block; width: 100%; min-width: 0; border: 1px solid var(--control-border); border-radius: var(--radius-sm); min-height: 44px; padding: 10px 12px; margin: 0; background: white; color: var(--ink); font-size: 14px; font-weight: 400; }
.account input::placeholder { color: #7e8a9b; }
.account input:hover, .account select:hover, .account textarea:hover { border-color: #8b9ab0; }
.account select, .account [data-city-search], .account [data-picker-input] { appearance: none; -webkit-appearance: none; padding-right: 40px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23516078' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 18px; }
.account :is(a, button, input, select, textarea, summary):focus-visible { outline: 2px solid #7288a8; outline-offset: 2px; }
.account :is(input, select, textarea):focus { outline: none; border-color: #7288a8; box-shadow: 0 0 0 3px rgb(69 101 145 / 12%); }
.account select:active { border-color: #7288a8; }
.account input[type=checkbox] { width: 17px; height: 17px; margin-right: 7px; vertical-align: middle; accent-color: var(--orange-action); }
.account input[readonly], .account :disabled { opacity: .65; cursor: not-allowed; }
.account input[readonly] { background: #f6f8fb; }
.account textarea { resize: vertical; min-height: 100px; }
.account fieldset { display: grid; gap: var(--form-block-gap); min-width: 0; border: 1px solid var(--line); padding: 20px; border-radius: var(--radius-sm); margin: 0; align-content: start; }
.account legend { padding: 0 8px; font-size: 17px; font-weight: 700; }
.account-secondary { display: inline-flex; align-items: center; justify-content: center; background: white; border: 1px solid var(--control-border); color: var(--navy); border-radius: var(--radius-sm); padding: 10px 14px; min-height: 42px; font-size: 13px; line-height: 1.3; font-weight: 600; text-decoration: none; }
.account-secondary:hover { background: #f0f3f8; border-color: #8b9ab0; }
.account-secondary[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--orange); }
.account-quiet { background: none; border: 0; padding: 5px 0; font-size: 13px; color: var(--muted); text-align: left; }
.account-quiet:hover { color: var(--navy); text-decoration: underline; }
.account-danger:hover { color: #a33020; }
.account .button { box-shadow: none; }
.account .button:hover { transform: none; }
.account-categories { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px; margin: 16px 0; }
.account summary { cursor: pointer; }
.account-categories summary { padding: 8px 0; min-height: 36px; font-size: 14px; font-weight: 600; }
.account-category-group { padding-left: 12px; }
.account-auth .text-link { display: inline-block; }
.account-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--form-block-gap) 20px; }
.account-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 16px 0; }
.account-order-share { flex-basis: 100%; }
.account-order-actions { display: grid; justify-items: start; gap: 8px; white-space: nowrap; }
.account-message { padding: 14px 18px; border-radius: var(--radius-sm); border: 1px solid #a5cbb4; background: #eef7f1; color: #244c35; overflow-wrap: anywhere; font-size: 14px; }
.account-message-warning { border-color: #dcc185; background: #fff7e5; color: #614400; }
.account-message-error { border-color: #d59d94; background: #fff0eb; color: #8f2f21; }
.account input:not([type=hidden])[aria-invalid="true"], .account select[aria-invalid="true"], .account textarea[aria-invalid="true"] { border-color: #b34434; box-shadow: 0 0 0 1px #b34434; }
.account-field-error { display: block; margin: 0; color: #8f2f21; font-size: 13px; font-weight: 400; }
.account-warning { padding: 12px; border-radius: var(--radius-sm); background: #fff3d8; color: #614400; font-size: 13px; }
.account-warning a { text-decoration: underline; }
.account [hidden] { display: none !important; }
.account-list-card { padding: 20px; gap: 12px; }
.account-list-toolbar { display: grid; grid-template-columns: minmax(180px, 1fr) auto; align-items: end; gap: 16px; }
.account-list-toolbar .account-search { max-width: 540px; }
.account-list-help { font-size: 12px; color: var(--muted); }
.account-list-help summary { padding: 4px 0; }
.account-list-help p { margin: 8px 0 0; max-width: 800px; }
.account-table-wrap { max-width: 100%; overflow: auto; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.account-table-wrap:focus-visible { outline-offset: 3px; }
.account-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13px; line-height: 1.5; text-align: left; }
.account-table caption { text-align: left; padding: 12px 14px; font-size: 12px; color: var(--muted); }
.account-table th { background: #f6f8fb; color: #53637b; font-size: 12px; font-weight: 600; }
.account-table th, .account-table td { padding: 14px; border-bottom: 1px solid var(--line); vertical-align: top; min-width: 100px; }
.account-table tbody tr:hover td { background: #f8fafd; }
.account-table tr:last-child td { border-bottom: 0; }
.account-table a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: #b6c1d2; color: var(--navy); }
.account-table a:hover { color: var(--orange-text); }
.account-table th a { display: inline-block; text-decoration: none; }
.account-table td:first-child:not([colspan]), .account-table th:first-child { position: sticky; left: 0; z-index: 1; background: white; border-right: 1px solid var(--line); }
.account-table th:first-child { background: #f6f8fb; }
.account-table td:last-child { min-width: 120px; }
.account-orders th:last-child { width: 1%; }
.account-orders .account-secondary { white-space: nowrap; text-decoration: none; }
.account-orders td[data-label="Груз"] { overflow-wrap: anywhere; }
@media (min-width: 601px) { .account-orders td:first-child:not([colspan]), .account-orders th:first-child { width: 1%; min-width: 0; white-space: nowrap; } }
.account-table td:first-child { min-width: 170px; }
.account-shipments { min-width: 1100px; }
.account-shipments td:nth-child(2), .account-shipments td:nth-child(3) { min-width: 150px; max-width: 220px; }
.account-record-link { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.account-cell-title { display: block; font-size: 12px; font-weight: 600; }
.account-cell-note { display: block; color: var(--muted); font-size: 12px; line-height: 1.5; margin-top: 5px; overflow-wrap: anywhere; }
.account-date, .account-money { font-variant-numeric: tabular-nums; white-space: nowrap; }
.account-money { display: block; margin-bottom: 7px; }
.account-badge { display: inline-flex; align-items: center; width: fit-content; padding: 3px 8px; border-radius: 5px; background: #edf1f7; color: #51617b; font-size: 11px; font-weight: 600; line-height: 1.5; white-space: nowrap; }
.account-badge-success, .account-order-status-2 { background: #eaf4ed; color: #28613e; }
.account-badge-warning, .account-order-status-0 { background: #fff4df; color: #805a14; }
.account-order-status-1 { background: #eaf0fc; color: #315b97; }
.account-cargo-numbers { display: grid; gap: 3px; margin: 0; white-space: nowrap; }
.account-cargo-numbers div { display: flex; justify-content: space-between; gap: 14px; }
.account-cargo-numbers dt { font-size: 11px; color: var(--muted); }
.account-cargo-numbers dd { margin: 0; font-size: 12px; font-variant-numeric: tabular-nums; }
.account-table form { display: inline-block; margin: 0 4px 8px 0; }
.account-table .account-empty { padding: 48px 24px; text-align: center; }
.account-empty strong { display: block; font-size: 17px; font-weight: 600; color: var(--ink); white-space: normal; }
.account-empty p { color: var(--muted); margin: 8px auto 12px; max-width: 440px; }
.account-pagination { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; padding-top: 16px; font-size: 13px; }
.account-page-links { display: flex; align-items: center; gap: 14px; }
.account-page-links .account-secondary { min-height: 36px; padding: 7px 12px; font-size: 12px; }
.account-dl { margin: 0; font-size: 14px; }
.account-dl div { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.account-dl div:last-child { border-bottom: 0; }
.account-dl dt { color: var(--muted); flex: 0 0 38%; }
.account-dl dd { margin: 0; text-align: right; overflow-wrap: anywhere; }
.account-order-grid { display: grid; grid-template-columns: minmax(0, 1fr) 264px; gap: 24px; align-items: start; }
.account-order-nav a { padding: 8px 12px; border: 1px solid var(--line); border-radius: 6px; color: #516078; background: white; font-size: 12px; }
.account-order-nav a:hover { color: var(--orange-text); border-color: #e7b09e; }
.account .account-order-section { background: white; border-radius: var(--radius-md); padding: 24px; scroll-margin-top: 100px; }
.account .account-order-section > legend { float: left; width: 100%; padding: 0 0 18px; margin-bottom: 0; font-size: 19px; border-bottom: 1px solid var(--line); }
.account-order-side { display: grid; gap: 16px; position: sticky; top: 96px; max-height: calc(100dvh - 120px); overflow-y: auto; }
.account-order-side-nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; overflow-wrap: anywhere; }
.account-price { padding: 20px; scroll-margin-top: 96px; }
.account-price h2 { font-size: 18px; }
.account-price [data-price-note] h3 { margin: 0 0 8px; font-size: 14px; font-weight: 600; }
.account-price-missing { list-style: decimal; padding-inline-start: 20px; display: grid; gap: 8px; font-size: 14px; line-height: 1.5; }
.account-price-total { font-size: 28px; font-weight: 700; margin: 0; font-variant-numeric: tabular-nums; }
.account .account-submit { margin: 0; padding: 16px 20px; border: 1px solid var(--line); border-radius: var(--radius-md); background: white; justify-content: flex-end; }
.account-small { font-size: 12px; line-height: 1.5; color: var(--muted); font-weight: 400; }
.account-search { max-width: 440px; }
.account-suggestions { display: grid; gap: 8px; }
.account-suggestions button { text-align: left; }
.account-checks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px; margin: 0; }
.account-checks label { font-weight: 400; }
.account-company-row { padding: 16px 0; border-bottom: 1px solid var(--line); display: grid; gap: 8px; }
.account-company-row:last-child { border-bottom: 0; }
.account-company-row p { margin: 0; font-size: 13px; overflow-wrap: anywhere; }
.account-company-picker { position: relative; min-width: 0; }
.account .account-company-picker > summary { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; list-style: none; border: 1px solid var(--line); border-radius: 10px; padding: 12px; color: var(--ink); background: white; }
.account-company-picker > summary::-webkit-details-marker { display: none; }
.account-company-picker > summary:hover, .account-company-picker[open] > summary { border-color: #a5b4c8; background: #f8fafd; }
.account-company-caption { font-size: 11px; color: var(--muted); }
.account-company-current { display: flex; align-items: center; gap: 12px; min-width: 0; }
.account-company-current strong { min-width: 0; flex: 1; font-size: 13px; line-height: 1.5; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-company-current svg { flex-shrink: 0; margin-left: auto; color: #65758d; }
.account-company-picker[open] .account-company-current svg { transform: rotate(180deg); }
.account-company-inn { font-size: 11px; color: var(--muted); }
.account-company-panel { position: absolute; top: calc(100% + 8px); left: 0; width: 380px; max-width: calc(100vw - 40px); padding: 16px 8px 8px; border: 1px solid #d6dfe9; border-radius: 12px; background: white; box-shadow: 0 12px 36px rgb(23 43 72 / 14%); }
.account-company-panel-heading { display: flex; align-items: center; gap: 8px; margin: 0 8px 12px; font-size: 13px; }
.account-company-panel-heading > span { color: var(--muted); background: #f0f3f8; border-radius: 5px; font-size: 11px; padding: 2px 6px; }
.account .account-company-panel > input { margin: 0 8px 8px; width: calc(100% - 16px); min-height: 40px; font-size: 13px; }
.account-company-options { max-height: min(330px, calc(100dvh - 350px)); overflow-y: auto; overscroll-behavior: contain; padding: 3px; }
.account-company-choice { display: grid; grid-template-columns: minmax(0, 1fr) 36px; gap: 4px; align-items: center; border-radius: 8px; padding-right: 4px; margin-bottom: 3px; }
.account-company-choice[data-current] { background: #edf3fa; }
.account-company-choice:hover { background: #f3f6fa; }
.account-company-choice form { margin: 0; min-width: 0; }
.account-company-choice button { border: 0; background: transparent; color: var(--ink); }
.account-company-choice [data-company-choose] { display: flex; gap: 12px; align-items: center; width: 100%; padding: 10px 8px; border-radius: 7px; text-align: left; }
.account-company-choice-copy { display: grid; gap: 4px; min-width: 0; overflow-wrap: anywhere; }
.account-company-choice-copy strong { font-size: 13px; font-weight: 600; line-height: 1.5; }
.account-company-choice-copy > span { font-size: 11px; color: var(--muted); }
.account-company-choice-copy .account-company-status { color: #805a14; }
.account-company-check { visibility: hidden; flex-shrink: 0; margin-left: auto; color: #456591; }
.account-company-choice[data-current] .account-company-check { visibility: visible; }
.account-company-choice .account-company-remove { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 6px; color: #78869a; padding: 0; }
.account-company-choice .account-company-remove:hover { color: #a33020; background: #fff0eb; }
.account-company-no-results { padding: 12px 8px 20px; margin: 0; font-size: 13px; color: var(--muted); text-align: center; }
.account-company-add { width: 100%; display: flex; align-items: center; gap: 10px; background: white; border: 0; border-top: 1px solid var(--line); padding: 14px 12px 8px; color: #315b97; font-size: 13px; font-weight: 600; text-align: left; }
.account-company-add span { font-size: 20px; line-height: 1; }
.account-company-add:hover { color: var(--navy); background: #f8fafd; }
.account-sidebar .account-company-row { padding: 12px 0; }
.account-sidebar .account-company-row p { font-size: 12px; }
.account-settings-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(300px, 1fr); gap: 24px; align-items: start; }
.account-settings-grid .account-card + .account-card { margin-top: 0; }
.account-settings-grid #companies > details { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 14px; }
.account-detail-bar { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 20px; }
.account-route-card { display: grid; grid-template-columns: minmax(0, 1fr) 40px minmax(0, 1fr); gap: 24px; align-items: center; margin-bottom: 24px; }
.account-route-card h2 { font-size: 22px; margin: 0 0 8px; }
.account-route-card p:not(.account-eyebrow) { margin: 0 0 8px; font-size: 14px; }
.account-route-arrow { font-size: 26px; color: #99a8bc; }
.account-detail-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(300px, 1fr); gap: 24px; align-items: start; }
.account-detail-grid .account-card + .account-card { margin-top: 0; }
.account-detail-total { font-size: 30px; font-weight: 700; letter-spacing: -.5px; margin: 0 0 12px; }
.account-cargo-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; padding: 0 0 24px; margin-bottom: 8px; border-bottom: 1px solid var(--line); }
.account-cargo-summary strong { display: block; font-size: 26px; margin-top: 8px; }
.account-company-dialog, .account-order-login-dialog { width: min(600px, calc(100% - 32px)); max-height: calc(100% - 32px); overflow: auto; margin: auto; color: var(--ink); }
.account-company-dialog::backdrop, .account-order-login-dialog::backdrop { background: rgb(7 23 47 / 40%); }
.account-order-login-dialog::backdrop { overflow: hidden; overscroll-behavior: contain; }
.account [data-condition]:not(label):not(.account-grid):where(:not(.account-order-main *)), :is(.account-company-dialog, .account-order-login-dialog)[open] { display: grid; gap: var(--form-block-gap); }
.account :is(.form-stack, fieldset, [data-condition]:not(label), .account-company-dialog, .account-order-login-dialog) > * { margin-block: 0; }
.account dialog.account-order-login-dialog { margin: auto; overscroll-behavior: contain; }
.account form .form-stack > h2 { margin-block: 0; }
.account :is(fieldset, [data-condition], .account-company-dialog, .account-order-login-dialog) > button { justify-self: start; }
.account :is(.account-suggestions, [data-company-search-note], [data-price-items], [data-price-total]):empty { display: none; }
.account details > .form-stack { margin-top: var(--form-block-gap); }
@media (max-width: 1200px) { .account-support > span { display: none; } .account-workspace .account-content { padding-inline: 24px; } .account-settings-grid { grid-template-columns: minmax(0, 1fr); } .account-order-grid { grid-template-columns: minmax(0, 1fr) clamp(96px, 24%, 200px); gap: 12px; } .account-order-side { grid-template-columns: minmax(0, 1fr); overflow-wrap: anywhere; } .account-order-side-nav { grid-template-columns: minmax(0, 1fr); } .account-detail-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 900px) {
  .account-topbar { padding-inline: 20px; gap: 20px; }
  .account-support { display: none; }
  .account-mobile-support { display: block; margin-left: auto; position: relative; font-size: 12px; }
  .account-mobile-support summary { cursor: pointer; padding: 10px 0; color: var(--muted); }
  .account-mobile-support div { position: absolute; right: 0; top: 100%; display: grid; gap: 16px; width: 190px; padding: 20px; background: white; border: 1px solid var(--line); border-radius: 8px; box-shadow: var(--shadow-card); }
  .account-mobile-support a { white-space: nowrap; }

  .account-site-link { margin-left: 0; }
  .account-shell { grid-template-columns: minmax(0, 1fr); }
  .account-sidebar { position: static; top: auto; min-height: auto; max-height: none; overflow: visible; padding: 16px 20px; border-right: 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; }
  .account-sidebar .account-company-form { grid-column: 1; grid-row: 1; grid-template-columns: minmax(0, 1fr) auto; align-items: end; max-width: 440px; }
  .account-company-picker { grid-column: 1 / -1; grid-row: 1; max-width: 440px; }
  .account-sidebar .account-company-form label { grid-column: 1 / -1; }
  .account-sidebar .account-company-form button { min-height: 44px; }
  .account-sidebar .account-company-form select { grid-column: 1; }
  .account-nav { grid-column: 1 / -1; grid-row: 2; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .account-nav a { justify-content: center; padding: 10px 8px; }
  .account-profile { grid-column: 1 / -1; margin: 0; padding-top: 0; border: 0; display: flex; align-items: center; gap: 12px; }
  .account-profile .account-small { display: none; }
  .account-profile form { margin-left: auto; }
  .account-sidebar > .account-warning { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  .account-topbar { height: 60px; padding-inline: 16px; gap: 12px; }
  .account-brand { gap: 12px; }
  .account-brand img { width: 76px; height: auto; }
  .account-cabinet-link { padding-left: 12px; font-size: 12px; }
  .account-site-link { font-size: 12px; }
  .account-workspace { min-height: calc(100vh - 60px); }
  .account-workspace .account-content { padding: 24px 16px 40px; }
  .account-sidebar { position: relative; padding: 14px 16px; gap: 12px; grid-template-columns: minmax(0, 1fr); }
  .account-sidebar .account-company-form { grid-template-columns: minmax(0, 1fr) auto; max-width: none; }
  .account-sidebar .account-company-form button { font-size: 12px; max-width: 94px; padding: 6px 8px; }
  .account-nav { gap: 4px; }
  .account-nav a { padding: 10px 4px; font-size: 12px; flex-direction: column; gap: 6px; }
  .account-nav svg { width: 18px; height: 18px; }
  .account-profile { display: flex; font-size: 12px; }
  .account-profile .account-name { font-size: 12px; }
  .account-profile .account-quiet { font-size: 12px; }
  .account-mobile-cards { display: block; min-width: 0; }
  .account-mobile-cards caption { display: block; padding: 12px; }
  .account-mobile-cards thead { display: block; }
  .account-mobile-cards thead tr { display: flex; flex-wrap: wrap; gap: 8px; border: 0; padding: 0 12px 12px; }
  .account-mobile-cards thead th { display: none; }
  .account-mobile-cards thead th[aria-sort] { display: block; padding: 8px; min-width: 0; border: 1px solid var(--line); border-radius: 6px; font-size: 11px; }
  .account-orders thead, .account-workers thead { display: none; }
  .account-mobile-cards tbody { display: grid; gap: 12px; padding: 0 12px 12px; }
  .account-mobile-cards tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: 8px; background: white; overflow: hidden; }
  .account-mobile-cards td { display: block; min-width: 0 !important; max-width: none !important; padding: 12px; border: 0; font-size: 12px; }
  .account-mobile-cards td:first-child:not([colspan]) { position: static; grid-column: 1 / -1; border-right: 0; border-bottom: 1px solid var(--line); background: #f8fafd; }
  .account-mobile-cards td:first-child .account-record-link { font-size: 14px; }
  .account-mobile-cards td::before { content: attr(data-label); display: block; color: var(--muted); font-size: 11px; margin-bottom: 6px; }
  .account-mobile-cards td:first-child::before { display: none; }
  .account-mobile-cards td:last-child, .account-mobile-cards .account-empty { grid-column: 1 / -1; }
  .account-mobile-cards .account-empty { border: 0; padding: 24px 12px; }

  .account-page-heading { align-items: flex-start; gap: 12px; margin-bottom: 20px; }
  .account-page-heading h1 { font-size: 24px; overflow-wrap: anywhere; }
  .account-page-heading .button { min-height: 40px; padding: 8px 12px; font-size: 12px; white-space: nowrap; }
  .account-page-heading .button > span { display: none; }
  .account-eyebrow { margin-bottom: 6px; }
  .account-card { padding: 18px; }
  .account-list-card { padding: 14px; }
  .account-list-toolbar { grid-template-columns: minmax(0, 1fr) auto; gap: 12px; }
  .account-list-toolbar .account-search { grid-column: 1 / -1; max-width: none; }
  .account-list-toolbar .account-page-size { max-width: 140px; }
  .account-grid { grid-template-columns: minmax(0, 1fr); }
  .account fieldset { padding: 14px; }
  .account .account-order-section { padding: 18px; scroll-margin-top: 80px; }
  .account-order-side-nav { gap: 6px; }
  .account-order-side-nav a { padding: 8px; font-size: 11px; }
  .account-checks { grid-template-columns: minmax(0, 1fr); }
  .account-actions .button { width: 100%; }
  .account .account-submit { padding: 14px; }
  .account-submit > * { width: 100%; }
  .account-pagination { gap: 12px; font-size: 12px; }
  .account-page-links { gap: 10px; }
  .account-table td:first-child { min-width: 140px; max-width: 170px; }
  .account-table .account-empty { padding: 32px 16px; }
  .account-route-card { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .account-route-arrow { transform: rotate(90deg); width: fit-content; font-size: 22px; }
  .account-route-card h2 { font-size: 20px; }
  .account-cargo-summary { gap: 10px; }
  .account-cargo-summary strong { font-size: 22px; }
  .account-dl { font-size: 13px; }
  .account-dl div { gap: 12px; }
  .account-detail-total { font-size: 26px; }
}
@media (max-width: 380px) { .account-cabinet-link { display: none; } .account-page-heading .button { padding-inline: 10px; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .account .button { transition: none; } }

@media (max-width: 900px) { .account-nav:has([data-workers-nav]:not([hidden])) { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.account-list-toolbar .account-search { max-width: none; }
.account-list-toolbar [type="submit"] { min-height: 44px; }
.account-pagination [aria-busy="true"] { opacity: .6; pointer-events: none; }

.account-order-more { border-top: 1px solid var(--line); padding-top: 12px; min-width: 0; }
.account-order-more > summary { color: #516078; font-size: 12px; padding: 4px 0; }
.account-order-more[open] > summary { margin-bottom: 12px; }
.account-order-more .account-checks { padding-top: 8px; }
[data-party] [data-own-company] { width: fit-content; min-height: 36px; font-size: 12px; }
[data-party] [data-own-contact] { justify-self: start; }
.account-city-picker { position: relative; display: grid; align-content: start; gap: var(--form-field-gap); min-width: 0; }
.account-city-results { position: absolute; inset: 100% 0 auto; z-index: 10; max-height: 260px; overflow-y: auto; overscroll-behavior: contain; margin-top: 4px; padding: 4px; border: 1px solid var(--control-border); border-radius: var(--radius-sm); background: white; box-shadow: 0 8px 24px rgb(16 37 69 / 12%); }
.account-city-option { padding: 10px 12px; min-height: 44px; border-radius: 4px; cursor: pointer; }
.account-city-option:hover, .account-city-option.is-active { background: #f0f3f8; }
.account-city-option[aria-selected="true"] { color: var(--navy); font-weight: 600; }
.account-city-option[aria-disabled="true"] { color: var(--muted); cursor: not-allowed; }
.account-city-option[aria-disabled="true"]:hover { background: transparent; }
.account-city-empty { margin: 0; padding: 10px 12px; color: var(--muted); }

.account-cargo-fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px 20px; }
@media (max-width: 600px) { .account-cargo-fields { gap: 12px; } .account-cargo-fields label { font-size: 12px; } }
