@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Noto+Sans+SC:wght@400;500;600;700;800&display=swap");

:root {
    --ink: #17221d;
    --ink-soft: #526159;
    --paper: #f7f3ea;
    --surface: #fffdf8;
    --surface-strong: #ffffff;
    --line: #dedfd7;
    --green: #1c6b50;
    --green-dark: #104936;
    --green-pale: #dcece3;
    --orange: #ef704d;
    --orange-pale: #f9dfd3;
    --yellow: #f4c95d;
    --red: #b4473f;
    --shadow: 0 18px 50px rgba(31, 48, 39, .09);
    --shadow-small: 0 8px 22px rgba(31, 48, 39, .08);
    --radius: 24px;
    --radius-small: 15px;
    --font: "DM Sans", "Noto Sans SC", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    color: var(--ink);
    background:
        radial-gradient(circle at 8% 2%, rgba(239, 112, 77, .08), transparent 28rem),
        radial-gradient(circle at 95% 15%, rgba(28, 107, 80, .08), transparent 32rem),
        var(--paper);
    font-family: var(--font);
    line-height: 1.5;
}
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p { margin-top: 0; }
.hidden { display: none !important; }
.muted { color: var(--ink-soft); }
.protocol-warning {
    display: none;
    margin: 12px;
    padding: 14px 18px;
    border: 1px solid #dc7b6d;
    border-radius: 12px;
    color: #7c2823;
    background: #fff0ec;
    font-weight: 600;
}
.file-protocol .protocol-warning { display: block; }

.site-header, .app-header {
    position: sticky;
    z-index: 50;
    top: 0;
    border-bottom: 1px solid rgba(23, 34, 29, .08);
    background: rgba(247, 243, 234, .9);
    backdrop-filter: blur(18px);
}
.header-inner {
    width: min(1240px, calc(100% - 40px));
    min-height: 74px;
    margin: auto;
    display: flex;
    align-items: center;
    gap: 28px;
}
.brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    min-width: max-content;
}
.brand-button { padding: 0; border: 0; background: none; cursor: pointer; text-align: left; }
.brand-mark {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 14px 14px 14px 5px;
    color: #fff;
    background: var(--green);
    box-shadow: 0 8px 18px rgba(28, 107, 80, .24);
    font-size: 20px;
    font-weight: 800;
}
.brand strong { display: block; font-size: 17px; letter-spacing: .02em; }
.brand small { display: block; color: var(--ink-soft); font-size: 11px; letter-spacing: .12em; }
.main-nav, .top-nav { display: flex; align-items: center; gap: 5px; margin-right: auto; }
.nav-item, .top-nav a {
    padding: 10px 14px;
    border: 0;
    border-radius: 12px;
    color: var(--ink-soft);
    background: transparent;
    cursor: pointer;
    font-weight: 600;
}
.nav-item:hover, .nav-item.active, .top-nav a:hover, .top-nav a.active { color: var(--green); background: var(--green-pale); }
.header-actions { display: flex; align-items: center; gap: 9px; }
.environment-badge {
    padding: 6px 10px;
    border: 1px solid var(--line);
    border-radius: 99px;
    color: var(--ink-soft);
    background: var(--surface);
    font-size: 12px;
    font-weight: 700;
}
.environment-badge.demo { color: #7a441e; border-color: #edbd8e; background: #fff0d9; }
.profile-trigger {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    max-width: 150px;
    padding: 5px 10px 5px 5px;
    border: 1px solid var(--line);
    border-radius: 99px;
    background: var(--surface);
    cursor: pointer;
    font-weight: 600;
}
.profile-trigger > span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mini-avatar, .large-avatar, .review-avatar {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    color: #fff;
    background: linear-gradient(145deg, var(--orange), #c84f52);
    font-weight: 800;
}
.mini-avatar { width: 31px; height: 31px; border-radius: 50%; }
.mini-avatar.signed-in { background: linear-gradient(145deg, var(--green), #37a276); }
.main-shell { width: min(1180px, calc(100% - 40px)); min-height: calc(100vh - 75px); margin: auto; padding: 48px 0 90px; }
.app-view { animation: view-in .28s ease both; }
@keyframes view-in { from { opacity: 0; transform: translateY(8px); } }
.eyebrow { margin-bottom: 8px; color: var(--orange); font-size: 11px; font-weight: 800; letter-spacing: .18em; }
.surface-card { border: 1px solid rgba(23, 34, 29, .08); border-radius: var(--radius); background: rgba(255, 253, 248, .92); box-shadow: var(--shadow-small); }

.home-hero {
    min-height: 310px;
    padding: 48px 58px;
    display: grid;
    grid-template-columns: 1.2fr .8fr;
    align-items: center;
    overflow: hidden;
    border-radius: 36px;
    background:
        linear-gradient(120deg, rgba(255, 255, 255, .72), rgba(255, 255, 255, .05)),
        linear-gradient(135deg, #f3d7c5, #f8e9c1 48%, #cfe6d7);
    box-shadow: var(--shadow);
}
.home-hero h1 { margin-bottom: 18px; font-size: clamp(38px, 5vw, 64px); line-height: 1.08; letter-spacing: -.055em; }
.hero-copy { max-width: 580px; margin-bottom: 0; color: var(--ink-soft); font-size: 17px; line-height: 1.8; }
.hero-orbit { position: relative; min-height: 230px; }
.orbit-dish {
    position: absolute;
    display: grid;
    place-items: center;
    border: 8px solid rgba(255, 255, 255, .56);
    border-radius: 50%;
    background: rgba(255, 255, 255, .62);
    box-shadow: 0 18px 40px rgba(40, 57, 47, .15);
}
.orbit-main { width: 170px; height: 170px; left: 48%; top: 50%; transform: translate(-50%, -50%); font-size: 80px; }
.orbit-one { width: 82px; height: 82px; left: 4%; top: 4%; font-size: 38px; }
.orbit-two { width: 92px; height: 92px; right: 0; top: 5%; font-size: 40px; }
.orbit-three { width: 74px; height: 74px; right: 8%; bottom: 0; font-size: 32px; }

.feed-toolbar {
    position: relative;
    z-index: 2;
    margin: -24px 30px 0;
    padding: 14px;
    display: grid;
    grid-template-columns: 170px auto minmax(220px, 1fr) auto;
    align-items: end;
    gap: 12px;
}
.field { display: grid; gap: 7px; color: var(--ink-soft); font-size: 13px; font-weight: 600; }
.field > span, .field > label { color: var(--ink); }
.compact-field { gap: 3px; }
.input, .select, .textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 12px;
    outline: 0;
    color: var(--ink);
    background: var(--surface-strong);
    transition: border-color .2s, box-shadow .2s;
}
.input, .select { min-height: 44px; padding: 0 12px; }
.textarea { min-height: 120px; padding: 12px; resize: vertical; }
.input:focus, .select:focus, .textarea:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(28, 107, 80, .11); }
.search-box { min-height: 44px; display: flex; align-items: center; gap: 9px; padding: 0 13px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.search-box input { width: 100%; border: 0; outline: 0; background: transparent; }
.segmented { display: inline-flex; min-height: 44px; padding: 4px; border-radius: 13px; background: #ecebe4; }
.segmented button { padding: 7px 13px; border: 0; border-radius: 9px; color: var(--ink-soft); background: transparent; cursor: pointer; font-weight: 700; }
.segmented button.active { color: #fff; background: var(--green); box-shadow: 0 5px 13px rgba(28, 107, 80, .22); }
.segmented.small { min-height: 38px; }
.segmented.small button { padding: 5px 12px; font-size: 12px; }
.button {
    min-height: 44px;
    padding: 0 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid transparent;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 700;
    transition: transform .16s, background .16s, box-shadow .16s;
}
.button:hover:not(:disabled) { transform: translateY(-1px); }
.button:disabled { opacity: .55; cursor: not-allowed; }
.button-primary { color: #fff; background: var(--green); box-shadow: 0 8px 18px rgba(28, 107, 80, .2); }
.button-primary:hover { background: var(--green-dark); }
.button-secondary { color: var(--green-dark); border-color: #bdd2c6; background: var(--green-pale); }
.button-ghost { color: var(--ink-soft); border-color: var(--line); background: transparent; }
.button-dark { color: #fff; background: var(--ink); }
.button-danger { color: #fff; background: var(--red); }
.button-small { min-height: 35px; padding: 0 12px; border-radius: 9px; font-size: 12px; }
.canteen-tabs { margin: 34px 0 24px; display: flex; gap: 12px; overflow-x: auto; padding: 2px 1px 8px; }
.canteen-tab {
    min-width: 200px;
    padding: 10px 14px 10px 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--surface);
    cursor: pointer;
    text-align: left;
}
.canteen-tab:hover, .canteen-tab.active { border-color: var(--green); box-shadow: var(--shadow-small); }
.canteen-tab.active { background: var(--green-pale); }
.canteen-tab strong, .canteen-tab small { display: block; }
.canteen-tab small { color: var(--ink-soft); }
.canteen-icon { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: var(--green); font-size: 17px; font-weight: 800; }
.loading-chip { width: 210px; height: 64px; flex: 0 0 auto; border-radius: 18px; background: linear-gradient(90deg, #ebe8df, #f8f6ef, #ebe8df); background-size: 220% 100%; animation: shimmer 1.4s infinite; }
.section-heading, .page-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin: 34px 0 20px; }
.section-heading h2, .page-heading h1 { margin: 0; font-size: clamp(28px, 4vw, 42px); letter-spacing: -.04em; }
.page-heading p:last-child { margin: 8px 0 0; color: var(--ink-soft); }
.result-count { color: var(--ink-soft); font-size: 13px; font-weight: 700; }
.featured-card {
    min-height: 330px;
    display: grid;
    grid-template-columns: 1.08fr .92fr;
    overflow: hidden;
    border: 1px solid rgba(23, 34, 29, .08);
    border-radius: 28px;
    background: var(--surface);
    box-shadow: var(--shadow);
    cursor: pointer;
}
.featured-content { padding: 38px; display: flex; flex-direction: column; justify-content: center; }
.featured-kicker, .featured-meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.featured-kicker { margin-bottom: 12px; color: var(--orange); font-size: 12px; font-weight: 800; letter-spacing: .08em; }
.featured-content h3 { margin-bottom: 10px; font-size: 42px; letter-spacing: -.05em; }
.featured-content > p { color: var(--ink-soft); line-height: 1.8; }
.featured-meta { margin: 20px 0; color: var(--ink-soft); }
.featured-meta strong { color: var(--ink); font-size: 22px; }
.featured-content .button { align-self: flex-start; }
.rating-badge { padding: 6px 9px; border-radius: 9px; color: #6a4912; background: #fff1ba; letter-spacing: 0; }
.dish-feed-grid { margin-top: 18px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.feed-card { overflow: hidden; border: 1px solid rgba(23, 34, 29, .08); border-radius: 22px; background: var(--surface); box-shadow: var(--shadow-small); cursor: pointer; transition: transform .2s, box-shadow .2s; }
.feed-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.feed-card-body { padding: 18px; }
.feed-card-title { display: flex; justify-content: space-between; gap: 12px; }
.feed-card-title h3 { margin-bottom: 4px; font-size: 19px; }
.feed-card-title strong { color: var(--orange); white-space: nowrap; }
.feed-card-body > p { margin-bottom: 13px; color: var(--ink-soft); font-size: 13px; }
.dish-visual { position: relative; height: 155px; display: grid; place-items: center; overflow: hidden; background: linear-gradient(145deg, #f7d4c6, #f1bba5); }
.dish-visual.large { min-height: 310px; height: 100%; }
.dish-visual img { width: 100%; height: 100%; position: absolute; inset: 0; object-fit: cover; }
.dish-visual span { font-size: 70px; filter: drop-shadow(0 14px 14px rgba(30, 35, 31, .16)); }
.dish-visual.large span { font-size: 120px; }
.tone-0 { background: linear-gradient(145deg, #cfdfc8, #8bbd9b); }
.tone-1 { background: linear-gradient(145deg, #f7d4c6, #eea78c); }
.tone-2 { background: linear-gradient(145deg, #f6e0a7, #e8bd62); }
.tone-3 { background: linear-gradient(145deg, #cbdde8, #92b9cf); }
.tone-4 { background: linear-gradient(145deg, #e0d0ea, #b498ca); }
.tone-5 { background: linear-gradient(145deg, #cce5da, #7bb99e); }
.tag-row { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { padding: 4px 8px; border: 1px solid #c9dcd1; border-radius: 7px; color: var(--green-dark); background: #eff7f2; font-size: 11px; font-weight: 700; }
.card-stats { margin-top: 16px; padding-top: 13px; display: flex; gap: 12px; border-top: 1px solid #ebeae4; color: var(--ink-soft); font-size: 11px; }
.card-stats span:first-child { color: #885d11; font-weight: 700; }
.card-stats small { color: var(--ink-soft); font-weight: 400; }

.directory-board { min-height: 590px; padding: 12px; display: grid; grid-template-columns: .8fr .9fr 1.35fr; gap: 0; }
.directory-board > section { min-width: 0; padding: 18px; border-right: 1px solid var(--line); }
.directory-board > section:last-child { border-right: 0; }
.column-heading { padding-bottom: 14px; display: flex; justify-content: space-between; color: var(--ink-soft); font-size: 12px; letter-spacing: .08em; }
.directory-list { display: grid; align-content: start; gap: 8px; }
.directory-option { padding: 14px; display: grid; gap: 4px; border: 1px solid transparent; border-radius: 13px; background: transparent; cursor: pointer; text-align: left; }
.directory-option small { color: var(--ink-soft); }
.directory-option:hover, .directory-option.active { border-color: #c5d7cd; background: var(--green-pale); }
.directory-dish { width: 100%; padding: 9px; display: grid; grid-template-columns: 84px 1fr; align-items: center; gap: 12px; border: 1px solid var(--line); border-radius: 15px; background: #fff; cursor: pointer; text-align: left; }
.directory-dish .dish-visual { height: 72px; border-radius: 11px; }
.directory-dish .dish-visual span { font-size: 36px; }
.directory-dish strong, .directory-dish small, .directory-dish b { display: block; }
.directory-dish small { color: var(--ink-soft); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.directory-dish b { margin-top: 4px; color: var(--orange); font-size: 13px; }

.account-banner { padding: 38px 44px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 24px; border-radius: 28px; color: #fff; background: linear-gradient(125deg, var(--green-dark), var(--green) 62%, #418e6e); box-shadow: var(--shadow); }
.large-avatar { width: 90px; height: 90px; border: 4px solid rgba(255,255,255,.4); border-radius: 30px; font-size: 36px; }
.account-banner .eyebrow { color: #ffd4c6; }
.account-banner h1 { margin-bottom: 5px; font-size: 34px; }
.account-banner p:last-child { margin-bottom: 0; color: rgba(255,255,255,.73); }
.account-banner .button { color: var(--green-dark); background: #fff; box-shadow: none; }
.account-content { margin-top: 22px; padding: 22px; border: 1px solid var(--line); border-radius: 24px; background: var(--surface); box-shadow: var(--shadow-small); }
.account-tabs { display: flex; gap: 4px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.account-tabs button { padding: 9px 15px; border: 0; border-radius: 10px; color: var(--ink-soft); background: transparent; cursor: pointer; font-weight: 700; }
.account-tabs button.active { color: var(--green); background: var(--green-pale); }
.account-tools { min-height: 54px; display: flex; align-items: center; justify-content: space-between; color: var(--ink-soft); font-size: 13px; }
.account-list { display: grid; gap: 12px; }
.personal-card { padding: 12px; display: grid; grid-template-columns: 110px 1fr auto; align-items: center; gap: 16px; border: 1px solid var(--line); border-radius: 18px; background: #fff; }
.personal-card .dish-visual { height: 92px; border-radius: 13px; }
.personal-card .dish-visual span { font-size: 45px; }
.personal-card h3 { margin: 3px 0; }
.personal-card p { margin-bottom: 3px; color: var(--ink-soft); font-size: 13px; }
.personal-kicker { color: var(--green); font-size: 11px; font-weight: 800; letter-spacing: .04em; }
.personal-actions { display: flex; flex-direction: column; gap: 7px; }
.personal-card.unavailable { opacity: .65; }
.personal-review { padding: 19px; border: 1px solid var(--line); border-radius: 17px; background: #fff; }
.personal-review-head, .personal-review-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.personal-review p { margin: 12px 0; }
.personal-review-foot { color: var(--ink-soft); font-size: 13px; }

.modal {
    width: min(620px, calc(100% - 24px));
    max-height: calc(100vh - 32px);
    padding: 0;
    overflow: auto;
    border: 0;
    border-radius: 24px;
    color: var(--ink);
    background: var(--surface);
    box-shadow: 0 30px 100px rgba(15, 31, 23, .32);
}
.modal::backdrop { background: rgba(13, 24, 19, .62); backdrop-filter: blur(5px); }
.dish-modal { width: min(1000px, calc(100% - 24px)); }
.dialog-head { padding: 20px 24px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--line); background: rgba(255,253,248,.96); }
.dialog-head h2 { margin: 0; }
.sticky-head { position: sticky; z-index: 10; top: 0; }
.dialog-body { padding: 24px; }
.dialog-actions { padding: 16px 24px 22px; display: flex; justify-content: flex-end; gap: 9px; }
.dialog-intro, .form-note { color: var(--ink-soft); font-size: 13px; }
.form-stack { display: grid; gap: 17px; }
.icon-button { width: 36px; height: 36px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 10px; background: #fff; cursor: pointer; font-size: 20px; }
.icon-button:hover { background: #f0eee7; }
.icon-button.danger { color: var(--red); }
.demo-callout, .binding-note { padding: 11px 13px; border-radius: 10px; color: #765025; background: #fff0d8; font-size: 13px; }
.dish-dialog-body { padding: 0 26px 30px; }
.detail-summary { padding: 26px 0; display: grid; grid-template-columns: 280px 1fr 130px; align-items: center; gap: 26px; }
.detail-summary .dish-visual { min-height: 220px; border-radius: 22px; }
.detail-copy h2 { margin: 6px 0 9px; font-size: 36px; letter-spacing: -.04em; }
.detail-copy > p { color: var(--ink-soft); line-height: 1.7; }
.detail-location { color: var(--green); font-size: 12px; font-weight: 800; }
.detail-price { margin-top: 18px; color: var(--orange); font-size: 23px; font-weight: 800; }
.rating-panel { min-height: 140px; padding: 18px 10px; display: grid; place-items: center; align-content: center; border-radius: 20px; background: #fff0be; text-align: center; }
.rating-panel strong { color: #7b5110; font-size: 38px; line-height: 1; }
.rating-panel span, .rating-panel small { display: block; color: #765f37; }
.rating-panel span { margin-top: 6px; font-weight: 700; }
.interaction-strip { display: grid; grid-template-columns: repeat(3, 100px) 1fr; gap: 10px; padding: 13px; border-radius: 20px; background: #eceee8; }
.interaction-button { min-height: 94px; display: grid; place-items: center; align-content: center; gap: 1px; border: 1px solid transparent; border-radius: 15px; background: #fff; cursor: pointer; }
.interaction-button span { font-size: 22px; }
.interaction-button small { color: var(--ink-soft); }
.interaction-button.active { border-color: var(--green); color: var(--green); background: var(--green-pale); }
.interaction-button.negative { border-color: var(--red); color: var(--red); background: #f9e1df; }
.interaction-button.favorite { border-color: #dcae40; color: #8d6712; background: #fff1c6; }
.interaction-note { padding: 14px 20px; display: grid; align-content: center; border-left: 1px solid #d4d7cf; }
.interaction-note span { color: var(--ink-soft); font-size: 12px; }
.review-section { padding-top: 30px; }
.review-section-head, .review-controls { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.review-section-head h2 { margin: 0; }
.review-controls { margin: 17px 0; }
.review-list { display: grid; gap: 12px; }
.review-card { padding: 20px; border: 1px solid var(--line); border-radius: 18px; background: #fff; }
.review-author, .reply-author { display: flex; align-items: center; gap: 10px; }
.review-author time { margin-left: auto; color: var(--ink-soft); font-size: 11px; }
.review-author small, .reply-author small { display: block; color: var(--ink-soft); font-size: 11px; }
.review-avatar { width: 38px; height: 38px; border-radius: 12px; background: linear-gradient(145deg, var(--green), #6aae8f); }
.review-rating { margin: 13px 0 5px; display: flex; align-items: center; gap: 8px; }
.stars { color: #e3a923; letter-spacing: .08em; }
.review-rating strong { color: #7b5b19; font-size: 12px; }
.review-content { margin-bottom: 13px; line-height: 1.8; }
.review-actions, .reply-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.text-button { padding: 5px 8px; border: 0; border-radius: 7px; color: var(--ink-soft); background: transparent; cursor: pointer; font-size: 12px; font-weight: 700; }
.text-button:hover, .text-button.active { color: var(--green); background: var(--green-pale); }
.text-button.danger { color: var(--red); }
.muted-button { margin-left: auto; }
.reply-thread { margin-top: 14px; padding: 13px; border-radius: 14px; background: #f3f2ec; }
.reply-group + .reply-group { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); }
.reply-item { padding: 8px; }
.reply-item.child { margin-left: 28px; border-left: 2px solid #ccd9d1; }
.reply-item p { margin: 8px 0 4px 48px; font-size: 13px; }
.reply-item .reply-actions { margin-left: 40px; }
.reply-item.tombstone { opacity: .65; }
.reply-to { color: var(--green); font-weight: 700; }
.load-more-replies { margin: 5px 0 5px 40px; padding: 6px 10px; border: 0; color: var(--green); background: transparent; cursor: pointer; font-size: 12px; font-weight: 700; }

.empty-state { min-height: 150px; padding: 28px; display: grid; place-items: center; align-content: center; color: var(--ink-soft); text-align: center; }
.empty-state strong { display: block; color: var(--ink); }
.empty-state p { margin: 5px 0 0; font-size: 13px; }
.empty-icon { margin-bottom: 6px; font-size: 30px; }
.skeleton-card { min-height: 150px; padding: 20px; display: grid; align-content: center; gap: 12px; border-radius: 18px; background: #ebe9e1; }
.skeleton-card span { height: 14px; border-radius: 20px; background: linear-gradient(90deg, #e2dfd6, #f8f6f0, #e2dfd6); background-size: 220% 100%; animation: shimmer 1.4s infinite; }
.skeleton-card span:nth-child(2) { width: 70%; }
.skeleton-card span:nth-child(3) { width: 45%; }
@keyframes shimmer { to { background-position: -220% 0; } }
.toast-region { position: fixed; z-index: 200; right: 22px; bottom: 22px; display: grid; gap: 9px; pointer-events: none; }
.toast { min-width: 240px; max-width: 420px; padding: 13px 16px; border-radius: 12px; color: #fff; background: var(--ink); box-shadow: var(--shadow); opacity: 0; transform: translateY(8px); transition: .2s; }
.toast-visible { opacity: 1; transform: none; }
.toast-success { background: var(--green); }
.toast-error { background: var(--red); }
.demo-dock { position: fixed; z-index: 60; left: 20px; bottom: 20px; padding: 10px 12px; display: flex; align-items: center; gap: 10px; border: 1px solid #e8bf8b; border-radius: 14px; background: #fff2dc; box-shadow: var(--shadow-small); font-size: 12px; }
.demo-dock span { color: var(--ink-soft); }
.mobile-nav { display: none; }
.status-badge { padding: 4px 8px; border-radius: 99px; color: var(--green-dark); background: var(--green-pale); font-size: 11px; font-weight: 800; }
.status-badge.off { color: #8b3d36; background: #f8dfdc; }
.status-badge.admin { color: #6a4912; background: #fff0b9; }

/* 管理后台 */
.admin-page { background: #f2f1eb; }
.auth-gate { min-height: calc(100vh - 75px); padding: 60px 20px; display: grid; place-items: center; }
.auth-card { width: min(480px, 100%); padding: 36px; border: 1px solid var(--line); border-radius: 25px; background: #fff; box-shadow: var(--shadow); }
.auth-card h1 { margin-bottom: 10px; }
.auth-card > p { color: var(--ink-soft); }
.auth-icon { width: 54px; height: 54px; display: grid; place-items: center; border-radius: 17px; background: var(--green-pale); font-size: 26px; }
.auth-submit { width: 100%; margin-top: 14px; }
.help-text { color: var(--ink-soft); font-size: 12px; }
.admin-shell { min-height: calc(100vh - 75px); display: grid; grid-template-columns: 240px 1fr; }
.admin-sidebar { padding: 25px 18px; display: flex; flex-direction: column; gap: 20px; border-right: 1px solid var(--line); background: #fbfaf5; }
.admin-profile { padding: 14px; border-radius: 15px; background: var(--green-pale); }
.admin-profile-row { display: flex; align-items: center; gap: 10px; }
.admin-avatar { width: 42px; height: 42px; object-fit: cover; border-radius: 13px; }
.admin-profile-status { margin-top: 10px; }
.side-nav { display: grid; gap: 5px; }
.side-nav button, .side-nav a { padding: 11px 12px; border: 0; border-radius: 10px; color: var(--ink-soft); background: transparent; cursor: pointer; text-align: left; font-weight: 700; }
.side-nav button.active, .side-nav a.active, .side-nav button:hover, .side-nav a:hover { color: var(--green); background: var(--green-pale); }
.admin-logout { margin-top: auto; }
.admin-content { min-width: 0; padding: 30px; }
.admin-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.admin-heading h1 { margin-bottom: 4px; font-size: 34px; }
.panel-subtitle { margin: 0; color: var(--ink-soft); }
.toolbar { display: flex; align-items: end; gap: 8px; }
.admin-board { min-height: 590px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; background: #fff; box-shadow: var(--shadow-small); }
.admin-column { min-width: 0; padding: 18px; border-right: 1px solid var(--line); }
.admin-column:last-child { border-right: 0; }
.column-head { min-height: 48px; display: flex; justify-content: space-between; align-items: start; gap: 10px; }
.column-head h3 { margin: 0; }
.count-badge { min-width: 26px; padding: 4px 7px; border-radius: 99px; background: var(--green-pale); text-align: center; font-size: 11px; font-weight: 800; }
.admin-list, .catalog-list { display: grid; align-content: start; gap: 8px; }
.admin-item { padding: 13px; border: 1px solid var(--line); border-radius: 13px; background: #fff; }
.admin-item.active { border-color: var(--green); background: #f0f7f3; }
.disabled-item { opacity: .62; }
.admin-item-main, .admin-item-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.admin-item-title { max-width: calc(100% - 78px); padding: 0; overflow: hidden; border: 0; color: var(--ink); background: transparent; cursor: pointer; text-overflow: ellipsis; white-space: nowrap; font-weight: 800; }
.admin-item-actions { display: flex; gap: 4px; }
.admin-item .icon-button { width: 28px; height: 28px; font-size: 14px; }
.admin-item-foot { margin-top: 10px; }
.option-meta { display: block; margin-top: 3px; color: var(--ink-soft); font-size: 11px; }
.switch input { position: absolute; opacity: 0; }
.switch-track { width: 36px; height: 21px; display: block; border-radius: 99px; background: #cfd2cb; cursor: pointer; transition: .2s; }
.switch-track::after { content: ""; width: 15px; height: 15px; position: relative; top: 3px; left: 3px; display: block; border-radius: 50%; background: #fff; transition: .2s; }
.switch input:checked + .switch-track { background: var(--green); }
.switch input:checked + .switch-track::after { transform: translateX(15px); }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 15px; }
.span-2 { grid-column: 1 / -1; }
.checkbox-row { display: flex; align-items: center; gap: 8px; }
.admin-panel { display: none; }
.admin-panel.active { display: block; animation: view-in .2s ease; }
.management-grid { display: grid; grid-template-columns: minmax(260px, .7fr) minmax(0, 1.3fr); gap: 18px; }
.management-card { padding: 20px; border: 1px solid var(--line); border-radius: 18px; background: #fff; box-shadow: var(--shadow-small); }
.management-card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.data-list { display: grid; gap: 9px; }
.data-row { padding: 13px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border: 1px solid var(--line); border-radius: 12px; }
.data-row-main { min-width: 0; }
.data-row-main p { margin: 4px 0 0; color: var(--ink-soft); font-size: 12px; }
.data-row-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 5px; }
.filter-row { margin-bottom: 14px; display: flex; flex-wrap: wrap; align-items: end; gap: 9px; }
.direct-reply-form { padding: 12px; border-radius: 12px; background: #f3f2ec; }
.tag-assignment-grid { margin: 16px 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.tag-check { padding: 10px; display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 10px; background: #fff; font-size: 13px; }
.review-moderation, .report-card { padding: 17px; border: 1px solid var(--line); border-radius: 15px; background: #fff; }
.review-moderation + .review-moderation, .report-card + .report-card { margin-top: 9px; }
.report-snapshot { margin: 10px 0; padding: 11px; border-radius: 10px; background: #f3f2ec; }

@media (max-width: 960px) {
    .header-inner { width: min(100% - 24px, 1180px); }
    .main-nav { display: none; }
    .header-actions { margin-left: auto; }
    .header-actions .environment-badge, .header-actions #demo-toggle { display: none; }
    .main-shell { width: min(100% - 24px, 1180px); padding-top: 24px; padding-bottom: 110px; }
    .home-hero { padding: 36px; grid-template-columns: 1fr .6fr; }
    .feed-toolbar { margin: 14px 0 0; grid-template-columns: 1fr 1fr; }
    .search-box { grid-column: 1 / -1; }
    .dish-feed-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .detail-summary { grid-template-columns: 220px 1fr; }
    .detail-summary .rating-panel { grid-column: 1 / -1; min-height: auto; display: flex; gap: 10px; }
    .interaction-strip { grid-template-columns: repeat(3, 1fr); }
    .interaction-note { grid-column: 1 / -1; border-left: 0; border-top: 1px solid #d4d7cf; }
    .directory-board { grid-template-columns: 1fr; }
    .directory-board > section { border-right: 0; border-bottom: 1px solid var(--line); }
    .mobile-nav { position: fixed; z-index: 49; left: 50%; bottom: 12px; width: min(440px, calc(100% - 24px)); padding: 7px; display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid rgba(23,34,29,.12); border-radius: 18px; background: rgba(255,253,248,.94); box-shadow: var(--shadow); backdrop-filter: blur(16px); transform: translateX(-50%); }
    .mobile-nav button { padding: 7px; display: grid; gap: 1px; place-items: center; border: 0; border-radius: 12px; color: var(--ink-soft); background: transparent; font-size: 11px; }
    .mobile-nav button span { font-size: 18px; }
    .mobile-nav button.active { color: var(--green); background: var(--green-pale); }
    .demo-dock { bottom: 92px; }
    .admin-shell { grid-template-columns: 1fr; }
    .admin-sidebar { position: sticky; z-index: 30; top: 74px; padding: 10px 14px; flex-direction: row; align-items: center; border-right: 0; border-bottom: 1px solid var(--line); }
    .admin-profile { display: none; }
    .side-nav { display: flex; overflow-x: auto; }
    .admin-logout { margin: 0 0 0 auto; }
    .admin-board { grid-template-columns: 1fr; }
    .admin-column { border-right: 0; border-bottom: 1px solid var(--line); }
}

@media (max-width: 680px) {
    .header-inner { min-height: 64px; }
    .brand small { display: none; }
    .brand-mark { width: 36px; height: 36px; }
    .profile-trigger > span:last-child { display: none; }
    .home-hero { min-height: 340px; padding: 28px; grid-template-columns: 1fr; }
    .home-hero h1 { font-size: 38px; }
    .hero-orbit { min-height: 120px; }
    .orbit-main { width: 110px; height: 110px; font-size: 54px; }
    .orbit-one, .orbit-two, .orbit-three { width: 58px; height: 58px; font-size: 25px; border-width: 5px; }
    .feed-toolbar { padding: 12px; grid-template-columns: 1fr; }
    .search-box { grid-column: auto; }
    .segmented { width: 100%; }
    .segmented button { flex: 1; }
    .canteen-tabs { margin-top: 24px; }
    .section-heading, .page-heading { align-items: start; flex-direction: column; }
    .featured-card { grid-template-columns: 1fr; }
    .featured-card .dish-visual.large { min-height: 220px; }
    .featured-content { padding: 24px; }
    .featured-content h3 { font-size: 34px; }
    .dish-feed-grid { grid-template-columns: 1fr; }
    .account-banner { padding: 26px; grid-template-columns: auto 1fr; }
    .account-banner .button { grid-column: 1 / -1; }
    .large-avatar { width: 68px; height: 68px; border-radius: 22px; }
    .account-banner h1 { font-size: 25px; }
    .personal-card { grid-template-columns: 80px 1fr; }
    .personal-card .dish-visual { height: 72px; }
    .personal-actions { grid-column: 1 / -1; flex-direction: row; }
    .detail-summary { grid-template-columns: 1fr; }
    .detail-summary .dish-visual { min-height: 190px; }
    .detail-summary .rating-panel { grid-column: auto; }
    .interaction-strip { grid-template-columns: repeat(3, 1fr); }
    .interaction-button { min-height: 80px; }
    .review-section-head { align-items: start; flex-direction: column; }
    .review-controls { align-items: stretch; flex-direction: column; }
    .review-author time { display: none; }
    .reply-item.child { margin-left: 8px; }
    .reply-item p, .reply-item .reply-actions { margin-left: 8px; }
    .demo-dock span { display: none; }
    .admin-content { padding: 18px 12px; }
    .admin-heading { align-items: stretch; flex-direction: column; }
    .toolbar { align-items: stretch; flex-direction: column; }
    .management-grid { grid-template-columns: 1fr; }
    .form-grid { grid-template-columns: 1fr; }
    .span-2 { grid-column: auto; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
