:root {
    --bg: #f4efe6;
    --bg-deep: #e7d6c4;
    --surface: rgba(255, 252, 247, 0.82);
    --surface-strong: #fffdf8;
    --surface-muted: #f0eadf;
    --text: #1d2a22;
    --text-soft: #5f6d63;
    --line: rgba(32, 51, 41, 0.12);
    --primary: #18110d;
    --primary-2: #3a261d;
    --accent: #d86f45;
    --accent-soft: #f3dbc9;
    --danger: #c84f3d;
    --danger-soft: #fde4de;
    --warning: #e3a438;
    --success: #c97632;
    --shadow-lg: 0 28px 80px rgba(34, 48, 39, 0.16);
    --shadow-md: 0 16px 38px rgba(34, 48, 39, 0.12);
    --radius-xl: 30px;
    --radius-lg: 22px;
    --radius-md: 16px;
    --radius-sm: 12px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Georgia, "Times New Roman", serif;
    color: var(--text);
    min-height: 100vh;
    background:
        radial-gradient(circle at top left, rgba(202, 106, 61, 0.10), transparent 34%),
        radial-gradient(circle at right 15% top 12%, rgba(216, 111, 69, 0.18), transparent 24%),
        linear-gradient(180deg, #f9f4ed 0%, var(--bg) 55%, #ebe4d9 100%);
}

button,
input,
select,
textarea {
    font: inherit;
}

.page-shell {
    position: relative;
    min-height: 100vh;
    padding: 28px;
    overflow: hidden;
}

.ambient {
    position: fixed;
    border-radius: 999px;
    filter: blur(18px);
    opacity: 0.65;
    pointer-events: none;
}

.ambient-one {
    width: 340px;
    height: 340px;
    top: -80px;
    right: -80px;
    background: rgba(216, 111, 69, 0.16);
}

.ambient-two {
    width: 420px;
    height: 420px;
    bottom: -120px;
    left: -120px;
    background: rgba(202, 106, 61, 0.12);
}

.container {
    position: relative;
    z-index: 1;
    max-width: 1260px;
    margin: 0 auto;
    display: grid;
    gap: 20px;
}

.hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
    padding: 28px;
    border-radius: var(--radius-xl);
    background:
        linear-gradient(135deg, rgba(255, 250, 242, 0.92), rgba(244, 239, 230, 0.72)),
        rgba(255, 255, 255, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(18px);
}

.hero-copy {
    display: grid;
    align-content: center;
    gap: 18px;
    min-width: 0;
    padding-right: 190px;
}

.hero-bot-status {
    position: absolute;
    top: 28px;
    right: 28px;
    z-index: 2;
    margin: 0;
    max-width: min(240px, calc(100% - 56px));
}

.eyebrow,
.section-kicker,
.panel-label {
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-family: "Trebuchet MS", "Segoe UI", sans-serif;
    font-size: 0.76rem;
    font-weight: 700;
    color: var(--primary-2);
}

.hero h1 {
    font-size: clamp(3rem, 5vw, 5.6rem);
    line-height: 0.92;
    font-weight: 700;
}

.hero-mark {
    display: inline-block;
    color: var(--accent);
}

.subtitle,
.section-intro,
.panel-note {
    max-width: 62ch;
    font-family: "Trebuchet MS", "Segoe UI", sans-serif;
    font-size: 1.02rem;
    line-height: 1.65;
    color: var(--text-soft);
}

.hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 6px;
}

.desktop-feature-switch {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.desktop-feature-switch-label {
    font-family: "Trebuchet MS", "Segoe UI", sans-serif;
    font-size: 0.86rem;
    color: var(--text-soft);
}

body:not(.full-feature-enabled) .full-feature-tab {
    display: none !important;
}

.surface {
    background: var(--surface);
    border: 1px solid rgba(255, 255, 255, 0.52);
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(16px);
}

.tabs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 12px;
    padding: 12px;
    border-radius: 24px;
    background: rgba(255, 252, 247, 0.62);
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(18px);
}

.stockdetailed-list {
    display: block;
}

.stockdetailed-category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 12px;
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 14px 14px;
}

.stockdetailed-category-details {
    margin-bottom: 14px;
}

.stockdetailed-card {
    padding: 14px;
    border-radius: 20px;
    border: 1px solid rgba(28, 20, 15, 0.08);
    background: rgba(255, 255, 255, 0.86);
    box-shadow: 0 18px 36px rgba(29, 42, 34, 0.08);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.stockdetailed-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 24px 48px rgba(29, 42, 34, 0.12);
    border-color: rgba(28, 20, 15, 0.16);
}

.stockdetailed-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.stockdetailed-name {
    font-family: "Trebuchet MS", "Segoe UI", sans-serif;
    font-size: 1.08rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1.2;
}

.stockdetailed-category {
    padding: 7px 12px;
    border-radius: 999px;
    font-family: "Trebuchet MS", "Segoe UI", sans-serif;
    font-size: 0.78rem;
    font-weight: 800;
    white-space: nowrap;
}

.stockdetailed-quantity {
    margin-top: 12px;
    font-family: "Trebuchet MS", "Segoe UI", sans-serif;
    font-size: 2rem;
    font-weight: 900;
    color: var(--primary);
    letter-spacing: -0.02em;
}

.stockdetailed-bar {
    width: 100%;
    height: 10px;
    margin-top: 10px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(29, 42, 34, 0.08);
}

.stockdetailed-bar-fill {
    height: 100%;
    transition: width 0.3s ease;
    background: linear-gradient(90deg, #5fbb74, #2a7a45);
}

.stockdetailed-category-details {
    border-radius: 22px;
    border: 1px solid rgba(28, 20, 15, 0.08);
    background: rgba(255, 255, 255, 0.78);
    box-shadow: 0 14px 28px rgba(29, 42, 34, 0.06);
    overflow: hidden;
    margin-bottom: 14px;
}

.stockdetailed-summary {
    list-style: none;
    cursor: pointer;
    user-select: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    font-family: "Trebuchet MS", "Segoe UI", sans-serif;
    font-size: 1.05rem;
    font-weight: 900;
    color: var(--primary);
}

.stockdetailed-summary::-webkit-details-marker {
    display: none;
}

.stockdetailed-summary::after {
    content: "▾";
    font-size: 1rem;
    color: var(--text-soft);
    transition: transform 0.2s ease;
}

.stockdetailed-category-details:not([open]) .stockdetailed-summary::after {
    transform: rotate(0deg);
}

.stockdetailed-category-details[open] .stockdetailed-summary::after {
    transform: rotate(180deg);
}

.stockdetailed-bar-fill.low {
    background: linear-gradient(90deg, #da6750, #bf4f3c);
}

.stockdetailed-bar-fill.soon {
    background: linear-gradient(90deg, #efc15d, #dea035);
}

.stockdetailed-status {
    margin-top: 10px;
    font-family: "Trebuchet MS", "Segoe UI", sans-serif;
    font-size: 0.92rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.stockdetailed-status.ok {
    color: var(--success);
}

.stockdetailed-status.soon {
    color: #b37a16;
}

.stockdetailed-status.critical {
    color: var(--danger);
}

.stockdetailed-meta {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(28, 20, 15, 0.08);
}

.stockdetailed-alertline {
    font-family: "Trebuchet MS", "Segoe UI", sans-serif;
    font-size: 0.92rem;
    font-weight: 800;
    color: var(--text-soft);
    line-height: 1.35;
}

.stockdetailed-alert {
    margin-top: 8px;
    font-family: "Trebuchet MS", "Segoe UI", sans-serif;
    font-size: 0.95rem;
    font-weight: 900;
    color: var(--danger);
}

.stockdetailed-expiry {
    margin-top: 8px;
    font-family: "Trebuchet MS", "Segoe UI", sans-serif;
    font-size: 0.92rem;
    font-weight: 800;
    color: var(--text-soft);
}

.stockdetailed-expiry.warning {
    color: var(--danger);
}

.stockdetailed-actions {
    display: flex;
    gap: 10px;
    margin-top: 14px;
}

.stockdetailed-card.low-stock {
    background: linear-gradient(180deg, rgba(253, 236, 232, 0.92), rgba(255, 255, 255, 0.88));
}

.stockdetailed-card.expired {
    background: linear-gradient(180deg, rgba(252, 228, 222, 0.95), rgba(255, 255, 255, 0.84));
}

.stockdetailed-bar,
.stockdetailed-bar-fill {
    display: none;
}

.stockdetailed-quantity + .stockdetailed-status {
    margin-top: 12px;
}

.tab-button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    min-width: 0;
    padding: 16px 18px;
    border: none;
    border-radius: 18px;
    background: transparent;
    color: var(--text-soft);
    cursor: pointer;
    transition: transform 0.22s ease, background 0.22s ease, color 0.22s ease, box-shadow 0.22s ease;
    font-family: "Trebuchet MS", "Segoe UI", sans-serif;
    font-size: 0.98rem;
    font-weight: 700;
}

.tab-button:hover {
    transform: translateY(-1px);
    background: rgba(255, 255, 255, 0.55);
    color: var(--text);
}

.tab-button.active {
    background: linear-gradient(135deg, var(--primary), var(--primary-2));
    color: #fff9f2;
    box-shadow: 0 16px 28px rgba(28, 20, 15, 0.24);
}

.tab-icon {
    font-size: 0.9rem;
}

.tab-content {
    display: none;
    animation: fadeIn 0.32s ease;
}

.tab-content.active {
    display: block;
}

.content-grid {
    display: grid;
    gap: 20px;
}

.inventory-grid {
    grid-template-columns: 1fr;
    align-items: start;
}

/* Inventaire sert uniquement à ajouter / retirer */
#inventory .surface {
    padding: 24px;
}

.surface {
    padding: 28px;
    border-radius: var(--radius-xl);
}

.section-heading {
    display: grid;
    gap: 10px;
    margin-bottom: 24px;
}

.section-heading h2 {
    font-size: clamp(1.8rem, 2vw, 2.4rem);
    line-height: 1;
}

.section-heading-inline {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 16px;
}

.stock-search {
    display: grid;
    gap: 10px;
    margin: 8px 0 18px;
}

.stock-search-row {
    display: flex;
    gap: 10px;
    align-items: center;
}

.stock-search-row input[type="search"] {
    flex: 1;
    min-width: 0;
}

.stock-search-clear {
    white-space: nowrap;
}

.section-badge {
    display: inline-flex;
    align-items: center;
    padding: 10px 14px;
    border-radius: 999px;
    background: var(--surface-muted);
    border: 1px solid var(--line);
    font-family: "Trebuchet MS", "Segoe UI", sans-serif;
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--primary);
    white-space: nowrap;
}

.form-group {
    margin-bottom: 18px;
    min-width: 0;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-family: "Trebuchet MS", "Segoe UI", sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--primary);
}

input[type="text"],
input[type="search"],
input[type="number"],
input[type="date"],
select {
    width: 100%;
    min-height: 50px;
    padding: 13px 15px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.88);
    color: var(--text);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
    font-family: "Trebuchet MS", "Segoe UI", sans-serif;
    font-size: 0.98rem;
    line-height: 1.25;
}

input[type="number"] {
    appearance: textfield;
    -moz-appearance: textfield;
}

input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

select {
    padding-right: 36px;
}

input::placeholder {
    color: #95a097;
}

input[type="text"]:focus,
input[type="search"]:focus,
input[type="number"]:focus,
input[type="date"]:focus,
select:focus {
    outline: none;
    border-color: rgba(36, 85, 63, 0.48);
    box-shadow: 0 0 0 4px rgba(202, 106, 61, 0.12);
    transform: translateY(-1px);
}

.autocomplete-wrapper {
    position: relative;
}

.autocomplete-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    display: none;
    overflow: hidden;
    border-radius: 16px;
    background: rgba(255, 252, 247, 0.97);
    border: 1px solid rgba(28, 20, 15, 0.08);
    box-shadow: var(--shadow-md);
    z-index: 1000;
}

.autocomplete-dropdown.active {
    display: block;
    animation: slideDown 0.2s ease-out;
}

.autocomplete-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    padding: 13px 15px;
    cursor: pointer;
    border-bottom: 1px solid rgba(28, 20, 15, 0.06);
    transition: background 0.2s ease;
}

.autocomplete-item:last-child {
    border-bottom: none;
}

.autocomplete-item:hover,
.autocomplete-item.selected {
    background: rgba(216, 111, 69, 0.09);
}

.autocomplete-item-name {
    font-family: "Trebuchet MS", "Segoe UI", sans-serif;
    font-weight: 700;
    color: var(--text);
}

.autocomplete-item-meta {
    font-family: "Trebuchet MS", "Segoe UI", sans-serif;
    font-size: 0.84rem;
    color: var(--text-soft);
}

.stepper {
    display: flex;
    align-items: center;
    gap: 8px;
}

.stepper-btn {
    width: 42px;
    height: 42px;
    border: none;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--primary), var(--primary-2));
    color: #fff8f1;
    font-size: 1.25rem;
    cursor: pointer;
    box-shadow: 0 12px 24px rgba(28, 20, 15, 0.18);
    transition: transform 0.16s ease, box-shadow 0.16s ease, opacity 0.16s ease;
}

.stepper-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 18px 28px rgba(28, 20, 15, 0.22);
}

.stepper-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    transform: none;
}

.stepper input[type="number"] {
    flex: 1;
    min-width: 0;
    text-align: center;
    padding-left: 12px;
    padding-right: 12px;
}

.voice-card {
    margin-bottom: 28px;
    padding: 22px;
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(28, 20, 15, 0.04), rgba(255, 255, 255, 0.72));
    border: 1px solid rgba(28, 20, 15, 0.08);
}

.voice-card-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    gap: 16px;
    margin-bottom: 12px;
}

.voice-card h3 {
    font-size: 1.35rem;
    line-height: 1.1;
}

.voice-hint,
.voice-status,
.voice-preview-note {
    font-family: "Trebuchet MS", "Segoe UI", sans-serif;
    color: var(--text-soft);
    line-height: 1.55;
}

.voice-actions,
.voice-confirm-actions {
    display: flex;
    gap: 12px;
    margin-top: 16px;
}

.voice-toggle-btn.is-listening {
    background: linear-gradient(135deg, var(--primary), var(--primary-2));
}

.voice-status {
    margin-top: 16px;
    padding: 12px 14px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.74);
    border: 1px solid rgba(28, 20, 15, 0.08);
}

.voice-transcript-block {
    margin-top: 16px;
}

#voiceTranscript {
    width: 100%;
    min-height: 100px;
    resize: vertical;
    padding: 13px 15px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.88);
    color: var(--text);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
    font-family: "Trebuchet MS", "Segoe UI", sans-serif;
    font-size: 0.98rem;
    line-height: 1.45;
}

#voiceTranscript:focus {
    outline: none;
    border-color: rgba(36, 85, 63, 0.48);
    box-shadow: 0 0 0 4px rgba(202, 106, 61, 0.12);
    transform: translateY(-1px);
}

.voice-preview {
    margin-top: 16px;
}

.voice-preview-card {
    padding: 16px 18px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(28, 20, 15, 0.08);
}

.voice-preview.success .voice-preview-card {
    border-color: rgba(202, 106, 61, 0.18);
    background: rgba(236, 248, 239, 0.88);
}

.voice-preview.warning .voice-preview-card,
.voice-preview.error .voice-preview-card {
    border-color: rgba(200, 79, 61, 0.16);
    background: rgba(253, 241, 238, 0.9);
}

.voice-preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.voice-preview-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 16px;
    font-family: "Trebuchet MS", "Segoe UI", sans-serif;
    color: var(--text);
    margin-bottom: 12px;
}

.badge-success {
    background: rgba(202, 106, 61, 0.14);
    color: var(--success);
}

.badge-danger {
    background: rgba(200, 79, 61, 0.14);
    color: var(--danger);
}

.manual-divider {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 6px 0 22px;
    color: var(--text-soft);
    font-family: "Trebuchet MS", "Segoe UI", sans-serif;
    font-size: 0.88rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.manual-divider::before,
.manual-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: rgba(28, 20, 15, 0.12);
}

.compact-empty {
    padding: 18px;
    font-size: 0.94rem;
}

.btn {
    position: relative;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-height: 50px;
    padding: 12px 20px;
    border: none;
    border-radius: 14px;
    cursor: pointer;
    font-family: "Trebuchet MS", "Segoe UI", sans-serif;
    font-size: 0.96rem;
    font-weight: 700;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn:active {
    transform: scale(0.98);
}

.btn-primary {
    width: 100%;
    background: linear-gradient(135deg, var(--accent), #cc5e35);
    color: #fff7f1;
    box-shadow: 0 16px 26px rgba(216, 111, 69, 0.25);
}

.btn-primary:hover {
    box-shadow: 0 20px 34px rgba(216, 111, 69, 0.3);
}

.btn-secondary,
.btn-ghost {
    background: rgba(255, 255, 255, 0.72);
    color: var(--primary);
    border: 1px solid rgba(28, 20, 15, 0.12);
}

.btn-secondary:hover,
.btn-ghost:hover {
    background: #fffaf3;
}

.hero-cta {
    width: auto;
}

.btn-edit,
.btn-danger {
    flex: 1;
    min-height: 44px;
    padding: 10px 14px;
    font-size: 0.88rem;
}

.btn-edit {
    background: rgba(202, 106, 61, 0.14);
    color: var(--success);
}

.btn-edit:hover {
    background: rgba(59, 143, 84, 0.2);
}

.btn-danger {
    background: rgba(200, 79, 61, 0.12);
    color: var(--danger);
}

.btn-danger:hover {
    background: rgba(200, 79, 61, 0.18);
}

.ingredients-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 12px;
}

.suggestions-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
}

.alerts-list,
.shopping-list {
    display: grid;
    gap: 14px;
}

.ingredient-card,
.suggestion-card,
.shopping-item,
.alert-card {
    border-radius: 22px;
    border: 1px solid rgba(28, 20, 15, 0.08);
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 14px 28px rgba(29, 42, 34, 0.08);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.ingredient-card,
.suggestion-card {
    padding: 10px;
}

/* Cartes ingrédients plus compactes */
.ingredient-card {
    padding: 8px;
    border-radius: 18px;
}

.ingredient-card {
    position: relative;
    overflow: hidden;
    animation: slideIn 0.28s ease-out;
}

.ingredient-card::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 6px;
    background: linear-gradient(180deg, var(--accent), #f0b995);
}

.ingredient-card:hover,
.suggestion-card:hover,
.shopping-item:hover,
.alert-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 36px rgba(29, 42, 34, 0.12);
    border-color: rgba(28, 20, 15, 0.16);
}

.ingredient-card.low-stock {
    background: linear-gradient(180deg, rgba(253, 236, 232, 0.92), rgba(255, 255, 255, 0.88));
}

.ingredient-card.expired {
    background: linear-gradient(180deg, rgba(252, 228, 222, 0.95), rgba(255, 255, 255, 0.84));
}

.ingredient-name,
.suggestion-title,
.shopping-item-name {
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.2;
}

.ingredient-card .ingredient-name {
    font-size: 0.85rem;
    line-height: 1.15;
}

.ingredient-category,
.badge {
    display: inline-flex;
    align-items: center;
    padding: 7px 12px;
    border-radius: 999px;
    font-family: "Trebuchet MS", "Segoe UI", sans-serif;
    font-size: 0.78rem;
    font-weight: 700;
}

.ingredient-category {
    margin: 12px 0 10px;
}

.ingredient-card .ingredient-category {
    margin: 8px 0 8px;
    padding: 6px 10px;
}

.category-frais {
    background: #dcefdc;
    color: #3a261d;
}

.category-frigo {
    background: #dceaf2;
    color: #365d76;
}

.category-congele,
.category-congelé {
    background: #dde7fb;
    color: #405a8b;
}

.category-congelé {
    background: #dde7fb;
    color: #405a8b;
}

.category-placard {
    background: #f7ebd1;
    color: #7a5a21;
}

.ingredient-quantity {
    margin: 8px 0 14px;
    font-family: "Trebuchet MS", "Segoe UI", sans-serif;
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary);
}

.ingredient-card .ingredient-quantity {
    margin: 6px 0 10px;
    font-size: 1.45rem;
}

.ingredient-details,
.ingredients-needed,
.missing-items,
.shopping-item-quantity,
.alert-message,
.ingredient-expiry,
.ingredient-alert,
.suggestion-score {
    font-family: "Trebuchet MS", "Segoe UI", sans-serif;
    color: var(--text-soft);
    line-height: 1.55;
}

.stock-bar,
.score-bar {
    width: 100%;
    height: 10px;
    margin-top: 12px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(29, 42, 34, 0.08);
}

.ingredient-card .stock-bar {
    height: 8px;
    margin-top: 10px;
}

.stock-bar-fill,
.score-fill {
    height: 100%;
    transition: width 0.3s ease;
}

.stock-bar-fill {
    background: linear-gradient(90deg, #5fbb74, #2a7a45);
}

.stock-bar-fill.low {
    background: linear-gradient(90deg, #da6750, #bf4f3c);
}

.stock-bar-fill.soon {
    background: linear-gradient(90deg, #efc15d, #dea035);
}

.stock-status {
    margin-top: 10px;
    font-family: "Trebuchet MS", "Segoe UI", sans-serif;
    font-size: 0.82rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.stock-status.ok {
    color: var(--success);
}

.stock-status.soon {
    color: #b37a16;
}

.stock-status.critical,
.ingredient-alert,
.ingredient-expiry.warning {
    color: var(--danger);
}

.ingredient-actions {
    display: flex;
    gap: 8px;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid rgba(28, 20, 15, 0.08);
}

.suggestions-header {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 18px;
    margin-bottom: 24px;
}

.filter-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 11px 16px;
    border-radius: 999px;
    border: 1px solid rgba(28, 20, 15, 0.12);
    background: rgba(255, 255, 255, 0.72);
    color: var(--text-soft);
    cursor: pointer;
    transition: transform 0.18s ease, background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
    font-family: "Trebuchet MS", "Segoe UI", sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
}

.filter-btn:hover {
    transform: translateY(-1px);
    background: #fffaf2;
    color: var(--text);
}

.filter-btn.active {
    background: linear-gradient(135deg, var(--primary), var(--primary-2));
    color: #fff9f1;
    border-color: transparent;
    box-shadow: 0 14px 24px rgba(28, 20, 15, 0.18);
}

.suggestion-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 12px 0 14px;
}

.badge-midi {
    background: #f6ead9;
    color: #996127;
}

.badge-soir {
    background: #dce8f4;
    color: #375878;
}

.badge-difficulty {
    background: #ece7dd;
    color: #5f6d63;
}

.score-fill {
    background: linear-gradient(90deg, var(--accent), #e6b368);
}

.suggestion-ingredients {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid rgba(28, 20, 15, 0.08);
}

.suggestion-ingredients-condiments {
    margin-top: 14px;
    padding: 14px 16px 0;
    border-top: 0;
    border-radius: 16px;
    background: rgba(28, 20, 15, 0.04);
}

.suggestion-ingredients-condiments h4 {
    color: var(--text-soft);
}

.suggestion-ingredients h4,
.missing-ingredients h5 {
    margin-bottom: 8px;
    font-family: "Trebuchet MS", "Segoe UI", sans-serif;
    font-size: 0.92rem;
    font-weight: 800;
    color: var(--primary);
}

.ingredient-bubbles {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.ingredient-bubble {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid rgba(28, 20, 15, 0.08);
    background: rgba(255, 255, 255, 0.9);
    font-family: "Trebuchet MS", "Segoe UI", sans-serif;
    font-size: 0.84rem;
    font-weight: 800;
    line-height: 1.2;
    color: var(--text);
    box-shadow: 0 10px 20px rgba(29, 42, 34, 0.06);
}

.ingredient-bubble.category-frais {
    background: #dcefdc;
    color: #3a261d;
}

.ingredient-bubble.category-frigo {
    background: #dceaf2;
    color: #365d76;
}

.ingredient-bubble.category-congele,
.ingredient-bubble.category-congelé {
    background: #dde7fb;
    color: #405a8b;
}

.ingredient-bubble.category-placard {
    background: #f7ebd1;
    color: #7a5a21;
}

.ingredient-bubble.category-inconnu {
    background: rgba(29, 42, 34, 0.06);
    color: var(--text-soft);
}

.ingredient-bubble-condiment {
    opacity: 0.96;
}

.ingredient-bubbles-condiments {
    padding-bottom: 4px;
}

.missing-ingredients {
    margin-top: 16px;
    padding: 14px 16px;
    border-radius: 16px;
    background: var(--danger-soft);
    border: 1px solid rgba(200, 79, 61, 0.1);
}

.shopping-item,
.alert-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 18px 20px;
}

.shopping-actions {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.shopping-share-btn {
    display: none;
}

.shopping-item-quantity {
    margin-top: 4px;
}

.shopping-item.completed {
    opacity: 0.6;
}

.alert-card.low_stock,
.alert-card.low-stock {
    background: linear-gradient(180deg, rgba(252, 244, 226, 0.98), rgba(255, 255, 255, 0.9));
}

.alert-card.expiry {
    background: linear-gradient(180deg, rgba(253, 232, 227, 0.98), rgba(255, 255, 255, 0.9));
}

.alert-actions {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.empty-state {
    padding: 38px 24px;
    border: 1px dashed rgba(28, 20, 15, 0.16);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.45);
    text-align: center;
    font-family: "Trebuchet MS", "Segoe UI", sans-serif;
    font-size: 1rem;
    color: var(--text-soft);
}

.modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(19, 32, 26, 0.38);
    backdrop-filter: blur(8px);
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.modal-content {
    width: min(100%, 560px);
    max-height: calc(100vh - 48px);
    overflow: auto;
    padding: 28px;
    border-radius: 28px;
    background: rgba(255, 252, 247, 0.96);
    box-shadow: var(--shadow-lg);
}

.modal h3 {
    margin-bottom: 20px;
    font-size: 1.7rem;
}

.close {
    float: right;
    color: var(--text-soft);
    font-size: 28px;
    font-weight: 700;
    cursor: pointer;
    transition: color 0.2s ease;
}

.close:hover,
.close:focus {
    color: var(--primary);
}

.modal-buttons {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.modal-buttons .btn {
    flex: 1;
}

.confirm-delete-text {
    margin-bottom: 20px;
    font-family: "Trebuchet MS", "Segoe UI", sans-serif;
    color: var(--text-soft);
    line-height: 1.55;
}

.confirm-delete-text strong {
    color: var(--text);
}

.surface,
.hero-panel-card,
.stockdetailed-card,
.suggestion-card,
.shopping-item,
.alert-card,
.voice-card,
.modal-content {
    position: relative;
    overflow: hidden;
}

.surface::before,
.hero-panel-card::before,
.stockdetailed-card::before,
.suggestion-card::before,
.shopping-item::before,
.alert-card::before,
.voice-card::before,
.modal-content::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.75), transparent);
    pointer-events: none;
}

.surface {
    padding: 28px;
    border-radius: var(--radius-xl);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(255, 251, 244, 0.76)),
        var(--surface);
}

.section-heading {
    display: grid;
    gap: 10px;
    margin-bottom: 24px;
}

.section-heading h2 {
    font-size: clamp(1.8rem, 2vw, 2.4rem);
    line-height: 1;
    letter-spacing: -0.03em;
}

.section-heading-inline {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 16px;
}

.section-intro {
    max-width: 72ch;
}

.section-badge {
    display: inline-flex;
    align-items: center;
    padding: 10px 14px;
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(240, 234, 223, 0.92));
    border: 1px solid rgba(28, 20, 15, 0.12);
    box-shadow: 0 10px 20px rgba(29, 42, 34, 0.06);
    font-family: "Trebuchet MS", "Segoe UI", sans-serif;
    font-size: 0.88rem;
    font-weight: 800;
    color: var(--primary);
    white-space: nowrap;
}

.tabs {
    position: relative;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 12px;
    padding: 12px;
    border-radius: 24px;
    background: rgba(255, 252, 247, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 16px 40px rgba(34, 48, 39, 0.08);
    backdrop-filter: blur(14px);
}

.tab-button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    min-width: 0;
    padding: 16px 18px;
    border: none;
    border-radius: 18px;
    background: transparent;
    color: var(--text-soft);
    cursor: pointer;
    transition: transform 0.22s ease, background 0.22s ease, color 0.22s ease, box-shadow 0.22s ease;
    font-family: "Trebuchet MS", "Segoe UI", sans-serif;
    font-size: 0.98rem;
    font-weight: 700;
}

.tab-button:hover {
    transform: translateY(-1px);
    background: rgba(255, 255, 255, 0.68);
    color: var(--text);
}

.tab-button.active {
    background: linear-gradient(135deg, var(--primary), var(--primary-2));
    color: #fff9f2;
    box-shadow: 0 16px 28px rgba(28, 20, 15, 0.26);
}

.tab-icon {
    font-size: 0.9rem;
}

.tab-content {
    display: none;
    animation: fadeIn 0.32s ease;
}

.tab-content.active {
    display: block;
}

.content-grid {
    display: grid;
    gap: 20px;
}

.inventory-grid {
    grid-template-columns: 1fr;
    align-items: start;
}

/* Inventaire sert uniquement à ajouter / retirer */
#inventory .surface {
    padding: 24px;
}

.stockdetailed-list {
    display: block;
}

.stockdetailed-category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 12px;
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 14px 14px;
}

.stockdetailed-category-details {
    margin-bottom: 14px;
}

.stockdetailed-card {
    padding: 14px;
    border-radius: 20px;
    border: 1px solid rgba(28, 20, 15, 0.08);
    background: rgba(255, 255, 255, 0.86);
    box-shadow: 0 18px 36px rgba(29, 42, 34, 0.08);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.stockdetailed-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 24px 48px rgba(29, 42, 34, 0.12);
    border-color: rgba(28, 20, 15, 0.16);
}

.stockdetailed-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.stockdetailed-name {
    font-family: "Trebuchet MS", "Segoe UI", sans-serif;
    font-size: 1.08rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1.2;
}

.stockdetailed-category {
    padding: 7px 12px;
    border-radius: 999px;
    font-family: "Trebuchet MS", "Segoe UI", sans-serif;
    font-size: 0.78rem;
    font-weight: 800;
    white-space: nowrap;
}

.stockdetailed-quantity {
    margin-top: 12px;
    font-family: "Trebuchet MS", "Segoe UI", sans-serif;
    font-size: 2rem;
    font-weight: 900;
    color: var(--primary);
    letter-spacing: -0.02em;
}

.stockdetailed-bar {
    width: 100%;
    height: 10px;
    margin-top: 10px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(29, 42, 34, 0.08);
}

.stockdetailed-bar-fill {
    height: 100%;
    transition: width 0.3s ease;
    background: linear-gradient(90deg, #5fbb74, #2a7a45);
}

.stockdetailed-category-details {
    border-radius: 22px;
    border: 1px solid rgba(28, 20, 15, 0.08);
    background: rgba(255, 255, 255, 0.78);
    box-shadow: 0 14px 28px rgba(29, 42, 34, 0.06);
    overflow: hidden;
    margin-bottom: 14px;
}

.stockdetailed-summary {
    list-style: none;
    cursor: pointer;
    user-select: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    font-family: "Trebuchet MS", "Segoe UI", sans-serif;
    font-size: 1.05rem;
    font-weight: 900;
    color: var(--primary);
}

.stockdetailed-summary::-webkit-details-marker {
    display: none;
}

.stockdetailed-summary::after {
    content: "▾";
    font-size: 1rem;
    color: var(--text-soft);
    transition: transform 0.2s ease;
}

.stockdetailed-category-details:not([open]) .stockdetailed-summary::after {
    transform: rotate(0deg);
}

.stockdetailed-category-details[open] .stockdetailed-summary::after {
    transform: rotate(180deg);
}

.stockdetailed-bar-fill.low {
    background: linear-gradient(90deg, #da6750, #bf4f3c);
}

.stockdetailed-bar-fill.soon {
    background: linear-gradient(90deg, #efc15d, #dea035);
}

.stockdetailed-status {
    margin-top: 10px;
    font-family: "Trebuchet MS", "Segoe UI", sans-serif;
    font-size: 0.92rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.stockdetailed-status.ok {
    color: var(--success);
}

.stockdetailed-status.soon {
    color: #b37a16;
}

.stockdetailed-status.critical {
    color: var(--danger);
}

.stockdetailed-meta {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(28, 20, 15, 0.08);
}

.stockdetailed-alertline {
    font-family: "Trebuchet MS", "Segoe UI", sans-serif;
    font-size: 0.92rem;
    font-weight: 800;
    color: var(--text-soft);
    line-height: 1.35;
}

.stockdetailed-alert {
    margin-top: 8px;
    font-family: "Trebuchet MS", "Segoe UI", sans-serif;
    font-size: 0.95rem;
    font-weight: 900;
    color: var(--danger);
}

.stockdetailed-expiry {
    margin-top: 8px;
    font-family: "Trebuchet MS", "Segoe UI", sans-serif;
    font-size: 0.92rem;
    font-weight: 800;
    color: var(--text-soft);
}

.stockdetailed-expiry.warning {
    color: var(--danger);
}

.stockdetailed-actions {
    display: flex;
    gap: 10px;
    margin-top: 14px;
}

.stockdetailed-card.low-stock {
    background: linear-gradient(180deg, rgba(253, 236, 232, 0.92), rgba(255, 255, 255, 0.88));
}

.stockdetailed-card.expired {
    background: linear-gradient(180deg, rgba(252, 228, 222, 0.95), rgba(255, 255, 255, 0.84));
}

.section-heading-inline {
    flex-wrap: wrap;
}

.stock-search-row {
    flex-wrap: wrap;
}

.stock-search-clear {
    white-space: nowrap;
}

.voice-preview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ingredient-card,
.suggestion-card,
.shopping-item,
.alert-card,
.stockdetailed-card,
.voice-card,
.modal-content {
    animation: slideIn 0.28s ease-out;
}

.ingredient-card::before,
.suggestion-card::before,
.shopping-item::before,
.alert-card::before {
    width: 5px;
}

.ingredient-name,
.suggestion-title,
.shopping-item-name,
.stockdetailed-name {
    letter-spacing: -0.02em;
}

.ingredient-details,
.ingredients-needed,
.missing-items,
.shopping-item-quantity,
.alert-message,
.ingredient-expiry,
.ingredient-alert,
.suggestion-score,
.stockdetailed-alertline,
.stockdetailed-expiry {
    color: var(--text-soft);
}

.ingredient-card .ingredient-name {
    font-size: 0.88rem;
}

.ingredient-card .ingredient-quantity {
    font-size: 1.48rem;
}

.ingredient-card .stock-bar,
.suggestion-card .score-bar,
.stockdetailed-bar {
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.ingredient-bubble,
.badge,
.section-badge,
.stockdetailed-category {
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.ingredient-bubble:hover,
.badge:hover,
.section-badge:hover {
    transform: translateY(-1px);
}

.empty-state {
    padding: 38px 24px;
    border: 1px dashed rgba(28, 20, 15, 0.16);
    border-radius: 20px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.48)),
        rgba(255, 255, 255, 0.45);
    text-align: center;
    font-family: "Trebuchet MS", "Segoe UI", sans-serif;
    font-size: 1rem;
    color: var(--text-soft);
}

.empty-state.compact-empty {
    padding: 18px;
    font-size: 0.94rem;
}

.modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(19, 32, 26, 0.38);
    backdrop-filter: blur(8px);
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.modal-content {
    width: min(100%, 560px);
    max-height: calc(100vh - 48px);
    overflow: auto;
    padding: 28px;
    border-radius: 28px;
    background: linear-gradient(180deg, rgba(255, 253, 248, 0.98), rgba(255, 250, 242, 0.94));
    box-shadow: var(--shadow-lg);
}

.modal h3 {
    margin-bottom: 20px;
    font-size: 1.7rem;
    letter-spacing: -0.02em;
}

.close {
    float: right;
    color: var(--text-soft);
    font-size: 28px;
    font-weight: 700;
    cursor: pointer;
    transition: color 0.2s ease;
}

.close:hover,
.close:focus {
    color: var(--primary);
}

.modal-buttons {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.modal-buttons .btn {
    flex: 1;
}

@media (max-width: 1080px) {
    .hero {
        grid-template-columns: 1fr;
    }

    .section-heading-inline {
        align-items: start;
    }

    .voice-preview-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 900px) {
    .page-shell {
        padding: 18px;
    }

    .hero,
    .surface,
    .hero-panel-card,
    .modal-content {
        border-radius: 24px;
    }

    .tabs {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    }

    .section-heading-inline,
    .suggestions-header {
        align-items: start;
    }

    .suggestions-header {
        flex-direction: column;
    }

    .filter-buttons {
        width: 100%;
    }

    .filter-btn {
        flex: 1 1 130px;
    }

    .shopping-item,
    .alert-card {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 640px) {
    .page-shell {
        padding: 12px;
    }

    .hero,
    .surface,
    .hero-panel-card,
    .modal-content {
        padding: 18px;
    }

    .hero h1 {
        font-size: clamp(2.4rem, 14vw, 3.8rem);
    }

    .hero-actions,
    .voice-actions,
    .voice-confirm-actions,
    .modal-buttons,
    .ingredient-actions,
    .stockdetailed-actions,
    .alert-actions {
        flex-direction: column;
    }

    .btn,
    .btn-edit,
    .btn-danger,
    .filter-btn {
        width: 100%;
    }

    .tabs {
        padding: 10px;
        gap: 8px;
    }

    .tab-button {
        padding: 13px 14px;
        font-size: 0.92rem;
    }

    .section-heading h2 {
        font-size: clamp(1.55rem, 7vw, 2rem);
    }

    .section-badge {
        width: fit-content;
    }

    .form-row,
    .voice-preview-grid,
    .stockdetailed-category-grid {
        grid-template-columns: 1fr;
    }

    .stock-search-row {
        flex-direction: column;
        align-items: stretch;
    }

    .ingredient-bubbles {
        gap: 6px;
    }

    .ingredient-bubble {
        width: fit-content;
        max-width: 100%;
        font-size: 0.8rem;
    }
}

/* Visual identity v2 */
:root {
    --bg: #f7f1e8;
    --bg-deep: #dde6d5;
    --surface: rgba(255, 253, 248, 0.82);
    --surface-strong: #fffdf7;
    --surface-muted: #f3ece1;
    --text: #16231d;
    --text-soft: #5f6b62;
    --line: rgba(26, 42, 34, 0.11);
    --primary: #18110d;
    --primary-2: #37251d;
    --accent: #ca6a3d;
    --accent-soft: #f5d9c8;
    --danger: #b94b3a;
    --danger-soft: #fde7e1;
    --warning: #d49c2f;
    --success: #c97632;
    --shadow-lg: 0 30px 90px rgba(23, 35, 29, 0.16);
    --shadow-md: 0 18px 42px rgba(23, 35, 29, 0.11);
    --radius-xl: 34px;
    --radius-lg: 24px;
    --radius-md: 18px;
    --radius-sm: 14px;
}

body {
    font-family: "Georgia", "Times New Roman", serif;
    color: var(--text);
    min-height: 100vh;
    background:
        radial-gradient(circle at 10% 10%, rgba(202, 106, 61, 0.14), transparent 24%),
        radial-gradient(circle at 84% 14%, rgba(202, 106, 61, 0.14), transparent 26%),
        radial-gradient(circle at 50% 100%, rgba(26, 42, 34, 0.06), transparent 30%),
        linear-gradient(180deg, #fcf8f2 0%, var(--bg) 48%, #eee6d8 100%);
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    opacity: 0.28;
    background-image:
        linear-gradient(rgba(22, 35, 29, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(22, 35, 29, 0.035) 1px, transparent 1px);
    background-size: 30px 30px;
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.85), transparent 85%);
}

.page-shell {
    padding: 32px;
}

.container {
    gap: 24px;
}

.hero {
    gap: 26px;
    padding: 34px;
    border-radius: 36px;
    background:
        linear-gradient(135deg, rgba(255, 251, 245, 0.96), rgba(247, 240, 231, 0.84)),
        linear-gradient(180deg, rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0.2));
    border: 1px solid rgba(255, 255, 255, 0.75);
    box-shadow: 0 28px 72px rgba(23, 35, 29, 0.12);
    backdrop-filter: blur(20px);
}

.hero::after {
    content: "";
    position: absolute;
    inset: auto 34px 22px 34px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(28, 20, 15, 0.14), transparent);
    pointer-events: none;
}

.hero-copy {
    gap: 20px;
}

.hero-bot-status {
    top: 22px;
    right: 22px;
}

.eyebrow,
.section-kicker,
.panel-label {
    font-size: 0.72rem;
    letter-spacing: 0.24em;
    color: rgba(27, 19, 15, 0.74);
}

.bot-status {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    align-self: flex-start;
    margin: 10px 0 16px;
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(249, 246, 239, 0.92);
    font-size: 0.86rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    justify-content: flex-start;
}

.bot-status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #c84f3d;
    box-shadow: 0 0 0 4px rgba(200, 79, 61, 0.18);
    flex: 0 0 auto;
}

.bot-status.is-up .bot-status-dot {
    background: #2f8f4e;
    box-shadow: 0 0 0 4px rgba(47, 143, 78, 0.18);
}

.bot-status.is-down .bot-status-dot {
    background: #c84f3d;
    box-shadow: 0 0 0 4px rgba(200, 79, 61, 0.18);
}

.bot-status.is-up {
    color: #2f8f4e;
}

.bot-status.is-down {
    color: #c84f3d;
}

.hero h1 {
    font-size: clamp(3.2rem, 6vw, 6.4rem);
    line-height: 0.88;
    letter-spacing: -0.05em;
}

.subtitle,
.section-intro,
.panel-note {
    max-width: 64ch;
    font-size: 1.05rem;
    line-height: 1.72;
}

.hero-actions {
    gap: 14px;
    margin-top: 10px;
}

@media (max-width: 860px) {
    .hero-copy {
        padding-right: 0;
    }

    .hero-bot-status {
        position: static;
        max-width: none;
        margin-top: 4px;
    }
}

.hero-panel-card {
    padding: 28px;
    border-radius: 30px;
    background:
        radial-gradient(circle at top right, rgba(202, 106, 61, 0.2), transparent 34%),
        radial-gradient(circle at bottom left, rgba(202, 106, 61, 0.14), transparent 28%),
        linear-gradient(180deg, rgba(16, 33, 27, 0.98), rgba(32, 68, 52, 0.94));
    box-shadow: 0 22px 60px rgba(16, 26, 21, 0.24);
}

.hero-panel-card::after {
    content: "";
    position: absolute;
    inset: 18px;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    pointer-events: none;
}

.hero-stats {
    gap: 14px;
}

.stat-pill {
    padding: 16px 18px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.stat-value {
    font-size: 2.2rem;
    font-weight: 800;
    letter-spacing: -0.04em;
}

.tabs {
    gap: 10px;
    padding: 14px;
    border-radius: 28px;
    background: rgba(255, 252, 247, 0.74);
    border: 1px solid rgba(255, 255, 255, 0.82);
    box-shadow: 0 18px 52px rgba(23, 35, 29, 0.09);
}

.tab-button {
    padding: 17px 18px;
    border-radius: 20px;
    color: rgba(22, 35, 29, 0.68);
}

.tab-button.active {
    box-shadow: 0 20px 34px rgba(28, 20, 15, 0.22);
}

.surface {
    padding: 32px;
    border-radius: 34px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(251, 247, 241, 0.8)),
        var(--surface);
    border: 1px solid rgba(255, 255, 255, 0.65);
    box-shadow: 0 20px 50px rgba(23, 35, 29, 0.09);
}

.surface::before,
.hero-panel-card::before,
.stockdetailed-card::before,
.suggestion-card::before,
.shopping-item::before,
.alert-card::before,
.voice-card::before,
.modal-content::before {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(27, 19, 15, 0.1), transparent);
}

.section-heading {
    gap: 12px;
    margin-bottom: 28px;
}

.section-heading h2 {
    font-size: clamp(1.95rem, 2.4vw, 2.75rem);
    letter-spacing: -0.05em;
}

.section-heading-inline {
    gap: 18px;
}

.section-badge {
    padding: 11px 15px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(241, 234, 223, 0.96));
    border: 1px solid rgba(28, 20, 15, 0.12);
    box-shadow: 0 12px 26px rgba(23, 35, 29, 0.08);
    font-weight: 800;
}

label {
    margin-bottom: 10px;
    font-size: 0.86rem;
    letter-spacing: 0.04em;
}

input[type="text"],
input[type="search"],
input[type="number"],
input[type="date"],
select,
#voiceTranscript {
    min-height: 54px;
    padding: 14px 16px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.92);
    border-color: rgba(28, 20, 15, 0.12);
    box-shadow: 0 10px 20px rgba(23, 35, 29, 0.03);
}

input[type="text"]:focus,
input[type="search"]:focus,
input[type="number"]:focus,
input[type="date"]:focus,
select:focus,
#voiceTranscript:focus {
    border-color: rgba(41, 83, 64, 0.46);
    box-shadow: 0 0 0 4px rgba(202, 106, 61, 0.12);
}

.form-group {
    margin-bottom: 20px;
}

.form-row {
    gap: 18px;
}

.voice-card {
    margin-bottom: 32px;
    padding: 26px;
    border-radius: 28px;
    background:
        radial-gradient(circle at top right, rgba(202, 106, 61, 0.08), transparent 34%),
        linear-gradient(180deg, rgba(245, 240, 233, 0.7), rgba(255, 255, 255, 0.78));
    border: 1px solid rgba(28, 20, 15, 0.08);
}

.voice-card h3 {
    font-size: 1.45rem;
    letter-spacing: -0.03em;
}

.manual-divider {
    margin: 8px 0 26px;
}

.btn {
    min-height: 52px;
    padding: 13px 22px;
    border-radius: 16px;
    box-shadow: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent), #b95b2f);
    box-shadow: 0 18px 30px rgba(202, 106, 61, 0.24);
}

.btn-primary:hover {
    box-shadow: 0 22px 36px rgba(202, 106, 61, 0.28);
}

.btn-secondary,
.btn-ghost {
    background: rgba(255, 255, 255, 0.8);
}

.ingredients-list,
.suggestions-list,
.alerts-list,
.shopping-list {
    gap: 16px;
}

.ingredient-card,
.suggestion-card,
.shopping-item,
.alert-card,
.stockdetailed-card {
    border-radius: 26px;
    border: 1px solid rgba(28, 20, 15, 0.08);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(249, 244, 236, 0.86));
    box-shadow: 0 18px 36px rgba(23, 35, 29, 0.08);
}

.ingredient-card,
.suggestion-card {
    padding: 14px;
}

.ingredient-card {
    border-radius: 22px;
    padding: 12px;
}

.ingredient-card::before {
    width: 8px;
    background: linear-gradient(180deg, var(--accent), #efb28f);
}

.ingredient-card:hover,
.suggestion-card:hover,
.shopping-item:hover,
.alert-card:hover,
.stockdetailed-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 24px 46px rgba(23, 35, 29, 0.12);
    border-color: rgba(28, 20, 15, 0.16);
}

.ingredient-name,
.suggestion-title,
.shopping-item-name,
.stockdetailed-name {
    font-size: 1rem;
    letter-spacing: -0.03em;
}

.ingredient-card .ingredient-name {
    font-size: 0.92rem;
}

.ingredient-category,
.badge,
.section-badge,
.stockdetailed-category {
    box-shadow: 0 10px 18px rgba(23, 35, 29, 0.05);
}

.ingredient-quantity {
    margin: 10px 0 14px;
    font-size: 1.75rem;
}

.ingredient-details,
.ingredients-needed,
.missing-items,
.shopping-item-quantity,
.alert-message,
.ingredient-expiry,
.ingredient-alert,
.suggestion-score,
.stockdetailed-alertline,
.stockdetailed-expiry {
    font-size: 0.95rem;
    line-height: 1.6;
}

.stock-bar,
.score-bar,
.stockdetailed-bar {
    height: 11px;
}

.suggestion-score {
    margin-top: 14px;
}

.suggestion-ingredients h4,
.missing-ingredients h5 {
    font-size: 0.9rem;
    letter-spacing: 0.04em;
}

.ingredient-bubble {
    padding: 9px 13px;
    border-color: rgba(28, 20, 15, 0.09);
    box-shadow: 0 12px 24px rgba(23, 35, 29, 0.06);
}

.missing-ingredients {
    margin-top: 18px;
    padding: 16px 18px;
    border-radius: 18px;
}

.stock-search {
    margin: 10px 0 22px;
}

.stock-search-row {
    gap: 12px;
}

.stock-search-clear {
    min-height: 54px;
}

.stockdetailed-category-grid {
    gap: 14px;
}

.stockdetailed-category-details {
    border-radius: 24px;
}

.stockdetailed-summary {
    padding: 16px 18px;
    font-size: 1rem;
}

.empty-state {
    padding: 42px 26px;
    border-radius: 22px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.58)),
        rgba(255, 255, 255, 0.48);
}

.modal-content {
    border-radius: 30px;
    background: linear-gradient(180deg, rgba(255, 255, 251, 0.98), rgba(251, 246, 238, 0.96));
}

.modal h3 {
    font-size: 1.9rem;
    letter-spacing: -0.04em;
}

.modal-buttons {
    gap: 14px;
}

@media (max-width: 900px) {
    .page-shell {
        padding: 20px;
    }

    .hero,
    .surface,
    .hero-panel-card,
    .modal-content {
        border-radius: 28px;
    }

    .hero {
        padding: 28px;
    }

    .surface {
        padding: 26px;
    }

    .tabs {
        border-radius: 24px;
    }
}

@media (max-width: 640px) {
    .page-shell {
        padding: 12px;
    }

    .hero,
    .surface,
    .hero-panel-card,
    .modal-content {
        padding: 18px;
        border-radius: 24px;
    }

    .hero h1 {
        font-size: clamp(2.8rem, 13vw, 4rem);
    }

    .hero-actions,
    .voice-actions,
    .voice-confirm-actions,
    .modal-buttons,
    .ingredient-actions,
    .stockdetailed-actions,
    .alert-actions {
        gap: 10px;
    }

    .tab-button {
        padding: 14px 15px;
    }

    .section-heading h2 {
        font-size: clamp(1.7rem, 7vw, 2.2rem);
    }

    .stock-search-row {
        flex-direction: column;
        align-items: stretch;
    }

    .ingredient-bubble {
        font-size: 0.82rem;
    }

    .shopping-actions {
        width: 100%;
    }

    #printShoppingBtn {
        display: none !important;
    }

    .shopping-share-btn {
        display: inline-flex;
        width: 100%;
    }
}

.stockdetailed-bar,
.stockdetailed-bar-fill {
    display: none !important;
}

.stockdetailed-quantity + .stockdetailed-status {
    margin-top: 14px;
}

.ingredient-quick-actions {
    display: flex;
    gap: 8px;
    margin: 10px 0 12px;
}

.btn-quick-quantity {
    min-width: 42px;
    min-height: 36px;
    padding: 0 14px;
    border: 1px solid rgba(27, 19, 15, 0.1);
    border-radius: 12px;
    box-shadow: 0 10px 18px rgba(23, 35, 29, 0.06);
    width: auto;
    flex: 0 0 auto;
    font-size: 1.08rem;
    line-height: 1;
}

.btn-quick-quantity:first-child {
    background: rgba(200, 79, 61, 0.12);
    color: var(--danger);
}

.btn-quick-quantity:last-child {
    background: rgba(202, 106, 61, 0.14);
    color: var(--success);
}

.btn-quick-quantity:hover {
    transform: translateY(-1px);
}

.btn-quick-quantity:disabled,
.btn-quick-quantity.is-loading {
    opacity: 0.6;
    cursor: progress;
    transform: none;
}

.ingredient-card .ingredient-quick-actions,
.stockdetailed-card .ingredient-quick-actions {
    margin-top: 8px;
}

@media (max-width: 640px) {
    .ingredient-quick-actions {
        gap: 6px;
    }

    .btn-quick-quantity {
        min-width: 40px;
        min-height: 34px;
        padding: 0 12px;
        border-radius: 11px;
    }
}

.tab-meta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 30px;
    padding: 4px 8px;
    border-radius: 999px;
    background: rgba(28, 20, 15, 0.08);
    color: var(--primary);
    font-size: 0.78rem;
    font-weight: 800;
    line-height: 1;
}

.tab-meta-alert {
    background: rgba(200, 79, 61, 0.14);
    color: var(--danger);
}

.tab-button.active .tab-meta {
    background: rgba(255, 255, 255, 0.16);
    color: #fff9f2;
}

.section-summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 12px;
    margin: -6px 0 22px;
}

.summary-chip {
    padding: 14px 16px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(28, 20, 15, 0.08);
    box-shadow: 0 10px 24px rgba(29, 42, 34, 0.06);
}

.summary-chip-label {
    display: block;
    margin-bottom: 6px;
    font-family: "Trebuchet MS", "Segoe UI", sans-serif;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-soft);
}

.summary-chip-value {
    font-size: 1.5rem;
    line-height: 1;
    color: var(--primary);
}

.badge-score-ready {
    background: rgba(202, 106, 61, 0.14);
    color: var(--success);
}

.badge-score-almost {
    background: rgba(227, 164, 56, 0.16);
    color: #9b6d12;
}

.badge-score-partial {
    background: rgba(28, 20, 15, 0.08);
    color: var(--text-soft);
}

.shopping-group {
    margin-bottom: 18px;
}

.shopping-group:last-child {
    margin-bottom: 0;
}

.shopping-group-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
    padding: 0 4px;
}

.shopping-group-title,
.shopping-group-count {
    font-family: "Trebuchet MS", "Segoe UI", sans-serif;
    font-weight: 800;
}

.shopping-group-title {
    color: var(--primary);
}

.shopping-group-count {
    color: var(--text-soft);
    font-size: 0.88rem;
}

.shopping-group-items {
    display: grid;
    gap: 12px;
}

.shopping-item {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    cursor: pointer;
}

.shopping-item-body {
    min-width: 0;
    flex: 1 1 auto;
}

.shopping-item-actions {
    display: flex;
    flex-wrap: nowrap;
    gap: 6px;
    justify-content: flex-end;
    align-items: center;
    flex: 0 0 auto;
}

.shopping-item-actions .btn {
    width: auto;
    min-height: 34px;
    padding: 8px 12px;
    border-radius: 11px;
    font-size: 0.8rem;
    line-height: 1;
    white-space: nowrap;
    flex: 0 0 auto;
}

.shopping-item-actions .btn-danger,
.shopping-item-actions .btn-secondary {
    flex: 0 0 auto;
}

.modal-buttons-stack {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.shopping-item-stock {
    margin-top: 4px;
    font-family: "Trebuchet MS", "Segoe UI", sans-serif;
    font-size: 0.86rem;
    color: var(--text-soft);
}

.shopping-item.completed .shopping-item-body,
.shopping-item.completed .shopping-item-name,
.shopping-item.completed .shopping-item-text,
.shopping-item.completed .shopping-item-quantity,
.shopping-item.completed .shopping-item-stock {
    color: var(--text-soft);
    text-decoration: line-through;
}

.shopping-item-free-text {
    display: flex;
    align-items: center;
    padding-top: 12px;
    padding-bottom: 12px;
}

.shopping-item-text {
    font-family: "Trebuchet MS", "Segoe UI", sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text);
    line-height: 1.2;
    margin: 0;
}

.shopping-item-free-text .shopping-item-body {
    display: flex;
    align-items: center;
    min-height: 34px;
}

.shopping-item-free-text .shopping-item-stock {
    margin-top: 0;
    margin-left: 8px;
    font-size: 0.8rem;
}

.shopping-drag-handle {
    flex: 0 0 auto;
    width: 24px;
    min-height: 32px;
    cursor: grab;
    opacity: 0.35;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Ccircle cx='5' cy='3' r='1.5' fill='%231d2a22'/%3E%3Ccircle cx='11' cy='3' r='1.5' fill='%231d2a22'/%3E%3Ccircle cx='5' cy='8' r='1.5' fill='%231d2a22'/%3E%3Ccircle cx='11' cy='8' r='1.5' fill='%231d2a22'/%3E%3Ccircle cx='5' cy='13' r='1.5' fill='%231d2a22'/%3E%3Ccircle cx='11' cy='13' r='1.5' fill='%231d2a22'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 16px;
    transition: opacity 0.2s ease;
    align-self: stretch;
    touch-action: none;
}

.shopping-drag-handle:hover {
    opacity: 0.7;
}

.shopping-drag-handle:active {
    cursor: grabbing;
}

.shopping-item.is-dragging {
    opacity: 0.4;
    transform: scale(0.96);
    box-shadow: 0 8px 24px rgba(23, 35, 29, 0.12);
}

.shopping-item.drag-before::before {
    height: 3px;
    background: var(--accent);
    z-index: 2;
}

.shopping-item.drag-after::after {
    content: "";
    position: absolute;
    inset: auto 0 0 0;
    height: 3px;
    background: var(--accent);
    pointer-events: none;
    z-index: 2;
}

@media (max-width: 640px) {
    .shopping-drag-handle {
        display: none;
    }
}

.shopping-item-form {
    margin: 18px 0 22px;
    padding: 16px;
    border: 1px solid rgba(28, 20, 15, 0.08);
    border-radius: 22px;
    background: rgba(250, 248, 243, 0.78);
    box-shadow: 0 18px 38px rgba(22, 36, 28, 0.06);
}

.shopping-item-form .form-hint {
    margin: -2px 0 14px;
}

.form-hint {
    font-family: "Trebuchet MS", "Segoe UI", sans-serif;
    font-size: 0.88rem;
    color: var(--text-soft);
}

.shopping-search {
    margin: 18px 0 12px;
    padding: 16px;
    border-radius: 20px;
    border: 1px solid rgba(28, 20, 15, 0.08);
    background: rgba(255, 255, 255, 0.66);
}

.shopping-search label {
    display: block;
    margin-bottom: 10px;
    font-family: "Trebuchet MS", "Segoe UI", sans-serif;
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--primary);
}

.shopping-search-row {
    display: flex;
    gap: 10px;
    align-items: center;
}

.shopping-search-row input[type="search"] {
    flex: 1 1 auto;
    min-width: 0;
}

.shopping-search-clear {
    width: auto;
    flex: 0 0 auto;
}

@media (max-width: 640px) {
    .desktop-feature-switch {
        display: none;
    }
    .shopping-item {
        flex-direction: column;
    }

    .shopping-item-free-text {
        align-items: flex-start;
        padding-top: 10px;
        padding-bottom: 10px;
    }

    .shopping-item-free-text .shopping-item-body {
        min-height: 0;
    }

    .shopping-item-actions {
        justify-content: flex-start;
        flex-wrap: wrap;
    }

    .shopping-search-row {
        flex-direction: column;
        align-items: stretch;
    }

    .shopping-search-clear {
        width: 100%;
    }
}

@media (max-width: 640px) {
    .page-shell {
        padding: 10px;
    }

    .container {
        gap: 12px;
    }

    .hero {
        padding: 16px;
        gap: 12px;
    }

    .hero-copy {
        gap: 10px;
        padding-right: 0;
    }

    .eyebrow,
    .subtitle {
        display: none;
    }

    .hero-bot-status {
        top: 16px;
        right: 16px;
        max-width: calc(100% - 32px);
    }

    .hero h1 {
        font-size: clamp(2.2rem, 12vw, 3.2rem);
        line-height: 0.92;
    }

    .hero-actions {
        display: grid;
        grid-template-columns: 1fr;
        gap: 8px;
        margin-top: 0;
    }

    .hero-actions .hero-cta[data-tab-target] {
        display: none;
    }

    .hero-actions .hero-cta,
    .hero-logout-form {
        width: 100%;
    }

    .hero-logout-form {
        grid-column: 1 / -1;
    }

    .bot-status {
        margin: 8px 0 0;
        padding: 0;
        border: none;
        background: transparent;
        box-shadow: none;
        font-size: 0.8rem;
    }

    .tabs {
        padding: 8px;
        gap: 8px;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .tab-button {
        min-height: 54px;
        padding: 10px 12px;
        gap: 8px;
        font-size: 0.84rem;
    }

    .tab-button.active {
        background: linear-gradient(135deg, #d86f45, #c97632);
        color: #fff9f2;
        box-shadow: 0 12px 20px rgba(201, 118, 50, 0.28);
    }

    .section-heading {
        margin-bottom: 18px;
    }

    .section-heading-inline {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    #shopping .section-heading-inline {
        margin-bottom: 0;
    }

    #shopping .section-intro {
        display: none;
    }

    .shopping-actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
        width: 100%;
    }

    #printShoppingBtn {
        display: none !important;
    }

    .shopping-share-btn,
    #clearShoppingBtn {
        width: 100%;
    }

    #shopping .surface {
        display: flex;
        flex-direction: column;
        gap: 12px;
    }

    #shopping .section-summary-grid {
        display: none;
    }

    #shopping .shopping-search {
        order: 2;
        margin: 0;
        padding: 12px;
    }

    #shopping .shopping-search-row {
        flex-direction: row;
        align-items: center;
    }

    #shopping .shopping-search-row input[type="search"] {
        width: auto;
    }

    #shopping .shopping-search-clear {
        width: auto;
    }

    #shopping .shopping-list {
        order: 3;
    }

    #shopping .manual-divider {
        order: 5;
        margin: 0;
    }

    #shoppingItemForm {
        order: 6;
        margin: 0;
        padding: 12px;
    }

    #shoppingItemForm .form-row {
        gap: 12px;
    }

    #shoppingItemForm .form-group {
        margin-bottom: 12px;
    }

    #shoppingItemForm .form-hint {
        display: none;
    }

    #shoppingItemForm input[type="text"],
    #shoppingItemForm input[type="number"],
    #shoppingItemForm select {
        min-height: 48px;
        padding: 12px 14px;
    }

    #shoppingItemForm .btn-primary {
        min-height: 48px;
        padding: 12px 16px;
    }

    #shopping .shopping-group-header {
        margin-bottom: 8px;
    }

    #shopping .shopping-item {
        gap: 10px;
        flex-direction: column;
    }

    #shopping .shopping-item-body {
        width: 100%;
    }

    #shopping .shopping-item-quantity,
    #shopping .shopping-item-stock {
        display: inline;
        margin-top: 0;
        margin-right: 8px;
    }

    #shopping .shopping-item-quantity::after {
        content: " ";
    }

    #shopping .shopping-item-stock::before {
        content: " ";
    }

    #shopping .shopping-item-free-text {
        align-items: flex-start;
    }

    #shopping .shopping-item-free-text .shopping-item-body {
        display: block;
    }

    #shopping .shopping-item-free-text .shopping-item-stock {
        margin-left: 0;
    }
}

/* Mode liste de courses uniquement (jusqu'à nouvel ordre) */

/* Shopping mobile-first */
.shopping-use-surface {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.shopping-use-progress {
    padding: 12px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(28, 20, 15, 0.08);
}

.shopping-use-progress-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-family: "Trebuchet MS", "Segoe UI", sans-serif;
    font-size: 0.95rem;
    font-weight: 800;
    margin-bottom: 8px;
}

.shopping-use-progress-bar {
    width: 100%;
    height: 10px;
    border-radius: 999px;
    background: rgba(29, 42, 34, 0.12);
    overflow: hidden;
}

.shopping-use-progress-fill {
    height: 100%;
    width: 0;
    border-radius: 999px;
    background: linear-gradient(90deg, #d86f45, #c84f3d);
    transition: width 0.2s ease;
}

.shopping-use-list {
    display: grid;
    gap: 12px;
}

.shopping-use-group {
    border-radius: 16px;
    border: 1px solid rgba(28, 20, 15, 0.1);
    background: rgba(255, 255, 255, 0.72);
    padding: 10px;
}

.shopping-use-group-title {
    font-family: "Trebuchet MS", "Segoe UI", sans-serif;
    font-size: 0.94rem;
    font-weight: 800;
    margin-bottom: 8px;
}

.shopping-use-group-items {
    display: grid;
    gap: 8px;
}

.shopping-use-item {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 56px;
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(28, 20, 15, 0.08);
    cursor: pointer;
}

.shopping-use-check {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid rgba(28, 20, 15, 0.38);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    color: transparent;
}

.shopping-use-item.completed .shopping-use-check {
    background: #c84f3d;
    border-color: #c84f3d;
    color: #fff;
}

.shopping-use-body {
    display: grid;
    gap: 2px;
}

.shopping-use-name {
    font-family: "Trebuchet MS", "Segoe UI", sans-serif;
    font-size: 1rem;
    font-weight: 800;
}

.shopping-use-detail {
    font-family: "Trebuchet MS", "Segoe UI", sans-serif;
    font-size: 0.86rem;
    color: var(--text-soft);
}

.shopping-use-item.completed .shopping-use-name,
.shopping-use-item.completed .shopping-use-detail {
    color: rgba(29, 42, 34, 0.5);
    text-decoration: line-through;
}
