/* ═══════════════════════════════════════════════════════════════
   AppliWeb UI — Enterprise ERP workspace
   Vert interaction : #00B193
   Beige accent     : #BB8748
   Rouge alerte     : #A61B0C
   ═══════════════════════════════════════════════════════════════ */
:root {
    --aw-brand: #009e84;
    --aw-brand-hover: #00836d;
    --aw-brand-soft: #d8f3ed;
    --aw-accent: #a67235;
    --aw-accent-soft: #f3e6d4;
    --aw-danger: #9a170c;
    --aw-danger-soft: #f6d9d6;
    --aw-ink: #0f172a;
    --aw-muted: #475569;
    --aw-line: #cbd5e1;
    --aw-surface: #ffffff;
    --aw-canvas: #e8eef5;
    --aw-radius: 6px;
    --aw-gap: 0.65rem;
    --aw-control-h: 2.15rem;
    /* Couche flottante globale (selects, calendriers, menus, popovers) */
    --aw-z-sticky: 2;
    --aw-z-float-backdrop: 10500;
    --aw-z-float: 10510;
    --aw-z-modal: 11000;
    --aw-z-toast: 11500;
}

.aw-page {
    color: var(--aw-ink);
    font-family: Poppins, system-ui, sans-serif;
}
.aw-page--workspace {
    display: flex;
    flex-direction: column;
    gap: 0;
    min-height: calc(100vh - 7.5rem);
}
.aw-page * { box-sizing: border-box; }

/* ── Workspace shell ── */
.aw-workspace {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
    background: var(--aw-surface);
    border: 1px solid var(--aw-line);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

/* ── Object page header (ERP) — compact, settings-aligned ── */
.aw-object-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 0.75rem 1.25rem;
    padding: 0.65rem 1.1rem 0.5rem;
    border-bottom: none;
    background: #fff;
    flex-shrink: 0;
}
.aw-object-head__identity {
    min-width: 0;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}
.aw-object-head__eyebrow {
    margin: 0;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: #007a68;
}
.aw-object-head__title {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: -0.025em;
    color: var(--aw-ink);
    line-height: 1.15;
}
.aw-object-head__desc {
    margin: 0;
    max-width: 40rem;
    font-size: 0.76rem;
    line-height: 1.4;
    color: var(--aw-muted);
}
.aw-object-head__actions {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    flex-shrink: 0;
}

/* ── Module switcher — segmented (few modes, e.g. Stock) ── */
.aw-modnav {
    display: inline-flex;
    align-items: center;
    gap: 0.12rem;
    padding: 0.12rem;
    background: #f1f5f9;
    border: 1px solid var(--aw-line);
    border-radius: 7px;
    flex: 0 0 auto;
    max-width: 100%;
    overflow-x: auto;
    scrollbar-width: thin;
}
.aw-modnav__item {
    appearance: none;
    border: none;
    background: transparent;
    color: var(--aw-muted);
    cursor: pointer;
    font-family: inherit;
    display: inline-flex;
    align-items: center;
    gap: 0.32rem;
    height: 1.75rem;
    padding: 0 0.6rem;
    border-radius: 5px;
    white-space: nowrap;
    font-size: 0.74rem;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    transition: background 0.12s ease, color 0.12s ease, box-shadow 0.12s ease;
}
a.aw-modnav__item:hover,
a.aw-modnav__item:focus {
    text-decoration: none;
}
.aw-modnav__item > i {
    font-size: 0.76rem;
    opacity: 0.7;
    line-height: 1;
}
.aw-modnav__item:hover {
    color: var(--aw-ink);
    background: rgba(255, 255, 255, 0.75);
}
.aw-modnav__item:hover > i { opacity: 1; }
.aw-modnav__item--active {
    background: #fff;
    color: var(--aw-brand);
    box-shadow: 0 0 0 1px rgba(0, 158, 132, 0.2);
}
.aw-modnav__item--active > i {
    opacity: 1;
    color: var(--aw-brand);
}

/* ── Underline rail nav (workflow modules) — matches settings tabs ── */
.aw-railnav {
    display: flex;
    align-items: stretch;
    gap: 0;
    padding: 0 0.85rem;
    background: #fff;
    border-bottom: 1px solid var(--aw-line);
    overflow-x: auto;
    flex-shrink: 0;
    scrollbar-width: thin;
}
.aw-railnav__item {
    appearance: none;
    border: none;
    background: transparent;
    color: var(--aw-muted);
    cursor: pointer;
    font-family: inherit;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    height: 2.05rem;
    padding: 0 0.75rem;
    margin-bottom: -1px;
    border-bottom: 2px solid transparent;
    white-space: nowrap;
    font-size: 0.78rem;
    font-weight: 600;
    line-height: 1;
    transition: color 0.12s ease, border-color 0.12s ease;
}
.aw-railnav__item > i {
    font-size: 0.8rem;
    opacity: 0.65;
}
.aw-railnav__item:hover {
    color: var(--aw-ink);
    background: transparent;
}
.aw-railnav__item:hover > i { opacity: 1; }
.aw-railnav__item--active {
    color: var(--aw-brand);
    border-bottom-color: var(--aw-brand);
}
.aw-railnav__item--active > i {
    opacity: 1;
    color: var(--aw-brand);
}
.aw-railnav__count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.15rem;
    height: 1.15rem;
    padding: 0 0.3rem;
    border-radius: 999px;
    font-size: 0.65rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    background: #e2e8f0;
    color: var(--aw-muted);
}
.aw-railnav__item--active .aw-railnav__count {
    background: var(--aw-brand-soft);
    color: var(--aw-brand);
}
.aw-railnav__count--alert {
    background: var(--aw-accent-soft);
    color: var(--aw-accent);
}
.aw-queue-alert {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    padding: 0.65rem 0.85rem;
    border-radius: var(--aw-radius);
    border: 1px solid rgba(187, 135, 72, 0.35);
    background: var(--aw-accent-soft);
    color: var(--aw-ink);
    font-size: 0.78rem;
    line-height: 1.4;
}
.aw-queue-alert > i {
    color: var(--aw-accent);
    font-size: 1rem;
    margin-top: 0.1rem;
    flex-shrink: 0;
}
.aw-queue-alert__body { flex: 1; min-width: 0; }
.aw-queue-alert__actions {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    margin-left: auto;
    flex-shrink: 0;
}

.aw-workspace__body {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
    padding: 0.75rem 1rem 0.85rem;
    gap: 0.65rem;
    background: #f8fafc;
}

/* ── Buttons ── */
.aw-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    height: var(--aw-control-h);
    padding: 0 0.85rem;
    border-radius: var(--aw-radius);
    font-size: 0.78rem;
    font-weight: 600;
    border: 1px solid transparent;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease, transform 0.12s ease;
    white-space: nowrap;
    font-family: inherit;
    line-height: 1;
}
.aw-btn:disabled { opacity: 0.45; cursor: default; }
.aw-btn--primary {
    background: var(--aw-brand);
    color: #fff;
}
.aw-btn--primary:hover:not(:disabled) {
    background: var(--aw-brand-hover);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 158, 132, 0.22);
}
.aw-btn--ghost {
    background: #fff;
    color: var(--aw-ink);
    border-color: var(--aw-line);
}
.aw-btn--ghost:hover:not(:disabled) {
    background: #f8fafc;
    border-color: #cbd5e1;
    transform: translateY(-1px);
}
.aw-btn--danger {
    background: var(--aw-danger);
    color: #fff;
}
.aw-btn--sm {
    height: 1.85rem;
    padding: 0 0.65rem;
    font-size: 0.72rem;
}
.aw-btn--icon {
    width: var(--aw-control-h);
    padding: 0;
}

/* ── KPI strip (max 3 indicators — Enterprise overview) ── */
.aw-overview {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    padding: 0.7rem 0.9rem;
    background: #fff;
    border: 1px solid var(--aw-line);
    border-radius: 8px;
}
.aw-overview__top {
    display: none; /* covers folded into metrics; keep markup for a11y optional */
}
.aw-overview--with-cover .aw-overview__top {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.75rem;
}
.aw-overview__intro { min-width: 0; }
.aw-overview__title {
    margin: 0;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--aw-muted);
    line-height: 1.2;
}
.aw-overview__lead { display: none; }
.aw-overview__cover {
    display: flex;
    align-items: baseline;
    gap: 0.4rem;
    flex-shrink: 0;
    padding: 0;
    border: none;
}
.aw-overview__cover-value {
    font-size: 1.05rem;
    font-weight: 750;
    letter-spacing: -0.03em;
    font-variant-numeric: tabular-nums;
    line-height: 1;
}
.aw-overview__cover--brand .aw-overview__cover-value { color: var(--aw-brand); }
.aw-overview__cover--accent .aw-overview__cover-value { color: var(--aw-accent); }
.aw-overview__cover--danger .aw-overview__cover-value { color: var(--aw-danger); }
.aw-overview__cover-label {
    font-size: 0.68rem;
    font-weight: 600;
    color: var(--aw-muted);
    white-space: nowrap;
}
.aw-overview__meter { margin: 0; }
.aw-overview__meter-track {
    height: 0.28rem;
    border-radius: 999px;
    background: #e8eef5;
    overflow: hidden;
}
.aw-overview__meter-fill {
    height: 100%;
    border-radius: inherit;
    transition: width 0.35s ease;
}
.aw-overview__meter-fill--brand { background: var(--aw-brand); }
.aw-overview__meter-fill--accent { background: var(--aw-accent); }
.aw-overview__meter-fill--danger { background: var(--aw-danger); }

.aw-overview__metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    border-top: none;
    padding-top: 0;
}
.aw-overview__metric {
    display: flex;
    align-items: flex-start;
    gap: 0;
    min-width: 0;
    padding: 0 0.85rem;
    border-right: 1px solid var(--aw-line);
}
.aw-overview__metric:first-child { padding-left: 0; }
.aw-overview__metric:last-child {
    padding-right: 0;
    border-right: none;
}
.aw-overview__icon { display: none; } /* parcimony — values speak first */
.aw-overview__metric-body {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    min-width: 0;
    width: 100%;
}
.aw-overview__metric-label {
    font-size: 0.68rem;
    font-weight: 650;
    color: var(--aw-muted) !important;
    line-height: 1.2;
    text-transform: none;
    letter-spacing: 0;
}
.aw-overview__metric-value {
    font-size: 1.2rem;
    font-weight: 750;
    letter-spacing: -0.03em;
    font-variant-numeric: tabular-nums;
    color: var(--aw-ink);
    line-height: 1.1;
    display: flex;
    align-items: baseline;
    gap: 0.28rem;
}
.aw-overview__metric-unit {
    font-size: 0.68rem;
    font-weight: 600;
    color: var(--aw-muted);
}
.aw-overview__metric-hint {
    font-size: 0.66rem;
    color: var(--aw-muted);
    line-height: 1.3;
}

/* ── Secondary filter chips (discreet) ── */
.aw-chip-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem;
    flex-shrink: 0;
}
.aw-chip {
    appearance: none;
    border: 1px solid var(--aw-line);
    background: #fff;
    color: var(--aw-muted);
    height: 1.7rem;
    padding: 0 0.55rem;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    transition: border-color 0.12s ease, background 0.12s ease, color 0.12s ease;
}
.aw-chip strong {
    font-weight: 700;
    color: var(--aw-ink);
    font-variant-numeric: tabular-nums;
}
.aw-chip:hover {
    border-color: #cbd5e1;
    color: var(--aw-ink);
}
.aw-chip--active {
    background: var(--aw-brand-soft);
    border-color: var(--aw-brand);
    color: var(--aw-brand);
}
.aw-chip--active strong { color: var(--aw-brand); }
.aw-chip--accent.aw-chip--active {
    background: var(--aw-accent-soft);
    border-color: var(--aw-accent);
    color: var(--aw-accent);
}
.aw-chip--accent.aw-chip--active strong { color: var(--aw-accent); }
.aw-chip--danger.aw-chip--active {
    background: var(--aw-danger-soft);
    border-color: var(--aw-danger);
    color: var(--aw-danger);
}
.aw-chip--danger.aw-chip--active strong { color: var(--aw-danger); }

/* ── Action / filter bar ── */
.aw-actionbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.45rem;
    flex-shrink: 0;
    padding: 0.45rem;
    background: #f8fafc;
    border: 1px solid var(--aw-line);
    border-radius: var(--aw-radius);
}
.aw-actionbar__search {
    position: relative;
    flex: 1 1 14rem;
    min-width: 10rem;
}
.aw-actionbar__search i {
    position: absolute;
    left: 0.65rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--aw-muted);
    font-size: 0.8rem;
    pointer-events: none;
}
.aw-actionbar__search input,
.aw-select {
    width: 100%;
    height: var(--aw-control-h);
    border: 1px solid var(--aw-line);
    border-radius: var(--aw-radius);
    background: #fff;
    color: var(--aw-ink);
    font-size: 0.78rem;
    font-family: inherit;
    outline: none;
}
.aw-actionbar__search input {
    padding: 0 0.65rem 0 2rem;
}
.aw-actionbar__search input:focus,
.aw-select:focus {
    border-color: var(--aw-brand);
    box-shadow: 0 0 0 3px rgba(0, 177, 147, 0.12);
}
.aw-actionbar__search input::placeholder { color: #94a3b8; }
.aw-actionbar__filters {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.45rem;
    overflow: visible;
    position: relative;
    z-index: 1;
}
.aw-actionbar__filters:has(.aw-dd--open) {
    z-index: var(--aw-z-float);
}
.aw-actionbar__filters .aw-select {
    width: auto;
    min-width: 11rem;
    max-width: 15rem;
    padding: 0 1.75rem 0 0.65rem;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2364748b' d='M2.5 4.5L6 8l3.5-3.5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.6rem center;
}

/* ── Searchable dropdown ── */
.aw-dd {
    position: relative;
    min-width: 11.5rem;
    max-width: 16rem;
}
.aw-dd--open {
    z-index: var(--aw-z-float);
}
.aw-dd__trigger {
    width: 100%;
    height: var(--aw-control-h);
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0 0.65rem;
    border: 1px solid var(--aw-line);
    border-radius: var(--aw-radius);
    background: #fff;
    color: var(--aw-ink);
    font-size: 0.78rem;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    text-align: left;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.aw-dd__trigger:hover { border-color: #cbd5e1; }
.aw-dd--open .aw-dd__trigger,
.aw-dd__trigger:focus {
    outline: none;
    border-color: var(--aw-brand);
    box-shadow: 0 0 0 3px rgba(0, 177, 147, 0.12);
}
.aw-dd__value {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
}
.aw-dd__value--placeholder { color: var(--aw-muted); }
.aw-dd__trigger i {
    color: var(--aw-muted);
    font-size: 0.75rem;
    flex-shrink: 0;
}
.aw-dd__panel {
    position: fixed;
    min-width: 15rem;
    max-width: 22rem;
    z-index: var(--aw-z-float);
    background: #fff;
    border: 1px solid var(--aw-line);
    border-radius: 8px;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.12), 0 2px 6px rgba(15, 23, 42, 0.06);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.aw-dd__backdrop,
.aw-float-backdrop {
    position: fixed;
    inset: 0;
    z-index: var(--aw-z-float-backdrop);
    background: transparent;
}
/* Panneaux positionnés par window.awOverlay (viewport layer) */
.aw-float-panel {
    position: fixed !important;
    z-index: var(--aw-z-float) !important;
    margin: 0 !important;
    right: auto !important;
    bottom: auto !important;
    visibility: hidden;
    pointer-events: none;
}
.aw-float-panel.aw-float-panel--ready {
    visibility: visible;
    pointer-events: auto;
    animation: aw-dd-in 120ms ease both;
}
.aw-dd__panel--fallback {
    position: absolute !important;
    top: calc(100% + 4px);
    left: 0;
    width: 100%;
    min-width: 15rem;
    max-width: 22rem;
    visibility: visible !important;
    pointer-events: auto !important;
    z-index: var(--aw-z-float);
    margin: 0 !important;
    right: auto !important;
    bottom: auto !important;
}
.aw-dd__panel--visible {
    visibility: visible;
    pointer-events: auto;
}
.aw-dd__search {
    position: relative;
    padding: 0.5rem;
    border-bottom: 1px solid var(--aw-line);
    background: #f8fafc;
}
.aw-dd__search i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--aw-muted);
    font-size: 0.8rem;
    pointer-events: none;
}
.aw-dd__search input {
    width: 100%;
    height: 2rem;
    border: 1px solid var(--aw-line);
    border-radius: 6px;
    padding: 0 0.6rem 0 1.9rem;
    font-size: 0.78rem;
    font-family: inherit;
    color: var(--aw-ink);
    background: #fff;
    outline: none;
}
.aw-dd__search input:focus {
    border-color: var(--aw-brand);
    box-shadow: 0 0 0 3px rgba(0, 177, 147, 0.12);
}
.aw-dd__list {
    margin: 0;
    padding: 0.3rem;
    list-style: none;
    max-height: none;
    flex: 1 1 auto;
    overflow-y: auto;
    min-height: 0;
}
.aw-dd__option {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.45rem 0.55rem;
    border: none;
    border-radius: 5px;
    background: transparent;
    color: var(--aw-ink);
    font-size: 0.78rem;
    font-family: inherit;
    text-align: left;
    cursor: pointer;
}
.aw-dd__option:hover { background: #f0fdfa; }
.aw-dd__option--selected {
    background: var(--aw-brand-soft);
    color: var(--aw-brand);
    font-weight: 600;
}
.aw-dd__option--selected i { color: var(--aw-brand); }
.aw-dd__empty {
    padding: 0.75rem 0.6rem;
    font-size: 0.75rem;
    color: var(--aw-muted);
    text-align: center;
}

.aw-actionbar__actions {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-left: auto;
}

/* ── Table (primary content) ── */
.aw-table-region {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 18rem;
    border: 1px solid var(--aw-line);
    border-radius: var(--aw-radius);
    overflow: hidden;
    background: #fff;
}
.aw-table-wrap {
    flex: 1;
    overflow: auto;
    min-height: 0;
}
.aw-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.78rem;
    min-width: 760px;
}
.aw-table th {
    text-align: left;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #334155;
    background: #eef2f7;
    padding: 0.55rem 0.7rem;
    border-bottom: 1px solid var(--aw-line);
    white-space: nowrap;
    position: sticky;
    top: 0;
    z-index: var(--aw-z-sticky);
}
.aw-table td {
    padding: 0.52rem 0.7rem;
    border-bottom: 1px solid #e2e8f0;
    vertical-align: middle;
    color: var(--aw-ink);
}
.aw-table tbody tr {
    cursor: pointer;
    transition: background 0.12s ease;
}
.aw-table tbody tr:hover { background: #f0fdfa; }
.aw-table tbody tr:last-child td { border-bottom: none; }
.aw-table__title {
    display: block;
    font-weight: 600;
    color: var(--aw-ink);
    line-height: 1.25;
}
.aw-table__meta {
    display: block;
    margin-top: 0.05rem;
    font-size: 0.68rem;
    color: var(--aw-muted);
}
.aw-table__num {
    font-variant-numeric: tabular-nums;
    font-weight: 600;
}
.aw-table__row--alert {
    background: #fffbeb;
    box-shadow: inset 3px 0 0 var(--aw-accent);
}
.aw-table__row--alert:hover { background: #fef3c7; }
.aw-dot-alert {
    display: inline-block;
    width: 0.42rem;
    height: 0.42rem;
    margin-right: 0.28rem;
    border-radius: 50%;
    background: var(--aw-accent);
    vertical-align: middle;
}
.aw-table-meter {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    min-width: 5.5rem;
}
.aw-table-meter .aw-overview__meter-track {
    flex: 1;
    min-width: 3rem;
}

/* ── Badges ── */
.aw-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    padding: 0.15rem 0.45rem;
    border-radius: 4px;
    font-size: 0.68rem;
    font-weight: 700;
    line-height: 1.3;
    white-space: nowrap;
    border: 1px solid transparent;
}
.aw-badge--brand,
.aw-badge--secondary {
    background: var(--aw-brand-soft);
    color: #00705e;
    border-color: rgba(0, 158, 132, 0.28);
}
.aw-badge--accent,
.aw-badge--primary {
    background: var(--aw-accent-soft);
    color: #80551f;
    border-color: rgba(166, 114, 53, 0.3);
}
.aw-badge--danger,
.aw-badge--solid {
    background: var(--aw-danger-soft);
    color: #7a1209;
    border-color: rgba(154, 23, 12, 0.28);
}
.aw-badge--muted {
    background: #e8eef5;
    color: #334155;
    border-color: #cbd5e1;
}

/* ── Pager (enterprise) ── */
.aw-pager {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.65rem;
    padding: 0.55rem 0.75rem;
    border-top: 1px solid var(--aw-line);
    background: #f8fafc;
    font-size: 0.72rem;
    color: var(--aw-muted);
    flex-shrink: 0;
}
.aw-pager__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
}
.aw-pager__range {
    font-weight: 600;
    color: var(--aw-ink);
}
.aw-pager__size {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}
.aw-pager__size select {
    height: 1.85rem;
    border: 1px solid var(--aw-line);
    border-radius: var(--aw-radius);
    background: #fff;
    color: var(--aw-ink);
    font-size: 0.72rem;
    font-family: inherit;
    padding: 0 0.4rem;
}
.aw-pager__pages {
    min-width: 5.5rem;
    text-align: center;
    font-weight: 600;
    color: var(--aw-ink);
}
.aw-pager__actions {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

/* ── Segmented filter ── */
.aw-seg {
    display: inline-flex;
    align-items: stretch;
    gap: 0.15rem;
    padding: 0.15rem;
    background: #eef2f7;
    border: 1px solid var(--aw-line);
    border-radius: 8px;
}
.aw-seg__btn {
    appearance: none;
    border: 1px solid transparent;
    background: transparent;
    color: var(--aw-muted);
    height: 1.85rem;
    padding: 0 0.65rem;
    border-radius: 6px;
    font-size: 0.72rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    white-space: nowrap;
}
.aw-seg__btn:hover { color: var(--aw-ink); background: rgba(255,255,255,0.7); }
.aw-seg__btn--active {
    background: #fff;
    color: var(--aw-brand);
    border-color: rgba(0, 177, 147, 0.25);
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
}

/* ── Transformation flow cell ── */
.aw-flow {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex-wrap: wrap;
    min-width: 0;
}
.aw-flow__from,
.aw-flow__to {
    font-weight: 600;
    color: var(--aw-ink);
    line-height: 1.25;
}
.aw-flow__arrow {
    color: var(--aw-brand);
    font-size: 0.85rem;
    flex-shrink: 0;
}

/* ── Admin settings shell ── */
.aw-admin {
    flex: 1;
    min-height: 0;
    display: grid;
    grid-template-columns: 15.5rem minmax(0, 1fr);
    gap: 0.85rem;
}
.aw-admin__nav {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    padding: 0.65rem;
    background: #f8fafc;
    border: 1px solid var(--aw-line);
    border-radius: 10px;
    align-self: start;
    position: sticky;
    top: 0;
}
.aw-admin__nav-title {
    margin: 0 0 0.35rem;
    padding: 0 0.35rem;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--aw-muted);
}
.aw-admin__link {
    appearance: none;
    border: 1px solid transparent;
    background: transparent;
    border-radius: 8px;
    padding: 0.55rem 0.5rem;
    display: grid;
    grid-template-columns: 1.25rem 1fr auto;
    align-items: center;
    gap: 0.5rem;
    text-align: left;
    cursor: pointer;
    font-family: inherit;
    color: var(--aw-muted);
}
.aw-admin__link > i {
    font-size: 0.95rem;
    color: inherit;
}
.aw-admin__link span {
    display: flex;
    flex-direction: column;
    gap: 0.05rem;
    min-width: 0;
}
.aw-admin__link strong {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--aw-ink);
}
.aw-admin__link small {
    font-size: 0.65rem;
    color: #94a3b8;
}
.aw-admin__link em {
    font-style: normal;
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--aw-muted);
    font-variant-numeric: tabular-nums;
}
.aw-admin__link:hover {
    background: #fff;
    border-color: #e2e8f0;
}
.aw-admin__link--active {
    background: #fff;
    border-color: rgba(0, 177, 147, 0.28);
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
    color: var(--aw-brand);
}
.aw-admin__link--active strong { color: var(--aw-brand); }
.aw-admin__link--active em { color: var(--aw-brand); }
.aw-admin__main {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    min-width: 0;
    min-height: 0;
}
.aw-admin__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
}
.aw-admin__title {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--aw-ink);
}
.aw-admin__desc {
    margin: 0.2rem 0 0;
    font-size: 0.74rem;
    line-height: 1.4;
    color: var(--aw-muted);
    max-width: 36rem;
}
.aw-switch-label {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.72rem;
    color: var(--aw-muted);
    cursor: pointer;
}

/* ── Empty / loading ── */
.aw-empty {
    text-align: center;
    padding: 2rem 1rem;
    color: var(--aw-muted);
}
.aw-empty i {
    font-size: 1.35rem;
    color: var(--aw-brand);
    opacity: 0.7;
}
.aw-empty p { margin: 0.45rem 0 0; font-size: 0.82rem; }
.aw-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    min-height: 12rem;
    color: var(--aw-muted);
    font-size: 0.82rem;
}
.aw-spinner {
    width: 1.15rem;
    height: 1.15rem;
    border: 2px solid var(--aw-line);
    border-top-color: var(--aw-brand);
    border-radius: 50%;
    animation: aw-spin 0.7s linear infinite;
}
@keyframes aw-spin { to { transform: rotate(360deg); } }

/* ── Panel fallback (appro / params) ── */
.aw-panel {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    flex: 1;
    min-height: 0;
}
.aw-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}
.aw-toolbar__hint {
    margin: 0;
    font-size: 0.75rem;
    color: var(--aw-muted);
}
.aw-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.45rem;
}
.aw-stat {
    padding: 0.45rem 0.65rem;
    border-radius: var(--aw-radius);
    border: 1px solid var(--aw-line);
    background: #fff;
}
.aw-stat__label {
    display: block;
    font-size: 0.62rem;
    font-weight: 700;
    color: var(--aw-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.aw-stat__value {
    display: block;
    margin-top: 0.1rem;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--aw-ink);
    font-variant-numeric: tabular-nums;
}

.aw-toolbar__top {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    width: 100%;
}

/* ── Ref panels ── */
.aw-ref-grid {
    display: grid;
    gap: 0.65rem;
    grid-template-columns: 1fr;
}
@media (min-width: 992px) {
    .aw-ref-grid { grid-template-columns: 1fr 1fr; }
}
.aw-ref-card {
    border: 1px solid var(--aw-line);
    border-radius: var(--aw-radius);
    overflow: hidden;
    background: #fff;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    contain: content;
}
.aw-ref-card:hover {
    border-color: #b8c4d4;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.05);
}
.aw-ref-card__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.55rem 0.7rem;
    background: #f8fafc;
    border-bottom: 1px solid var(--aw-line);
}
.aw-ref-card__title {
    margin: 0;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--aw-ink);
    display: flex;
    align-items: center;
    gap: 0.35rem;
}
.aw-ref-card__title i { color: var(--aw-brand); }
.aw-ref-card__meta {
    font-size: 0.72rem;
    color: var(--aw-muted);
    font-weight: 600;
}
.aw-ref-card__body { padding: 0.4rem; }

/* ── Dashboard panels ── */
.aw-dash {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}
.aw-dash .aw-object-head {
    border: 1px solid var(--aw-line);
    border-radius: 8px;
    background: #fff;
    padding: 0.7rem 1rem;
}
.aw-dash__main {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(16rem, 0.9fr);
    gap: 0.75rem;
}
@media (max-width: 991.98px) {
    .aw-dash__main { grid-template-columns: 1fr; }
}
.aw-dash__side {
    display: flex;
    flex-direction: column;
}
.aw-dash-legend {
    list-style: none;
    margin: 0;
    padding: 0.55rem 0.85rem 0.75rem;
    border-top: 1px solid var(--aw-line);
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}
.aw-dash-legend li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    font-size: 0.75rem;
    color: var(--aw-muted);
}
.aw-dash-legend strong {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--aw-ink);
    font-variant-numeric: tabular-nums;
}
.aw-dash__shortcuts {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}
.aw-dash__shortcuts .aw-dash-shortcut {
    flex: 1 1 8rem;
}

.aw-dash-grid {
    display: grid;
    gap: 0.75rem;
    margin-top: 0;
}
.aw-dash-grid--2 { grid-template-columns: 1fr; }
.aw-dash-grid--3 { grid-template-columns: 1fr; }
@media (min-width: 768px) {
    .aw-dash-grid--2 { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 992px) {
    .aw-dash-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.aw-dash-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.85rem 0.9rem !important;
}
.aw-dash-summary__value {
    font-size: 1.15rem;
    font-weight: 750;
    color: var(--aw-ink);
    line-height: 1.25;
}
.aw-dash-summary__label {
    display: block;
    margin-top: 0.15rem;
    font-size: 0.75rem;
    color: var(--aw-muted);
}
.aw-dash-chart-center {
    display: flex;
    justify-content: center;
    padding: 0.75rem !important;
}
.aw-dash-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.aw-dash-list__item {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.65rem 0.75rem;
    border-bottom: 1px solid var(--aw-line);
}
.aw-dash-list__item:last-child { border-bottom: none; }
.aw-dash-list__body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}
.aw-dash-list__title {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--aw-ink);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.aw-dash-list__meta {
    font-size: 0.72rem;
    color: var(--aw-muted);
}
.aw-dash-list__icon {
    width: 1.85rem;
    height: 1.85rem;
    border-radius: 6px;
    background: #f1f5f9;
    color: var(--aw-muted);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 0.9rem;
}
.aw-dash-list__side {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 0.68rem;
    color: var(--aw-muted);
    line-height: 1.2;
}
.aw-dash-list__side strong,
.aw-dash-list__side-value {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--aw-ink);
    font-variant-numeric: tabular-nums;
}
.aw-dash-rank {
    width: 1.55rem;
    height: 1.55rem;
    border-radius: 6px;
    background: #f1f5f9;
    color: var(--aw-muted);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 750;
    flex-shrink: 0;
}
.aw-dash-rank--top {
    background: var(--aw-accent-soft);
    color: var(--aw-accent);
}
.aw-dash-shortcuts {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.45rem;
}
.aw-dash-shortcut {
    justify-content: flex-start;
    width: 100%;
    min-height: 2.6rem;
    padding: 0.55rem 0.7rem;
}
.aw-dash-shortcut i { font-size: 1.05rem; color: var(--aw-brand); }
.aw-empty--compact {
    padding: 1.5rem 1rem;
}
.aw-ref-card__note {
    margin: 0 0.3rem 0.4rem;
    font-size: 0.7rem;
    color: var(--aw-muted);
}
.aw-inline-input {
    width: 100%;
    height: 1.85rem;
    border: 1px solid var(--aw-line);
    border-radius: 4px;
    padding: 0 0.45rem;
    font-size: 0.78rem;
    font-family: inherit;
    color: var(--aw-ink);
}
.aw-inline-input:focus {
    outline: none;
    border-color: var(--aw-brand);
    box-shadow: 0 0 0 2px rgba(0, 177, 147, 0.12);
}
.aw-switch {
    width: 2rem;
    height: 1.1rem;
    appearance: none;
    background: #cbd5e1;
    border-radius: 999px;
    position: relative;
    cursor: pointer;
}
.aw-switch::after {
    content: "";
    position: absolute;
    top: 0.1rem;
    left: 0.1rem;
    width: 0.9rem;
    height: 0.9rem;
    border-radius: 50%;
    background: #fff;
    transition: transform 0.15s ease;
}
.aw-switch:checked { background: var(--aw-brand); }
.aw-switch:checked::after { transform: translateX(0.9rem); }
.aw-actions {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
}

/* ── Settings page (GitHub / Linear inspired) ── */
.aw-settings {
    display: flex;
    flex-direction: column;
    min-height: 0;
}
.aw-settings__head {
    flex-shrink: 0;
    padding: 0.7rem 1.15rem 0.55rem;
    background: #fff;
}
.aw-settings__identity {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 0;
}
.aw-settings__title {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: -0.025em;
    color: var(--aw-ink);
    line-height: 1.2;
}
.aw-settings__desc {
    margin: 0;
    font-size: 0.78rem;
    line-height: 1.4;
    color: var(--aw-muted);
    max-width: 40rem;
}

/* Underline secondary nav — full width under title */
.aw-settings__tabs {
    display: flex;
    align-items: stretch;
    gap: 0;
    padding: 0 0.85rem;
    background: #fff;
    border-bottom: 1px solid var(--aw-line);
    overflow-x: auto;
    flex-shrink: 0;
    scrollbar-width: thin;
}
.aw-settings__tab {
    appearance: none;
    border: none;
    background: transparent;
    color: var(--aw-muted);
    cursor: pointer;
    font-family: inherit;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    height: 2.05rem;
    padding: 0 0.75rem;
    margin-bottom: -1px;
    border-bottom: 2px solid transparent;
    white-space: nowrap;
    font-size: 0.78rem;
    font-weight: 600;
    line-height: 1;
    transition: color 0.12s ease, border-color 0.12s ease;
}
.aw-settings__tab > i {
    font-size: 0.82rem;
    opacity: 0.65;
}
.aw-settings__tab:hover {
    color: var(--aw-ink);
}
.aw-settings__tab:hover > i { opacity: 1; }
.aw-settings__tab--active {
    color: var(--aw-brand);
    border-bottom-color: var(--aw-brand);
}
.aw-settings__tab--active > i {
    opacity: 1;
    color: var(--aw-brand);
}

.aw-settings__body {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding: 1rem 1.15rem 1.15rem;
    display: flex;
    flex-direction: column;
    gap: 1.15rem;
    background: var(--aw-canvas);
    max-width: none;
}

.aw-settings__section {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    max-width: 52rem;
}
.aw-settings__section-head {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    padding: 0 0.1rem;
}
.aw-settings__section-title {
    margin: 0;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--aw-ink);
    letter-spacing: -0.01em;
}
.aw-settings__section-lead {
    margin: 0;
    font-size: 0.72rem;
    color: var(--aw-muted);
    line-height: 1.4;
}

.aw-settings__card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--aw-line);
    border-radius: 8px;
    overflow: visible;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
}
.aw-settings__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem 1.5rem;
    padding: 0.7rem 0.95rem;
    border-bottom: 1px solid #e8eef5;
}
.aw-settings__row:last-child { border-bottom: none; }
.aw-settings__row--stack {
    align-items: flex-start;
}
.aw-settings__meta {
    min-width: 0;
    flex: 1 1 14rem;
}
.aw-settings__label {
    margin: 0;
    font-size: 0.82rem;
    font-weight: 650;
    color: var(--aw-ink);
    line-height: 1.25;
}
.aw-settings__hint {
    margin: 0.12rem 0 0;
    font-size: 0.72rem;
    color: var(--aw-muted);
    line-height: 1.35;
}
.aw-settings__error {
    font-size: 0.72rem;
    color: var(--aw-danger);
    font-weight: 600;
}
.aw-settings__control-stack {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.45rem;
    width: min(100%, 22rem);
    flex-shrink: 0;
}

/* Sticky action bar */
.aw-settings__bar {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.6rem 1.15rem;
    background: #fff;
    border-top: 1px solid var(--aw-line);
    box-shadow: 0 -4px 12px rgba(15, 23, 42, 0.04);
}
.aw-settings__bar-hint {
    margin: 0;
    font-size: 0.72rem;
    color: var(--aw-muted);
    min-width: 0;
}
.aw-settings__bar-actions {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    flex-shrink: 0;
}

.aw-input {
    width: min(100%, 16rem);
    height: 2.05rem;
    padding: 0 0.65rem;
    border: 1px solid var(--aw-line);
    border-radius: 7px;
    background: #fff;
    font-size: 0.8rem;
    font-family: inherit;
    color: var(--aw-ink);
    flex-shrink: 0;
}
.aw-input--wide { width: min(100%, 22rem); }
.aw-input:focus {
    outline: none;
    border-color: var(--aw-brand);
    box-shadow: 0 0 0 2px rgba(0, 158, 132, 0.14);
}
.aw-logo-zone {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    min-height: 4.75rem;
    padding: 0.65rem;
    border: 1px dashed var(--aw-line);
    border-radius: 8px;
    background: #f8fafc;
    cursor: pointer;
    text-align: center;
}
.aw-logo-zone:hover { border-color: var(--aw-brand); background: #f0fdfa; }
.aw-logo-zone--busy { pointer-events: none; opacity: 0.7; }
.aw-logo-zone img {
    max-height: 3.25rem;
    max-width: 10rem;
    object-fit: contain;
}
.aw-logo-zone > i { font-size: 1.25rem; color: var(--aw-muted); }
.aw-settings .aw-dd { min-width: 11rem; width: min(100%, 16rem); flex-shrink: 0; }

@media (max-width: 767.98px) {
    .aw-settings__row {
        flex-direction: column;
        align-items: stretch;
        gap: 0.55rem;
    }
    .aw-input,
    .aw-input--wide,
    .aw-settings .aw-dd,
    .aw-settings__control-stack { width: 100%; }
    .aw-settings__bar {
        flex-direction: column;
        align-items: stretch;
    }
    .aw-settings__bar-actions {
        width: 100%;
        justify-content: flex-end;
    }
}

/* Legacy pref aliases (safe if referenced elsewhere) */
.aw-pref { display: flex; flex-direction: column; }
.aw-pref__footer { margin-top: 0.5rem; }

@media (max-width: 1100px) {
    .aw-object-head {
        flex-wrap: wrap;
        align-items: flex-start;
    }
    .aw-modnav {
        margin-left: auto;
    }
    .aw-admin {
        grid-template-columns: 1fr;
    }
    .aw-admin__nav {
        position: static;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .aw-admin__nav-title { grid-column: 1 / -1; }
}
@media (max-width: 767.98px) {
    .aw-overview__metrics { grid-template-columns: 1fr; gap: 0.55rem; }
    .aw-overview__metric {
        padding: 0 0 0.55rem;
        border-right: none;
        border-bottom: 1px solid var(--aw-line);
    }
    .aw-overview__metric:last-child {
        padding-bottom: 0;
        border-bottom: none;
    }
}
@media (max-width: 991.98px) {
    .aw-actionbar__actions { margin-left: 0; width: 100%; justify-content: flex-end; }
    .aw-actionbar__filters .aw-select { min-width: 0; flex: 1; max-width: none; }
}
@media (max-width: 767.98px) {
    .aw-stats { grid-template-columns: 1fr; }
    .aw-workspace__body { padding: 0.75rem; }
    .aw-object-head { padding: 0.7rem 0.85rem; }
    .aw-modnav {
        width: 100%;
        margin-left: 0;
    }
    .aw-overview__top { flex-direction: column; }
    .aw-overview__cover {
        align-items: flex-start;
        border-left: none;
        padding-left: 0;
        padding-top: 0.35rem;
        border-top: 1px solid var(--aw-line);
        width: 100%;
    }
}

/* ═══════════════════════════════════════════════════════════════
   Forms & dialogs
   ═══════════════════════════════════════════════════════════════ */
.aw-form {
    margin: 1.25rem auto;
    max-width: 640px;
    background: var(--aw-surface);
    border: 1px solid var(--aw-line);
    border-radius: 10px;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
    overflow: hidden;
}
.aw-form--wide { max-width: 840px; }
.aw-form--xl { max-width: 960px; }
.aw-form__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.9rem 1.15rem;
    border-bottom: 1px solid var(--aw-line);
    background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
}
.aw-form__eyebrow {
    margin: 0;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: #007a68;
}
.aw-form__title {
    margin: 0.1rem 0 0;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--aw-ink);
    line-height: 1.2;
}
.aw-form__actions {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    flex-shrink: 0;
}
.aw-form__body {
    padding: 1.15rem 1.25rem 1.35rem;
    background: #fff;
}
.aw-form__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.9rem 1rem;
}
.aw-form__grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.aw-form__span-2 { grid-column: span 2; }
.aw-form__span-3 { grid-column: 1 / -1; }
.aw-field {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    min-width: 0;
}
.aw-field__label {
    margin: 0;
    font-size: 0.78rem;
    font-weight: 650;
    color: #1e293b;
}
.aw-field__hint {
    margin: 0;
    font-size: 0.72rem;
    color: #475569;
    line-height: 1.35;
}
.aw-field__error {
    margin: 0;
    font-size: 0.72rem;
    color: var(--aw-danger);
    font-weight: 600;
}
.aw-form .aw-input,
.aw-dialog .aw-input,
.aw-form .form-control,
.aw-dialog .form-control {
    width: 100%;
    height: var(--aw-control-h);
    padding: 0 0.7rem;
    border: 1px solid #94a3b8;
    border-radius: 7px;
    background: #fff;
    font-size: 0.84rem;
    font-family: inherit;
    color: var(--aw-ink);
}
.aw-form .form-control:focus,
.aw-dialog .form-control:focus,
.aw-form .aw-input:focus,
.aw-dialog .aw-input:focus {
    outline: none;
    border-color: var(--aw-brand);
    box-shadow: 0 0 0 3px rgba(0, 158, 132, 0.18);
}
.aw-form .form-label,
.aw-dialog .form-label {
    font-size: 0.78rem;
    font-weight: 650;
    color: #1e293b;
    margin-bottom: 0.3rem;
}
.aw-form .text-muted,
.aw-dialog .text-muted {
    color: #475569 !important;
}

/* Dialog panel */
.aw-dialog {
    display: flex;
    flex-direction: column;
    min-width: 0;
}
.aw-dialog__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.9rem 1.15rem;
    border-bottom: 1px solid var(--aw-line);
    background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
}
.aw-dialog__title-wrap {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    min-width: 0;
}
.aw-dialog__title-wrap > i {
    color: #007a68;
    font-size: 1.1rem;
}
.aw-dialog__title {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--aw-ink);
    line-height: 1.25;
}
.aw-dialog__body {
    padding: 1rem 1.15rem 1.15rem;
    background: #fff;
}
.aw-dialog__meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr));
    gap: 0.75rem 1rem;
    padding: 0.75rem 0.85rem;
    margin-bottom: 0.9rem;
    border: 1px solid var(--aw-line);
    border-radius: 8px;
    background: #f8fafc;
}
.aw-dialog__meta-label {
    display: block;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #475569;
    margin-bottom: 0.15rem;
}
.aw-dialog__meta-value {
    display: block;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--aw-ink);
}
.aw-dialog__section {
    margin: 0.85rem 0 0.45rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #334155;
}
.aw-dialog__footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.45rem;
    padding: 0.75rem 1.15rem 1rem;
    border-top: 1px solid var(--aw-line);
    background: #f8fafc;
}
.aw-dialog__totals {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.55rem;
    margin-bottom: 0.85rem;
}
.aw-dialog__total {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    padding: 0.65rem 0.75rem;
    border: 1px solid var(--aw-line);
    border-radius: 8px;
    background: #f8fafc;
}
.aw-dialog__total-label {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--aw-muted);
}
.aw-dialog__total-value {
    font-size: 0.95rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    color: var(--aw-ink);
    line-height: 1.2;
}
.aw-dialog__total-value--ok { color: var(--aw-brand); }
.aw-dialog__total-value--warn { color: var(--aw-accent, #c2410c); }
.aw-dialog__qty--done {
    color: var(--aw-brand);
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}
.aw-dialog__qty--partial {
    color: var(--aw-accent, #c2410c);
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}
@media (max-width: 575.98px) {
    .aw-dialog__totals { grid-template-columns: 1fr; }
}

/* Bridge legacy lov/hub shells → stronger contrast */
.lov-card {
    border: 1px solid var(--aw-line) !important;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06) !important;
}
.lov-form-header {
    background: linear-gradient(180deg, #f8fafc 0%, #fff 100%) !important;
    border-bottom: 1px solid var(--aw-line) !important;
}
.lov-form-header h5,
.lov-form-header h1 {
    color: var(--aw-ink) !important;
    font-weight: 700 !important;
}
.lov-form-body {
    background: #fff !important;
}
.lov-form-body .form-label {
    color: #1e293b !important;
    font-weight: 650;
}
.lov-form-body .form-control,
.lov-form-body .form-select {
    border-color: #94a3b8 !important;
    color: var(--aw-ink) !important;
}
.hub-dialog-meta-label {
    color: #475569 !important;
    font-weight: 700 !important;
}
.hub-dialog-meta-value {
    color: var(--aw-ink) !important;
    font-weight: 600 !important;
}
.hub-dialog-section-title {
    color: #334155 !important;
    font-weight: 700 !important;
}
.hub-dialog-table thead th {
    color: #334155 !important;
    background: #eef2f7 !important;
}
.mud-dialog {
    border: 1px solid var(--aw-line) !important;
    box-shadow: 0 8px 30px rgba(15, 23, 42, 0.16) !important;
}
.mud-dialog-title {
    color: var(--aw-ink) !important;
    font-weight: 700 !important;
    border-bottom: 1px solid var(--aw-line);
    background: #f8fafc;
}
.mud-dialog-actions {
    border-top: 1px solid var(--aw-line);
    background: #f8fafc;
}

@media (max-width: 767.98px) {
    .aw-form__head,
    .aw-dialog__head {
        flex-direction: column;
        align-items: stretch;
    }
    .aw-form__actions,
    .aw-dialog__footer {
        width: 100%;
        justify-content: flex-end;
    }
    .aw-form__grid,
    .aw-form__grid--3 {
        grid-template-columns: 1fr;
    }
    .aw-form__span-2,
    .aw-form__span-3 { grid-column: auto; }
}

/* ── Date range / calendar (Enterprise — filter-bar grade) ── */
.aw-daterange {
    max-width: none;
    min-width: 9.75rem;
    flex-shrink: 0;
}
.aw-actionbar__filters .aw-daterange {
    min-width: 10.25rem;
}
.aw-daterange .aw-dd__trigger {
    min-width: 9.75rem;
    height: var(--aw-control-h);
    gap: 0.35rem;
    padding: 0 0.55rem;
    border-radius: var(--aw-radius);
    font-size: 0.78rem;
}
.aw-daterange .aw-dd__trigger > .bi-calendar3 {
    color: var(--aw-brand);
    opacity: 1;
    font-size: 0.85rem;
}
.aw-daterange__panel {
    position: fixed;
    z-index: var(--aw-z-float);
    width: 18.5rem;
    min-width: 18.5rem;
    max-width: min(18.5rem, calc(100vw - 1rem));
    padding: 0;
    overflow: visible;
    border-radius: 8px;
    border: 1px solid #cbd5e1;
    background: #fff;
    color: #0f172a;
    box-shadow:
        0 12px 32px rgba(15, 23, 42, 0.16),
        0 2px 8px rgba(15, 23, 42, 0.08);
}
.aw-daterange__backdrop {
    position: fixed;
    inset: 0;
    z-index: var(--aw-z-float-backdrop);
    background: transparent;
}
.aw-daterange--compact .aw-daterange__panel {
    width: 17.75rem;
    min-width: 17.75rem;
}

.aw-daterange__presets {
    display: flex;
    flex-wrap: wrap;
    gap: 0.28rem;
    padding: 0.5rem 0.55rem;
    border-bottom: 1px solid var(--aw-line);
    background: #f8fafc;
}
.aw-daterange__preset {
    appearance: none;
    border: 1px solid var(--aw-line);
    background: #fff;
    color: var(--aw-muted);
    font-size: 0.66rem;
    font-weight: 600;
    font-family: inherit;
    line-height: 1;
    height: 1.45rem;
    padding: 0 0.45rem;
    border-radius: var(--aw-radius);
    cursor: pointer;
    transition: background 0.12s ease, border-color 0.12s ease, color 0.12s ease;
}
.aw-daterange__preset:hover {
    border-color: #99f6e4;
    background: #f0fdfa;
    color: #0f766e;
}
.aw-daterange__preset--active {
    border-color: var(--aw-brand);
    background: var(--aw-brand);
    color: #fff;
}

.aw-daterange__cal {
    padding: 0.45rem 0.55rem 0.25rem;
}
.aw-daterange__cal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.25rem;
    margin-bottom: 0.35rem;
}
.aw-daterange__month {
    flex: 1;
    text-align: center;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--aw-ink);
    text-transform: capitalize;
    letter-spacing: 0.01em;
    line-height: 1.2;
}
.aw-daterange__nav {
    width: 1.7rem;
    height: 1.7rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid transparent;
    border-radius: var(--aw-radius);
    background: transparent;
    color: var(--aw-muted);
    cursor: pointer;
    transition: background 0.12s ease, color 0.12s ease, border-color 0.12s ease;
}
.aw-daterange__nav:hover {
    background: #f1f5f9;
    color: var(--aw-ink);
    border-color: var(--aw-line);
}

.aw-daterange__weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0;
    margin-bottom: 0.1rem;
}
.aw-daterange__weekdays > span {
    text-align: center;
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: #94a3b8;
    padding: 0.15rem 0;
}

.aw-daterange__grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.08rem 0;
}

.aw-daterange__day {
    appearance: none;
    border: 0;
    background: transparent;
    width: 100%;
    height: 2rem;
    min-height: 2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    font-size: 0.78rem;
    font-weight: 500;
    font-variant-numeric: tabular-nums;
    font-family: inherit;
    color: #0f172a !important;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    margin: 0;
}
.aw-daterange__day > span {
    color: inherit;
}
.aw-daterange__day:hover:not(:disabled):not(.aw-daterange__day--selected):not(.aw-daterange__day--start):not(.aw-daterange__day--end) {
    background: #f0fdfa;
    color: #0f766e;
}
.aw-daterange__day:focus-visible {
    outline: 2px solid rgba(0, 158, 132, 0.4);
    outline-offset: 1px;
    z-index: 1;
}
.aw-daterange__day--muted {
    color: #cbd5e1;
}
.aw-daterange__day--today:not(.aw-daterange__day--selected):not(.aw-daterange__day--start):not(.aw-daterange__day--end) {
    font-weight: 700;
    color: var(--aw-brand);
    box-shadow: inset 0 0 0 1px rgba(0, 158, 132, 0.4);
}
.aw-daterange__day--inrange {
    background: #ecfdf8;
    color: #0f766e;
    border-radius: 0;
}
.aw-daterange__day--selected,
.aw-daterange__day--start,
.aw-daterange__day--end {
    background: #009e84 !important;
    color: #fff !important;
    font-weight: 700;
}
.aw-daterange__day--start {
    border-radius: var(--aw-radius) 0 0 var(--aw-radius);
}
.aw-daterange__day--end {
    border-radius: 0 var(--aw-radius) var(--aw-radius) 0;
}
.aw-daterange__day--start.aw-daterange__day--end {
    border-radius: var(--aw-radius);
}
.aw-daterange__day:disabled {
    opacity: 0.35;
    cursor: default;
}

.aw-daterange__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.45rem;
    padding: 0.45rem 0.55rem 0.55rem;
    border-top: 1px solid var(--aw-line);
    background: #f8fafc;
}
.aw-daterange__summary {
    display: inline-flex;
    align-items: center;
    gap: 0.28rem;
    min-width: 0;
    font-size: 0.7rem;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    color: var(--aw-ink);
}
.aw-daterange__summary > i {
    color: #94a3b8;
    font-size: 0.62rem;
}
.aw-daterange__actions {
    display: inline-flex;
    justify-content: flex-end;
    gap: 0.3rem;
    flex-shrink: 0;
}
.aw-daterange__actions .aw-btn {
    height: 1.7rem;
    padding: 0 0.55rem;
    font-size: 0.7rem;
}

.aw-datefield {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    min-width: 0;
}
.aw-datefield--full,
.aw-datefield--full .aw-daterange,
.aw-datefield--full .aw-dd__trigger {
    width: 100%;
    max-width: none;
}
@media (prefers-reduced-motion: reduce) {
    .aw-daterange__panel { animation: none; }
}

/* Menu actions hub — panneau flottant (awOverlay) */
.aw-actions-menu {
    position: relative;
    min-width: 0;
    max-width: none;
}
.aw-actions-menu__panel {
    min-width: 12.5rem;
    max-width: 20rem;
    margin: 0;
    padding: 0.3rem;
    list-style: none;
    background: #fff;
    border: 1px solid var(--aw-line);
    border-radius: 8px;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.12), 0 2px 6px rgba(15, 23, 42, 0.06);
    overflow: auto;
}
.aw-actions-menu__panel .dropdown-item {
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    width: 100%;
    border: none;
    background: transparent;
    border-radius: 5px;
    padding: 0.45rem 0.55rem;
    color: var(--aw-ink);
    text-align: left;
    cursor: pointer;
}
.aw-actions-menu__panel .dropdown-item:hover {
    background: #f0fdfa;
}
.aw-actions-menu__panel .dropdown-item:disabled {
    opacity: 0.45;
    cursor: default;
}

.hub-actions-menu .dropdown-toggle::after {
    margin-left: 0.35rem;
}
.hub-actions-menu .dropdown-item {
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}
.hub-actions-menu .dropdown-item:disabled {
    opacity: 0.45;
}

/* ═══════════════════════════════════════════════════════════════
   Motion & skeletons — fast, sober, ERP-friendly
   ═══════════════════════════════════════════════════════════════ */
:root {
    --aw-motion: 180ms;
    --aw-motion-enter: 220ms;
}

.aw-page {
    animation: aw-page-in var(--aw-motion-enter) ease both;
}
/* Opacity-only : pas de transform persistant → les overlays fixed ne sont pas clipés */
.aw-workspace {
    animation: aw-fade-in var(--aw-motion-enter) ease both;
}
.aw-overview,
.aw-actionbar,
.aw-table-region,
.aw-ref-card,
.aw-settings__card,
.aw-dash__main > * {
    animation: aw-fade-in var(--aw-motion-enter) ease both;
}
.aw-overview { animation-delay: 20ms; }
.aw-actionbar { animation-delay: 40ms; }
.aw-table-region { animation-delay: 60ms; }
.aw-ref-card:nth-child(1) { animation-delay: 30ms; }
.aw-ref-card:nth-child(2) { animation-delay: 50ms; }
.aw-ref-card:nth-child(3) { animation-delay: 70ms; }
.aw-dash__main > *:nth-child(1) { animation-delay: 40ms; }
.aw-dash__main > *:nth-child(2) { animation-delay: 70ms; }

.aw-railnav__item,
.aw-modnav__item,
.aw-settings__tab,
.topnav-item {
    transition: color var(--aw-motion) ease, border-color var(--aw-motion) ease, background var(--aw-motion) ease;
}

.aw-table-region {
    content-visibility: auto;
    contain-intrinsic-size: auto 360px;
}
.aw-table tbody tr {
    content-visibility: auto;
    contain-intrinsic-size: auto 2.75rem;
}

@keyframes aw-page-in {
    from { opacity: 0; }
    to { opacity: 1; }
}
/* Important: le keyframe final doit être transform:none (pas translateY(0)).
   Sinon fill-mode:both laisse un containing-block qui clippe les overlays fixed. */
@keyframes aw-fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes aw-fade-up {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: none; }
}
@keyframes aw-dd-in {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes aw-skel-shimmer {
    0% { background-position: 100% 0; }
    100% { background-position: -100% 0; }
}

/* Skeleton loaders */
.aw-skel {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 0.25rem 0;
    width: 100%;
}
.aw-skel__head {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    padding: 0.35rem 0.15rem;
}
.aw-skel__kpi {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.65rem;
}
.aw-skel__panel {
    border: 1px solid var(--aw-line);
    border-radius: 8px;
    background: #fff;
    padding: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}
.aw-skel__rows {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}
.aw-skel__block {
    border-radius: 6px;
    background: linear-gradient(90deg, #e8eef5 0%, #f5f8fc 45%, #e8eef5 90%);
    background-size: 200% 100%;
    animation: aw-skel-shimmer 1.15s ease-in-out infinite;
}
.aw-skel__block--title { height: 1.15rem; width: 11rem; }
.aw-skel__block--line { height: 0.7rem; width: 18rem; max-width: 70%; }
.aw-skel__block--kpi { height: 4.25rem; }
.aw-skel__block--toolbar { height: 2.15rem; width: 100%; }
.aw-skel__block--row { height: 2.35rem; width: 100%; }

.aw-loading {
    animation: aw-page-in var(--aw-motion) ease both;
}

@media (max-width: 767.98px) {
    .aw-skel__kpi { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    .aw-skel__block { animation: none; background: #e8eef5; }
    .aw-btn--primary:hover:not(:disabled),
    .aw-btn--ghost:hover:not(:disabled) {
        transform: none;
        box-shadow: none;
    }
}

/* ── Invoice template settings ── */
.aw-inv-tpl {
    display: grid;
    grid-template-columns: minmax(11rem, 14rem) minmax(0, 1fr);
    gap: 1.25rem;
    align-items: start;
}
.aw-inv-tpl__list {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}
.aw-inv-tpl__item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.15rem;
    width: 100%;
    padding: 0.55rem 0.65rem;
    border: 1px solid var(--aw-line);
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
    text-align: left;
    font-family: inherit;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.aw-inv-tpl__item:hover { border-color: #cbd5e1; }
.aw-inv-tpl__item--active {
    border-color: var(--aw-brand);
    box-shadow: 0 0 0 3px rgba(0, 177, 147, 0.12);
}
.aw-inv-tpl__item--current { background: #f0fdfa; }
.aw-inv-tpl__item-name {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--aw-ink);
}
.aw-inv-tpl__item-meta {
    font-size: 0.72rem;
    color: var(--aw-muted);
    display: flex;
    align-items: center;
    gap: 0.35rem;
}
.aw-inv-tpl__badge {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--aw-brand);
    background: rgba(0, 177, 147, 0.12);
    padding: 0.1rem 0.35rem;
    border-radius: 4px;
}
.aw-inv-tpl__new { margin-top: 0.35rem; justify-content: flex-start; }
.aw-inv-tpl__form { min-width: 0; }
.aw-inv-tpl__block { margin-top: 1rem; }
.aw-inv-tpl__subtitle { font-size: 0.95rem !important; }
.aw-inv-tpl__preview {
    max-height: 64px;
    max-width: 160px;
    object-fit: contain;
    border: 1px solid var(--aw-line);
    border-radius: 6px;
    padding: 4px;
    background: #fff;
}
.aw-inv-tpl__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--aw-line);
}
@media (max-width: 768px) {
    .aw-inv-tpl { grid-template-columns: 1fr; }
}

/* Configuration (Paramètres) — référentiels catalogue */
.aw-admin--in-settings {
    margin-top: 0.25rem;
}
.aw-cat-thumb {
    width: 44px;
    height: 44px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid var(--aw-line);
    background: var(--aw-surface);
    display: block;
}
.aw-cat-thumb--empty {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--aw-muted);
    font-size: 1.1rem;
}
.aw-cat-thumb-zone {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 1px dashed var(--aw-line);
    border-radius: 8px;
    cursor: pointer;
    overflow: hidden;
    background: var(--aw-surface);
}
.aw-cat-thumb-zone img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.aw-cat-thumb-zone--busy { opacity: 0.6; pointer-events: none; }
.aw-cat-edit {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    min-width: 12rem;
}
.aw-cat-edit__url { max-width: 20rem; }

/* ── Partie publique : cartes produit (catalogue client) ── */
.landing-product-tile__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.35rem;
    margin-top: auto;
    padding-top: 0.15rem;
}
.landing-product-tile__cta {
    flex-shrink: 0;
    width: 1.35rem;
    height: 1.35rem;
    border-radius: 999px;
    background: #f0fdfa;
    color: #00B193;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    border: 1px solid rgba(0, 177, 147, 0.2);
    transition: background 0.15s, transform 0.1s;
}
.landing-product-tile--in-cart .landing-product-tile__cta {
    background: #00B193;
    color: #fff;
    border-color: transparent;
}
.landing-product-tile:hover .landing-product-tile__cta,
.landing-product-tile:focus-visible .landing-product-tile__cta {
    background: #00B193;
    color: #fff;
    border-color: transparent;
}
.landing-product-grid--compact .landing-product-tile__body {
    min-height: 0;
    padding: 0.4rem 0.45rem 0.5rem;
    gap: 0.2rem;
}
.landing-product-grid--compact .landing-product-tile__footer {
    padding-top: 0.1rem;
}
.landing-product-grid--compact .landing-product-tile__cta {
    width: 1.15rem;
    height: 1.15rem;
    font-size: 0.62rem;
}
.landing-product-grid--compact .landing-product-tile__img {
    max-height: none;
    aspect-ratio: 1;
}

/* Catégories — carte image unique */
.landing-category-card--has-image {
    padding: 0;
    overflow: hidden;
    min-height: 6.5rem;
}
.landing-category-card__media {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    background: linear-gradient(165deg, #f0fdfa 0%, #f8fafc 100%);
    overflow: hidden;
}
.landing-category-card__hero {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.landing-category-card--has-image .landing-category-card__title {
    padding: 0.45rem 0.5rem 0.55rem;
    margin: 0;
    min-height: 0;
}
.landing-category-card--has-image .landing-category-card__placeholder {
    width: 100%;
    height: 100%;
    margin: 0;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
}
.landing-category-card--has-image .landing-category-card__placeholder i {
    font-size: 1.5rem;
}

/* Skeleton public unifié */
.public-skeleton__panel {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    padding: 0.5rem 0;
}
.public-skeleton__line {
    height: 0.75rem;
    border-radius: 6px;
    background: linear-gradient(90deg, #f1f5f9 0%, #e2e8f0 50%, #f1f5f9 100%);
    background-size: 200% 100%;
    animation: landingCatalogSkeleton 1.2s ease-in-out infinite;
}
.public-skeleton__line--title {
    height: 1.25rem;
    width: 55%;
}
.public-skeleton__line--short { width: 40%; }
.public-skeleton__rows {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}
.public-skeleton__row {
    height: 3.25rem;
    border-radius: 10px;
    background: linear-gradient(90deg, #f1f5f9 0%, #e2e8f0 50%, #f1f5f9 100%);
    background-size: 200% 100%;
    animation: landingCatalogSkeleton 1.2s ease-in-out infinite;
    animation-delay: calc(var(--cat-i, 0) * 60ms);
}
.app-boot-fallback__inner {
    flex-direction: column;
    gap: 0.75rem;
}
.app-boot-fallback__skeleton {
    width: min(280px, 70vw);
    height: 0.65rem;
    border-radius: 6px;
    background: linear-gradient(90deg, #f1f5f9 0%, #e2e8f0 50%, #f1f5f9 100%);
    background-size: 200% 100%;
    animation: landingCatalogSkeleton 1.2s ease-in-out infinite;
}

.aw-bulk-hint {
    font-size: 0.8125rem;
    color: var(--aw-muted);
    white-space: nowrap;
}
.aw-table__row--selected {
    background: rgba(0, 177, 147, 0.06);
}
