/* App-specific layout. Shared components: ../../design-system/styles/. */
.skip{ position: fixed; left: 16px; top: 16px; z-index: 2; padding: 10px 14px; border-radius: 9px; background: var(--ink); color: var(--cream); transform: translateY(-200%); }
.skip:focus{ transform: none; }
.brand-mark .icon{ width: 27px; height: 27px; }
.brand-dot{ color: var(--red); }
.header-label{ display: inline-flex; align-items: center; gap: 7px; border-radius: 999px; padding: 5px 12px; background: #c5adeb4a; font-size: 13px; font-weight: 600; white-space: nowrap; }
.header-label .icon{ width: 17px; height: 17px; }
.intro{ display: flex; align-items: center; justify-content: space-between; min-height: 201px; gap: 20px; padding-block: 30px 26px; }
.intro h1{ font-size: clamp(42px, 6vw, 72px); line-height: 1.03; color: var(--ink-strong); }
.intro h1 span{ position: relative; display: inline-block; }
.intro h1 svg{ position: absolute; width: 99%; height: .21em; left: 0; bottom: -.16em; fill: none; stroke: var(--tomato); stroke-width: 1.6; stroke-linecap: round; }
.intro p{ margin-top: 16px; color: var(--secondary); font-size: 17px; }
.book-sketch{ flex: 0 0 auto; width: 207px; height: auto; margin-right: 14px; transform: rotate(-5deg); }
.collection-tools{ display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px; align-items: stretch; }
.search-clear{ background: none; }
.search-clear:hover{ background: #c5adeb4a; }
.collection-meta{ display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-block: 21px 13px; }
.result-count{ font-size: 14px; color: var(--secondary); }
.recipe-list{ display: grid; gap: 13px; list-style: none; padding: 0; }
.recipe-meta, .recipe-tags{ display: flex; flex-wrap: wrap; gap: 5px 8px; align-items: center; font-size: 13px; color: var(--secondary); }
.recipe-meta > span{ display: inline-flex; gap: 5px; align-items: center; }
.recipe-meta .icon{ width: 15px; height: 15px; }
.tag mark.text-highlighter{ color: var(--ink-strong); padding: 0 2px; border-radius: 3px; background-color: transparent; background-image: linear-gradient(var(--butter),var(--butter)); background-repeat: no-repeat; background-size: 100% 100%; -webkit-box-decoration-break: clone; box-decoration-break: clone; animation: tag-marker-sweep 550ms var(--ease) both; }
@keyframes tag-marker-sweep{ from{ background-size: 0% 100%; } to{ background-size: 100% 100%; } }
@media(prefers-reduced-motion:reduce){ .tag mark.text-highlighter{ animation: none; } }
.site-footer span:first-child{ color: var(--ink); font-weight: 600; }
.sign-out{ margin: 0; font-size: 14px; }
.login{ width: min(calc(100% - 64px), 880px); margin-top: clamp(30px, 7vh, 72px); }
.login-card{
  display: grid;
  grid-template-columns: minmax(0, 1.13fr) minmax(0, 1fr);
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper);
  box-shadow: 0 16px 38px #35223d18;
}
.login-content{ min-width: 0; padding: clamp(26px, 4.3vw, 56px); }
.login-kicker{
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 13px;
  color: var(--secondary);
  font-size: 14px;
  font-weight: 600;
}
.login-kicker .icon{ width: 19px; height: 19px; }
.login h1{ color: var(--ink-strong); font-size: clamp(36px, 5vw, 56px); line-height: 1.04; }
.login-intro{ margin: 10px 0 8px; color: var(--secondary); }
.auth-switch{ margin-bottom: 21px; font-size: 14px; }
.auth-switch a{ display: inline-block; min-height: 44px; padding-block: 11px; color: var(--ink); font-weight: 600; text-underline-offset: 3px; }
.auth-switch a:hover{ color: var(--red); }
.login-form{ display: grid; gap: 6px; }
.login-form label{ font-size: 14px; font-weight: 600; }
.login-form label[for="login-password"], .login-form .next-field{ margin-top: 9px; }
#login-feedback, .auth-feedback{ color: var(--red); font-size: 14px; }
#login-feedback:not(:empty), .auth-feedback:not(:empty){ margin-block: 5px; }
.login-submit{ margin-top: 6px; }
@media (hover: hover) and (pointer: fine){}
@media (hover: none){}
.demo-note{ margin-top: 22px; padding: 13px 14px 3px; background: #c5adeb37; border-radius: 9px; font-size: 14px; }
.demo-fill{
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  padding: 4px 0;
  border: 0;
  background: none;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-align: left;
}
.demo-fill .icon{ width: 17px; height: 17px; }
.login-illustration{
  display: grid;
  align-content: center;
  justify-items: center;
  padding: 24px;
  border-radius: 0 13px 13px 0;
  background: #f8f1e1;
  text-align: center;
}
.login-kitchen{ position: relative; width: 100%; isolation: isolate; }
.login-kitchen::before{ content: ''; position: absolute; inset: 6% 0 5%; z-index: -1; border-radius: 46% 54% 48% 52%; background: var(--butter); }
.login-kitchen img{ display: block; width: 100%; height: auto; }
.login-illustration p{ max-width: 11ch; margin-top: 24px; font: 800 clamp(26px, 3vw, 39px)/1.06 var(--display); letter-spacing: -.03em; }
.auth-return{ display: grid; gap: 6px; margin-bottom: 20px; font-size: 14px; color: var(--secondary); }
.auth-return a{ justify-self: start; display: inline-flex; align-items: center; min-height: 44px; color: var(--ink); font-weight: 600; text-underline-offset: 3px; }
.shared-view{ padding-top: 38px; }
.shared-heading{ display: grid; grid-template-columns: minmax(0, 1fr) 340px; align-items: start; gap: 36px; margin-bottom: 32px; }
.shared-kicker{ display: flex; align-items: center; gap: 8px; margin-bottom: 18px; font-size: 14px; font-weight: 600; color: var(--secondary); }
.shared-kicker .icon{ width: 19px; height: 19px; }
.shared-heading h1{ font-size: clamp(40px, 5vw, 68px); line-height: 1.02; color: var(--ink-strong); }
.shared-heading h1 span{ color: var(--red); }
.shared-meta{ display: flex; flex-wrap: wrap; gap: 7px 18px; margin-top: 21px; font-size: 14px; color: var(--secondary); }
.shared-meta > span{ display: inline-flex; align-items: center; gap: 6px; }
.shared-meta .icon{ width: 17px; height: 17px; }
.shared-tags{ margin-top: 13px; }
.shared-source{ display: inline-flex; align-items: center; gap: 14px; padding: 0; margin-top: 23px; border: 0; border-radius: 9px; background: transparent; text-align: left; font-size: 14px; }
.shared-source img{ width: 49px; height: 66px; object-fit: cover; border-radius: 3px; box-shadow: 0 4px 12px #35223d20; transform: rotate(-5deg); }
.shared-source strong{ display: flex; align-items: center; gap: 8px; text-decoration: underline; text-underline-offset: 4px; }
.shared-source .icon{ width: 17px; height: 17px; }
.shared-save{ padding: 26px; border: 1px solid var(--line); border-radius: 14px; background: #ffedb2; }
.shared-save-mark{ display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 14px; border-radius: 50%; background: var(--butter); }
.shared-save-mark .icon{ width: 26px; height: 26px; }
.shared-save h2{ font-size: 29px; line-height: 1.07; margin-bottom: 10px; }
.shared-save > p{ font-size: 14px; line-height: 1.6; }
.shared-save .primary{ width: 100%; margin-top: 20px; padding-inline: 12px; }
.print-button{ display: inline-flex; align-items: center; justify-content: center; gap: 9px; }
.shared-heading .print-button{ display: flex; width: fit-content; margin-top: 16px; font-size: 14px; }
.recipe-print-actions{ margin-bottom: 20px; }
.recipe-print-actions .print-button{ margin: 0; }
#shared-save-status:not(:empty), #shared-save-error:not(:empty){ margin-top: 12px; }
.shared-open{ display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; width: 100%; padding: 10px 8px; margin-top: 16px; border: 1px solid var(--ink); border-radius: 9px; background: var(--ink); color: var(--cream); font-size: 14px; font-weight: 600; text-decoration: none; }
.shared-open .icon{ width: 18px; height: 18px; }
.shared-open:hover{ background: var(--ink-strong); }
.shared-save .shared-demo{ margin-top: 17px; padding-top: 13px; border-top: 1px solid var(--line); color: var(--secondary); font-size: 12px; }
.shared-content .full-recipe{ grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 55px; padding-top: 28px; }
.shared-content h2{ margin-bottom: 8px; font-size: 28px; line-height: 1.1; }
.shared-content .recipe-method ol li{ margin-bottom: 16px; padding-left: 7px; }
.shared-content .recipe-method li::marker{ color: var(--red); font-weight: 600; }
.shared-unavailable{ max-width: 560px; padding-block: 40px 80px; }
.shared-unavailable h1{ margin-bottom: 20px; font-size: clamp(36px, 5vw, 56px); line-height: 1.05; }
.source-image img{ display: block; max-width: 100%; height: auto; margin-inline: auto; }
body:has(dialog[open]){ overflow: hidden; }
.dialog-bar > span{ display: inline-flex; align-items: center; gap: 8px; }
.dialog-actions, .edit-form-actions{ display: flex; align-items: center; gap: 8px; }
.edit-form-actions{ flex-wrap: wrap; }
.dialog-actions .secondary, .edit-form-actions .secondary{ margin: 0; }
.dialog-tags{ margin: -10px 0 16px; }
body:has(#edit-dialog[open]) #recipe-dialog{ visibility: hidden; }
.close-button{ background: var(--lilac); }
.dialog-source{ margin: 9px 0 20px; color: var(--secondary); font-size: 14px; }
.recipe-origin{ margin-bottom: 20px; }
.recipe-origin .secondary{ display: inline-flex; align-items: center; gap: 8px; margin: 0; color: var(--ink); }
.recipe-origin p{ font-size: 14px; color: var(--secondary); }
.full-recipe{ display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.18fr); gap: 25px 30px; border-top: 1px solid var(--line); padding-top: 20px; }
.full-recipe h3{ margin-bottom: 5px; font-size: 24px; }
.full-recipe ul{ list-style: none; padding: 0; margin-bottom: 12px; }
.full-recipe ul li{ display: flex; justify-content: space-between; align-items: baseline; gap: 8px; padding: 7px 0; border-bottom: 1px solid var(--line); }
.full-recipe ul li strong{ text-align: right; }
.full-recipe ol{ padding-left: 24px; }
.full-recipe ol li{ padding-left: 4px; margin-bottom: 8px; }
.recipe-qualification{ color: var(--secondary); font-size: 13px; margin: 0 0 12px; }
.add-form{ display: grid; gap: 12px; }
.add-form label{ display: grid; gap: 4px; font-weight: 600; }
.add-form label > span{ font-size: 13px; font-weight: 400; color: var(--secondary); }
.add-form button{ justify-self: start; }
.form-error{ color: var(--red); }
.source-picker{ min-width: 0; margin: 0; padding: 0; border: 0; }
.source-picker legend{ margin-bottom: 5px; padding: 0; font-weight: 600; }
.source-fields{ display: grid; gap: 7px; }
.source-fields input[type="file"]{ padding: 7px; font-size: 14px; }
.source-fields input::file-selector-button{ padding: 5px 8px; border: 0; border-radius: 6px; color: var(--ink); background: var(--lilac); font: 600 14px var(--body); cursor: pointer; }
.field-hint{ color: var(--secondary); font-size: 13px; }
.add-form details{ border-top: 1px solid var(--line); padding-top: 6px; }
.add-form summary{ min-height: 44px; padding: 8px 0; cursor: pointer; font-weight: 600; }
.add-form details .source-fields{ padding-bottom: 4px; }
.source-import{ display: grid; gap: 6px; min-width: 0; }
.source-import .secondary{ display: inline-flex; align-items: center; gap: 10px; margin: 0; }
.source-import .icon{ width: 18px; height: 18px; }
.source-import .field-hint:empty{ display: none; }
.source-import .field-hint[data-error="true"]{ color: var(--red); }
.review-note .secondary{ margin: 3px 0; }
.add-form button:disabled{ opacity: .55; cursor: wait; }
@media (max-width: 800px){.shared-heading{ grid-template-columns: minmax(0, 1fr); gap: 25px; }
.shared-save{ padding: 20px; }
.shared-save-mark{ display: none; }
.shared-save h2{ font-size: 25px; }
.shared-content .full-recipe{ grid-template-columns: minmax(0, 1fr); gap: 28px; }
}
@media (max-width: 660px){.shared-view{ padding-top: 27px; }
.shared-kicker{ font-size: 13px; margin-bottom: 14px; }
.shared-meta{ gap: 7px 12px; margin-top: 16px; font-size: 13px; }
.shared-source{ margin-top: 17px; }
.shared-heading{ margin-bottom: 25px; }
.login{ width: min(calc(100% - 36px), 460px); }
.login-card{ display: block; }
.login-content{ padding: 23px clamp(16px, 6vw, 28px); }
.login-illustration{ display: none; }
.brand-mark .icon{ width: 24px; height: 24px; }
.header-label{ font-size: 12px; padding-inline: 9px; }
.header-label .icon{ display: none; }
.intro{ min-height: 0; padding-block: 28px 22px; }
.intro p{ font-size: 15px; margin-top: 13px; }
.book-sketch{ display: none; }
.collection-tools{ grid-template-columns: minmax(0, 1fr); gap: 9px; }
.add-button{ justify-self: start; }
.collection-meta{ margin-block: 13px 10px; }
.result-count{ font-size: 13px; }
.full-recipe{ grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 360px){.intro h1{ font-size: 39px; }
}
@media (prefers-reduced-motion: reduce){}
@page{ size: A4; margin: 14mm 15mm; }
@media print{
  body.printing-recipe { margin: 0 !important; background: white !important; color: #222 !important; font: 10pt/1.5 Arial, sans-serif !important; overflow: visible !important; }
  body.printing-recipe > :not(#print-sheet) { display: none !important; }
  body.printing-recipe dialog::backdrop { display: none !important; }
  body.printing-recipe #print-sheet { display: block !important; }
  #print-sheet .print-header { padding-bottom: 8px; margin-bottom: 18px; border-bottom: 1px solid #666; font-size: 13pt; font-weight: 600; }
  #print-sheet h1 { margin: 0 0 9px; font: 700 28pt/1.1 Georgia, serif; letter-spacing: -.5px; }
  #print-sheet .print-meta { margin-bottom: 22px; font-size: 9pt; }
  #print-sheet .full-recipe { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); align-items: start; gap: 24px; padding: 0; border: 0; overflow-wrap: anywhere; }
  #print-sheet h2, #print-sheet h3 { margin: 17px 0 10px; font: 700 15pt/1.2 Georgia, serif; letter-spacing: 0; break-after: avoid; }
  #print-sheet h2:first-child, #print-sheet h3:first-child { margin-top: 0; }
  #print-sheet ul { list-style: none; padding: 0; margin: 0 0 12px; }
  #print-sheet ul li { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding: 6px 0; border-bottom: 1px solid #ddd; font-size: 8.5pt; line-height: 1.4; break-inside: avoid; }
  #print-sheet ul li strong { max-width: 46%; text-align: right; font-size: 8pt; font-weight: 400; }
  #print-sheet .recipe-qualification { margin-top: 8px; font-size: 7pt; line-height: 1.5; color: #444; }
  #print-sheet ol { padding: 0 0 0 18px; margin: 0; }
  #print-sheet ol li { padding: 0 0 10px 3px; margin: 0; font-size: 9pt; line-height: 1.6; break-inside: avoid; }
  #print-sheet .print-footer { margin-top: 24px; padding-top: 13px; border-top: 1px solid #999; font-size: 8pt; }
}
