:root{--ink:#202a2a;--muted:#6b7574;--line:#dce2de;--paper:#fafbf8;--accent:#176558;--soft:#edf3ee;--danger:#a33131;font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--ink);background:var(--paper);font-synthesis:none}*{box-sizing:border-box}body{margin:0;font-size:15px;line-height:1.5}a{color:var(--accent);text-decoration:none}a:hover{text-decoration:underline}button,input,select{font:inherit}button,a,input,select,summary{transition:background .14s,color .14s,border-color .14s,box-shadow .14s}button{cursor:pointer}button:disabled{cursor:wait}a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible{outline:3px solid #85baad;outline-offset:3px}h1,h2,p{margin:0}h1{font-size:clamp(30px,3vw,42px);font-weight:550;letter-spacing:-1.3px;line-height:1.2}h2{font-size:17px;font-weight:600;letter-spacing:-.3px}.brand{display:block;color:var(--ink);font-weight:650;letter-spacing:-2px;font-size:38px;line-height:1}.brand:hover{text-decoration:none}.brand span{display:block;font-size:11px;font-weight:500;letter-spacing:3px;text-transform:uppercase;margin-top:10px}.eyebrow{font-size:11px;letter-spacing:1.9px;font-weight:650;color:var(--accent)}.workspace{display:grid;grid-template-columns:225px minmax(0,1fr);min-height:100vh}.sidebar{background:#f0f3ee;border-right:1px solid var(--line);padding:42px 27px 30px;display:flex;flex-direction:column}.nav-caption{font-size:10px;letter-spacing:1.4px;color:var(--muted);margin:62px 0 15px}.sidebar nav{display:flex;flex-direction:column;gap:4px}.sidebar nav a{padding:11px 12px;color:var(--muted);margin-left:-12px;display:flex;justify-content:space-between;border-radius:3px}.sidebar nav a:hover{background:#e5ece5;text-decoration:none}.sidebar nav a[aria-current]{color:var(--accent);background:#dfeae1;font-weight:600}.sidebar-footer{margin-top:auto;padding-top:80px;font-size:12px;overflow-wrap:anywhere}.sidebar-footer strong,.sidebar-footer>span{display:block}.sidebar-footer>span{color:var(--muted);margin:4px 0 18px}.text-button{border:0;padding:0;background:transparent;color:var(--accent);font-size:12px}.text-button:hover{text-decoration:underline}.main-content{padding:34px clamp(24px,5vw,72px);min-width:0;max-width:1510px}.topline{display:flex;justify-content:space-between;font-size:10px;letter-spacing:1.6px;color:var(--muted);padding-bottom:26px;border-bottom:1px solid var(--line)}.topline span:last-child{letter-spacing:0;font-size:12px}.page-heading{padding:44px 0 36px}.page-heading .eyebrow{margin-bottom:12px}.page-heading p:not(.eyebrow){color:var(--muted);margin-top:12px;max-width:660px}.heading-with-action{display:flex;justify-content:space-between;gap:24px;align-items:center}.section-block{margin-bottom:40px}.section-heading{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:18px}.section-heading>a{font-size:12px}.subtle{color:var(--muted);font-size:12px}.action-list{border-top:1px solid var(--line)}.action-list>a{display:flex;align-items:center;justify-content:space-between;gap:25px;padding:21px 0;border-bottom:1px solid var(--line);color:var(--ink)}.action-list>a:hover{background:var(--soft);text-decoration:none}.action-list strong,.action-list div>span{display:block}.action-list strong{font-size:15px;font-weight:550}.action-list div>span{color:var(--muted);font-size:13px;margin-top:4px}.action-list>a>span{color:var(--accent);font-size:24px}.button{display:inline-flex;align-items:center;justify-content:center;gap:30px;padding:12px 20px;border:1px solid var(--accent);border-radius:3px;background:var(--accent);color:#fff;font-size:13px;font-weight:550;white-space:nowrap}.button:hover{background:#0e4d42;text-decoration:none}.button.full{width:100%;justify-content:space-between}.field{display:flex;flex-direction:column;gap:8px;min-width:0}.field label{font-size:13px;font-weight:550}.field input,.field select{padding:12px 13px;border:1px solid #bdc9c2;border-radius:3px;background:#fff;color:var(--ink);width:100%;min-height:46px}.field input[aria-invalid=true]{border-color:var(--danger)}.field small{font-size:12px;color:var(--muted);line-height:1.6}.stack-form{display:flex;flex-direction:column;gap:23px}.form-width{max-width:590px}.form-actions{display:flex;align-items:center;gap:25px;padding-top:12px}.secondary-link,.back-link{font-size:13px}.back-link{display:inline-block;margin-bottom:22px}.notice{border-left:3px solid var(--accent);background:var(--soft);padding:16px 20px;margin:24px 0;font-size:13px}.notice.error{border-color:var(--danger);background:#fbefeb;color:#762b26}.notice ul{padding-left:18px;margin:6px 0 0}.notice p+p{margin-top:6px}.table-scroll{overflow:auto}table{border-collapse:collapse;text-align:left;width:100%;font-size:13px}th{font-size:10px;text-transform:uppercase;letter-spacing:1.1px;color:var(--muted);font-weight:600;padding:13px 12px;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}td{padding:19px 12px;border-bottom:1px solid var(--line);vertical-align:top}th:first-child,td:first-child{padding-left:0}th:last-child,td:last-child{padding-right:0}td strong{font-weight:550}.cell-subtitle{display:block;font-size:12px;color:var(--muted);margin-top:4px;overflow-wrap:anywhere}.align-right{text-align:right}.nowrap{white-space:nowrap}.status-label{font-size:11px;color:var(--muted);display:inline-flex;align-items:center;gap:7px}.status-label:before{content:"";width:5px;height:5px;border-radius:50%;background:currentColor}.status-label.active{color:var(--accent)}.empty-state{text-align:center;padding:42px 0;color:var(--muted)}.filter-form{display:flex;align-items:end;gap:18px;flex-wrap:wrap;padding:0 0 30px;border-bottom:1px solid var(--line);margin-bottom:28px}.filter-form .field{flex:1;min-width:200px}.filter-form>.secondary-link{padding-bottom:13px}details summary{cursor:pointer;color:var(--accent);font-size:12px}pre{background:var(--soft);padding:12px;max-width:330px;max-height:260px;overflow:auto;font-size:11px;white-space:pre-wrap;overflow-wrap:anywhere}.pagination{display:flex;justify-content:space-between;gap:20px;font-size:12px;padding:22px 0}.pagination>span{color:var(--muted)}.scope-note{font-size:12px;color:var(--muted);margin-top:24px;max-width:770px}.login-body{min-height:100vh;display:flex;flex-direction:column}.login-header{display:flex;justify-content:space-between;align-items:center;padding:35px 5vw}.login-main{width:min(420px,calc(100% - 48px));margin:60px auto 70px}.login-heading{margin-bottom:35px}.login-heading .eyebrow{margin-bottom:15px}.login-heading>p:last-child{color:var(--muted);margin-top:13px;font-size:14px}.login-help{margin-top:30px;padding-top:23px;border-top:1px solid var(--line);font-size:12px;color:var(--muted);line-height:1.8}.login-footer{margin-top:auto;padding:25px 5vw;font-size:11px;color:var(--muted)}.skip-link{position:absolute;left:-9999px;z-index:10;background:white;padding:12px}.skip-link:focus{left:15px;top:15px}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}@media(max-width:850px){.workspace{grid-template-columns:180px minmax(0,1fr)}.sidebar{padding:30px 20px}.main-content{padding:27px 24px}.heading-with-action{align-items:flex-start;flex-direction:column}.section-heading{align-items:flex-start;flex-wrap:wrap}}@media(max-width:620px){.workspace{display:block}.sidebar{padding:20px 24px;border-right:0;border-bottom:1px solid var(--line)}.sidebar .brand{font-size:29px}.sidebar .brand span{font-size:9px}.nav-caption{display:none}.sidebar nav{flex-direction:row;flex-wrap:wrap;gap:5px;margin-top:24px}.sidebar nav a{margin:0;padding:8px 11px;font-size:12px}.sidebar-footer{padding-top:16px;display:flex;gap:12px;align-items:center;flex-wrap:wrap}.sidebar-footer>span{margin:0}.sidebar-footer form{margin-left:auto}.main-content{padding:25px 24px}.page-heading{padding:28px 0}.topline{padding-bottom:18px}.filter-form .field{min-width:100%;flex:1}.login-header{padding:28px 24px}.login-header>.eyebrow{font-size:9px}.login-main{margin-top:45px}.form-actions{flex-wrap:wrap}}@media(prefers-reduced-motion:reduce){*{transition:none!important}}
/* Catalogue forms share the panel's responsive workspace and restrained spacing. */
.category-tree, .category-tree-children { list-style: none; padding: 0; margin: 0; min-width: 0; }
.category-tree-content { min-width: 680px; }
.category-tree-heading, .category-tree-row { display: grid; grid-template-columns: minmax(0, 1fr) 110px 100px 96px; align-items: center; border-bottom: 1px solid var(--line); }
.category-tree-heading { font-size: 10px; text-transform: uppercase; letter-spacing: 1.1px; color: var(--muted); font-weight: 600; }
.category-tree-heading > span { padding: 18px 12px; }
.category-tree-heading > span:first-child { padding-left: 0; }
.category-tree-children { margin-left: 20px; padding-left: 14px; border-left: 1px solid var(--line); }
.category-tree-row { padding: 4px 0; font-size: 13px; }
.category-tree-identity { min-width: 0; }
.category-tree-toggle, .category-tree-leaf { display: flex; gap: 10px; align-items: center; width: 100%; min-width: 0; min-height: 44px; padding: 8px 12px 8px 0; border: 0; border-radius: 3px; background: transparent; color: var(--ink); font-size: 13px; text-align: left; }
.category-tree-toggle:hover { color: var(--accent); background: var(--soft); }
.category-tree-toggle > svg, .category-tree-marker { flex: 0 0 16px; width: 16px; text-align: center; color: var(--muted); }
.category-tree-toggle[aria-expanded="true"] > svg { transform: rotate(90deg); }
.category-tree-row strong { font-weight: 550; overflow-wrap: anywhere; min-width: 0; }
.category-tree-count { margin-left: auto; color: var(--muted); font-size: 12px; white-space: nowrap; }
.category-tree-products, .category-tree-status { padding: 0 12px; white-space: nowrap; }
.category-tree-meta { padding-left: 26px; display: flex; flex-wrap: wrap; gap: 5px 14px; font-size: 12px; color: var(--muted); }
.category-tree-actions { display: flex; align-self: stretch; align-items: center; justify-content: flex-end; }
.category-tree-edit { min-width: 44px; min-height: 44px; padding: 0 4px; display: inline-flex; align-items: center; font-size: 13px; white-space: nowrap; }
.category-tree-row.is-context strong { color: var(--muted); }
.category-tree-summary { padding: 22px 0; font-size: 12px; color: var(--muted); }
@media (max-width: 760px) {
    .category-tree-children { margin-left: 5px; padding-left: 9px; }
}
.searchable-select-field { max-width: 100%; }
.searchable-select-label { font-size: 13px; font-weight: 550; }
.searchable-select { position: relative; min-width: 0; }
.searchable-select > summary { list-style: none; }
.searchable-select > summary::-webkit-details-marker { display: none; }
.searchable-select-trigger { min-height: 48px; padding: 12px 18px 12px 13px; display: flex; align-items: center; justify-content: space-between; gap: 14px; border: 1px solid #bdc9c2; border-radius: 3px; background: #fff; color: var(--ink); font-size: 15px; }
.searchable-select-trigger > span { min-width: 0; overflow-wrap: anywhere; }
.searchable-select-trigger > svg { flex: 0 0 12px; color: var(--muted); }
.searchable-select[open] > summary { border-color: var(--accent); }
.searchable-select[open] > summary > svg { transform: rotate(180deg); }
.searchable-select-trigger[aria-invalid="true"] { border-color: var(--danger); }
.searchable-select-popover { position: absolute; z-index: 20; top: calc(100% + 6px); left: 0; width: 100%; min-width: 0; padding: 8px; border: 1px solid var(--line); border-radius: 8px; background: #fff; box-shadow: 0 14px 36px #202a2a1f; }
.searchable-select-search { position: relative; display: block; }
.searchable-select-search > svg { position: absolute; top: 50%; left: 12px; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.searchable-select-search input { padding-left: 38px; font-size: 16px; background: var(--paper); }
.searchable-select-options { max-height: min(300px, 40dvh); overflow-y: auto; overscroll-behavior: contain; margin-top: 8px; }
.searchable-select-option { width: 100%; min-height: 44px; padding: 10px 12px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border: 0; border-radius: 3px; color: var(--ink); background: transparent; font-size: 14px; text-align: left; overflow-wrap: anywhere; }
.searchable-select-option:hover, .searchable-select-option:focus-visible, .searchable-select-option[aria-selected="true"] { background: var(--soft); color: var(--accent); }
.searchable-select-option:focus-visible { outline-offset: -3px; }
.searchable-select-option[aria-selected="true"]::after { content: '✓'; flex-shrink: 0; }
.searchable-select-empty { padding: 20px 12px; color: var(--muted); font-size: 13px; text-align: center; }
.catalog-selected-ranges { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.catalog-selected-ranges li { display: flex; align-items: center; gap: 8px; min-width: 0; max-width: 100%; padding-left: 12px; background: var(--soft); border: 1px solid var(--line); border-radius: 4px; font-size: 13px; }
.catalog-selected-ranges span { min-width: 0; overflow-wrap: anywhere; }
.catalog-selected-ranges button { flex: 0 0 44px; min-height: 44px; border: 0; background: transparent; color: var(--accent); font-size: 20px; }
.catalog-form { max-width: 820px; }
.catalog-content-editor { max-width: 820px; min-width: 0; }
.catalog-content-editor .secondary-button, .store-content-action { border: 1px solid var(--line); color: var(--accent); background: white; padding: 11px 16px; border-radius: 3px; min-height: 44px; align-self: flex-start; }
.content-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.content-heading p { margin-top: 8px; }
.content-heading a { flex-shrink: 0; }
.content-language { max-width: 420px; margin-bottom: 24px; }
.catalog-content-editor textarea { width: 100%; resize: vertical; min-height: 200px; font: inherit; padding: 12px 13px; border: 1px solid #bdc9c2; border-radius: 3px; background: white; color: var(--ink); }
.catalog-content-editor textarea:focus-visible { outline: 3px solid #85baad; outline-offset: 3px; }
.catalog-content-editor textarea[aria-invalid=true] { border-color: var(--danger); }
.catalog-content-editor .notice { margin: 0; }
.catalog-content-editor > .notice { margin-bottom: 24px; }
.catalog-content-editor .cofre-composition textarea { min-height: 120px; }
.content-translation { margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.content-translation h3 { margin: 0; font-size: 15px; font-weight: 600; }
.content-translation .field { width: 100%; max-width: 420px; }
.range-translation > .notice { margin: 0; }
.range-translation .secondary-button { max-width: 100%; white-space: normal; text-align: center; min-height: 44px; }
.range-translation-results { list-style: none; padding: 0; margin: 0; width: 100%; }
.range-translation-results li { display: flex; gap: 8px 20px; flex-wrap: wrap; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 13px; overflow-wrap: anywhere; }
.range-translation-results strong { flex: 0 1 130px; }
.range-translation-results span { flex: 1 1 200px; color: var(--muted); }
.range-translation-results .translation-failed span { color: var(--danger); }
@media(max-width:620px) { .content-heading { flex-direction: column; gap: 12px; } .content-language { max-width: 100%; } }
.product-editor { min-width: 0; }
.product-editor-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.product-editor-identity { display: flex; align-items: flex-start; gap: 12px; min-width: 0; }
.product-editor-identity > .product-listing-thumbnail { margin-top: 2px; }
.store-preparation-list { list-style: none; padding: 0; margin: 0; border: 1px solid var(--line); border-radius: 4px; background: #fff; }
.store-preparation { min-width: 0; padding: 16px; overflow-wrap: anywhere; }
.store-preparation + .store-preparation { border-top: 1px solid var(--line); }
.store-preparation-heading { display: flex; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.store-preparation-heading .check-option { flex: 1 1 240px; min-width: 0; min-height: 44px; margin: 0; }
.store-preparation-heading .check-option > span { min-width: 0; }
.store-preparation-heading .check-option input { flex-shrink: 0; }
.store-preparation-heading .status-label { margin-top: 4px; }
.store-preparation-details { margin-top: 8px; }
.store-preparation-details summary { min-height: 44px; padding: 12px 0; font-size: 13px; }
.store-preparation-details ul { margin: 0; padding-left: 20px; }
.store-preparation-details li { padding: 4px 0; font-size: 13px; }
.store-preparation-details li > span { display: block; }
.store-preparation-details a, .store-preparation-details .text-button { display: inline-flex; align-items: center; min-height: 44px; font-size: 12px; }
.store-content-action { margin-top: 8px; min-height: 44px; max-width: 100%; white-space: normal; text-align: left; }
.product-editor-context { min-width: 0; }
.product-editor-context h1, .product-editor-context p { overflow-wrap: anywhere; }
.product-editor-toolbar .form-actions { flex-shrink: 0; flex-wrap: wrap; padding-top: 0; gap: 16px; }
.product-editor-toolbar .secondary-link { display: inline-flex; align-items: center; min-height: 44px; }
.product-editor-tabs { display: flex; gap: 4px; max-width: 100%; overflow-x: auto; overscroll-behavior-x: contain; border-bottom: 1px solid var(--line); margin-bottom: 26px; scrollbar-width: thin; }
.product-editor-tabs [role="tab"] { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 12px 14px; border: 0; border-bottom: 2px solid transparent; background: transparent; color: var(--muted); font-size: 13px; font-weight: 550; white-space: nowrap; }
.product-editor-tabs [role="tab"]:hover { background: var(--soft); color: var(--accent); }
.product-editor-tabs [role="tab"][aria-selected="true"] { color: var(--accent); border-bottom-color: var(--accent); }
.product-editor-tabs [role="tab"]:focus-visible { outline-offset: -3px; }
.product-tab-error { display: inline-flex; align-items: center; justify-content: center; min-width: 20px; min-height: 20px; border-radius: 10px; background: #fbefeb; color: var(--danger); font-size: 11px; }
.product-editor-panel { min-width: 0; display: flex; flex-direction: column; gap: 28px; }
.product-editor-panel:focus-visible { outline: 2px solid #85baad; outline-offset: 6px; }
.product-editor-panel > .catalog-section:first-child { border-top: 0; }
.product-editor-panel > .product-gallery { margin-top: 0; }
@media (max-width: 1000px) {
    .product-editor-toolbar { align-items: flex-start; flex-direction: column; gap: 18px; }
}
@media (max-width: 760px) {
    .product-editor-tabs [role="tab"] { padding-left: 11px; padding-right: 11px; }
    .product-editor-heading .back-link { margin-bottom: 14px; }
}
.catalog-section { min-width: 0; margin: 0; padding: 22px 0 0; border: 0; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 20px; }
.catalog-section legend { padding: 0 16px 0 0; font-size: 17px; font-weight: 600; }
.catalog-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.field textarea { width: 100%; min-width: 0; resize: vertical; padding: 12px 13px; border: 1px solid #bdc9c2; border-radius: 3px; background: #fff; color: var(--ink); font: inherit; }
.field textarea:focus-visible { outline: 3px solid #85baad; outline-offset: 3px; }
.field input[readonly], .field input:disabled, .field select:disabled, .field textarea:disabled { background-color: var(--soft); }
.check-list { display: flex; flex-direction: column; gap: 4px; }
.check-option { min-height: 44px; display: flex; align-items: flex-start; gap: 12px; padding: 10px 0; font-size: 14px; cursor: pointer; overflow-wrap: anywhere; }
.check-option input { flex: 0 0 20px; width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--accent); }
.check-option small { display: block; color: var(--muted); font-size: 12px; margin-top: 3px; }
.catalog-related { margin-top: 40px; padding-top: 26px; border-top: 1px solid var(--line); max-width: 820px; }
.catalog-code { display: block; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.catalog-history summary { min-height: 44px; padding: 12px 0; }
.catalog-form .scope-note { margin-top: 0; }
[data-catalog-errors] { scroll-margin-top: calc(var(--header-height) + 20px); }
@media (max-width: 760px) {
    .catalog-grid { grid-template-columns: minmax(0, 1fr); }
    .field textarea { font-size: 16px; }
}
/* Keep the native select interaction while giving its indicator consistent spacing. */
.field select:not([multiple]):not([size]),
.field select:not([multiple])[size="1"] {
    -webkit-appearance: none;
    appearance: none;
    padding-right: 2.75rem;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='m1 1.5 5 5 5-5' fill='none' stroke='%236b7574' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 12px 8px;
}

@media (forced-colors: active) {
    .field select:not([multiple]):not([size]),
    .field select:not([multiple])[size="1"] {
        -webkit-appearance: auto;
        appearance: auto;
        background-image: none;
        padding-right: 13px;
    }
}

/* Shared application shell. Content pages do not own navigation or account controls. */
:root {
    --header-height: 80px;
    --sidebar-width: 240px;
}
[hidden] { display: none !important; }
.app-header {
    position: sticky;
    top: 0;
    z-index: 30;
    height: var(--header-height);
    display: grid;
    grid-template-columns: var(--sidebar-width) 44px minmax(0, 1fr);
    align-items: center;
    padding-right: 28px;
    border-bottom: 1px solid var(--line);
    background: var(--paper);
}
.header-brand { padding-left: 27px; font-size: 30px; width: fit-content; }
.header-brand span { font-size: 9px; letter-spacing: 2.8px; margin-top: 6px; }
.sidebar-toggle {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 0;
    border-radius: 4px;
    color: var(--muted);
    background: transparent;
}
.sidebar-toggle:hover { color: var(--accent); background: var(--soft); }
.sidebar-toggle[aria-expanded="false"] svg { transform: rotate(180deg); }
.sidebar-toggle svg { transition: transform .18s ease; }
.account-menu {
    position: relative;
    justify-self: end;
    max-width: min(340px, 100%);
    margin-left: 20px;
}
.account-menu > summary {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 16px;
    min-height: 48px;
    padding: 7px 12px;
    border-radius: 4px;
    color: var(--ink);
    list-style: none;
}
.account-menu > summary::-webkit-details-marker { display: none; }
.account-menu > summary:hover, .account-menu[open] > summary { background: var(--soft); }
.account-identity { min-width: 0; text-align: right; }
.account-identity strong, .account-identity > span {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.account-identity strong { font-size: 14px; font-weight: 600; }
.account-identity > span { font-size: 12px; color: var(--muted); margin-top: 2px; }
.account-chevron { flex-shrink: 0; color: var(--muted); transition: transform .14s ease; }
.account-menu[open] .account-chevron { transform: rotate(180deg); }
.account-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 220px;
    max-width: calc(100vw - 24px);
    padding: 6px;
    border: 1px solid var(--line);
    border-radius: 5px;
    background: #fff;
    box-shadow: 0 10px 30px #202a2a12;
    animation: account-reveal .14s ease-out;
}
.account-dropdown a, .account-dropdown button {
    display: block;
    width: 100%;
    padding: 11px 13px;
    border: 0;
    border-radius: 3px;
    background: transparent;
    color: var(--ink);
    text-align: left;
    font-size: 13px;
}
.account-dropdown a:hover, .account-dropdown button:hover,
.account-dropdown a[aria-current] { background: var(--soft); color: var(--accent); text-decoration: none; }
.account-dropdown form { border-top: 1px solid var(--line); margin-top: 5px; padding-top: 5px; }
.workspace {
    display: grid;
    grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
    min-height: calc(100vh - var(--header-height));
    min-height: calc(100dvh - var(--header-height));
    transition: grid-template-columns .18s ease;
}
.workspace.sidebar-collapsed { grid-template-columns: 0 minmax(0, 1fr); }
.sidebar {
    grid-column: 1;
    grid-row: 1;
    position: sticky;
    top: var(--header-height);
    align-self: start;
    height: calc(100vh - var(--header-height));
    height: calc(100dvh - var(--header-height));
    min-width: 0;
    overflow-y: auto;
    padding: 30px 18px;
}
.nav-caption { display: block; margin: 0 12px 17px; }
.sidebar nav { flex-direction: column; flex-wrap: nowrap; gap: 5px; margin: 0; }
.sidebar nav a { margin: 0; padding: 11px 12px; font-size: 14px; }
.navigation-group { min-width: 0; }
.sidebar .navigation-group > summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-height: 44px;
    padding: 11px 12px;
    border-radius: 3px;
    color: var(--muted);
    font-size: 14px;
    list-style: none;
}
.navigation-group > summary::-webkit-details-marker { display: none; }
.navigation-group > summary > span { min-width: 0; overflow-wrap: anywhere; }
.sidebar .navigation-group > summary:hover { background: #e5ece5; }
.sidebar .navigation-group.is-active > summary { color: var(--accent); font-weight: 600; }
.navigation-chevron { flex-shrink: 0; transition: transform .14s ease; }
.navigation-group[open] > summary > .navigation-chevron { transform: rotate(90deg); }
.navigation-children {
    display: flex;
    flex-direction: column;
    gap: 3px;
    margin: 4px 0 8px 12px;
    padding-left: 10px;
    border-left: 1px solid var(--line);
}
.sidebar .navigation-children > a { min-height: 44px; padding: 11px 12px; font-size: 13px; }
.main-content { grid-column: 2; grid-row: 1; width: 100%; max-width: none; padding-top: 24px; }
.page-heading { padding: 24px 0 32px; }
.skip-link { z-index: 100; }
.sidebar-backdrop {
    position: fixed;
    inset: var(--header-height) 0 0;
    z-index: 15;
    background: #202a2a38;
}
@keyframes account-reveal {
    from { opacity: 0; transform: translateY(-3px); }
    to { opacity: 1; transform: translateY(0); }
}
@media (max-width: 760px) {
    :root { --header-height: 72px; }
    .app-header { grid-template-columns: 108px 36px minmax(0, 1fr); gap: 8px; padding: 0 12px; }
    .header-brand { padding-left: 4px; font-size: 27px; }
    .header-brand span { font-size: 8px; letter-spacing: 2.4px; }
    .sidebar-toggle { width: 36px; height: 40px; }
    .account-menu { margin-left: 0; }
    .account-menu > summary { padding: 6px; gap: 8px; }
    .account-identity strong { font-size: 13px; }
    .account-identity > span { font-size: 11px; }
    .workspace { display: block; }
    .sidebar { position: static; height: auto; max-height: calc(100dvh - var(--header-height)); border-right: 0; }
    [data-layout-ready] .sidebar {
        position: fixed;
        top: var(--header-height);
        left: 0;
        z-index: 20;
        width: min(285px, calc(100vw - 40px));
        height: calc(100vh - var(--header-height));
        height: calc(100dvh - var(--header-height));
        border-right: 1px solid var(--line);
    }
    .main-content { padding: 20px; }
    .page-heading { padding-top: 16px; }
}
@media (prefers-reduced-motion: reduce) {
    .account-dropdown { animation: none; }
}

/* Shared list interactions and small-screen reading order. */
.filter-form { column-gap: 18px; row-gap: 16px; }
.filter-feedback { flex-basis: 100%; display: flex; flex-wrap: wrap; gap: 8px 20px; }
.filter-errors { flex-basis: 100%; margin: 0; }
.offline-notice { color: var(--danger); font-size: 12px; }
.listing-results { transition: opacity .15s ease; }
.listing-results.is-updating { opacity: .55; }
.filter-form.table-listing-filters { border-bottom: 0; padding-bottom: 0; margin-bottom: 24px; }
.data-table-panel { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 0 24px; }
.data-table-panel th { border-top: 0; padding-top: 18px; padding-bottom: 18px; }
.pagination { align-items: center; flex-wrap: wrap; }
.pagination-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.pagination button {
    min-height: 44px;
    padding: 9px 12px;
    border: 1px solid var(--line);
    border-radius: 3px;
    background: transparent;
    color: var(--accent);
}
.pagination button:hover:not(:disabled) { background: var(--soft); }
.pagination button:disabled { color: var(--muted); opacity: .6; cursor: default; }
.button { max-width: 100%; white-space: normal; text-align: center; }
.button > span { flex-shrink: 0; }
.page-heading, .notice, .scope-note, .section-heading, .action-list, td { overflow-wrap: anywhere; }
.table-scroll { max-width: 100%; }
td details summary { padding: 10px 0; min-height: 44px; }
td pre { max-width: min(330px, 100%); margin-bottom: 0; }
.row-actions a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 4px; }
.heading-with-action > div { min-width: 0; }
@media (max-width: 1000px) {
    .heading-with-action { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 760px) {
    .field input, .field select { font-size: 16px; }
    .data-table-panel { padding-right: 14px; padding-left: 14px; }
    .filter-form .field { flex-basis: 100%; min-width: 0; }
    .button { min-height: 44px; gap: 16px; }
    .form-actions { flex-wrap: wrap; gap: 16px; }
    .form-actions .secondary-link { display: inline-flex; align-items: center; min-height: 44px; }
    .pagination { gap: 12px; }
    .pagination-controls { width: 100%; justify-content: space-between; gap: 8px; }
    .pagination-controls > span { font-size: 11px; }
}
@media (max-width: 1000px) {
    .responsive-table, .responsive-table tbody { display: block; width: 100%; }
    .responsive-table thead {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip-path: inset(50%);
    }
    .responsive-table tbody tr {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        gap: 14px 20px;
        padding: 20px 0;
        border-top: 1px solid var(--line);
    }
    .responsive-table tbody tr:last-child { border-bottom: 1px solid var(--line); }
    .responsive-table td { display: block; min-width: 0; padding: 0; border: 0; white-space: normal; }
    .responsive-table td:first-child, .responsive-table td[data-label="Detalle"], .responsive-table .empty-state { grid-column: 1 / -1; }
    .responsive-table td[data-label]::before {
        content: attr(data-label);
        display: block;
        color: var(--muted);
        font-size: 10px;
        letter-spacing: .7px;
        text-transform: uppercase;
        margin-bottom: 5px;
    }
    .responsive-table .row-actions { grid-column: 1 / -1; text-align: left; }
    .responsive-table .empty-state { padding: 20px 0; }
}

/* Standard tables stay compact and scroll horizontally; actions stay within reach. */
.product-gallery { max-width: 820px; margin-top: 40px; min-width: 0; }
.product-gallery h2 { margin-bottom: 8px; }
.gallery-upload { margin: 24px 0; }
.gallery-uploader { margin: 16px 0; }
.gallery-uploader > summary { min-height: 44px; padding: 12px 0; font-size: 13px; font-weight: 550; }
.gallery-uploader .gallery-upload { margin: 0 0 20px; }
.gallery-upload .gallery-dropzone { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 156px; padding: 22px 16px; border: 1px dashed #9eafa5; border-radius: 6px; background: #fff; text-align: center; cursor: pointer; transition: background .14s, border-color .14s; }
.gallery-dropzone > svg { margin-bottom: 6px; color: var(--accent); }
.gallery-dropzone > strong { font-size: 14px; font-weight: 550; }
.gallery-dropzone > span { font-size: 13px; font-weight: 400; color: var(--muted); }
.gallery-dropzone > :not(input) { pointer-events: none; }
.gallery-upload .gallery-dropzone:hover, .gallery-upload .gallery-dropzone.is-dragover { background: var(--soft); border-color: var(--accent); }
.gallery-upload .gallery-dropzone:focus-within { outline: 3px solid #85baad; outline-offset: 3px; border-color: var(--accent); }
.gallery-upload .gallery-dropzone.has-error { border-color: var(--danger); }
.gallery-upload .gallery-dropzone.is-uploading { opacity: .6; }
.gallery-upload .gallery-dropzone input[type="file"] { position: absolute; inset: 0; z-index: 1; width: 100%; max-width: 100%; height: 100%; margin: 0; padding: 0; opacity: 0; cursor: pointer; }
.gallery-upload .gallery-dropzone input:disabled { cursor: wait; }
.gallery-upload > .button { margin-top: 12px; }
.gallery-selection { margin-top: 12px; }
.gallery-pending-files { margin: 6px 0 0; padding-left: 18px; font-size: 12px; overflow-wrap: anywhere; }
.gallery-empty { padding: 32px 16px; background: #fff; border: 1px dashed var(--line); border-radius: 8px; color: var(--muted); text-align: center; }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 16px; }
.gallery-photo { min-width: 0; background: #fff; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.gallery-photo-inactive { border-style: dashed; }
.gallery-preview { height: 240px; display: flex; align-items: center; justify-content: center; padding: 16px; background: #f8f9f8; text-align: center; color: var(--muted); }
.gallery-preview a { display: block; width: 100%; height: 100%; }
.gallery-preview img { width: 100%; height: 100%; object-fit: contain; }
.gallery-photo-content { padding: 16px; overflow-wrap: anywhere; }
.gallery-photo h3 { font-size: 14px; line-height: 1.5; margin: 12px 0 4px; }
.gallery-photo .subtle, .gallery-warning { font-size: 12px; line-height: 1.6; }
.gallery-warning { color: #83521a; }
.gallery-badges, .gallery-links, .gallery-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.gallery-badges .status-label { white-space: normal; }
.gallery-links a { display: inline-flex; align-items: center; min-height: 44px; font-size: 12px; }
.gallery-actions { margin-top: 8px; gap: 6px; }
.gallery-actions button { min-width: 44px; min-height: 44px; border: 1px solid var(--line); background: #fff; color: var(--ink); border-radius: 6px; font: inherit; font-size: 12px; padding: 8px 10px; cursor: pointer; }
.gallery-actions button:disabled { opacity: .4; cursor: default; }
.gallery-upload .button:disabled { opacity: .5; cursor: default; }
@media (max-width: 600px) { .gallery-grid { grid-template-columns: minmax(0, 1fr); } }

.data-table-scroll { overscroll-behavior-x: contain; }
.data-table-scroll:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.data-table { min-width: 680px; border-collapse: separate; border-spacing: 0; }
.data-table td:not(.empty-state) { padding-top: 4px; padding-bottom: 4px; vertical-align: middle; }
.data-table:not(.is-empty) th:first-child { min-width: 140px; }
.data-table .status-label, .data-table .row-actions a { white-space: nowrap; }
.range-content-status { min-width: 175px; }
.range-content-status > a { display: inline-flex; flex-direction: column; justify-content: center; min-height: 44px; }
.range-content-status .cell-subtitle { margin-top: 0; white-space: nowrap; }
.status-label.pending { color: #83521a; }
.range-listing-panel .data-table:not(.is-empty) { min-width: 960px; table-layout: fixed; }
.range-listing-panel th:nth-child(2) { width: 180px; }
.range-listing-panel th:nth-child(3) { width: 100px; }
.range-listing-panel th:nth-child(4) { width: 200px; }
.range-listing-panel th:nth-child(5) { width: 110px; }
.range-content-status > a, .range-content-status > span { max-width: 100%; }
.range-content-status .cell-subtitle { max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.data-table .table-actions, .category-tree-actions {
    position: sticky;
    right: 0;
    z-index: 1;
    width: 96px;
    min-width: 96px;
    padding-left: 12px;
    padding-right: 8px;
    background: #fff;
    border-left: 1px solid var(--line);
    box-shadow: -6px 0 8px -8px #202a2a66;
    text-align: right;
}
.data-table.is-empty { min-width: 0; }
.data-table.is-empty thead { display: none; }
.product-listing-panel .data-table:not(.is-empty) { min-width: 1220px; table-layout: fixed; }
.product-listing-panel .product-brand-column { width: 164px; }
.product-listing-panel .product-category-column { width: 190px; }
.product-listing-panel .product-size-column { width: 170px; }
.product-listing-panel .product-ean-column { width: 160px; }
.product-listing-panel .product-stores-column { width: 70px; }
.product-listing-panel .product-status-column { width: 110px; }
.product-listing-panel .catalog-cell-line { display: block; line-height: 18px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; overflow-wrap: normal; }
.product-listing-panel .cell-subtitle { margin-top: 2px; }
.product-listing-identity { display: flex; align-items: center; gap: 10px; min-width: 0; }
.product-listing-thumbnail { display: block; flex: 0 0 40px; width: 40px; height: 40px; object-fit: contain; border-radius: 4px; background: #fff; }
.product-listing-thumbnail-empty { display: flex; align-items: center; justify-content: center; color: var(--muted); background: var(--paper); border: 1px solid var(--line); }
.product-listing-description { min-width: 0; flex: 1; }
:is(.product-listing-panel, .range-listing-panel) .catalog-cell-two-lines { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; line-height: 18px; max-height: 36px; }
.pagination-controls-numbered { margin-left: auto; justify-content: flex-end; gap: 4px; }
.pagination-controls-numbered button { min-width: 44px; padding-right: 8px; padding-left: 8px; }
.pagination-controls-numbered button[aria-current="page"] { background: var(--accent); border-color: var(--accent); color: #fff; opacity: 1; }
.pagination-ellipsis { padding: 0 2px; color: var(--muted); }
@media (max-width: 1000px) {
    .pagination-controls-numbered { flex-wrap: nowrap; gap: 2px; }
    .pagination-controls-numbered button { flex-shrink: 0; }
    .pagination-controls-numbered .pagination-desktop-page,
    .pagination-controls-numbered .pagination-ellipsis { display: none; }
}
@media (max-width: 760px) {
    .pagination-controls-numbered { justify-content: center; }
}
