/* =============================================================================
   ShoppingList.css — base screen styles for the shopping list app.
   Hand-maintained (no merge-css pipeline). Stripped of legacy 2027 modules:
   upload zones, geolocation, TimeClock, Project Docs, payroll, etc.
   ============================================================================= */

/* --- reset.css --- */

/* ============================================
   reset.css — modern CSS reset
   First in the screen cascade.
   ============================================ */

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    -webkit-text-size-adjust: 100%;
    -moz-tab-size: 4;
    tab-size: 4;
    line-height: 1.5;
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
        "Helvetica Neue", Arial, sans-serif;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img,
picture,
video,
canvas,
svg {
    display: block;
    max-width: 100%;
    height: auto;
}

input,
button,
textarea,
select {
    font: inherit;
    color: inherit;
}

button {
    cursor: pointer;
    background: none;
    border: none;
}

a {
    color: inherit;
    text-decoration: none;
}

ul,
ol {
    list-style: none;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    text-wrap: balance;
}

p {
    text-wrap: pretty;
}

table {
    border-collapse: collapse;
    border-spacing: 0;
}


/* --- tokens.css --- */

/* ============================================
   tokens.css — design tokens + layout policy
   ============================================

   Supported surfaces (locked):
     1. Mobile (default)  — field phones; full-width content
     2. Office (wide)     — min-width 60rem; content max 8.5in
     3. Print             — print.css (media=print); not tokens here

   Themes (cookie + data-theme on <html>):
     dark  (default) — Sample-inspired dark + orange
     light           — light + orange

   Tablets: no third layout. Width decides mobile vs office.
   ============================================ */

:root {
    /* Content column */
    --content-max: 100%;
    --page-pad: 1rem;

    /* Shared type stack */
    --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
        "Helvetica Neue", Arial, sans-serif;
    --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;

    /* Spacing & radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-full: 9999px;

    /* Z-index scale (grow carefully) */
    --z-toast: 1000;

    /* Brand accent (shared by both themes) */
    --color-accent: #f97316;
    --color-accent-hover: #ea580c;
    --color-accent-light: rgba(249, 115, 22, 0.15);
    --color-on-accent: #ffffff;
}

/* ---------- Dark + Orange (default) ---------- */
:root,
[data-theme="dark"] {
    color-scheme: dark;
    --color-text: #e5e5e5;
    --color-text-muted: #a3a3a3;
    --color-heading: #fafafa;
    --color-border: #262626;
    --color-bg: #0a0a0a;
    --color-bg-elevated: #141414;
    --color-bg-subtle: #1a1a1a;
    --color-toast-bg: #333333;
    --color-toast-fg: #ffffff;
}

/* ---------- Light + Orange ---------- */
[data-theme="light"] {
    color-scheme: light;
    --color-text: #262626;
    --color-text-muted: #737373;
    --color-heading: #0a0a0a;
    --color-border: #e5e5e5;
    --color-bg: #fafafa;
    --color-bg-elevated: #ffffff;
    --color-bg-subtle: #f5f5f5;
    --color-toast-bg: #262626;
    --color-toast-fg: #ffffff;
    --color-accent-light: rgba(249, 115, 22, 0.12);
}

/*
 * Office / wide breakpoint.
 * 60rem ≈ 960px — room for an 8.5in column plus a little chrome.
 * Content width stays 8.5in so on-screen forms match letter-size printing habits.
 */
@media screen and (min-width: 60rem) {
    :root {
        --content-max: 8.5in;
        --page-pad: 1.25rem;
    }
}


/* --- layout.css --- */

/* ============================================
   layout.css — app shell
   Mobile-first; office width via tokens.
   ============================================ */

body {
    font-family: var(--font-sans);
    color: var(--color-text);
    background-color: var(--color-bg);
}

#content {
    width: 100%;
    max-width: var(--content-max);
    margin-inline: auto;
    padding: var(--page-pad);
}

#content.loading {
    color: var(--color-text-muted);
}

/* Collapsed rare actions on lists home (native <details>, no menu bar) */
.account-tools {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--color-border);
}

.account-tools > summary {
    cursor: pointer;
    font-weight: 600;
    color: var(--color-text-muted);
    font-size: 0.95rem;
    list-style-position: outside;
    padding: 0.5rem 0;
    user-select: none;
}

.account-tools > summary:hover {
    color: var(--color-heading);
}

.account-tools-body {
    display: grid;
    gap: 0.5rem;
    margin-top: 0.5rem;
    max-width: 18rem;
}

.account-tools-body > form {
    margin: 0;
}

.account-tools-body .btn,
.account-tools-body a.account-tools-link {
    width: 100%;
    box-sizing: border-box;
    text-decoration: none;
}

a.account-tools-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Invite stage + share message */
.invite-panel .invite-explain {
    margin: 0.75rem 0 1rem;
    display: grid;
    gap: 0.5rem;
}

.invite-limits {
    margin: 0.75rem 0;
    padding: 0.65rem 0.75rem;
    border: 1px dashed var(--color-border);
    border-radius: var(--radius-md);
    background: var(--color-bg);
    font-size: 0.875rem;
    min-height: 2.5rem;
}

.invite-note,
.invite-share-text {
    width: 100%;
    min-height: 6rem;
    font-family: inherit;
    font-size: 1rem;
    line-height: 1.45;
    resize: vertical;
}

.invite-share {
    display: grid;
    gap: 0.65rem;
    margin: 1rem 0;
}

.invite-share .invite-copy-btn {
    width: 100%;
    max-width: 20rem;
}

/* Members under Share this list — same flex row as items */
.member-list {
    margin-top: 0.75rem;
}

.member-list .auth-company {
    margin-bottom: 0.35rem;
}

.member-row {
    /* push remove X to the far right when present */
}

.member-row .item-row-body {
    flex: 1 1 auto;
}

.member-row .item-row-action {
    margin-left: auto;
}

/* User picker (share list now; user admin later) */
.user-picker-list {
    display: grid;
    gap: 0.35rem;
    margin: 0.75rem 0 1rem;
    max-height: 22rem;
    overflow-y: auto;
}

.user-picker-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 0.75rem;
    padding: 0.25rem 0;
    border-bottom: 1px solid var(--color-border);
}

.user-picker-row > form {
    margin: 0;
    flex: 1 1 auto;
    min-width: 8rem;
}

.user-picker-pick {
    width: 100%;
    justify-content: flex-start;
    text-align: left;
}

.user-picker-meta {
    flex: 0 0 auto;
    font-size: 0.8rem;
}

.user-picker-search {
    margin-bottom: 0.5rem;
}


/* --- components.css --- */

/* ============================================
   components.css — forms, buttons, shared UI
   ============================================ */

/* ---------- Dashboard (company pulse home) ---------- */
.dash-head h1 {
    margin-bottom: 0.25rem;
}

.dash-quick-row {
    margin-top: 0.5rem;
}

.dash-section > h2 {
    margin: 0 0 0.75rem;
    font-size: 1.05rem;
}

.dash-item {
    padding: 0.65rem 0.75rem;
    margin-bottom: 0.5rem;
    border-left: 3px solid var(--color-border);
    background: var(--color-bg);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.dash-item-headline {
    font-weight: 500;
    line-height: 1.35;
}

.dash-item-link {
    margin-top: 0.4rem;
}

.dash-kind-onsite { border-left-color: var(--color-accent, #3b82f6); }
.dash-kind-driving { border-left-color: #eab308; }
.dash-kind-shop,
.dash-kind-office { border-left-color: #8b5cf6; }
.dash-kind-new { border-left-color: #22c55e; }
.dash-kind-docs { border-left-color: #06b6d4; }
.dash-kind-equip { border-left-color: #f97316; }

/* ---------- Guest auth (login + activate) ---------- */
.auth-panel {
    max-width: 22rem;
    margin: 1.5rem auto 0;
    padding: 1.25rem 1.25rem 1.5rem;
    background-color: var(--color-bg-elevated);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg, var(--radius-md));
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.auth-brand {
    text-align: center;
    margin-bottom: 1.25rem;
}

.auth-logo {
    display: block;
    max-width: 11rem;
    width: 100%;
    height: auto;
    margin: 0 auto 0.75rem;
    object-fit: contain;
}

.auth-company {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--color-heading);
    line-height: 1.3;
}

.auth-panel > h2 {
    margin: 0 0 0.35rem;
    font-size: 1.15rem;
    text-align: center;
}

.auth-form {
    margin-top: 0.5rem;
}

.auth-submit {
    width: 100%;
    margin-top: 0.25rem;
}

.auth-secondary {
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid var(--color-border);
    text-align: center;
}

.auth-secondary > form {
    margin-top: 0.5rem;
}

.auth-secondary .btn {
    width: 100%;
}

/* HR printable invite / password-reset slip */
.auth-handoff-title {
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 0.35rem;
}

.auth-handoff-details {
    margin: 0.75rem 0;
    line-height: 1.5;
}

.auth-handoff-label {
    margin-top: 0.75rem;
    font-size: 0.875rem;
    color: var(--color-text-muted);
}

.auth-handoff-code {
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    font-variant-numeric: tabular-nums;
    margin: 0.35rem 0 1rem;
    padding: 0.5rem 0.75rem;
    border: 1px dashed var(--color-border);
    border-radius: var(--radius-md);
    text-align: center;
    background: var(--color-bg);
}

.auth-handoff-steps {
    margin: 0.75rem 0;
    line-height: 1.55;
}

.auth-handoff-actions {
    margin-bottom: 0.75rem;
}

/* ---------- Field wrappers (labelinput / checkbox / select) ---------- */
.field {
    margin-bottom: 0.75rem;
}

.field > label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.375rem;
    color: var(--color-text);
}

/* Bare labels outside .field (legacy call sites) */
label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.375rem;
    color: var(--color-text);
}

/* ---------- Text-like controls (never checkboxes/radios) ---------- */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="tel"],
input[type="url"],
input[type="search"],
input[type="date"],
input:not([type]),
textarea,
select {
    display: block;
    width: 100%;
    margin-bottom: 0.75rem;
    padding: 0.625rem 0.875rem;
    font-size: 1rem;
    line-height: 1.5;
    color: var(--color-heading);
    background-color: var(--color-bg-elevated);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

/* Spacing owned by .field when using helpers */
.field input[type="text"],
.field input[type="email"],
.field input[type="password"],
.field input[type="number"],
.field input[type="tel"],
.field input[type="url"],
.field input[type="search"],
.field input[type="date"],
.field input:not([type]),
.field textarea,
.field select {
    margin-bottom: 0;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="number"]:focus,
input[type="tel"]:focus,
input[type="url"]:focus,
input[type="search"]:focus,
input[type="date"]:focus,
input:not([type]):focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px var(--color-accent-light);
}

input::placeholder,
textarea::placeholder {
    color: var(--color-text-muted);
}

textarea {
    min-height: 7.5rem;
    resize: vertical;
}

/* ---------- Checkbox / radio ---------- */
/*
 * Stacked full-width text styles must NOT apply here.
 * .field-checkbox is a single-line control + label.
 */
.field-checkbox {
    margin-bottom: 0.75rem;
}

.field-checkbox > .checkbox-label,
.checkbox-label {
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    margin-bottom: 0;
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.25;
    color: var(--color-text);
    cursor: pointer;
    user-select: none;
}

input[type="checkbox"],
input[type="radio"] {
    -webkit-appearance: auto;
    appearance: auto;
    box-sizing: border-box;
    width: 1.25rem;
    height: 1.25rem;
    margin: 0;
    padding: 0;
    flex-shrink: 0;
    vertical-align: middle;
    accent-color: var(--color-accent);
    cursor: pointer;
    border: none;
    background: none;
    box-shadow: none;
}

input[type="checkbox"]:focus,
input[type="radio"]:focus {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
    box-shadow: none;
    border-color: transparent;
}

/* ---------- Buttons ---------- */
button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin: 0.25rem 0.25rem 0.25rem 0;
    padding: 0.75rem 1.25rem;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1;
    color: var(--color-heading);
    background-color: var(--color-bg-subtle);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease,
        transform 0.1s ease;
}

button:hover {
    background-color: var(--color-bg-elevated);
    border-color: var(--color-accent);
}

button:active {
    transform: scale(0.98);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1;
    border-radius: var(--radius-md);
    border: 1px solid transparent;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease,
        transform 0.1s ease;
}

.btn:active {
    transform: scale(0.98);
}

.btn-primary {
    background-color: var(--color-accent);
    color: var(--color-on-accent);
    border-color: var(--color-accent);
}

.btn-primary:hover {
    background-color: var(--color-accent-hover);
    border-color: var(--color-accent-hover);
}

.btn-secondary {
    background-color: transparent;
    color: var(--color-heading);
    border-color: var(--color-border);
}

.btn-secondary:hover {
    background-color: var(--color-bg-subtle);
}

.theme-picker {
    display: grid;
    gap: 0.5rem;
    margin: 1.25rem 0;
    padding: 1rem;
    background-color: var(--color-bg-elevated);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
}

.box {
    margin-bottom: 1rem;
    padding: 1rem;
    background-color: var(--color-bg-elevated);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
}

.text-muted {
    color: var(--color-text-muted);
    font-size: 0.875rem;
}

/* ---------- Add item + voice ---------- */
.item-add-form .item-add-input-row {
    display: flex;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 0.5rem;
    width: 100%;
}

.item-add-form .item-add-input-row .item-add-input {
    flex: 1 1 auto;
    min-width: 0;
    margin-bottom: 0;
}

.item-voice-btn {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    min-width: 2.75rem;
    min-height: 2.75rem;
    padding: 0 0.65rem;
    font-size: 1.25rem;
    line-height: 1;
    color: var(--color-heading);
    background-color: var(--color-bg-subtle);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    cursor: pointer;
}

.item-voice-btn:hover {
    border-color: var(--color-accent);
    background-color: var(--color-bg-elevated);
}

.item-voice-btn-live {
    color: #fff;
    background-color: var(--color-accent);
    border-color: var(--color-accent);
    animation: item-voice-pulse 1.2s ease-in-out infinite;
}

@keyframes item-voice-pulse {
    0%,
    100% {
        opacity: 1;
    }
    50% {
        opacity: 0.75;
    }
}

/* ---------- Shopping list item rows ---------- */
.item-row {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0.5rem;
    margin: 0.35rem 0;
    padding: 0.35rem 0;
    border-bottom: 1px solid var(--color-border);
}

.item-row-action {
    flex: 0 0 auto;
    margin: 0;
}

.item-row-body {
    flex: 1 1 auto;
    min-width: 0;
    font-size: 1.1rem;
    font-weight: 500;
    line-height: 1.35;
    text-align: left;
    word-break: break-word;
}

.item-row-body-done {
    color: var(--color-text-muted);
    font-weight: 400;
    text-decoration: line-through;
    text-decoration-thickness: 1px;
}

.item-toggle-btn {
    margin: 0;
    padding: 0.55rem 0.75rem;
    font-size: 0.9rem;
    white-space: nowrap;
}

/* Compact red X — still phone-tappable (~44px) */
.item-remove-x {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    min-width: 2.75rem;
    min-height: 2.75rem;
    padding: 0;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1;
    color: #fff;
    background-color: #c0392b;
    border: 1px solid #a93226;
    border-radius: var(--radius-md);
    cursor: pointer;
}

.item-remove-x:hover {
    background-color: #e74c3c;
    border-color: #c0392b;
}

.item-remove-x:active {
    transform: scale(0.96);
}

/* Done section: muted chrome, X quieter but still clear */
.item-row-done .item-toggle-btn {
    color: var(--color-text-muted);
    background-color: transparent;
    border-color: var(--color-border);
}

.item-row-done .item-toggle-btn:hover {
    background-color: var(--color-bg-subtle);
    border-color: var(--color-border);
    color: var(--color-heading);
}

.item-remove-x-done {
    color: #c0392b;
    background-color: transparent;
    border-color: var(--color-border);
    font-weight: 600;
}

.item-remove-x-done:hover {
    color: #fff;
    background-color: #c0392b;
    border-color: #a93226;
}

/* ---------- List toolbar (ModuleUi::listToolbar*) ---------- */
.list-toolbar {
    display: grid;
    gap: 0.65rem;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--color-border);
}

.list-toolbar-row {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 0.5rem 0.75rem;
}

.list-toolbar .field,
.list-toolbar .field-checkbox {
    margin-bottom: 0;
}

/* Search: labeled, not full content width */
.list-search {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 0.5rem;
}

.list-toolbar .field-search {
    flex: 1 1 11rem;
    max-width: 18rem;
    min-width: 9rem;
    margin-bottom: 0;
}

.list-toolbar .field-search input[type="search"] {
    width: 100%;
    margin-bottom: 0;
}

.list-archive {
    display: flex;
    align-items: center;
}

.list-pagination {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 0.75rem;
    font-size: 0.875rem;
    color: var(--color-text-muted);
}

.list-pagination .page-status {
    min-width: 6rem;
    text-align: center;
    color: var(--color-text);
    font-variant-numeric: tabular-nums;
}

/* Reset is quiet until filters differ from defaults */
.list-reset .list-reset-active {
    border-color: var(--color-accent);
    color: var(--color-accent);
}

@media screen and (min-width: 60rem) {
    .list-toolbar-row {
        gap: 0.75rem 1rem;
    }

    .list-toolbar .field-search {
        max-width: 22rem;
    }
}

/* ---------- Messages (mod=message + shell #msg-alert) ---------- */
.msg-alert-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-weight: 700;
    border-color: var(--color-accent);
    color: var(--color-heading);
    background: var(--color-accent-light);
}

.msg-alert-btn .msg-alert-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.35rem;
    height: 1.35rem;
    padding: 0 0.35rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-variant-numeric: tabular-nums;
    background: var(--color-accent);
    color: var(--color-on-accent, #fff);
}

.msg-alert-pulse {
    animation: msg-alert-pulse 1.4s ease-in-out infinite;
}

@keyframes msg-alert-pulse {
    0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--color-accent) 55%, transparent); }
    50% { box-shadow: 0 0 0 0.35rem color-mix(in srgb, var(--color-accent) 0%, transparent); }
}

.msg-head-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.msg-head-row h1 {
    margin: 0;
}

.msg-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0.5rem 0.75rem;
    align-items: start;
    padding: 0.65rem 0;
    border-bottom: 1px solid var(--color-border);
}

.msg-row-attention {
    border-left: 3px solid var(--color-accent);
    padding-left: 0.65rem;
    background: var(--color-accent-light);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    margin: 0.35rem 0;
    padding-top: 0.65rem;
    padding-bottom: 0.65rem;
}

.msg-row-from {
    font-size: 0.85rem;
    color: var(--color-text-muted, var(--color-text));
    opacity: 0.9;
}

.msg-row-title {
    font-weight: 700;
    color: var(--color-heading);
}

.msg-row-preview {
    font-size: 0.9rem;
    margin-top: 0.15rem;
}

.msg-row-when {
    font-size: 0.8rem;
    margin-top: 0.2rem;
}

.msg-detail-from {
    font-weight: 600;
}

.msg-badge {
    display: inline-block;
    margin: 0.35rem 0;
    padding: 0.15rem 0.5rem;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: var(--radius-sm);
    background: var(--color-accent-light);
    color: var(--color-accent);
}

.msg-body {
    white-space: pre-wrap;
    word-break: break-word;
    margin: 0.75rem 0;
    padding: 0.75rem;
    background: var(--color-bg-subtle);
    border-radius: var(--radius-sm);
    border: 1px solid var(--color-border);
    font-family: inherit;
    font-size: 0.95rem;
}

.msg-error {
    color: var(--color-accent);
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.msg-recipient-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr));
    gap: 0.35rem 0.75rem;
    margin: 0.5rem 0 1rem;
    max-height: 16rem;
    overflow: auto;
    padding: 0.5rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    background: var(--color-bg-subtle);
}

.msg-recipient {
    min-width: 0;
}

.msg-recipient .field {
    margin-bottom: 0;
}

.msg-recipients-label {
    font-weight: 600;
    margin-top: 0.75rem;
}


/* --- toast.css --- */

/* ============================================
   toast.css — ShoppingList.js maketoast()
   ============================================ */

.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: var(--z-toast, 1000);
    max-width: 300px;
    padding: 15px 20px;
    color: var(--color-toast-fg, #fff);
    background-color: var(--color-toast-bg, #333);
    border-radius: var(--radius-md, 5px);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    font-family: var(--font-sans, system-ui, sans-serif);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.toast.show {
    opacity: 1;
    transform: translateY(0);
}

