/* ============================================================
   Covaříme – aplikace + administrace
   Deep green + cream + tomato · Fraunces (display) + Manrope
   ============================================================ */

:root {
    --green-950: #0B241B;
    --green-900: #123B2B;
    --green-700: #1E5C40;
    --green-100: #DCE9DC;
    --green-soft: #EAF2EA;
    --cream: #F7F2E8;
    --cream-2: #EFE7D6;
    --white: #FFFFFF;
    --ink: #17251E;
    --muted: #5E6E64;
    --line: rgba(18, 59, 43, .1);
    --tomato: #E8543F;
    --tomato-dark: #C74331;
    --tomato-soft: #FDE7E2;
    --yellow: #F4C84B;
    --yellow-soft: #FBEFC9;
    --danger: #C0392B;
    --radius: 20px;
    --radius-s: 12px;
    --shadow: 0 1px 3px rgba(18, 59, 43, .05), 0 14px 40px -16px rgba(18, 59, 43, .14);
    --font-display: 'Fraunces', Georgia, serif;
    --font-body: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
* { box-sizing: border-box; }
body {
    margin: 0;
    font-family: var(--font-body);
    background: var(--cream);
    color: var(--ink);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}
main { max-width: 1440px; margin: 0 auto; padding: 30px 40px 70px; }
h1 {
    font-family: var(--font-display); font-weight: 600;
    font-size: 1.7rem; letter-spacing: -.02em; margin: 8px 0 18px;
}
h2 {
    font-family: var(--font-display); font-weight: 600;
    font-size: 1.25rem; letter-spacing: -.01em; margin: 0 0 12px;
}
h3 { font-size: .98rem; margin: 0 0 8px; font-weight: 800; }
a { color: var(--green-700); }
a:hover { color: var(--green-900); }
.muted { color: var(--muted); }
.hint { color: var(--muted); font-size: .86rem; }
.error { color: var(--danger); font-weight: 600; }
.small { font-size: .85rem; }

/* --- app shell: levý sidebar --- */
body.app-shell { display: flex; min-height: 100vh; }
.brand {
    font-family: var(--font-display);
    font-weight: 600; font-size: 1.3rem; letter-spacing: -.02em;
    text-decoration: none; color: var(--ink);
}
.brand em { font-style: italic; color: var(--tomato); }
.sidebar {
    width: 234px; flex-shrink: 0;
    background: var(--green-950); color: var(--cream);
    position: sticky; top: 0; height: 100vh;
    display: flex; flex-direction: column; gap: 26px;
    padding: 26px 14px 18px;
}
.sidebar .brand { color: var(--cream); font-size: 1.4rem; padding: 0 12px; }
.sidebar .brand em { color: #FF8A73; }
.sidebar .brand:hover { color: #fff; }
.sidebar-tag {
    font-size: .62rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
    background: var(--tomato); color: #fff; border-radius: 999px; padding: 2px 8px;
    vertical-align: middle; margin-left: 4px;
}
.sidebar-nav, .sidebar-bottom { display: flex; flex-direction: column; gap: 3px; }
.sidebar-nav a, .sidebar-bottom a {
    display: flex; align-items: center; gap: 11px;
    color: rgba(247, 242, 232, .78); text-decoration: none;
    padding: 10px 12px; border-radius: 12px; font-size: .93rem; font-weight: 700;
    transition: background .14s ease, color .14s ease;
}
.sidebar-nav a:hover, .sidebar-bottom a:hover { background: rgba(255, 255, 255, .08); color: var(--cream); }
.sidebar-nav a.active, .sidebar-bottom a.active { background: var(--cream); color: var(--green-900); }
.sidebar-admin .sidebar-nav a.active { background: var(--tomato); color: #fff; }
.sidebar-bottom { margin-top: auto; border-top: 1px solid rgba(247, 242, 232, .12); padding-top: 14px; }
.sidebar-ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 128px; }
.sidebar-user { color: rgba(247, 242, 232, .5); font-size: .8rem; font-weight: 700; padding: 0 12px 6px; }
.nav-emoji { font-size: 1.02rem; width: 22px; text-align: center; flex-shrink: 0; }
.content { flex: 1; min-width: 0; }
.mobile-topbar { display: none; }
.sidebar-backdrop { display: none; }

/* --- karty, tlačítka, badge --- */
.card {
    background: var(--white); border: 1px solid var(--line);
    border-radius: var(--radius); box-shadow: var(--shadow);
    padding: 20px; margin-bottom: 18px;
}
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 7px;
    border: none; cursor: pointer;
    background: var(--cream-2); color: var(--ink);
    padding: 10px 18px; border-radius: 999px;
    font-size: .92rem; font-weight: 700; text-decoration: none;
    font-family: var(--font-body);
    transition: transform .14s ease, box-shadow .14s ease, background .14s ease;
}
.btn:hover { transform: translateY(-1px); color: var(--ink); }
.btn:active { transform: translateY(0); }
.btn.primary {
    background: var(--tomato); color: #fff;
    box-shadow: 0 8px 20px -10px rgba(232, 84, 63, .55);
}
.btn.primary:hover { background: var(--tomato-dark); color: #fff; }
.btn.ghost { background: transparent; box-shadow: inset 0 0 0 1.5px rgba(23, 37, 30, .16); color: var(--ink); }
.btn.ghost:hover { box-shadow: inset 0 0 0 1.5px rgba(23, 37, 30, .38); }
.btn.danger { background: var(--tomato-soft); color: var(--tomato-dark); }
.btn.danger:hover { background: #fbd6cd; color: var(--tomato-dark); }
.btn.small { padding: 6px 13px; font-size: .84rem; }
.icon-btn {
    border: none; background: transparent; color: var(--muted);
    cursor: pointer; font-size: .9rem; padding: 5px 9px; border-radius: 999px;
    text-decoration: none;
}
.icon-btn:hover { background: var(--tomato-soft); color: var(--tomato-dark); text-decoration: none; }
.badge {
    display: inline-block; background: var(--cream-2); color: var(--ink);
    font-size: .74rem; font-weight: 800; padding: 3px 10px; border-radius: 999px;
    white-space: nowrap;
}
.badge-now { background: var(--green-100); color: var(--green-700); }
.badge-next { background: var(--yellow-soft); color: #8a6d1a; }
.badge-course { background: var(--cream-2); color: var(--muted); }
.badge-last { background: var(--green-soft); color: var(--green-700); }
.notice {
    background: var(--yellow-soft); border: 1px solid #efdca5;
    padding: 13px 17px; border-radius: var(--radius-s); margin-bottom: 16px; font-size: .94rem;
}
.actions-row { display: flex; gap: 10px; margin: 18px 0; flex-wrap: wrap; align-items: center; }
.page-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* --- flash --- */
.flash {
    padding: 12px 17px; border-radius: var(--radius-s); margin-bottom: 16px;
    font-size: .94rem; font-weight: 600;
}
.flash.success { background: var(--green-100); color: var(--green-900); border: 1px solid #c9dcc9; }
.flash.error { background: var(--tomato-soft); color: var(--tomato-dark); border: 1px solid #f6cfc6; }
.error-list { list-style: none; margin: 0 0 10px; padding: 0; }
.error-list .error { padding: 4px 0; }

/* --- formulářové prvky --- */
input[type=text], input[type=email], input[type=password], input[type=number], select {
    font-family: var(--font-body); color: var(--ink);
}
select {
    appearance: none; -webkit-appearance: none;
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%231E5C40' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 12px center;
    padding-right: 30px !important;
}
input:focus-visible, select:focus-visible, button:focus-visible {
    outline: 2px solid var(--green-700); outline-offset: 1px;
}

/* --- login --- */
.login-body { display: grid; place-items: center; min-height: 100vh; background: var(--cream); }
.login-card {
    background: var(--white); border: 1px solid var(--line); border-radius: 26px;
    box-shadow: var(--shadow); padding: 38px 34px; width: min(380px, 92vw);
    text-align: center; display: flex; flex-direction: column; gap: 12px;
}
.login-emoji { font-size: 2.8rem; line-height: 1; }
.login-card h1 { margin: 0; font-size: 1.6rem; }
.login-card h1 em { font-style: italic; color: var(--tomato); }
.login-card p { margin: 0; }
.login-card input {
    padding: 13px 15px; border: 1.5px solid var(--line); border-radius: var(--radius-s);
    font-size: 1rem; text-align: center; background: var(--cream);
}
.login-card input:focus { background: #fff; }
.login-card button {
    padding: 13px; border: none; border-radius: 999px; background: var(--tomato);
    color: #fff; font-size: 1rem; font-weight: 800; cursor: pointer; font-family: var(--font-body);
    box-shadow: 0 8px 20px -10px rgba(232, 84, 63, .55);
}
.login-card button:hover { background: var(--tomato-dark); }
.login-card .small { margin-top: 4px; }
.login-card-admin { border-top: 5px solid var(--green-950); }

/* --- plán --- */
.week-nav { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.week-title { flex: 1; text-align: center; }
.week-title h1 { margin: 0 0 2px; font-size: 1.45rem; }
.plan-card { padding: 10px; overflow-x: auto; }
.plan-table { width: 100%; border-collapse: collapse; }
.plan-table th, .plan-table td { padding: 9px 7px; text-align: left; }
.plan-table thead th {
    font-size: .78rem; color: var(--muted); border-bottom: 1px solid var(--line);
    text-transform: uppercase; letter-spacing: .06em; font-weight: 800;
}
.plan-table tbody tr { border-bottom: 1px solid var(--line); }
.plan-table tbody tr:last-child { border-bottom: none; }
.plan-table tbody tr:nth-child(6), .plan-table tbody tr:nth-child(7) { background: #FBF7EF; }
.day-cell { white-space: nowrap; }
.day-name { display: block; font-size: .92rem; font-weight: 800; }
.day-date { display: block; font-size: .76rem; color: var(--muted); font-weight: 600; }
.slot select {
    width: 100%; min-width: 118px; padding: 8px 10px;
    border: 1.5px solid var(--line); border-radius: var(--radius-s);
    font-size: .87rem; background-color: #fff; color: var(--ink);
    font-weight: 600; cursor: pointer;
    transition: border-color .15s ease;
}
.slot select:hover { border-color: var(--green-700); }
.plan-table-5 .slot select { min-width: 106px; font-size: .84rem; padding: 7px 8px; }
.plan-table-5 thead th { white-space: nowrap; }
.slot-start select {
    border-color: var(--green-700); background-color: var(--green-soft);
    color: var(--green-900); font-weight: 800;
}
.cont-label { font-size: .85rem; color: var(--muted); font-style: italic; padding: 8px 2px; }

/* --- nákup --- */
.check-list { display: flex; flex-direction: column; }
.check-item {
    display: flex; align-items: center; gap: 12px;
    padding: 11px 8px; border-bottom: 1px solid var(--line);
    cursor: pointer; user-select: none; border-radius: 10px;
    transition: background .12s ease;
}
.check-item:hover { background: var(--cream); }
.check-list form:last-of-type .check-item { border-bottom: none; }
.check-item input[type=checkbox] {
    width: 22px; height: 22px; accent-color: var(--green-700); flex-shrink: 0;
    cursor: pointer;
}
.check-name { font-size: .98rem; font-weight: 700; }
.check-item.checked .check-name { text-decoration: line-through; color: var(--muted); font-weight: 500; }
.check-item.checked .check-amount { opacity: .45; }
.check-amount { font-weight: 800; color: var(--tomato-dark); white-space: nowrap; margin-left: 4px; font-size: .88rem; }
.check-meals { font-size: .76rem; color: var(--muted); margin-left: auto; text-align: right; font-weight: 600; }
.extra-row { display: flex; align-items: center; }
.extra-row form:first-child { flex: 1; }
.inline-form { display: flex; gap: 10px; margin-top: 14px; }
.inline-form input[type=text], .inline-form input[type=email] {
    flex: 1; padding: 11px 14px; border: 1.5px solid var(--line); border-radius: 999px;
    font-size: .93rem; background: var(--cream);
}
.inline-form input:focus { background: #fff; }
.trip-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.trip-head h2 { margin: 0; }
.extras-list { border-top: 1px dashed var(--line); margin-top: 6px; padding-top: 4px; }
.card-spice { background: #FBF7EF; }
.spice-list { margin: 0; padding-left: 4px; list-style: none; }
.spice-list li {
    display: flex; align-items: baseline; gap: 10px;
    padding: 8px 2px; border-bottom: 1px dashed var(--line);
}
.spice-list li:last-child { border-bottom: none; }

/* --- jídla --- */
.meal-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(265px, 1fr)); gap: 14px; }
.meal-card { margin-bottom: 0; display: flex; flex-direction: column; transition: transform .16s ease; }
.meal-card:hover { transform: translateY(-3px); }
.meal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.meal-head h2 { margin: 0; font-size: 1.15rem; }
.course-badges { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 7px; }
.meal-items { font-size: .84rem; color: var(--muted); margin: 8px 0 0; }
.meal-items.spice { opacity: .8; }
.meal-actions { display: flex; gap: 8px; margin-top: auto; padding-top: 14px; }
.meal-form .form-row { display: flex; gap: 14px; flex-wrap: wrap; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 15px; font-size: .85rem; font-weight: 800; }
.field.grow { flex: 1; min-width: 200px; }
.field input, .field select {
    padding: 11px 13px; border: 1.5px solid var(--line); border-radius: var(--radius-s);
    font-size: .96rem; font-weight: 500; background: var(--cream);
}
.field input:focus, .field select:focus { background: #fff; }

/* --- filtr jídel --- */
.filter-bar { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; padding: 14px 18px; }
.filter-bar #meal-filter {
    flex: 1; min-width: 220px; padding: 11px 16px;
    border: 1.5px solid var(--line); border-radius: 999px;
    font-size: .93rem; background: var(--cream);
}
.filter-bar #meal-filter:focus { background: #fff; }
.filter-bar .course-picks .pick input[type=radio] { display: none; }

/* --- picker (chips) --- */
.picker { margin-bottom: 18px; border: 1px solid var(--line); border-radius: var(--radius); padding: 15px; background: #FBF9F4; }
.picker-filter {
    width: 100%; padding: 9px 14px; border: 1.5px solid var(--line); border-radius: 999px;
    margin-bottom: 11px; font-size: .89rem; background: #fff;
}
.picker-list {
    display: flex; flex-wrap: wrap; gap: 7px;
    max-height: 230px; overflow-y: auto; padding: 2px;
}
.pick {
    display: inline-flex; align-items: center; gap: 6px;
    border: 1.5px solid var(--line); border-radius: 999px;
    padding: 6px 14px; font-size: .87rem; font-weight: 600;
    cursor: pointer; user-select: none; background: #fff;
    transition: border-color .12s ease, background .12s ease;
}
.pick:hover { border-color: var(--green-700); }
.pick input[type=checkbox] { display: none; }
.pick.on, .pick:has(input:checked) {
    background: var(--green-900); border-color: var(--green-900); color: var(--cream);
    font-weight: 700;
}
.course-picks { display: flex; flex-wrap: wrap; gap: 7px; }
.course-picks .pick input { display: none; }
.pick-amount-wrap { display: none; align-items: center; gap: 4px; margin-left: 4px; }
.pick:has(input[type=checkbox]:checked) .pick-amount-wrap { display: inline-flex; }
.pick .pick-amount {
    width: 66px; padding: 3px 9px; border: none; border-radius: 999px;
    font-size: .8rem; background: rgba(247, 242, 232, .95); color: var(--ink); font-weight: 700;
    display: inline-block;
}
.pick-unit { font-size: .76rem; color: var(--cream); font-weight: 700; opacity: .85; }
.picker-add { display: flex; gap: 8px; margin-top: 12px; }
.picker-add input {
    flex: 1; padding: 9px 14px; border: 1.5px dashed var(--line); border-radius: 999px;
    font-size: .88rem; background: #fff;
}
.picker-add .picker-add-unit { flex: 0 0 auto; }

/* --- suroviny --- */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.item-list { list-style: none; margin: 14px 0 0; padding: 0; }
.item-list li {
    display: flex; align-items: center; gap: 10px;
    padding: 8px 2px; border-bottom: 1px solid var(--line);
}
.item-list li:last-child { border-bottom: none; }
.item-list .item-name { flex: 1; font-weight: 600; }
.unit-select {
    padding: 6px 10px; border: 1.5px solid var(--line); border-radius: 999px;
    font-size: .82rem; background-color: #fff; font-weight: 700; cursor: pointer;
}
.unit-form { flex: 0 0 auto; }
.item-list .item-usage { flex: 0 0 90px; margin-left: 0; text-align: right; }

/* --- přehled --- */
.bar-list { display: flex; flex-direction: column; gap: 10px; }
.bar-row { display: flex; align-items: center; gap: 12px; }
.bar-label { flex: 0 0 200px; font-size: .9rem; font-weight: 600; }
.bar-track { flex: 1; background: var(--cream-2); border-radius: 999px; height: 12px; overflow: hidden; }
.bar-track-small { height: 5px; margin-top: 6px; max-width: 220px; }
.bar-fill {
    background: linear-gradient(90deg, var(--green-700), var(--green-900));
    height: 100%; border-radius: 999px; min-width: 2px;
}
.bar-value { flex: 0 0 46px; text-align: right; font-weight: 800; font-size: .88rem; }
.table-wrap { overflow-x: auto; }
.stats-table { width: 100%; border-collapse: collapse; }
.stats-table th, .stats-table td { padding: 10px; text-align: left; border-bottom: 1px solid var(--line); }
.stats-table thead th {
    font-size: .76rem; color: var(--muted); text-transform: uppercase;
    letter-spacing: .06em; font-weight: 800;
}
.stats-table th.num, .stats-table td.num { text-align: right; }
.stats-table td.num { font-variant-numeric: tabular-nums; font-weight: 700; }
.stats-table .muted-row { opacity: .5; }
.stats-table .course-cell { display: flex; gap: 4px; flex-wrap: wrap; }

/* --- domácnosti --- */
.household-actions { display: flex; gap: 8px; align-items: center; }
.leave-form { margin-top: 14px; }
.select-wrap { max-width: 560px; margin: 40px auto 0; }
.select-wrap h1 { text-align: center; }
.household-select { display: flex; flex-direction: column; gap: 12px; margin: 26px 0; }
.household-btn {
    width: 100%; display: flex; align-items: center; gap: 14px;
    background: var(--white); border: 1.5px solid var(--line); border-radius: var(--radius);
    box-shadow: var(--shadow); padding: 18px 22px; cursor: pointer;
    font-family: var(--font-body); font-size: 1.02rem; text-align: left;
    transition: transform .15s ease, border-color .15s ease;
}
.household-btn:hover { border-color: var(--green-700); transform: translateY(-2px); }
.household-btn-emoji { font-size: 1.6rem; }
.household-btn-name { font-weight: 800; flex: 1; }
.household-btn-role { font-size: .78rem; color: var(--muted); font-weight: 700; }
.create-card { margin-top: 28px; }

/* --- administrace --- */
.stat-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; margin-bottom: 18px; }
.stat-tile { text-align: center; margin-bottom: 0; }
.stat-num {
    display: block; font-family: var(--font-display); font-style: italic; font-weight: 600;
    font-size: 2.3rem; color: var(--green-900); line-height: 1.15;
}
.stat-label { color: var(--muted); font-size: .85rem; font-weight: 700; }

/* --- responsive --- */
@media (max-width: 880px) {
    body.app-shell { display: block; }
    .sidebar {
        position: fixed; top: 0; left: 0; bottom: 0; z-index: 60;
        height: 100dvh; width: 262px;
        transform: translateX(-105%); transition: transform .22s ease;
        box-shadow: 0 0 60px rgba(11, 36, 27, .4);
    }
    body.sidebar-open .sidebar { transform: none; }
    .sidebar-backdrop {
        display: block; position: fixed; inset: 0; z-index: 55;
        background: rgba(11, 36, 27, .4);
        opacity: 0; pointer-events: none; transition: opacity .2s ease;
    }
    body.sidebar-open .sidebar-backdrop { opacity: 1; pointer-events: auto; }
    .mobile-topbar {
        display: flex; align-items: center; gap: 12px;
        position: sticky; top: 0; z-index: 50;
        background: rgba(247, 242, 232, .88);
        backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
        border-bottom: 1px solid var(--line); padding: 10px 14px;
    }
    .hamburger {
        border: none; background: transparent; font-size: 1.35rem;
        cursor: pointer; color: var(--ink); padding: 2px 8px; line-height: 1;
    }
    .mobile-topbar .brand { font-size: 1.2rem; }
}
@media (max-width: 1100px) {
    main { padding: 26px 22px 70px; }
}
@media (max-width: 640px) {
    main { padding: 20px 16px 60px; }
    .two-col { grid-template-columns: 1fr; }
    .plan-table th, .plan-table td { padding: 7px 4px; }
    .slot select, .plan-table-5 .slot select { min-width: 102px; font-size: .82rem; }
    .check-meals { display: none; }
    .bar-label { flex-basis: 110px; font-size: .82rem; }
    h1 { font-size: 1.45rem; }
}

/* --- FormModal (n:mlink / n:blink) --- */
.fm-overlay {
    position: fixed; inset: 0; z-index: 100;
    background: rgba(11, 36, 27, .45);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    display: grid; place-items: center; padding: 20px;
    animation: fm-fade .18s ease;
}
@keyframes fm-fade { from { opacity: 0; } }
.fm-card {
    position: relative;
    background: var(--white); border-radius: 24px;
    box-shadow: 0 30px 80px -20px rgba(11, 36, 27, .45);
    padding: 30px 28px 26px; width: min(440px, 94vw);
    max-height: 90vh; overflow-y: auto;
    animation: fm-pop .2s ease;
}
@keyframes fm-pop { from { transform: translateY(14px) scale(.98); opacity: 0; } }
.fm-close {
    position: absolute; top: 14px; right: 14px;
    border: none; background: var(--cream-2); color: var(--muted);
    width: 32px; height: 32px; border-radius: 999px; cursor: pointer;
    font-size: .85rem; font-weight: 700;
}
.fm-close:hover { background: var(--tomato-soft); color: var(--tomato-dark); }
.fm-title { margin: 0 0 16px; padding-right: 34px; }
.fm-question { margin: 6px 0 22px; font-size: 1.05rem; font-weight: 600; line-height: 1.5; }
.fm-card-blink { text-align: center; padding-top: 34px; }
.fm-actions { display: flex; gap: 12px; justify-content: center; }
.fm-actions .btn { min-width: 110px; }
.fm-row { margin-bottom: 14px; }
.fm-label { font-size: .85rem; font-weight: 800; margin-bottom: 5px; }
.fm-label label { color: var(--ink); }
.fm-control input[type=text], .fm-control input[type=email], .fm-control input[type=password],
.fm-control input[type=number], .fm-control select, .fm-control textarea {
    width: 100%; padding: 11px 13px; border: 1.5px solid var(--line);
    border-radius: var(--radius-s); font-size: .96rem; background: var(--cream);
    font-family: var(--font-body);
}
.fm-control input:focus, .fm-control select:focus { background: #fff; }
.fm-control input[type=submit], .fm-control button[type=submit] {
    border: none; cursor: pointer; background: var(--tomato); color: #fff;
    padding: 12px 22px; border-radius: 999px; font-size: .95rem; font-weight: 800;
    font-family: var(--font-body); width: 100%;
    box-shadow: 0 8px 20px -10px rgba(232, 84, 63, .55);
}
.fm-control input[type=submit]:hover { background: var(--tomato-dark); }

/* --- postup jídla: editor + detail --- */
.field textarea.html-editor {
    min-height: 120px; padding: 11px 13px; border: 1.5px solid var(--line);
    border-radius: var(--radius-s); font-family: var(--font-body); font-size: .95rem;
    background: var(--cream); resize: vertical;
}
.meal-title-link { color: var(--ink); text-decoration: none; }
.meal-title-link:hover { color: var(--tomato-dark); }
.detail-grid { display: grid; grid-template-columns: 320px 1fr; gap: 18px; align-items: start; }
.procedure { line-height: 1.7; }
.procedure p { margin: 0 0 12px; }
.procedure ul, .procedure ol { margin: 0 0 12px; padding-left: 24px; }
.procedure li { margin-bottom: 5px; }
.procedure h1, .procedure h2, .procedure h3, .procedure h4 {
    font-family: var(--font-display); font-weight: 600; margin: 18px 0 8px; letter-spacing: -.01em;
}
.procedure a { color: var(--green-700); }
.procedure blockquote {
    margin: 12px 0; padding: 8px 16px; border-left: 3px solid var(--green-100);
    color: var(--muted); font-style: italic;
}
/* Summernote lite sladěné s Covaříme */
.note-editor.note-frame {
    border: 1.5px solid var(--line); border-radius: var(--radius-s); overflow: hidden;
    font-family: var(--font-body);
}
.note-editor.note-frame .note-editing-area .note-editable {
    background: #fff; font-family: var(--font-body); font-size: .96rem; line-height: 1.6; color: var(--ink);
}
.note-toolbar { background: var(--cream) !important; border-bottom: 1px solid var(--line) !important; }
.note-editor .note-btn { border-radius: 8px !important; }
@media (max-width: 720px) {
    .detail-grid { grid-template-columns: 1fr; }
}

/* --- obchody --- */
.shop-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.shop-chip {
    display: inline-flex; align-items: center; gap: 7px;
    background: var(--green-soft); color: var(--green-900);
    border-radius: 999px; padding: 5px 6px 5px 14px; font-weight: 700; font-size: .88rem;
}
.shop-chip .muted { font-weight: 600; }
.shop-chip .icon-btn { padding: 2px 6px; font-size: .78rem; }
.shop-form { flex: 0 0 auto; }
.shop-select { max-width: 140px; }
.shop-group {
    margin: 18px 0 4px; padding-bottom: 5px; border-bottom: 2px solid var(--green-100);
    color: var(--green-900); font-size: .95rem;
}
.check-list + .shop-group { margin-top: 20px; }

/* --- icon font (covarime-icons) v UI --- */
.sidebar-nav a i, .sidebar-bottom a i { font-size: 1.15rem; width: 22px; text-align: center; flex-shrink: 0; }
.sidebar-user i { font-size: 1rem; }
.hamburger i { font-size: 1.3rem; display: block; line-height: 1; }
.icon-btn i { font-size: 1.05rem; display: block; line-height: 1; }
.btn i { font-size: 1.05rem; }
.btn.small i { font-size: .98rem; }
.shop-chip i { font-size: .92rem; }

/* --- icon font: větší kontexty --- */
.login-emoji i { font-size: 2.6rem; color: var(--tomato); line-height: 1; }
.login-card-admin .login-emoji i { color: var(--green-900); }
.household-btn-emoji i { font-size: 1.7rem; color: var(--green-700); }
.badge-course i, .badge-last i, .badge i { font-size: .82em; }
.plan-table thead th i { font-size: 1rem; vertical-align: -1px; }
.meal-items i { color: var(--green-700); }
.meal-items.spice i { color: var(--tomato); }
h1 i, h2 i, h3 i { color: var(--green-700); font-size: .92em; vertical-align: -1px; }
.shop-group i { color: var(--green-700); }
.notice i { vertical-align: -1px; }

/* --- přílohy v plánu --- */
.slot-sides { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.side-chip {
    display: inline-flex; align-items: center; gap: 4px;
    background: var(--yellow-soft); color: #7a5c12; border: 1px solid #e0dcaa;
    border-radius: 999px; padding: 2px 4px 2px 9px; font-size: .76rem; font-weight: 700;
}
.side-chip .side-remove { color: #b08a2a; padding: 0 2px; text-decoration: none; display: inline-flex; }
.side-chip .side-remove:hover { color: var(--tomato-dark); }
.side-add select {
    border: 1px dashed var(--line); border-radius: 999px; background: transparent;
    font-size: .76rem; padding: 3px 20px 3px 9px; color: var(--muted); font-weight: 700; cursor: pointer;
    background-position: right 6px center;
}
.badge-side { background: var(--yellow-soft); color: #7a5c12; }
.side-toggle span { display: flex; align-items: center; gap: 8px; font-weight: 700; }
.side-toggle input { width: 18px; height: 18px; accent-color: var(--green-700); }
