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

:root {
  color-scheme: light;
  --ink: #272727;
  --muted: #767676;
  --accent: #333333;
  --accent-strong: #171717;
  --mist: #f6f6f6;
  --paper: #ffffff;
  --selection: #eeeeee;
  --selection-strong: #d8d8d8;
  --line: #e7e7e7;
  --soft-line: #efefef;
  --danger: #515151;
  --serif: Georgia, 'Times New Roman', serif;
  --sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans TC', 'PingFang TC', sans-serif;
  --utility: 'DM Sans', var(--sans);
  font-family: var(--sans);
  color: var(--ink);
  background: var(--mist);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-width: 320px; min-height: 100vh; background: var(--mist); }
button, input, textarea, select { font: inherit; }
button, a, select { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
a { color: inherit; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 3px solid #a9a9a9; outline-offset: 3px; }
::selection { background: #dfdfdf; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.app-shell { min-height: 100vh; }
.sidebar { width: 236px; height: 100vh; height: 100dvh; position: fixed; inset: 0 auto 0 0; padding: 31px 19px 22px; display: flex; flex-direction: column; overflow-y: auto; overscroll-behavior: contain; background: #ffffff; border-right: 1px solid var(--line); z-index: 5; }
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; padding: 1px 8px 31px; }
.brand-mark { width: 29px; height: 29px; display: inline-flex; align-items: flex-end; justify-content: center; gap: 2px; border-radius: 50% 50% 45% 45%; background: var(--selection); padding: 6px 7px; transform: rotate(-7deg); flex: none; }
.brand-mark span { display: block; width: 4px; height: 12px; border: 1.5px solid var(--accent); border-radius: 80% 10% 75% 20%; transform: rotate(14deg); }
.brand-mark span:nth-child(2) { height: 17px; transform: rotate(-4deg); }
.brand-mark span:nth-child(3) { height: 10px; transform: rotate(-16deg); }
.brand-copy { display: grid; gap: 3px; }
.brand-copy strong, .mobile-brand strong { font: 18px/1 var(--serif); letter-spacing: -.45px; }
.brand-copy small { display: none; }
.side-label { margin: 13px 10px 10px; text-transform: uppercase; font: 600 10px/1.2 var(--utility); letter-spacing: 1.25px; color: #9a9a9a; }
.directory-reset { width: 100%; min-height: 39px; display: flex; justify-content: space-between; align-items: center; padding: 0 11px; border: 1px solid var(--line); border-radius: 6px; color: #5d5d5d; background: #ffffff; text-align: left; font-size: 12px; cursor: pointer; }
.directory-reset:hover, .directory-reset.active { border-color: #dddddd; color: var(--accent-strong); background: var(--selection); }
.nav-count { margin-left: auto; color: #929292; font: 10px var(--utility); }
.ingredient-directory { display: grid; gap: 4px; }
.directory-group { border-bottom: 1px solid var(--soft-line); padding-bottom: 4px; }
.directory-group-heading { display: flex; align-items: center; gap: 3px; }
.directory-group-filter { min-width: 0; flex: 1; display: flex; align-items: center; gap: 8px; min-height: 34px; padding: 0 8px; border: 0; border-radius: 5px; color: #6f6f6f; background: transparent; text-align: left; font-size: 11px; cursor: pointer; }
.directory-group-filter:hover, .directory-group.active .directory-group-filter, .directory-group-filter[aria-pressed="true"] { color: var(--accent-strong); background: #f2f2f2; }
.directory-group-toggle { width: 27px; height: 27px; flex: none; border: 0; border-radius: 4px; color: #8f8f8f; background: transparent; font-size: 14px; cursor: pointer; }
.directory-group-toggle:hover { color: var(--accent); background: #f3f3f3; }
.directory-items { display: grid; gap: 1px; margin: 1px 0 5px; padding: 0 0 0 9px; list-style: none; }
.directory-ingredient { width: 100%; min-height: 29px; display: flex; align-items: center; gap: 6px; padding: 0 9px; border: 0; border-radius: 4px; color: #7b7b7b; background: transparent; text-align: left; font-size: 10px; cursor: pointer; }
.directory-ingredient:hover, .directory-ingredient.active { color: var(--accent-strong); background: #f1f1f1; }
.directory-ingredient .nav-count { font-size: 9px; }
.directory-group-filter .nav-count { font-size: 9px; }
.sidebar .sidebar-close { display: none; }
.sidebar-backdrop { display: none; }
.mobile-directory-button { display: none; }
.sidebar-note { display: flex; align-items: center; gap: 8px; margin: 29px 10px 0; padding-top: 16px; border-top: 1px solid var(--soft-line); color: #8f8f8f; font-size: 10px; line-height: 1.55; }
.note-dot, .status-indicator { width: 7px; height: 7px; border-radius: 50%; background: #9a9a9a; flex: none; }
.sidebar-bottom { margin-top: auto; display: grid; gap: 5px; padding: 15px 6px 0; border-top: 1px solid var(--soft-line); }
.sidebar-more { color: #6f6f6f; font-size: 12px; }
.sidebar-more summary { width: max-content; padding: 7px 4px; color: #6f6f6f; cursor: pointer; list-style: none; }
.sidebar-more summary::-webkit-details-marker { display: none; }
.sidebar-more summary::after { content: '＋'; margin-left: 8px; color: var(--accent); font-size: 11px; }
.sidebar-more[open] summary::after { content: '−'; }
.sidebar-more > div { display: grid; padding-left: 10px; }
.text-button { border: 0; background: none; padding: 8px 4px; color: #6f6f6f; text-align: left; font-size: 12px; cursor: pointer; }
.text-button:hover, .footer-link:hover { color: var(--accent); }
.text-button span { color: var(--accent); margin-right: 6px; }

.main-content { max-width: 1510px; margin-left: 236px; padding: 0 52px 0 54px; }
.topbar { height: 75px; display: flex; align-items: center; justify-content: flex-end; gap: 21px; border-bottom: 1px solid var(--line); }
.inbox-nav-button { gap: 7px; }
.inbox-nav-count { min-width: 18px; height: 18px; display: inline-flex; align-items: center; justify-content: center; padding: 0 4px; border: 1px solid currentColor; border-radius: 999px; font-size: 10px; line-height: 1; }
.mobile-brand { display: none; align-items: center; gap: 8px; }
.mobile-brand .brand-mark { width: 26px; height: 26px; }
.mobile-brand strong { font-size: 16px; }
.local-status { display: inline-flex; align-items: center; gap: 7px; color: #7e7e7e; font-size: 11px; }
.status-indicator { width: 6px; height: 6px; }
.button { min-height: 38px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 0 15px; border: 1px solid transparent; border-radius: 6px; font-size: 12px; font-weight: 600; text-decoration: none; cursor: pointer; transition: background .16s ease, border-color .16s ease, transform .16s ease; }
.button:active { transform: translateY(1px); }
.button-primary { background: var(--accent); color: white; }
.button-primary:hover { background: var(--accent-strong); }
.button-primary span { font-size: 17px; font-weight: 400; line-height: 1; }
.button-quiet { background: transparent; color: #6d6d6d; }
.button-quiet:hover { background: #f2f2f2; }
.button-outline { background: white; border-color: #d5d5d5; color: var(--accent); }
.button-outline:hover { background: #f7f7f7; }
.button-danger { background: var(--danger); color: white; }
.button-danger:hover { background: #404040; }
.top-add { min-height: 36px; }

.collection-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; padding: 38px 0 28px; }
.eyebrow { margin: 0 0 12px; color: #8d8d8d; font: 600 9px/1.2 var(--utility); letter-spacing: 1.75px; }
h1, h2, h3, p { margin-top: 0; }
.collection-heading h1 { margin: 0; color: var(--ink); font: 400 clamp(27px, 3vw, 36px)/1.17 var(--serif); letter-spacing: -.9px; }
.heading-period { color: var(--accent); }
.intro { display: none; }
.demo-label { margin-bottom: 5px; padding: 6px 9px; border: 1px solid #dedede; border-radius: 4px; color: #727272; background: #f2f2f2; font-size: 10px; white-space: nowrap; }
.toolbar { margin-bottom: 28px; padding: 13px 0 15px; display: flex; align-items: center; gap: 23px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.search-box { height: 37px; width: min(320px, 42%); display: flex; align-items: center; gap: 10px; padding: 0 10px; border: 1px solid var(--line); border-radius: 5px; background: white; }
.search-icon { width: 13px; height: 13px; border: 1.5px solid #8e8e8e; border-radius: 50%; position: relative; flex: none; }
.search-icon::after { content: ''; position: absolute; width: 5px; height: 1.5px; right: -4px; bottom: -2px; background: #8e8e8e; transform: rotate(45deg); }
.search-box input { width: 100%; border: 0; outline: 0; color: var(--ink); background: transparent; font-size: 12px; }
.search-box input::placeholder { color: #a4a4a4; }
.search-box kbd { padding: 2px 5px; border: 1px solid #e7e7e7; border-radius: 3px; color: #979797; background: #fbfbfb; font: 10px var(--utility); }
.status-filter { display: flex; align-items: center; gap: 8px; margin-left: auto; color: #8a8a8a; font-size: 10px; }
.status-filter select { min-height: 34px; min-width: 112px; padding: 0 27px 0 9px; border: 1px solid var(--line); border-radius: 5px; color: #6f6f6f; background: white; font-size: 11px; }
.shelf-heading { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; }
.shelf-heading h2 { display: inline; margin: 0; font: 400 19px/1.2 var(--serif); letter-spacing: -.3px; }
.result-count { margin-left: 9px; color: #989898; font-size: 10px; }
.sort-control select { padding: 5px 20px 5px 7px; border: 0; background: transparent; color: #7e7e7e; font-size: 10px; cursor: pointer; }
.recipe-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px 18px; align-items: start; }
.recipe-card { min-width: 0; position: relative; overflow: hidden; border: 1px solid #e7e7e7; border-radius: 7px; background: white; cursor: pointer; transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease; }
.recipe-card:hover { border-color: #d8d8d8; box-shadow: 0 8px 22px rgb(54 54 54 / 8%); transform: translateY(-2px); }
.card-image-wrap { position: relative; height: clamp(150px, 16.5vw, 228px); overflow: hidden; background: #e9e9e9; }
.card-image { width: 100%; height: 100%; display: block; object-fit: cover; transition: transform .4s ease; }
.recipe-card:hover .card-image { transform: scale(1.025); }
.image-fallback { display: none; position: absolute; inset: 0; place-items: center; color: #626262; background: linear-gradient(145deg, #eaeaea, #dedede); text-align: center; }
.image-fallback.show { display: grid; }
.image-fallback span { font: 50px/1 var(--serif); opacity: .72; }
.image-fallback small { display: block; margin-top: 7px; font-size: 10px; }
.card-top-label { position: absolute; left: 11px; top: 11px; padding: 5px 8px; border-radius: 3px; color: #454545; background: rgb(255 255 255 / 91%); font-size: 9px; backdrop-filter: blur(4px); }
.status-pill { position: absolute; right: 10px; top: 10px; display: inline-flex; align-items: center; gap: 4px; padding: 5px 8px; border-radius: 3px; color: #646464; background: #f2f2f2; font-size: 9px; }
.status-pill.cooked { color: #5b5b5b; background: #efefef; }
.card-body { padding: 12px 13px 13px; }
.recipe-card.no-image .card-body { min-height: 76px; display: flex; align-items: center; padding-right: 86px; }
.recipe-card.no-image .status-pill { top: 50%; right: 12px; transform: translateY(-50%); }
.card-title-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.card-title { margin: 0; color: #2e2e2e; font: 500 16px/1.4 var(--sans); letter-spacing: -.2px; }
.card-open { flex: none; color: #8f8f8f; font: 15px var(--sans); }
.card-note { min-height: 20px; margin: 6px 0 10px; overflow: hidden; color: #888888; font-size: 11px; line-height: 1.55; text-overflow: ellipsis; white-space: nowrap; }
.card-bottom { display: flex; justify-content: space-between; align-items: center; margin-top: 7px; color: #8f8f8f; font-size: 10px; }
.ingredient-preview { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.demo-stamp { color: #a7a7a7; letter-spacing: .5px; }
.page-footer { display: none; }
.footer-actions { display: flex; align-items: center; gap: 14px; }
.footer-link { padding: 4px 0; border: 0; color: #737373; background: transparent; font: 11px var(--sans); cursor: pointer; }
.footer-link span { color: var(--accent); }
.empty-state { padding: 54px 16px 72px; text-align: center; }
.empty-illustration { width: 68px; height: 65px; display: grid; place-items: center; position: relative; margin: 0 auto 18px; border: 1px solid #e1e1e1; border-radius: 50% 50% 45% 45%; color: var(--accent); background: #f0f0f0; font: 32px var(--serif); }
.empty-illustration i { position: absolute; width: 23px; height: 23px; right: -9px; bottom: -1px; border-radius: 50%; border: 4px solid var(--mist); background: #d3d3d3; }
.empty-state h3 { margin: 0 0 7px; font: 400 21px var(--serif); }
.empty-state p { margin: 0 0 18px; color: #898989; font-size: 12px; }
.empty-state p:empty { display: none; }

dialog { color: var(--ink); }
.modal { width: min(620px, calc(100% - 28px)); max-height: min(90vh, 900px); padding: 0; overflow: auto; border: 1px solid #e3e3e3; border-radius: 10px; background: white; box-shadow: 0 24px 90px rgb(39 39 39 / 23%); }
.modal::backdrop { background: rgb(37 37 37 / 45%); backdrop-filter: blur(2px); }
.modal-form { padding: 25px 27px 22px; }
.modal-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding-bottom: 18px; border-bottom: 1px solid var(--soft-line); }
.modal-heading .eyebrow { margin-bottom: 7px; }
.modal-heading h2 { margin: 0; font: 400 25px/1.2 var(--serif); }
.icon-button { width: 32px; height: 32px; display: grid; place-items: center; border: 0; border-radius: 50%; color: #7f7f7f; background: #f6f6f6; font-size: 22px; line-height: 1; cursor: pointer; }
.icon-button:hover { color: var(--ink); background: #ececec; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px 13px; padding: 20px 0; }
.full-field { grid-column: 1 / -1; }
.field { display: grid; gap: 7px; min-width: 0; color: #575757; font-size: 11px; font-weight: 600; }
.field > span { display: flex; gap: 6px; align-items: baseline; }
.field b { color: var(--accent); }
.field small { color: #989898; font-size: 9px; font-weight: 400; }
.field input, .field textarea { width: 100%; padding: 10px 11px; resize: vertical; border: 1px solid #e2e2e2; border-radius: 5px; outline: 0; color: #303030; background: #ffffff; font-size: 12px; font-weight: 400; line-height: 1.55; }
.field input:focus, .field textarea:focus { border-color: #9b9b9b; box-shadow: 0 0 0 3px rgb(153 153 153 / 14%); }
.field input::placeholder, .field textarea::placeholder { color: #b2b2b2; }
.recipe-extras { border-top: 1px solid var(--soft-line); border-bottom: 1px solid var(--soft-line); }
.recipe-extras summary { display: flex; align-items: center; gap: 8px; padding: 11px 0; color: var(--accent); font-size: 11px; font-weight: 600; cursor: pointer; list-style: none; }
.recipe-extras summary::-webkit-details-marker { display: none; }
.recipe-extras summary::before { content: '＋'; width: 17px; height: 17px; display: grid; place-items: center; border: 1px solid #d8d8d8; border-radius: 50%; font-size: 12px; font-weight: 400; }
.recipe-extras[open] summary::before { content: '−'; }
.recipe-extras summary span { color: #a1a1a1; font-size: 9px; font-weight: 400; }
.extras-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; padding: 3px 0 15px 25px; }
.extras-grid .full-field { grid-column: 1 / -1; }
.status-field { display: flex; align-items: center; gap: 9px; margin: 0; padding: 0; border: 0; }
.status-field legend { float: left; width: 100%; margin-bottom: 7px; color: #575757; font-size: 11px; font-weight: 600; }
.status-field label { cursor: pointer; }
.status-field input { position: absolute; opacity: 0; }
.status-field label span { display: block; padding: 8px 12px; border: 1px solid #e3e3e3; border-radius: 4px; color: #7b7b7b; font-size: 11px; }
.status-field input:checked + span { border-color: #ababab; color: var(--accent-strong); background: #f2f2f2; }
.status-field input:focus-visible + span { outline: 3px solid #a9a9a9; outline-offset: 2px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; padding-top: 16px; border-top: 1px solid var(--soft-line); }
.detail-modal { width: min(760px, calc(100% - 28px)); }
.reader-view { max-width: 1050px; padding: 27px 0 25px; }
.back-to-list { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 22px; padding: 7px 9px; border: 0; border-radius: 4px; color: #717171; background: transparent; font-size: 11px; cursor: pointer; }
.back-to-list:hover { color: var(--accent); background: #f0f0f0; }
.back-to-list span { font-size: 15px; }
.reader-title-row { display: grid; grid-template-columns: minmax(0, 1fr) 245px; align-items: center; gap: 28px; padding: 0 0 21px; border-bottom: 1px solid var(--line); }
.reader-title-row.no-photo { grid-template-columns: 1fr; }
.reader-title-copy { min-width: 0; }
.reader-title-copy .eyebrow { margin-bottom: 9px; }
.reader-title-line { display: flex; align-items: center; gap: 12px; }
.reader-title-line h2 { margin: 0; font: 400 clamp(27px, 3.2vw, 38px)/1.2 var(--serif); letter-spacing: -.7px; }
.reader-title-line .status-pill { position: static; }
.reader-servings { color: var(--muted); font-size: 12px; white-space: nowrap; }
.reader-mode-label { color: var(--muted); font-size: 10px; white-space: nowrap; }
.reader-note { max-width: 640px; margin: 10px 0 0; color: #7a7a7a; font-size: 13px; line-height: 1.7; }
.reader-notes { margin-top: 13px; color: #717171; font-size: 11px; }
.reader-notes summary { width: max-content; cursor: pointer; }
.reader-notes p { margin: 8px 0 0; color: #7a7a7a; line-height: 1.7; white-space: pre-line; }
.reader-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 18px; }
.reader-actions .button { min-height: 32px; padding: 0 10px; font-size: 10px; }
.reader-actions .delete-action { color: #626262; }
.reader-more { position: relative; }
.reader-more summary { min-height: 32px; display: inline-flex; align-items: center; padding: 0 10px; border-radius: 5px; color: #6d6d6d; font-size: 10px; cursor: pointer; list-style: none; }
.reader-more summary::-webkit-details-marker { display: none; }
.reader-more summary:hover { background: #f2f2f2; }
.reader-more > div { position: absolute; top: calc(100% + 5px); right: 0; z-index: 2; display: grid; min-width: 130px; padding: 5px; border: 1px solid var(--line); border-radius: 6px; background: white; box-shadow: 0 8px 24px rgb(54 54 54 / 12%); }
.reader-more > div .button { justify-content: flex-start; white-space: nowrap; }
.reader-photo-wrap { height: 176px; position: relative; overflow: hidden; border-radius: 7px; background: #e9e9e9; }
.reader-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.reader-image-fallback { display: none; position: absolute; inset: 0; place-content: center; justify-items: center; color: #696969; background: linear-gradient(145deg, #eaeaea, #dedede); text-align: center; }
.reader-image-fallback.show { display: grid; }
.reader-image-fallback span { font: 42px var(--serif); }
.reader-image-fallback small { margin-top: 7px; color: #7d7d7d; font-size: 10px; }
.reader-demo-label { position: absolute; left: 8px; bottom: 8px; padding: 5px 7px; border-radius: 3px; color: #686868; background: rgb(255 255 255 / 92%); font-size: 9px; }
.reader-source-links { display: flex; flex-wrap: wrap; gap: 15px; padding: 13px 0 0; }
.reader-source-links:empty { display: none; }
.reader-columns { display: grid; grid-template-columns: minmax(230px, .72fr) minmax(0, 1.28fr); gap: 18px; margin-top: 23px; }
.reader-section { min-width: 0; padding: 20px 20px 22px; border: 1px solid var(--line); border-radius: 7px; background: white; }
.reader-section-heading { margin-bottom: 14px; padding-bottom: 12px; border-bottom: 1px solid var(--soft-line); }
.reader-section-heading .eyebrow { margin: 0 0 5px; font-size: 8px; }
.reader-section-heading h3 { margin: 0; font: 400 21px/1.25 var(--serif); }
.reader-section-heading > span { display: block; margin-top: 4px; color: #9c9c9c; font-size: 9px; }
.reader-ingredient-list, .reader-step-list { display: grid; gap: 11px; margin: 0; padding: 0; list-style: none; }
.reader-ingredient-list .ingredient-check { font-size: 12px; }
.reader-step-list li { display: grid; grid-template-columns: 26px minmax(0, 1fr); align-items: start; gap: 10px; color: #595959; font-size: 13px; line-height: 1.7; }
.reader-step-number { width: 23px; height: 23px; display: grid; place-items: center; border-radius: 50%; color: var(--accent); background: #f1f1f1; font: 11px var(--utility); }
.reader-empty-note { display: grid; justify-items: start; gap: 9px; margin: 0; padding: 15px; border-radius: 5px; color: #7d7d7d; background: #f5f5f5; font-size: 11px; line-height: 1.65; }
.reader-empty-note strong { color: #545454; font-size: 13px; }
.reader-empty-note .button { min-height: 32px; }
.detail-content { display: grid; grid-template-columns: .92fr 1.08fr; min-height: 480px; }
.detail-visual { position: relative; min-height: 430px; background: #e9e9e9; }
.detail-visual img { width: 100%; height: 100%; position: absolute; inset: 0; object-fit: cover; }
.detail-visual .image-fallback { position: absolute; }
.detail-visual .image-fallback span { font-size: 70px; }
.detail-visual .detail-demo { position: absolute; left: 14px; bottom: 14px; padding: 5px 8px; color: #6f6f6f; background: rgb(255 255 255 / 92%); font-size: 9px; }
.detail-panel { min-width: 0; display: flex; flex-direction: column; padding: 25px 25px 20px; }
.detail-top { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.detail-panel .eyebrow { margin: 2px 0 9px; }
.detail-panel h2 { margin: 0; font: 400 28px/1.2 var(--serif); letter-spacing: -.4px; }
.detail-note { margin: 10px 0 16px; color: #7a7a7a; font-size: 12px; line-height: 1.7; }
.detail-section { margin-top: 13px; }
.detail-section h3 { margin: 0 0 8px; color: #5f5f5f; font: 600 10px var(--utility); letter-spacing: .55px; }
.ingredient-list, .step-list { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.ingredient-check { display: flex; align-items: flex-start; gap: 8px; color: #595959; font-size: 11px; line-height: 1.5; cursor: pointer; }
.ingredient-check input { width: 14px; height: 14px; margin: 1px 0 0; accent-color: var(--accent); flex: none; }
.ingredient-check.checked span { color: #a2a2a2; text-decoration: line-through; }
.step-list li { display: grid; grid-template-columns: 20px 1fr; gap: 7px; color: #606060; font-size: 11px; line-height: 1.55; }
.step-number { width: 18px; height: 18px; display: grid; place-items: center; border-radius: 50%; color: var(--accent); background: #f1f1f1; font: 10px var(--utility); }
.missing-recipe { margin: 5px 0 2px; padding: 10px; border-radius: 4px; color: #7e7e7e; background: #f5f5f5; font-size: 11px; line-height: 1.6; }
.detail-links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 17px; padding-top: 13px; border-top: 1px solid var(--soft-line); }
.detail-link { color: var(--accent); font-size: 10px; text-decoration: none; }
.detail-link:hover { text-decoration: underline; }
.detail-source-credit { margin-top: 8px; color: #a4a4a4; font-size: 9px; }
.detail-bottom { display: flex; flex-wrap: wrap; gap: 7px; margin-top: auto; padding-top: 17px; }
.detail-bottom .button { min-height: 33px; padding-inline: 10px; font-size: 10px; }
.detail-bottom .delete-action { margin-left: auto; color: #626262; }
.detail-close { position: absolute; top: 10px; right: 10px; z-index: 1; color: #3d3d3d; background: rgb(255 255 255 / 90%); }

.import-modal { width: min(610px, calc(100% - 28px)); }
.tabs { display: flex; gap: 18px; margin: 18px 27px 0; border-bottom: 1px solid var(--line); }
.tab { padding: 0 2px 10px; border: 0; border-bottom: 2px solid transparent; color: #898989; background: transparent; font-size: 11px; cursor: pointer; }
.tab.active { border-color: var(--accent); color: var(--accent); font-weight: 600; }
.tab-panel { padding: 15px 27px 22px; }
.help-copy { margin: 0 0 13px; color: #838383; font-size: 11px; line-height: 1.7; }
.prompt-row { display: flex; gap: 8px; margin-bottom: 15px; }
.prompt-row .button { min-height: 33px; font-size: 10px; }
.chatgpt-link { color: #6e6e6e; text-decoration: none; }
.preview-box { margin-top: 13px; padding: 12px; border: 1px solid #e2e2e2; border-radius: 5px; color: #5d5d5d; background: #f5f5f5; font-size: 11px; line-height: 1.6; }
.preview-box strong { display: block; margin-bottom: 6px; color: #424242; }
.preview-box ul { margin: 5px 0 0; padding-left: 18px; }
.preview-box label { display: flex; align-items: center; gap: 7px; padding: 3px 0; cursor: pointer; }
.preview-box input { accent-color: var(--accent); }
.preview-selection-controls { display: flex; gap: 10px; margin: 3px 0 6px; }
.preview-selection-controls button { padding: 2px 0; border: 0; color: var(--accent); background: transparent; font-size: 10px; cursor: pointer; }
.file-drop { min-height: 142px; display: grid; place-content: center; justify-items: center; gap: 7px; margin: 17px 0 12px; border: 1px dashed #c6c6c6; border-radius: 7px; color: #6d6d6d; background: #f8f8f8; cursor: pointer; text-align: center; }
.file-drop:hover { background: #f2f2f2; }
.file-drop strong { font-size: 12px; }
.file-drop small { color: #9a9a9a; font-size: 10px; }
.file-icon { font: 24px var(--sans); }
.file-drop input { max-width: 200px; color: #848484; font-size: 10px; }
.import-actions { margin-top: 16px; }
.confirm-modal { width: min(390px, calc(100% - 28px)); }
.confirm-content { padding: 27px; text-align: center; }
.confirm-mark { width: 32px; height: 32px; display: grid; place-items: center; margin: 0 auto 13px; border-radius: 50%; color: #626262; background: #eeeeee; font: 600 15px var(--utility); }
.confirm-content h2 { margin: 0 0 8px; font: 400 22px var(--serif); }
.confirm-content p { margin: 0; color: #818181; font-size: 11px; line-height: 1.6; }
.confirm-content .modal-actions { margin-top: 19px; }
.toast { position: fixed; left: 50%; bottom: 22px; z-index: 20; max-width: calc(100% - 32px); display: flex; align-items: center; gap: 15px; padding: 10px 12px 10px 16px; border-radius: 5px; color: white; background: #353535; box-shadow: 0 5px 22px rgb(35 35 35 / 20%); font-size: 12px; opacity: 0; pointer-events: none; transform: translate(-50%, 10px); transition: opacity .2s, transform .2s; }
.toast.show { opacity: 1; pointer-events: auto; transform: translate(-50%, 0); }
.toast button { padding: 5px 8px; border: 0; border-radius: 3px; color: #eaeaea; background: #505050; font-size: 11px; font-weight: 600; cursor: pointer; }
.toast button:hover { background: #626262; }

@media (min-width: 1500px) { .main-content { padding-right: 68px; padding-left: 68px; } }
@media (max-width: 1100px) {
  .sidebar { width: 205px; }
  .main-content { margin-left: 205px; padding: 0 32px; }
  .recipe-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
  .card-image-wrap { height: clamp(175px, 23vw, 260px); }
  .toolbar { align-items: flex-start; flex-direction: column; gap: 12px; }
  .search-box { width: min(100%, 440px); }
  .status-filter { margin-left: 0; }
}
@media (max-width: 680px) {
  .sidebar { width: min(310px, calc(100vw - 42px)); height: 100vh; height: 100dvh; z-index: 21; padding: 24px 17px 19px; border-right: 1px solid var(--line); box-shadow: 10px 0 35px rgb(39 39 39 / 12%); visibility: hidden; transform: translateX(-105%); transition: transform .22s ease, visibility .22s; }
  .sidebar.mobile-open { visibility: visible; transform: translateX(0); }
  .sidebar .brand { padding-right: 35px; padding-bottom: 23px; }
  .sidebar .sidebar-close { display: grid; position: absolute; top: 18px; right: 14px; }
  .sidebar-backdrop:not([hidden]) { display: block; position: fixed; inset: 0; z-index: 20; border: 0; background: rgb(37 37 37 / 42%); }
  .main-content { margin: 0; padding: 0 17px; }
  .topbar { height: 61px; justify-content: space-between; gap: 7px; }
  .mobile-directory-button { min-height: 32px; display: inline-flex; align-items: center; gap: 4px; padding: 0 5px; border: 0; border-radius: 4px; color: var(--accent); background: transparent; font-size: 10px; white-space: nowrap; cursor: pointer; }
  .mobile-directory-button:hover { background: #f0f0f0; }
  .mobile-directory-button span { font-size: 15px; }
  .mobile-brand { display: flex; }
  .mobile-brand .brand-mark { width: 22px; height: 22px; }
  .mobile-brand strong { font-size: 13px; white-space: nowrap; }
  .local-status { display: none; }
  .top-add { min-height: 32px; padding: 0 8px; font-size: 10px; white-space: nowrap; }
  .collection-heading { align-items: flex-start; padding: 27px 0 22px; }
  .collection-heading .eyebrow { margin-bottom: 9px; font-size: 8px; }
  .collection-heading h1 { max-width: 285px; font-size: 27px; }
  .intro { display: none; }
  .demo-label { margin-top: 3px; padding: 5px 6px; font-size: 8px; }
  .toolbar { margin-bottom: 23px; padding: 11px 0 13px; gap: 12px; }
  .toolbar { align-items: stretch; flex-direction: column; }
  .search-box { width: 100%; }
  .status-filter { justify-content: space-between; width: 100%; margin: 0; }
  .status-filter select { flex: 1; max-width: 190px; }
  .recipe-grid { grid-template-columns: 1fr; gap: 14px; }
  .card-image-wrap { height: clamp(190px, 56vw, 270px); }
  .card-body { padding: 11px 12px 12px; }
  .card-title { font-size: 15px; }
  .shelf-heading h2 { font-size: 18px; }
  .page-footer { margin-top: 31px; font-size: 10px; }
  .footer-actions { gap: 10px; }
  .footer-link { font-size: 10px; }
  .reader-view { padding-top: 17px; }
  .back-to-list { margin-bottom: 16px; }
  .reader-title-row { grid-template-columns: 1fr; gap: 15px; padding-bottom: 16px; }
  .reader-title-line { align-items: flex-start; flex-wrap: wrap; gap: 8px; }
  .reader-title-line h2 { font-size: 27px; }
  .reader-photo-wrap { height: 170px; }
  .reader-actions { gap: 5px; margin-top: 13px; }
  .reader-actions .button { min-height: 31px; padding-inline: 8px; font-size: 9px; }
  .reader-columns { grid-template-columns: 1fr; gap: 12px; margin-top: 16px; }
  .reader-section { padding: 17px 15px 19px; }
  .reader-step-list li { font-size: 12px; }
  .modal-form { padding: 21px 18px 18px; }
  .form-grid { grid-template-columns: 1fr; gap: 13px; padding: 17px 0; }
  .full-field { grid-column: auto; }
  .extras-grid { grid-template-columns: 1fr; padding-left: 0; }
  .extras-grid .full-field { grid-column: auto; }
  .field input, .field textarea { font-size: 16px; }
  .detail-content { display: block; }
  .detail-visual { min-height: 210px; height: 36vh; max-height: 290px; }
  .detail-panel { padding: 20px 19px 17px; }
  .detail-panel h2 { font-size: 24px; }
  .detail-bottom .delete-action { margin-left: 0; }
  .tabs { margin-inline: 18px; }
  .tab-panel { padding: 14px 18px 18px; }
  .prompt-row { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

.inbox-section { margin: 0 0 28px; padding: 17px 19px; border: 1px solid var(--line); border-radius: 7px; background: var(--paper); }
.inbox-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.inbox-heading h2 { margin: 0; font-size: 14px; font-weight: 600; }
.inbox-heading span { color: var(--muted); font-size: 11px; }
.inbox-list { display: grid; }
.inbox-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 9px 0; border-top: 1px solid var(--soft-line); }
.inbox-item:first-child { border-top: 0; }
.inbox-item-copy { min-width: 0; display: grid; gap: 3px; }
.inbox-item-copy strong { overflow: hidden; color: var(--ink); font-size: 12px; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.inbox-item-copy a, .inbox-item-copy span { overflow: hidden; color: var(--muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.inbox-item-actions { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 5px 9px; }
.inbox-item .button { min-height: 31px; padding: 0 10px; font-size: 11px; }
.cloud-modal { width: min(520px, calc(100vw - 28px)); }
.cloud-description { margin: -4px 0 18px; color: var(--muted); font-size: 12px; line-height: 1.6; }
.quick-capture { margin: 0 0 24px; padding: 20px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); }
.quick-capture-form > label { display: block; margin-bottom: 10px; color: var(--ink); font-size: 14px; font-weight: 600; }
.quick-capture-row { display: flex; gap: 8px; }
.quick-capture-row input { min-width: 0; flex: 1; min-height: 46px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 5px; color: var(--ink); background: white; font: 16px var(--sans); }
.quick-capture-row input:focus { outline: 2px solid var(--ink); outline-offset: 2px; }
.quick-capture-row .button { min-width: 70px; min-height: 46px; font-size: 14px; }
.quick-capture-footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.quick-capture-footer:has(#quick-capture-status:not(:empty)), .quick-capture-footer:has(button:not([hidden])) { margin-top: 10px; }
.quick-capture-footer .text-button { min-height: 34px; white-space: nowrap; }
.mobile-install-button { display: none; }
.install-steps { display: grid; gap: 16px; margin: 24px 0; padding-left: 22px; color: var(--ink); font-size: 15px; line-height: 1.7; }
@media (max-width: 680px) {
  .topbar { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; gap: 8px 6px; min-height: 68px; height: auto; padding-top: max(12px, env(safe-area-inset-top)); padding-bottom: 12px; }
  .mobile-directory-button { grid-row: 1; grid-column: 1; }
  .mobile-brand { grid-row: 1; grid-column: 2; justify-content: center; }
  .mobile-brand .brand-mark { display: none; }
  .mobile-install-button:not([hidden]) { grid-row: 2; grid-column: 1 / -1; justify-self: end; display: inline-flex; min-height: 36px; padding: 0 8px; font-size: 11px; white-space: nowrap; }
  .inbox-nav-button { grid-row: 1; grid-column: 4; min-height: 36px; padding: 0 10px; white-space: nowrap; }
  .top-add { grid-row: 1; grid-column: 3; min-height: 36px; padding: 0 10px; font-size: 11px; }
  .collection-heading { padding: 22px 0 18px; }
  .quick-capture { margin-bottom: 18px; padding: 16px; }
  .quick-capture-row input { width: 100%; }
  .quick-capture-footer { font-size: 11px; }
  .main-content { padding-bottom: env(safe-area-inset-bottom); }
  .inbox-section { margin: 0 0 20px; padding: 14px; }
  .inbox-item { gap: 7px; }
  .inbox-item .button { padding: 0 8px; }
}
