
  :root {
    color-scheme: light;
    --bg: #f4f6f8;
    --panel: #ffffff;
    --ink: #16202a;
    --muted: #5c6875;
    --line: #d9e0e7;
    --brand: #0d6b5f;
    --brand-dark: #095248;
    --danger-bg: #fff1f1;
    --danger-text: #9f1d1d;
    --notice-bg: #edf6ff;
    --notice-text: #24537a;
  }
  * { box-sizing: border-box; }
  body {
    margin: 0;
    min-height: 100vh;
    background: var(--bg);
    color: var(--ink);
    font: 16px/1.5 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  }
  .auth-shell {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
  }
  .panel {
    width: min(440px, 100%);
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 18px 40px rgba(22, 32, 42, 0.08);
    padding: 28px;
  }
  .eyebrow {
    margin: 0 0 10px;
    color: var(--brand);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: uppercase;
  }
  .brand-lockup {
    display: inline-flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 0;
    font-size: 26px;
    line-height: 1;
    text-transform: none;
  }
  .brand-number {
    font-weight: 900;
  }
  .brand-copy {
    color: var(--muted);
    font-weight: 450;
  }
  h1, h2, p { margin-top: 0; }
  h1 {
    margin-bottom: 10px;
    font-size: 36px;
    line-height: 1.08;
    letter-spacing: 0;
  }
  h2 {
    margin-bottom: 4px;
    font-size: 22px;
    letter-spacing: 0;
  }
  .lead {
    color: var(--muted);
    margin-bottom: 22px;
  }
  .google-button, .secondary, .secondary-button, button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    border-radius: 8px;
    border: 1px solid var(--brand);
    background: var(--brand);
    color: #ffffff;
    font: inherit;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
  }
  .google-button {
    width: 100%;
    gap: 10px;
    padding: 10px 14px;
  }
  .google-button.disabled {
    pointer-events: none;
    opacity: 0.58;
  }
  .google-button.compact {
    width: auto;
    min-width: 150px;
    padding: 10px 14px;
  }
  .google-mark {
    display: grid;
    place-items: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #ffffff;
    color: var(--brand-dark);
    font-weight: 800;
  }
  .secondary, .secondary-button {
    width: auto;
    padding: 9px 14px;
    background: #ffffff;
    color: var(--brand-dark);
  }
  .notice {
    margin: 0 0 16px;
    padding: 12px 14px;
    border-radius: 8px;
    background: var(--notice-bg);
    color: var(--notice-text);
  }
  .notice.error {
    background: var(--danger-bg);
    color: var(--danger-text);
  }
  .notice.success {
    background: #edf8f3;
    color: #17664c;
  }
  .muted {
    color: var(--muted);
  }
  .app-shell {
    width: 100%;
    margin: 0 auto;
    padding: 18px;
  }
  .app-page h1 {
    margin-bottom: 6px;
    font-size: 28px;
  }
  .app-page .lead {
    margin-bottom: 10px;
  }
  .app-header {
    display: grid;
    gap: 16px;
    margin-bottom: 14px;
  }
  .app-topbar,
  .app-pagebar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
  }
  .app-pagebar {
    align-items: flex-start;
  }
  .account-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 14px;
  }
  .account-mini {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
  }
  .account-mini img, .avatar-fallback.small {
    flex: 0 0 auto;
    width: 38px;
    height: 38px;
    border-radius: 50%;
  }
  .account-mini img { object-fit: cover; }
  .account-mini div {
    display: grid;
    min-width: 0;
  }
  .account-mini strong, .account-mini span {
    max-width: 260px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .account-mini span {
    color: var(--muted);
    font-size: 13px;
  }
  .avatar-fallback {
    display: grid;
    place-items: center;
    background: var(--brand);
    color: #ffffff;
    font-size: 22px;
    font-weight: 800;
  }
  .avatar-fallback.small {
    font-size: 14px;
  }
  .app-title {
    min-width: 0;
  }
  .page-heading {
    min-width: 0;
  }
  .page-heading h1 {
    margin-bottom: 0;
  }
  .app-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
    margin-top: 0;
  }
  .app-nav a {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 5px 11px;
    color: var(--ink);
    text-decoration: none;
    background: #ffffff;
    font-weight: 700;
  }
  .app-nav a.active {
    border-color: var(--brand);
    color: var(--brand-dark);
    background: #edf8f3;
  }
  .rules-overview {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    color: var(--muted);
  }
  .rules-overview strong {
    flex: 0 0 auto;
    color: var(--ink);
    font-size: 18px;
  }
  .rules-index {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 18px;
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
  }
  .rules-index a {
    color: var(--brand-dark);
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
  }
  .rules-index a:hover {
    text-decoration: underline;
  }
  .rules-section {
    scroll-margin-top: 12px;
    padding: 24px 0 4px;
    border-bottom: 1px solid var(--line);
  }
  .rules-section-heading {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
    margin-bottom: 8px;
  }
  .rules-section-number {
    padding-top: 5px;
    color: var(--brand);
    font-size: 13px;
    font-weight: 800;
  }
  .rules-section-heading h2 {
    margin: 0 0 3px;
    font-size: 20px;
  }
  .rules-section-heading p {
    margin: 0;
    color: var(--muted);
  }
  .rules-list {
    margin: 0;
  }
  .rule-row {
    display: grid;
    grid-template-columns: minmax(220px, 30%) minmax(0, 1fr);
    gap: 24px;
    padding: 13px 0 13px 54px;
    border-top: 1px solid #e7ebef;
  }
  .rule-row dt,
  .rule-row dd {
    min-width: 0;
    margin: 0;
  }
  .rule-row dt {
    display: grid;
    gap: 4px;
    align-content: start;
  }
  .rule-row dd {
    color: #34404c;
  }
  .rule-kind {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    width: max-content;
    max-width: 100%;
    color: var(--muted);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
  }
  .rule-kind::before {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #8794a1;
    content: "";
  }
  .rule-kind-automation::before { background: #1c7d68; }
  .rule-kind-guard::before { background: #9a5b32; }
  .rule-kind-standard::before { background: #526c91; }
  .rule-kind-data::before { background: #7a5a91; }
  .empty-state {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 12px;
  }
  .offers-grid-wrap,
  .orders-grid-wrap,
  .drive-grid-wrap,
  .inventory-grid-wrap {
    width: 100%;
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
  }
  .orders-grid {
    min-width: 1180px;
    font-size: 11px;
  }
  .drive-grid,
  .inventory-grid {
    min-width: 1180px;
    font-size: 13px;
  }
  .offers-grid {
    min-width: 1240px;
    font-size: 13px;
  }
  .offer-grid-header,
  .offer-summary {
    display: grid;
    grid-template-columns: 32px 72px minmax(340px, 1fr) 120px 100px 110px 95px 110px 95px;
    align-items: center;
  }
  .order-grid-header,
  .order-summary {
    display: grid;
    /* Give the 36px removed from value directly to the order track. */
    grid-template-columns: 32px 145px minmax(260px, calc(70% - 424px)) 80px 84px minmax(376px, calc(30% + 83px));
    align-items: center;
  }
  .inventory-grid-header,
  .inventory-row {
    display: grid;
    grid-template-columns: 84px minmax(360px, 1fr) 160px 140px 120px 150px 110px;
    align-items: center;
  }
  .inventory-variant-group-row {
    padding: 9px 12px;
    border-bottom: 1px solid var(--line);
    background: #eef6f8;
  }
  .inventory-variant-group-row strong,
  .inventory-variant-group-row small {
    display: block;
  }
  .inventory-variant-group-row strong {
    font-size: 13px;
  }
  .inventory-variant-group-row small {
    margin-top: 2px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
  }
  .drive-grid-header,
  .drive-row {
    display: grid;
    grid-template-columns: minmax(360px, 1fr) 180px 120px 160px 220px;
    align-items: center;
  }
  .offer-grid-header,
  .order-grid-header,
  .drive-grid-header,
  .inventory-grid-header {
    padding: 7px 9px;
    background: #f7f9fb;
    border-bottom: 1px solid var(--line);
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
  }
  .order-grid-header {
    font-size: 10px;
  }
  .offer-row,
  .order-row,
  .drive-row,
  .inventory-row {
    border-bottom: 1px solid var(--line);
  }
  .offer-row:last-child,
  .order-row:last-child,
  .drive-row:last-child,
  .inventory-row:last-child {
    border-bottom: 0;
  }
  .offer-row[open],
  .order-row[open] {
    background: #fbfcfd;
  }
  .offer-summary,
  .order-summary,
  .drive-row,
  .inventory-row {
    min-height: 58px;
    padding: 7px 9px;
  }
  .inventory-variant-row {
    background: #fbfdfe;
  }
  .inventory-variant-row .offer-title {
    padding-left: 10px;
    border-left: 3px solid #c7dbe0;
  }
  .offer-summary,
  .order-summary {
    list-style: none;
    cursor: pointer;
  }
  .offer-summary::-webkit-details-marker,
  .order-summary::-webkit-details-marker {
    display: none;
  }
  .offer-summary > span,
  .order-summary > span {
    min-width: 0;
  }
  .order-buyer-cell,
  .order-status-cell,
  .order-status-cell .status-pill {
    max-width: 100%;
    overflow-wrap: anywhere;
    white-space: normal;
  }
  .order-buyer-cell,
  .order-status-cell .status-pill {
    line-height: 1.25;
  }
  .order-delivery-cell {
    display: grid;
    gap: 5px;
    min-width: 0;
    overflow-wrap: anywhere;
  }
  .order-delivery-method {
    min-width: 0;
    overflow-wrap: anywhere;
  }
  .expand-indicator::before {
    content: "›";
    display: inline-grid;
    place-items: center;
    width: 22px;
    height: 22px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--brand-dark);
    font-size: 18px;
    line-height: 1;
    transition: transform 120ms ease;
  }
  .offer-row[open] .expand-indicator::before,
  .order-row[open] .expand-indicator::before {
    transform: rotate(90deg);
  }
  .offer-title,
  .order-title,
  .drive-title {
    min-width: 0;
    padding-right: 12px;
  }
  .order-buyer-date-cell {
    display: grid;
    align-content: start;
    gap: 2px;
    min-width: 0;
  }
  .order-buyer-date-cell .order-buyer-cell {
    font-weight: 800;
  }
  .order-date-value {
    color: var(--muted);
    font-size: 9px;
  }
  .order-label-summary-actions,
  .order-label-action-buttons {
    display: grid;
    justify-items: start;
    gap: 5px;
  }
  .order-label-generate-form,
  .order-label-generate-email-form {
    margin: 0;
  }
  .order-label-download-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    min-height: 26px;
    padding: 4px 8px;
    border: 1px solid #cbd5df;
    border-radius: 6px;
    background: #ffffff;
    color: var(--brand-dark);
    font-size: 11px;
    font-weight: 800;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
  }
  .order-label-generate-button,
  .order-label-generate-email-button {
    cursor: pointer;
    font-family: inherit;
  }
  .order-label-summary-actions .order-label-download-link {
    width: 100%;
    line-height: 1.2;
    text-align: center;
    white-space: normal;
  }
  .order-label-download-link:hover {
    border-color: #9fb0bf;
    background: #f7fafb;
  }
  .orders-grid .order-label-download-link {
    font-size: 9px;
  }
  .order-title strong {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .order-summary-items {
    display: grid;
    gap: 2px;
    min-width: 0;
  }
  .order-summary-items strong {
    display: block;
    overflow: visible;
    text-overflow: clip;
    white-space: normal;
    line-height: 1.25;
  }
  .order-shipment-list,
  .order-shipment-entry,
  .order-label-history,
  .order-label-history-item {
    display: grid;
    gap: 4px;
    min-width: 0;
  }
  .order-shipment-entry {
    grid-template-columns: minmax(0, 1fr) minmax(145px, 0.8fr);
    align-items: center;
    gap: 8px;
    padding-top: 2px;
  }
  .order-shipment-entry > small {
    min-width: 0;
  }
  .order-shipment-entry > .shipment-progress {
    width: 100%;
    margin-top: 0;
  }
  .order-label-history {
    margin-top: 6px;
  }
  .order-label-history-item {
    padding: 6px 0;
    border-top: 1px solid var(--line);
  }
  .order-label-history-item:first-child {
    border-top: 0;
    padding-top: 0;
  }
  .order-shipment-identifier-row,
  .order-label-identifier-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 5px;
    min-width: 0;
  }
  .order-label-inline-download {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    min-height: 20px;
    padding: 2px 6px;
    border: 1px solid #c4d0db;
    border-radius: 5px;
    background: #ffffff;
    color: var(--brand-dark);
    font-size: 9px;
    font-weight: 800;
    line-height: 1;
    text-decoration: none;
  }
  .order-label-inline-download:hover {
    border-color: #93a6b7;
    background: #f5f8fa;
  }
  .shipment-refund-badge {
    display: inline-flex;
    align-items: center;
    min-height: 18px;
    padding: 2px 6px;
    border: 1px solid #e3caca;
    border-radius: 5px;
    background: #f8eeee;
    color: #7c3d3d;
    font-size: 9px;
    font-weight: 800;
    line-height: 1.2;
  }
  .offer-title a {
    color: var(--ink);
    font-weight: 700;
    text-decoration: none;
  }
  .offer-title small,
  .order-title small,
  .drive-title small {
    display: block;
    margin-top: 2px;
    color: var(--muted);
    font-size: 12px;
  }
  .orders-grid .order-title small {
    font-size: 10px;
  }
  .tracking-link {
    color: var(--brand-dark);
    text-decoration: none;
  }
  .tracking-link:hover {
    text-decoration: underline;
  }
  .tracking-identifier {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    max-width: 100%;
    vertical-align: middle;
  }
  .orders-grid .tracking-identifier > code,
  .orders-grid .tracking-identifier > .tracking-link > code {
    font-size: 9px;
  }
  .parcel-locker-dispatch-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    flex: 0 0 auto;
    min-height: 20px;
    padding: 1px 5px 1px 3px;
    border: 1px solid #b7c6d6;
    border-radius: 5px;
    background: #f4fbf8;
    color: #216b61;
    line-height: 1;
  }
  .parcel-locker-dispatch-badge code {
    color: inherit;
    font-size: 10.5px;
    font-weight: 850;
  }
  .orders-grid .parcel-locker-dispatch-badge code {
    font-size: 8.5px;
  }
  .parcel-locker-dispatch-icon {
    position: relative;
    display: inline-grid;
    place-items: center;
    flex: 0 0 auto;
    width: 14px;
    height: 16px;
    border: 0;
    border-radius: 4px;
    background: transparent;
  }
  .parcel-locker-dispatch-icon::before {
    content: "";
    display: block;
    width: 9px;
    height: 12px;
    border: 1.6px solid #2b8a7d;
    border-radius: 2px;
    background:
      linear-gradient(#2b8a7d, #2b8a7d) 50% 33% / 100% 1px no-repeat,
      linear-gradient(#2b8a7d, #2b8a7d) 50% 66% / 100% 1px no-repeat;
  }
  .parcel-locker-dispatch-icon::after {
    content: "";
    position: absolute;
    right: 3px;
    top: 7px;
    width: 3px;
    height: 3px;
    border-radius: 999px;
    background: #2b8a7d;
  }
  .drive-section {
    display: grid;
    gap: 10px;
  }
  .drive-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
  }
  .drive-toolbar div {
    display: grid;
    gap: 2px;
    min-width: 0;
  }
  .drive-toolbar strong {
    font-size: 15px;
  }
  .drive-toolbar span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 750;
  }
  .drive-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }
  .offer-title a:hover {
    color: var(--brand-dark);
    text-decoration: underline;
  }
  .inventory-stock-form {
    display: flex;
    align-items: center;
    gap: 6px;
  }
  .inventory-stock-form input {
    width: 68px;
    min-height: 32px;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 5px 7px;
    color: var(--ink);
    background: #ffffff;
    font: inherit;
    font-weight: 700;
  }
  .offer-thumb-cell {
    width: 72px;
  }
  .offer-thumb-link,
  .offer-thumb-placeholder {
    display: block;
    width: 58px;
    height: 44px;
    border: 1px solid var(--line);
    border-radius: 6px;
    overflow: hidden;
    background: #f2f5f7;
  }
  .offer-thumb-link img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  .offer-thumb-placeholder::before {
    content: "";
    display: block;
    width: 20px;
    height: 14px;
    margin: 14px auto;
    border: 2px solid #aab4bf;
    border-radius: 3px;
  }
  .offer-details-panel {
    border-top: 1px solid var(--line);
    padding: 14px 16px 16px;
    background: #ffffff;
  }
  .offer-details-placeholder {
    display: none;
  }
  .offer-details-placeholder.offer-details-panel {
    display: block;
  }
  .offer-details-placeholder.is-loading.offer-details-panel {
    background: #fbfcfd;
  }
  .offer-details-placeholder .muted {
    margin: 0;
    font-size: 13px;
    font-weight: 650;
  }
  .order-details-panel {
    border-top: 1px solid var(--line);
    padding: 14px 16px 16px;
    background: #ffffff;
  }
  .order-details-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(260px, 0.9fr) minmax(300px, 1fr);
    gap: 10px;
    align-items: start;
  }
  .order-items-list {
    display: grid;
    gap: 8px;
  }
  .order-item {
    display: grid;
    gap: 2px;
    border-bottom: 1px solid #eef2f5;
    padding-bottom: 8px;
  }
  .order-item:last-child {
    border-bottom: 0;
    padding-bottom: 0;
  }
  .order-item span,
  .order-item small {
    color: var(--muted);
    font-size: 12px;
    font-weight: 650;
  }
  .order-label-action {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 12px;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #f8fafb;
  }
  .order-label-action div {
    display: grid;
    gap: 2px;
    min-width: 0;
  }
  .order-label-action strong {
    font-size: 13px;
  }
  .order-label-action span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 650;
  }
  .shipment-progress {
    display: grid;
    gap: 4px;
    margin-top: 4px;
    max-width: 360px;
  }
  .shipment-progress.compact {
    max-width: 100%;
    margin-top: 2px;
  }
  .shipment-progress-track {
    position: relative;
    width: 100%;
    height: 8px;
    overflow: hidden;
    border: 1px solid #cfd8e3;
    border-radius: 999px;
    background: #ffffff;
  }
  .shipment-progress-track span {
    display: block;
    height: 100%;
    background: #2b8a7d;
    border-radius: inherit;
  }
  .shipment-progress small {
    color: var(--muted);
    font-size: 11px;
    font-weight: 750;
  }
  .shipment-progress.compact small {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: block;
    overflow: hidden;
    padding: 0 7px;
    color: #173f39;
    font-size: 9px;
    line-height: 18px;
    text-overflow: ellipsis;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.85);
    white-space: nowrap;
  }
  .shipment-progress.compact .shipment-progress-track {
    height: 20px;
  }
  .shipment-progress.compact .shipment-progress-track > span {
    background: #8fd1c5;
  }
  .shipment-progress.refund-requested .shipment-progress-track {
    border-color: #e3caca;
    background: #f8eeee;
  }
  .shipment-progress.refund-requested .shipment-progress-track > span {
    background: #ead0d0;
  }
  .shipment-progress.refund-requested small {
    color: #7c3d3d;
  }
  .orders-grid .status-pill {
    font-size: 10px;
  }
  .order-label-action form {
    flex: 0 0 auto;
  }
  .orders-section {
    display: grid;
    gap: 8px;
  }
  .orders-section-header,
  .orders-archive > summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 0 0 8px;
  }
  .orders-section-title {
    display: flex;
    align-items: baseline;
    gap: 10px;
    min-width: 0;
  }
  .orders-section-header h2 {
    margin: 0;
    font-size: 15px;
  }
  .orders-section-count,
  .orders-archive > summary small {
    color: var(--muted);
    font-size: 12px;
    font-weight: 750;
  }
  .orders-filter-toggle {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 30px;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 5px 9px;
    background: #ffffff;
    color: var(--ink);
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
    cursor: pointer;
  }
  .orders-filter-toggle input {
    width: 15px;
    height: 15px;
    margin: 0;
    accent-color: var(--brand);
  }
  .order-row[hidden],
  .orders-archive[hidden],
  .order-row-filter-empty[hidden] {
    display: none;
  }
  .orders-archive {
    margin-top: 14px;
  }
  .orders-archive > summary {
    cursor: pointer;
    list-style: none;
    padding: 9px 11px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #f8fafb;
  }
  .orders-archive > summary::-webkit-details-marker {
    display: none;
  }
  .orders-archive > summary span {
    color: var(--ink);
    font-size: 14px;
    font-weight: 800;
  }
  .orders-archive > summary::before {
    content: "›";
    display: inline-grid;
    place-items: center;
    flex: 0 0 auto;
    width: 22px;
    height: 22px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--brand-dark);
    font-size: 18px;
    line-height: 1;
    transition: transform 120ms ease;
  }
  .orders-archive[open] > summary::before {
    transform: rotate(90deg);
  }
  .orders-archive-content {
    margin-top: 8px;
  }
  .orders-archive-content.is-loading {
    min-height: 54px;
  }
  .orders-archive-content > .muted {
    margin: 0;
    padding: 10px 2px;
  }
  .orders-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 10px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
  }
  .orders-pagination div {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
  }
  .stats-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: end;
    gap: 10px;
    margin: 0 0 12px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
  }
  .stats-filters label {
    display: grid;
    gap: 5px;
    min-width: 150px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
  }
  .stats-filters input,
  .stats-filters select {
    min-height: 36px;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 7px 9px;
    background: #ffffff;
    color: var(--ink);
    font: inherit;
    font-size: 13px;
  }
  .stats-section {
    display: grid;
    gap: 12px;
  }
  .stats-summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(150px, 1fr));
    gap: 10px;
  }
  .stat-summary-item {
    display: grid;
    gap: 4px;
    min-height: 70px;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 11px 12px;
    background: #ffffff;
  }
  .stat-summary-item span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
  }
  .stat-summary-item strong {
    color: var(--ink);
    font-size: 20px;
    line-height: 1.1;
  }
  .stats-note {
    margin: 0;
    font-size: 13px;
  }
  .stats-chart-wrap {
    width: 100%;
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
  }
  .stats-chart {
    display: flex;
    align-items: stretch;
    gap: 8px;
    min-width: max-content;
    min-height: 330px;
    padding: 14px 12px 12px;
  }
  .stats-bar-item {
    display: grid;
    grid-template-rows: 24px 220px auto auto;
    gap: 5px;
    width: 62px;
    text-align: center;
  }
  .stats-bar-value,
  .stats-bar-count {
    color: var(--muted);
    font-size: 11px;
    font-weight: 750;
    white-space: nowrap;
  }
  .stats-bar-track {
    display: flex;
    align-items: end;
    justify-content: center;
    min-height: 220px;
    border-bottom: 1px solid var(--line);
  }
  .stats-bar {
    width: 100%;
    min-height: 0;
    border-radius: 7px 7px 0 0;
    background: linear-gradient(180deg, var(--brand), var(--brand-dark));
  }
  .stats-bar-label {
    min-height: 30px;
    color: var(--ink);
    font-size: 11px;
    font-weight: 800;
    line-height: 1.15;
  }
  .offer-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    min-height: 38px;
    margin-bottom: 8px;
  }
  .inline-save-button,
  .inline-cancel-button,
  .inline-edit-field,
  .inline-edit-note,
  .readonly-section-note,
  .readonly-reason {
    display: none;
  }
  .offer-row.editing .inline-save-button,
  .offer-row.editing .inline-cancel-button {
    display: inline-flex;
  }
  .offer-row.editing .inline-edit-note {
    display: inline-flex;
  }
  .offer-row.editing .inline-edit-button,
  .offer-row.editing .editable-readonly-value {
    display: none;
  }
  .offer-row.editing .inline-edit-field {
    display: grid;
    gap: 5px;
  }
  .offer-row.editing .readonly-section-note {
    display: block;
  }
  .inline-edit-note {
    align-items: center;
    min-height: 34px;
    max-width: 720px;
    margin-left: 2px;
    border: 1px solid #cfe3dc;
    border-radius: 999px;
    padding: 5px 10px;
    background: #f2fbf7;
    color: #276050;
    font-size: 12px;
    font-weight: 700;
  }
  .inline-offer-form {
    margin: 0;
  }
  .inline-edit-field input,
  .inline-edit-field textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 8px 9px;
    color: var(--ink);
    background: #ffffff;
    font: inherit;
    font-weight: 500;
  }
  .inline-edit-field input {
    min-height: 36px;
  }
  .inline-edit-field textarea {
    min-height: 142px;
    max-height: 260px;
    resize: vertical;
  }
  .inline-edit-field small,
  .description-edit-field small,
  .readonly-section-note,
  .readonly-reason {
    color: var(--muted);
    font-size: 12px;
    font-weight: 650;
    line-height: 1.35;
  }
  .readonly-section-note {
    margin: -4px 0 10px;
  }
  .editable-details-list dd .inline-edit-field {
    width: 100%;
  }
  .editable-details-list > div {
    min-height: 40px;
    align-items: start;
  }
  .editable-details-list dd {
    display: grid;
    gap: 4px;
  }
  .readonly-reason {
    margin-top: 2px;
  }
  .small-button {
    width: auto;
    min-width: 0;
    min-height: 34px;
    height: 34px;
    padding: 6px 11px;
    font-size: 13px;
  }
  .details-layout {
    display: grid;
    grid-template-columns: minmax(420px, 1.35fr) minmax(300px, 0.9fr) minmax(300px, 0.9fr);
    gap: 12px;
    align-items: start;
  }
  .detail-column {
    display: grid;
    gap: 12px;
    min-width: 0;
  }
  .detail-section {
    min-width: 0;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 12px;
    background: #fbfcfd;
  }
  .detail-section h3 {
    margin: 0 0 10px;
    font-size: 14px;
  }
  .description-section {
    min-height: 222px;
  }
  .description-section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
  }
  .description-section-heading h3 {
    margin: 0;
  }
  .description-section-heading .ai-description-check-button {
    flex: 0 0 auto;
  }
  .description-section-heading .ai-description-check-button:disabled,
  .description-section-heading .ai-description-check-button.is-loading {
    opacity: 0.65;
    cursor: progress;
  }
  .description-review-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    align-items: start;
  }
  .description-review-layout.has-description-ai-results {
    grid-template-columns: minmax(0, 1fr) minmax(260px, 0.78fr);
  }
  .description-review-source {
    min-width: 0;
  }
  .description-ai-checker {
    display: grid;
    gap: 8px;
    min-width: 0;
    border-left: 1px solid #e5ebef;
    padding-left: 12px;
  }
  .description-ai-checker[hidden] {
    display: none;
  }
  .description-ai-results {
    display: grid;
    gap: 8px;
  }
  .ai-description-status,
  .ai-description-header {
    display: grid;
    gap: 3px;
    border: 1px solid #d8e7e2;
    border-radius: 8px;
    padding: 9px 10px;
    background: #f7fcfa;
  }
  .ai-description-status-error {
    border-color: #f1c7c7;
    background: #fff6f6;
  }
  .ai-description-status strong,
  .ai-description-header strong {
    font-size: 13px;
  }
  .ai-description-status small,
  .ai-description-header small,
  .ai-description-apply-status {
    color: var(--muted);
    font-size: 12px;
    font-weight: 650;
    line-height: 1.35;
  }
  .ai-description-status-error small {
    color: var(--danger-text);
  }
  .ai-description-correction-list {
    display: grid;
    gap: 7px;
    max-height: 340px;
    overflow: auto;
    padding-right: 3px;
  }
  .ai-description-correction {
    display: grid;
    gap: 6px;
    border: 1px solid #e3e9ee;
    border-radius: 8px;
    padding: 8px;
    background: #ffffff;
    cursor: pointer;
  }
  .ai-description-choice {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--brand-dark);
    font-size: 12px;
    font-weight: 800;
  }
  .ai-description-choice input {
    width: 16px;
    height: 16px;
    margin: 0;
    accent-color: var(--brand);
  }
  .ai-description-correction-body {
    display: grid;
    gap: 4px;
    min-width: 0;
  }
  .ai-description-diff {
    display: grid;
    gap: 4px;
    min-width: 0;
    font-size: 12px;
    line-height: 1.35;
  }
  .ai-description-diff del,
  .ai-description-diff ins {
    display: block;
    min-width: 0;
    border-radius: 6px;
    padding: 5px 6px;
    text-decoration: none;
    overflow-wrap: anywhere;
  }
  .ai-description-diff del {
    background: #fff1f1;
    color: #8f1d1d;
  }
  .ai-description-diff ins {
    background: #edf8f3;
    color: #17664c;
  }
  .ai-description-correction-body small {
    color: var(--muted);
    font-size: 12px;
    font-weight: 650;
    line-height: 1.35;
  }
  .ai-description-footer {
    display: grid;
    gap: 6px;
  }
  .details-list {
    display: grid;
    gap: 0;
    margin: 0;
  }
  .details-list div {
    display: grid;
    grid-template-columns: minmax(110px, 34%) minmax(0, 1fr);
    gap: 10px;
    padding: 6px 0;
    border-bottom: 1px solid #e8edf1;
  }
  .details-list div:last-child {
    border-bottom: 0;
  }
  .details-list dt {
    color: var(--muted);
    font-weight: 700;
  }
  .details-list dd {
    margin: 0;
    min-width: 0;
    word-break: break-word;
  }
  .offer-description {
    display: grid;
    gap: 10px;
    min-height: 142px;
    max-height: 260px;
    overflow: auto;
    padding-right: 4px;
  }
  .offer-description-section {
    display: grid;
    gap: 8px;
  }
  .description-text {
    margin: 0;
    color: #24313d;
    white-space: normal;
  }
  .description-image {
    display: block;
    width: min(260px, 100%);
    max-height: 220px;
    object-fit: contain;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
  }
  .ai-result-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 96px auto;
    gap: 12px;
    align-items: center;
    margin-bottom: 12px;
    border: 1px solid #cfe3dc;
    border-radius: 8px;
    padding: 10px 12px;
    background: #f2fbf7;
  }
  .ai-result-panel div {
    display: grid;
    gap: 2px;
  }
  .ai-result-panel span {
    color: var(--muted);
    font-size: 13px;
    font-weight: 650;
  }
  .ai-result-panel img {
    display: block;
    width: 96px;
    height: 72px;
    object-fit: contain;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
  }
  .offer-image-gallery {
    margin-top: 12px;
  }
  .offer-gallery-toolbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 520px);
    gap: 12px;
    align-items: end;
    margin-bottom: 10px;
  }
  .offer-gallery-toolbar h3 {
    margin: 0 0 2px;
  }
  .offer-gallery-toolbar small {
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
  }
  .image-add-controls {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 6px;
    align-items: end;
  }
  .image-add-controls span {
    grid-column: 1 / -1;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
  }
  .image-add-controls input {
    min-width: 0;
    height: 34px;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 6px 9px;
    color: var(--ink);
    background: #ffffff;
    font: inherit;
    font-size: 13px;
  }
  .offer-gallery {
    display: grid;
    grid-template-columns: minmax(280px, 520px) minmax(0, 1fr);
    gap: 12px;
    align-items: start;
  }
  .offer-gallery-main-card,
  .offer-gallery-thumb-card {
    display: grid;
    gap: 7px;
    min-width: 0;
  }
  .offer-gallery-main,
  .offer-gallery-thumb {
    display: block;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
  }
  .offer-gallery-main {
    width: 100%;
  }
  .offer-gallery-main img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    max-height: 520px;
    object-fit: contain;
  }
  .offer-gallery-side {
    min-width: 0;
  }
  .offer-gallery-thumbs {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(92px, 1fr));
    gap: 8px;
    max-height: 520px;
    overflow: auto;
    padding-right: 4px;
  }
  .offer-gallery-thumb {
    aspect-ratio: 1 / 1;
  }
  .offer-gallery-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  .image-action-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(92px, auto);
    gap: 6px;
  }
  .image-action-row-compact {
    grid-template-columns: 1fr;
  }
  .ai-improve-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    width: 100%;
    border: 1px solid #2f6f5d;
    border-radius: 8px;
    padding: 5px 8px;
    background: #ffffff;
    color: #245647;
    font: inherit;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
  }
  .ai-improve-button:hover {
    background: #edf8f3;
  }
  .ai-improve-button:disabled,
  .ai-improve-button.is-loading {
    opacity: 0.64;
    cursor: progress;
  }
  .ai-improve-button-primary {
    min-height: 36px;
    background: #276050;
    color: #ffffff;
  }
  .ai-improve-button-primary:hover {
    background: #1f4d40;
  }
  .image-remove-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    width: 100%;
    border: 1px solid #d92d20;
    border-radius: 8px;
    padding: 5px 8px;
    background: #ffffff;
    color: #a32018;
    font: inherit;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
  }
  .image-remove-button:hover {
    background: #fff3f2;
  }
  .image-remove-button:disabled {
    opacity: 0.55;
    cursor: not-allowed;
  }
  .ai-generation-panel {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    border: 1px solid #cfe3dc;
    border-radius: 8px;
    padding: 9px;
    background: #f2fbf7;
  }
  .ai-generation-panel a,
  .ai-generation-placeholder {
    display: grid;
    place-items: center;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border: 1px solid #d5e6df;
    border-radius: 8px;
    background: #ffffff;
  }
  .ai-generation-panel img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
  }
  .ai-generation-placeholder span {
    width: 28px;
    height: 28px;
    border: 3px solid #cfe3dc;
    border-top-color: #276050;
    border-radius: 999px;
    animation: ai-spin 0.9s linear infinite;
  }
  .ai-generation-body {
    display: grid;
    gap: 2px;
    min-width: 0;
  }
  .ai-generation-body strong {
    font-size: 13px;
  }
  .ai-generation-body span,
  .ai-generation-body small {
    color: var(--muted);
    font-size: 12px;
    font-weight: 650;
    line-height: 1.35;
  }
  .ai-generation-failed {
    border-color: #f1c7c7;
    background: #fff6f6;
  }
  .ai-generation-failed .ai-generation-placeholder span {
    width: 28px;
    height: 28px;
    border: 0;
    border-radius: 0;
    animation: none;
    position: relative;
  }
  .ai-generation-failed .ai-generation-placeholder span::before,
  .ai-generation-failed .ai-generation-placeholder span::after {
    content: "";
    position: absolute;
    top: 13px;
    left: 3px;
    width: 22px;
    height: 2px;
    background: #9f1d1d;
  }
  .ai-generation-failed .ai-generation-placeholder span::before {
    transform: rotate(45deg);
  }
  .ai-generation-failed .ai-generation-placeholder span::after {
    transform: rotate(-45deg);
  }
  @keyframes ai-spin {
    to { transform: rotate(360deg); }
  }
  .raw-details {
    margin-top: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fbfcfd;
  }
  .raw-details summary {
    padding: 10px 12px;
    cursor: pointer;
    font-weight: 800;
  }
  .raw-details pre {
    max-height: 420px;
    overflow: auto;
    margin: 0;
    border-top: 1px solid var(--line);
    padding: 12px;
    white-space: pre-wrap;
    word-break: break-word;
    font-size: 12px;
    line-height: 1.45;
  }
  @media (max-width: 1180px) {
    .details-layout,
    .order-details-layout {
      grid-template-columns: minmax(360px, 1fr) minmax(300px, 1fr);
    }
    .detail-column-wide {
      grid-column: 1 / -1;
    }
  }
  .status-pill {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    border-radius: 999px;
    padding: 2px 8px;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
  }
  .status-active {
    background: #edf8f3;
    color: #17664c;
  }
  .status-muted {
    background: #f0f2f4;
    color: #55616d;
  }
  .status-pending {
    background: #fff7e6;
    color: #8a5a00;
  }
  .status-error {
    background: var(--danger-bg);
    color: var(--danger-text);
  }
  .order-status-bought {
    background: #eef1f4;
    color: #4f5b67;
    box-shadow: inset 0 0 0 1px #d7dde4;
  }
  .order-status-ready {
    background: #e6f2ff;
    color: #225f96;
    box-shadow: inset 0 0 0 1px #c8dcf2;
  }
  .order-status-packed {
    background: #e8edf4;
    color: #274766;
    box-shadow: inset 0 0 0 1px #cbd5e2;
  }
  .order-status-transit {
    background: #f1ecf8;
    color: #674a88;
    box-shadow: inset 0 0 0 1px #dbceec;
  }
  .order-status-delivered {
    background: #e9f6ee;
    color: #2a6d49;
    box-shadow: inset 0 0 0 1px #c9e4d4;
  }
  code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
    font-size: 13px;
    color: #394957;
  }
  .settings-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }
  .settings-grid.single {
    grid-template-columns: minmax(0, 1fr);
  }
  .settings-card {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 20px;
  }
  .section-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
  }
  .section-heading h2 {
    margin-bottom: 6px;
  }
  .section-heading h3 {
    margin-bottom: 6px;
  }
  .section-heading.compact-heading {
    margin-top: 14px;
  }
  .section-heading p {
    margin-bottom: 0;
    color: var(--muted);
  }
  .settings-divider {
    height: 1px;
    background: var(--line);
    margin: 16px 0 2px;
  }
  .settings-list {
    display: grid;
    gap: 10px;
  }
  .settings-item {
    display: grid;
    gap: 3px;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 12px;
    background: #fbfcfd;
  }
  .inline-delete-form {
    margin-top: 8px;
  }
  .danger-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    border-color: #b42318;
    background: #b42318;
    color: #ffffff;
    padding: 7px 12px;
    border-radius: 8px;
    font: inherit;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
  }
  .settings-item span, .settings-item small {
    color: var(--muted);
  }
  .settings-token-form {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: end;
    margin-top: 12px;
  }
  .settings-token-form label {
    display: grid;
    flex: 1 1 360px;
    gap: 6px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
  }
  .settings-token-form input {
    width: 100%;
    min-height: 38px;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 8px 10px;
    color: var(--ink);
    background: #ffffff;
    font: inherit;
    font-size: 14px;
    font-weight: 500;
  }
  .token-status {
    margin-top: 8px;
  }
  .form-shell {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 340px);
    gap: 14px;
    align-items: start;
  }
  .form-main,
  .read-only-panel,
  .confirmation-panel {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 16px;
  }
  .offer-form {
    display: grid;
    gap: 14px;
  }
  .offer-form label {
    display: grid;
    gap: 6px;
    font-weight: 800;
  }
  .offer-form input,
  .offer-form textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 10px 11px;
    color: var(--ink);
    background: #ffffff;
    font: inherit;
    font-weight: 500;
  }
  .offer-form textarea {
    min-height: 280px;
    resize: vertical;
  }
  .offer-form small {
    color: var(--muted);
    font-weight: 600;
  }
  .form-grid.two {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  .form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
  }
  .confirmation-panel {
    max-width: 820px;
  }
  .shipment-label-confirmation {
    display: grid;
    gap: 16px;
  }
  .shipment-label-order-items {
    padding: 10px 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
  }
  .measurement-input {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
  }
  .measurement-input small {
    min-width: 22px;
  }
  .confirmation-actions {
    margin-top: 14px;
  }
  .operation-raw {
    margin-top: 14px;
  }
  @media (max-width: 640px) {
    .panel { padding: 22px; }
    h1 { font-size: 30px; }
    .app-shell { padding: 12px; }
    .app-topbar,
    .app-pagebar,
    .account-actions {
      align-items: stretch;
      flex-direction: column;
    }
    .brand-lockup {
      font-size: 23px;
    }
    .app-nav {
      justify-content: stretch;
    }
    .app-nav a {
      flex: 1 1 auto;
      justify-content: center;
    }
    .rules-overview {
      align-items: flex-start;
      flex-direction: column;
      gap: 2px;
    }
    .rules-section-heading {
      grid-template-columns: 30px minmax(0, 1fr);
      gap: 10px;
    }
    .rule-row {
      grid-template-columns: minmax(0, 1fr);
      gap: 6px;
      padding-left: 40px;
    }
    .settings-grid {
      grid-template-columns: 1fr;
    }
    .stats-filters,
    .stats-summary {
      grid-template-columns: 1fr;
    }
    .stats-filters {
      display: grid;
    }
    .stats-filters label {
      min-width: 0;
    }
    .stats-chart {
      min-height: 300px;
    }
    .stats-bar-item {
      grid-template-rows: 22px 190px auto auto;
      width: 58px;
    }
    .stats-bar-track {
      min-height: 190px;
    }
    .section-heading {
      flex-direction: column;
    }
    .offer-details-panel {
      padding: 12px;
    }
    .ai-result-panel {
      grid-template-columns: 1fr;
    }
    .ai-result-panel img {
      width: 100%;
      height: auto;
      max-height: 260px;
    }
    .details-layout,
    .order-details-layout {
      grid-template-columns: 1fr;
    }
    .description-review-layout {
      grid-template-columns: 1fr;
    }
    .description-ai-checker {
      border-left: 0;
      border-top: 1px solid #e5ebef;
      padding-left: 0;
      padding-top: 10px;
    }
    .offer-gallery {
      grid-template-columns: 1fr;
    }
    .offer-gallery-toolbar,
    .image-add-controls,
    .image-action-row {
      grid-template-columns: 1fr;
    }
    .order-label-action {
      align-items: stretch;
      flex-direction: column;
    }
    .order-label-action form {
      width: 100%;
    }
    .form-shell,
    .form-grid.two {
      grid-template-columns: 1fr;
    }
    .detail-column-wide {
      grid-column: auto;
    }
    .google-button.compact {
      width: 100%;
    }
    .secondary-button { width: 100%; }
  }
