:root {
  --ink: #182e29;
  --muted: #54665e;
  --green: #174a3b;
  --deep: #153e34;
  --leaf: #e6efe6;
  --line: #d6ddd4;
  --paper: #fffefa;
  --sand: #f2f2ec;
  --rust: #9c482d;
  --frame: max(20px, calc((100vw - 1460px) / 2));
  font-family: "Instrument Sans", "Noto Sans KR", "Malgun Gothic", sans-serif;
  color: var(--ink);
  background: var(--sand);
  font-size: 15px;
  line-height: 1.55;
  font-variant-numeric: tabular-nums;
}
.login-page .login-main { display: block; max-width: 410px; margin: 10vh auto; padding: 12px; }
.login-form { padding: 28px; }
.login-form h1 { margin: .2em 0 .8em; }
.login-form label { display: grid; gap: 4px; margin: 12px 0; }
.login-form button { width: 100%; }
.login-form [role=alert] { color: #913720; }
.related-apps .account-action { margin-left: auto; }
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
[hidden] {
  display: none !important;
}
.symbols {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
  pointer-events: none;
}
.icon {
  width: 18px;
  height: 18px;
  display: inline-block;
  flex-shrink: 0;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
  vertical-align: middle;
}
a {
  color: var(--green);
}
button,
.button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}
button,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.46em;
  min-height: 36px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 0.4em 0.9em;
  text-decoration: none;
  cursor: pointer;
}
button:hover,
.button:hover {
  border-color: #8fa697;
  background: #eef3eb;
}
button.primary,
.button.primary {
  background: var(--green);
  color: white;
  border-color: var(--green);
}
button.primary:hover {
  background: #0d382c;
}
button:disabled {
  opacity: 0.55;
  cursor: default;
}
:focus-visible {
  outline: 3px solid #c3833e;
  outline-offset: 3px;
}
input,
textarea,
select {
  background: #fff;
  border: 1px solid #bac8bd;
  border-radius: 6px;
  padding: 0.55em 0.7em;
  min-width: 0;
}
textarea {
  resize: vertical;
}
summary {
  cursor: pointer;
}
.muted,
small {
  color: var(--muted);
}
.icon-button {
  padding: 0;
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
}
.bar {
  height: 64px;
  padding: 0 var(--frame);
  border-bottom: 1px solid var(--line);
  background: #fffefa;
  display: flex;
  align-items: center;
  gap: clamp(20px, 4vw, 64px);
}
.identity {
  color: var(--ink);
  display: inline-flex;
  gap: 11px;
  align-items: center;
  text-decoration: none;
  white-space: nowrap;
  font-size: 1.17rem;
  letter-spacing: -0.05em;
}
.logo {
  display: grid;
  place-items: center;
  color: white;
  background: var(--deep);
  font:
    italic 800 26px/1 Georgia,
    serif;
  letter-spacing: -2.5px;
  border-radius: 10px 10px 10px 3px;
  width: 50px;
  height: 37px;
  padding-right: 3px;
  box-shadow: inset 0 -3px #b88c56;
}
.bar nav {
  align-self: stretch;
  display: flex;
  gap: 20px;
}
.bar nav button {
  position: relative;
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0 3px;
  color: var(--muted);
  font-weight: 600;
}
.bar nav button[aria-current="true"] {
  color: var(--deep);
  box-shadow: inset 0 -3px var(--green);
}
.kitchen {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  margin-left: auto;
  font-size: 0.86rem;
}
.kitchen .icon {
  width: 16px;
}
.related-apps {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px 8px;
  padding: 5px var(--frame);
  background: #e9eee8;
  border-bottom: 1px solid var(--line);
  font-size: .86rem;
}
.related-apps span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-right: 7px;
  color: var(--muted);
}
.related-apps a {
  display: inline-block;
  padding: 5px 8px;
  border-radius: 5px;
  font-weight: 600;
  text-decoration: none;
}
.related-apps a:hover, .related-apps a:focus-visible {
  text-decoration: underline;
}
.related-apps a[aria-current] {
  background: #fffefa;
  color: var(--deep);
}
.kitchen-view .related-apps { display: none; }
.scopes {
  padding: 9px var(--frame);
  background: #fafbf6;
  border-bottom: 1px solid var(--line);
}
.scope-row {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}
.scope-row + .scope-row {
  margin-top: 5px;
}
.scope-row h2 {
  color: var(--muted);
  flex: 0 0 65px;
  font-size: 0.78rem;
  margin: 0;
  font-weight: 650;
}
.scope-row [role="group"] {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}
.scope-row button {
  min-height: 31px;
  border: 1px solid transparent;
  background: transparent;
  padding: 3px 12px;
  font-size: 0.88rem;
  white-space: nowrap;
}
.scope-row button[aria-pressed="true"] {
  background: var(--green);
  color: #fff;
}
.scope-row button:hover {
  background: var(--leaf);
  color: var(--green);
}
#typeFilters button {
  color: var(--muted);
  font-size: 0.82rem;
}
#typeFilters button[aria-pressed="true"] {
  color: var(--green);
  background: var(--leaf);
  border-color: #b9ccbd;
}
#typeFilters button span {
  font-size: 0.74rem;
  color: inherit;
  opacity: 0.85;
}
main {
  margin: auto;
  max-width: 1500px;
  display: grid;
  grid-template-columns: clamp(235px, 20vw, 290px) minmax(0, 1fr);
  align-items: start;
  padding: 22px 20px 45px;
  gap: clamp(16px, 2vw, 32px);
}
aside,
.sheet,
.panel {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
}
aside {
  position: sticky;
  top: 12px;
  min-width: 0;
  padding: 16px 10px 7px;
  box-shadow: 0 3px 12px #1d3c2d06;
}
.aside-title,
.row-head,
.dialog-head,
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.aside-title {
  padding: 0 6px 10px;
}
.aside-title h2 {
  display: flex;
  align-items: center;
  gap: 0.45em;
  font-size: 1rem;
  margin: 0;
  letter-spacing: -0.045em;
}
#listCount {
  font-size: 0.76rem;
  color: #476657;
  font-weight: 600;
  background: var(--leaf);
  padding: 1px 7px;
  border-radius: 6px;
}
#browse {
  display: none;
}
#new {
  width: 31px;
  height: 31px;
  min-height: 31px;
}
.search {
  margin: 0 5px 8px;
  display: flex;
  align-items: center;
  gap: 0.45em;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7f8f3;
  padding: 0 0.65em;
  color: var(--muted);
}
.search:focus-within {
  border-color: var(--green);
}
.search input {
  width: 100%;
  background: transparent;
  border: 0;
  padding: 0.55em 0;
  font-size: 0.86rem;
}
#list {
  overflow-y: auto;
  overscroll-behavior: contain;
  max-height: calc(100dvh - 203px);
  scrollbar-width: thin;
  scrollbar-color: #bdc9bf transparent;
}
.group {
  font-size: 0.74rem;
  color: #576f61;
  font-weight: 650;
  margin: 15px 7px 4px;
  border-top: 1px solid #e3e8df;
  padding-top: 9px;
}
.group:first-child {
  border: 0;
  margin-top: 0;
}
.recipe-link {
  width: 100%;
  border: 1px solid transparent;
  border-radius: 8px;
  min-height: 45px;
  background: transparent;
  text-align: left;
  padding: 5px 7px;
  gap: 9px;
  justify-content: flex-start;
}
.recipe-link.current {
  background: #e5eee3;
  border-color: #c2d3c4;
  box-shadow: inset 3px 0 var(--green);
}
.recipe-link > .icon {
  width: 14px;
  color: var(--green);
  margin-left: auto;
}
.list-thumb {
  height: 34px;
  width: 34px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  overflow: hidden;
  flex-shrink: 0;
  background: #eef0e5;
  color: #607c64;
}
.list-thumb.pack {
  background: #f7ecdd;
  color: #885a2e;
}
.list-thumb.cook,
.list-thumb.prep {
  background: #e6edea;
  color: #46695b;
}
.list-thumb img {
  height: 100%;
  width: 100%;
  object-fit: cover;
}
.list-label {
  font-weight: 650;
  line-height: 1.33;
  font-size: 0.9rem;
  min-width: 0;
  overflow-wrap: anywhere;
}
.recipe-link small {
  display: block;
  margin-top: 3px;
  font-size: 0.71rem;
  font-weight: 450;
}
aside footer {
  margin: 8px 6px 0;
  padding-top: 6px;
  border-top: 1px solid var(--line);
  font-size: 0.69rem;
  letter-spacing: 0.02em;
  color: var(--muted);
}
.workspace {
  min-width: 0;
}
.sheet {
  overflow: hidden;
  box-shadow: 0 5px 22px #213f2c09;
}
.intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 43%);
  background: var(--deep);
  color: #fffef3;
  position: relative;
  border-bottom: 3px solid #be9964;
}
.intro.no-photo {
  grid-template-columns: 1fr;
}
.intro-copy {
  align-self: center;
  padding: clamp(19px, 2.1vw, 38px) clamp(18px, 2.5vw, 42px);
  min-width: 0;
}
.recipe-kicker {
  display: flex;
  align-items: center;
  gap: 7px;
  font-weight: 650;
  font-size: 0.81rem;
  color: #edcf98;
  flex-wrap: wrap;
}
.recipe-kicker .icon {
  width: 17px;
}
.edition {
  border-left: 1px solid #749184;
  padding-left: 11px;
  margin-left: 4px;
  color: #d0dfd3;
  font-size: 0.77rem;
  font-weight: 500;
}
.intro h1,
.page-head h1 {
  font-size: clamp(30px, 3.1vw, 51px);
  line-height: 1.18;
  letter-spacing: -0.06em;
  margin: 9px 0 5px;
  font-weight: 780;
  overflow-wrap: anywhere;
  word-break: keep-all;
}
.recipe-group {
  font-size: 0.9rem;
  color: #dde6dc;
  margin: 0;
}
.facts {
  display: flex;
  flex-wrap: wrap;
  gap: 9px 0;
  margin: 16px 0 0;
  padding-top: 11px;
  border-top: 1px solid #ffffff33;
}
.facts > div {
  padding: 0 15px;
  border-left: 1px solid #ffffff33;
}
.facts > div:first-child {
  padding-left: 0;
  border: 0;
}
.facts dt {
  font-size: 0.73rem;
  color: #c6d8c9;
  margin: 0 0 1px;
}
.facts dd {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 660;
  line-height: 1.45;
}
.gallery {
  min-width: 0;
  display: grid;
  align-content: center;
  position: relative;
  border-left: 1px solid #ffffff24;
  padding: 14px 18px;
  background: #10362d;
}
.gallery figure {
  margin: 0;
  min-width: 0;
}
.gallery figure button {
  position: relative;
  display: flex;
  justify-content: center;
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: 7px;
  overflow: hidden;
  background: #0b2c23;
  cursor: zoom-in;
}
.gallery figure button::before {
  content: "";
  position: absolute;
  inset: -14px;
  background: var(--photo) center / cover;
  filter: blur(15px);
  opacity: 0.42;
  pointer-events: none;
}
.gallery img {
  position: relative;
  display: block;
  width: 100%;
  height: clamp(142px, 13.2vw, 195px);
  object-fit: contain;
}
.zoom-mark {
  position: absolute;
  right: 7px;
  top: 7px;
  border: 1px solid #ffffff52;
  color: #fff;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  background: #12251dcc;
  border-radius: 6px;
}
.zoom-mark .icon {
  width: 14px;
}
.gallery figcaption {
  font-weight: 450;
  color: #e1e7dc;
  font-size: 0.73rem;
  line-height: 1.5;
  margin-top: 6px;
  overflow-wrap: anywhere;
}
.gallery:has(.photo-pages) figcaption {
  padding-right: 63px;
}
.photo-pages {
  position: absolute;
  right: 18px;
  bottom: 10px;
  display: flex;
  gap: 3px;
}
.photo-pages button {
  min-height: 24px;
  width: 24px;
  padding: 0;
  font-size: 0.72rem;
  border-color: #7b9686;
  background: #12392e;
  color: #e1ecdf;
}
.photo-pages button[aria-pressed="true"] {
  background: #f1e4cb;
  color: #243a2b;
  border-color: #f1e4cb;
}
.toolbar,
.actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.toolbar {
  padding: 10px clamp(16px, 2vw, 32px);
  border-bottom: 1px solid var(--line);
  background: #fafbf6;
}
.toolbar button {
  font-size: 0.87rem;
  font-weight: 600;
}
#edit {
  margin-left: auto;
}
.portion-section,
.reading-grid,
.record {
  margin: 0 clamp(16px, 2vw, 32px);
}
.portion-section {
  padding: 0;
  margin-top: 21px;
}
.section-head h2,
.block h2,
.panel h2 {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.14rem;
  letter-spacing: -0.035em;
}
.section-head h2 .icon,
.block h2 .icon {
  color: #79643d;
  width: 21px;
  height: 21px;
}
.section-head {
  margin-bottom: 10px;
  flex-wrap: wrap;
  gap: 1px 12px;
}
.section-head small {
  font-size: 0.76rem;
}
.portion-table {
  color: var(--ink);
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid #b8c9bc;
  border-radius: 9px;
  overflow: hidden;
  font-size: 0.98rem;
}
.portion-table caption {
  padding: 8px 0 5px;
  color: var(--green);
}
.portion-table th,
.portion-table td {
  border: 0;
  border-bottom: 1px solid #dbe3da;
  border-right: 1px solid #dbe3da;
  padding: 6px 10px;
  line-height: 1.5;
}
.portion-table th:last-child,
.portion-table td:last-child {
  border-right: 0;
}
.portion-table tbody tr:last-child > * {
  border-bottom: 0;
}
.portion-table thead th {
  color: #fff;
  background: #37614f;
  font-weight: 650;
  border-color: #75917e;
}
.portion-table thead th:first-child {
  background: #274b3e;
}
.portion-table thead th:has(button) {
  padding: 0;
}
.portion-table thead button {
  width: 100%;
  background: transparent;
  border: 0;
  min-height: 36px;
  border-radius: 0;
  color: inherit;
  font-weight: 700;
}
.portion-table thead button:hover {
  background: #ffffff1c;
}
.portion-table th.chosen-column {
  background: #885030;
}
.portion-table td.chosen-column {
  background: #fff0d9;
  color: #58341b;
  font-weight: 740;
}
.portion-table th button:focus-visible {
  outline-offset: -4px;
}
.portion-table tbody th {
  background: #eff3eb;
  color: #263e30;
}
.portion-table tbody td {
  background: #fffefa;
}
.portion-table td small {
  font-size: 0.74rem;
}
.unit-key {
  font-size: 0.73rem;
  color: var(--muted);
  margin-top: 5px;
}
.reading-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding: 19px 0 0;
  align-items: start;
}
.block {
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 16px;
  min-width: 0;
  overflow-wrap: anywhere;
  background: #fff;
}
.reading-column {
  display: grid;
  gap: 14px;
  min-width: 0;
}
.reading-column:only-child {
  grid-column: 1/-1;
}
.reader-notes {
  margin: 16px clamp(16px, 2vw, 32px) 0;
}
.recipe-jumps {
  display: none;
}
.pack .rule {
  display: grid;
  grid-template-columns: minmax(95px, 24%) 1fr;
  gap: 4px 14px;
}
.pack .rule-condition {
  grid-row: 1 / span 2;
}
.pack .rule-contents,
.pack .rule-exception {
  grid-column: 2;
}
.sheet .reading-grid section,
.portion-section {
  scroll-margin-top: 16px;
}
.kitchen-view .reading-grid section,
.kitchen-view .portion-section {
  scroll-margin-top: 108px;
}
.block h2 {
  margin-bottom: 11px;
}
.ingredients {
  width: 100%;
  border-collapse: collapse;
}
.ingredients th,
.ingredients td {
  border-bottom: 1px solid #dfe5db;
  text-align: left;
  padding: 6px 5px;
  vertical-align: top;
}
.ingredients tr:last-child td {
  border: 0;
}
.ingredients th {
  background: #edf2e9;
  color: #4d6655;
  font-size: 0.79rem;
}
.ingredients th:last-child,
.ingredients td:last-child {
  text-align: right;
}
.ingredients td:last-child {
  font-weight: 650;
}
.ingredients small {
  display: block;
  font-size: 0.73rem;
  font-weight: 400;
}
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: step;
}
.steps li {
  counter-increment: step;
  position: relative;
  min-height: 34px;
  padding: 3px 0 11px 34px;
  line-height: 1.65;
  white-space: pre-line;
}
.steps li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 11px;
  top: 28px;
  bottom: 0;
  border-left: 1px solid #d4dfce;
}
.steps li::before {
  content: counter(step);
  position: absolute;
  top: 0.25em;
  left: 0;
  background: #e5eee2;
  color: #345a40;
  width: 23px;
  height: 23px;
  border-radius: 7px;
  display: grid;
  place-items: center;
  font-weight: 750;
  font-size: 0.8rem;
}
.pack-block {
  background: #fffdf7;
  border-color: #dfd7c4;
}
.rule {
  padding: 10px 0;
  border-bottom: 1px solid #e6dfd1;
}
.rule:first-of-type {
  padding-top: 0;
}
.rule:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}
.rule-condition {
  font-size: 0.97rem;
  color: #354e3d;
}
.rule-contents {
  line-height: 1.6;
}
.rule-exception {
  margin-top: 0.35em;
}
.exception-label {
  background: #f3e2c3;
  color: #795325;
  border-radius: 3px;
  padding: 1px 5px;
  font-weight: 650;
}
.note-block {
  background: #faf5e9;
  border-color: #e4d8c2;
}
.note {
  white-space: pre-line;
  line-height: 1.65;
  margin: 0;
}
.record {
  border-top: 1px solid var(--line);
  padding: 12px 0 14px;
  margin-top: 16px;
  font-size: 0.83rem;
}
.record-actions {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  flex-wrap: wrap;
}
.record-actions button,
.record summary {
  color: var(--muted);
  background: none;
  border: 0;
  padding: 3px 0;
  min-height: 29px;
  font-size: 0.83rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.record .icon {
  width: 15px;
  height: 15px;
}
.record summary::-webkit-details-marker {
  display: none;
}
.record summary:hover,
.record-actions button:hover {
  color: var(--green);
  text-decoration: underline;
}
.downloads div {
  display: flex;
  gap: 15px;
  padding: 3px 0;
}
.record-source {
  margin-top: 3px;
}
.record-source summary span {
  font-weight: 650;
  color: var(--green);
}
.source-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin: 7px 0;
}
.source-row button {
  text-align: left;
  overflow-wrap: anywhere;
}
.order-credit,
.record-basis {
  display: block;
}
#notice:not(:empty) {
  background: #e0ecdf;
  border-left: 3px solid var(--green);
  padding: 9px 14px;
  margin-bottom: 10px;
  border-radius: 5px;
}
.error {
  color: #8b321f;
}
.panel {
  padding: clamp(18px, 2.6vw, 38px);
  min-width: 0;
}
.page-head {
  padding-bottom: 14px;
  margin-bottom: 18px;
  border-bottom: 2px solid var(--green);
}
.page-head h1,
.empty h1 {
  font-size: clamp(27px, 2.3vw, 37px);
  color: var(--deep);
  margin: 0;
}
.page-head p,
.edit-name {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}
.eyebrow {
  font-size: 0.81rem;
  color: var(--muted);
}
.editor .page-head h1 {
  margin-top: 5px;
}
.panel label,
dialog label {
  display: grid;
  gap: 4px;
  font-size: 0.85rem;
  color: var(--muted);
}
.field-grid,
.item-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 9px;
}
.field-grid input,
.item-grid input,
.item-grid select,
.item-grid textarea,
.field-grid select,
.panel textarea {
  width: 100%;
  min-width: 0;
}
.item-grid {
  background: #f5f7f0;
  border: 1px solid #dce4d7;
  padding: 11px;
  border-radius: 8px;
  margin: 8px 0;
}
.item-grid .wide {
  grid-column: 1/-1;
}
.edit-section {
  margin: 20px 0;
  padding-top: 13px;
  border-top: 1px solid var(--line);
}
.edit-section h3 {
  font-size: 1rem;
  margin: 2px 0 8px;
}
.edit-section .row-head {
  margin-bottom: 7px;
}
.danger {
  justify-self: end;
  color: var(--rust);
  font-size: 0.8rem;
}
.thumb {
  max-width: 170px;
  max-height: 115px;
  object-fit: contain;
}
.actions {
  position: sticky;
  bottom: 0;
  background: var(--paper);
  padding: 10px 0;
  border-top: 1px solid var(--line);
  margin-bottom: 0;
  z-index: 1;
}
.original {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  padding: 13px 0;
  gap: 12px;
}
.original > div {
  min-width: 0;
  overflow-wrap: anywhere;
}
.original-info {
  flex: 1;
}
.file-kind {
  display: grid;
  place-items: center;
  align-self: flex-start;
  flex: 0 0 44px;
  height: 44px;
  border-radius: 6px 12px 6px 6px;
  background: #e7edf0;
  color: #37576b;
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.025em;
}
.file-kind[data-format-name="XLSX"] {
  background: #e6efe4;
  color: #376448;
}
.file-kind[data-format-name="PPTX"] {
  background: #f7e8da;
  color: #8e492b;
}
.file-kind[data-format-name="TXT"] {
  background: #f0ece3;
  color: #64583c;
}
.original > button {
  flex: none;
  font-size: 0.86rem;
}
.original small {
  display: block;
}
.source-cards {
  margin-top: 4px;
  color: var(--green);
  font-size: 0.83rem;
}
.source-cards div {
  padding: 5px 0;
}
.source-cards button {
  margin: 2px;
  font-size: 0.83rem;
}
dialog {
  color: var(--ink);
  background: var(--paper);
  width: min(800px, 94vw);
  max-height: 90dvh;
  border: 1px solid #bbcabd;
  border-radius: 13px;
  padding: clamp(16px, 2vw, 28px);
  box-shadow: 0 20px 90px #14271d33;
}
dialog::backdrop {
  background: #152820ad;
}
.dialog-head {
  border-bottom: 1px solid var(--line);
  padding-bottom: 11px;
  margin-bottom: 12px;
}
.dialog-head h2 {
  font-size: 1.25rem;
  margin: 0;
  overflow-wrap: anywhere;
}
dialog iframe {
  width: 100%;
  height: 58vh;
  border: 1px solid var(--line);
}
dialog pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  line-height: 1.65;
}
dialog img {
  max-width: 100%;
  max-height: 360px;
  object-fit: contain;
}
dialog label {
  margin: 0.6rem 0;
}
dialog .check,
.style-tools {
  display: flex;
  align-items: center;
  gap: 0.5em;
  flex-wrap: wrap;
}
.style-tools input {
  width: 5.2em;
}
.enlarged {
  margin: 0;
  text-align: center;
}
.enlarged img {
  max-height: 68dvh;
}
.enlarged figcaption {
  color: var(--muted);
  font-size: 0.84rem;
}
.kitchen-view .bar,
.kitchen-view .scopes,
.kitchen-view aside,
.kitchen-view .toolbar #edit {
  display: none;
}
.kitchen-view main {
  display: block;
  max-width: 1220px;
  padding-top: 12px;
}
.kitchen-view .toolbar {
  position: sticky;
  top: 0;
  z-index: 2;
}
.kitchen-view .sheet {
  overflow: clip;
}
.kitchen-view .portion-table,
.kitchen-view .block {
  font-size: 1.12rem;
}
@media (max-width: 930px) {
  main {
    grid-template-columns: 215px minmax(0, 1fr);
    gap: 12px;
    padding: 14px;
  }
  .intro {
    grid-template-columns: minmax(0, 1fr) 40%;
  }
  .gallery {
    padding: 10px;
  }
  .photo-pages {
    right: 10px;
    bottom: 6px;
  }
  .reading-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 760px) {
  :root {
    --frame: 14px;
  }
  .bar {
    height: 53px;
    gap: 16px;
  }
  .bar nav {
    gap: 10px;
  }
  .bar nav button {
    font-size: 0.82rem;
  }
  .bar nav button .icon {
    width: 15px;
    height: 15px;
  }
  .identity {
    gap: 7px;
    font-size: 1rem;
  }
  .logo {
    font-size: 22px;
    width: 41px;
    height: 32px;
  }
  .kitchen {
    display: none;
  }
  .scopes {
    padding-block: 6px;
  }
  .scope-row {
    gap: 6px;
  }
  .scope-row h2 {
    font-size: 0.71rem;
    flex-basis: 49px;
  }
  .scope-row [role="group"] {
    min-width: 0;
    overflow-x: auto;
    flex-wrap: nowrap;
    scrollbar-width: thin;
    padding: 1px 2px 3px;
    scrollbar-color: #ccd6c9 transparent;
  }
  .scope-row + .scope-row {
    margin-top: 0;
  }
  .scope-row button,
  #typeFilters button {
    font-size: 0.8rem;
    padding: 3px 8px;
  }
  main {
    display: block;
    padding: 10px 10px 25px;
  }
  aside {
    position: static;
    border-radius: 9px;
    padding: 5px 8px;
    margin-bottom: 8px;
    box-shadow: none;
  }
  .aside-title {
    padding: 0;
    gap: 6px;
  }
  .aside-title h2 {
    font-size: 0.92rem;
  }
  #browse {
    display: inline-flex;
    margin-left: auto;
    border: 0;
    font-size: 0.8rem;
    min-height: 32px;
  }
  aside footer {
    display: none;
  }
  #catalog {
    display: none;
  }
  aside.browsing #catalog {
    display: block;
  }
  .search {
    margin: 6px 0;
  }
  #list {
    max-height: min(46dvh, 360px);
  }
  .sheet,
  .panel {
    border-radius: 10px;
  }
  .intro-copy {
    padding: 16px;
  }
  .intro h1 {
    font-size: clamp(25px, 5.5vw, 38px);
    margin-top: 7px;
  }
  .facts {
    margin-top: 10px;
    padding-top: 8px;
  }
  .facts > div {
    padding: 0 9px;
  }
  .facts dd {
    font-size: 0.85rem;
  }
  .gallery img {
    height: 120px;
  }
  .gallery figcaption {
    font-size: 0.68rem;
  }
  .toolbar {
    padding: 8px 12px;
    gap: 5px;
  }
  .toolbar button {
    font-size: 0.82rem;
    padding: 0.4em 0.7em;
  }
  .portion-section,
  .reading-grid,
  .record {
    margin-left: 13px;
    margin-right: 13px;
  }
  .portion-section {
    margin-top: 15px;
  }
  .section-head h2,
  .block h2 {
    font-size: 1.05rem;
  }
  .reading-grid {
    gap: 10px;
    padding-top: 12px;
  }
  .reader-notes {
    margin: 12px 13px 0;
  }
  .recipe-jumps {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 3px 13px;
    border-bottom: 1px solid var(--line);
  }
  .recipe-jumps button {
    border: 0;
    background: transparent;
    color: var(--green);
    font-size: 0.78rem;
    padding: 3px 1px;
    min-height: 30px;
  }
  .recipe-jumps .icon {
    width: 12px;
    height: 12px;
  }
  .pack .rule {
    display: block;
  }
  .block {
    padding: 13px;
  }
  .item-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .source-type {
    --type-scale: 0.88;
  }
  .original {
    gap: 6px;
  }
}
@media (max-width: 520px) {
  .intro {
    grid-template-columns: minmax(0, 1fr) 38%;
  }
  .intro-copy {
    padding: 13px 12px;
  }
  .gallery {
    padding: 7px;
  }
  .gallery img {
    height: 95px;
  }
  .gallery:has(.photo-pages) figcaption {
    padding-right: 0;
  }
  .photo-pages {
    position: static;
    justify-content: center;
    margin-top: 4px;
  }
  .gallery figcaption {
    line-height: 1.3;
  }
  .facts {
    display: grid;
    gap: 3px;
  }
  .facts > div {
    display: flex;
    gap: 6px;
    align-items: baseline;
    border: 0;
    padding: 0;
  }
  .facts dt {
    white-space: nowrap;
  }
  .recipe-kicker,
  .edition {
    font-size: 0.7rem;
  }
  .edition {
    margin: 0;
    padding-left: 6px;
  }
  .recipe-group {
    font-size: 0.78rem;
  }
  .section-head {
    display: block;
  }
  .section-head small {
    font-size: 0.72rem;
  }
  .portion-table th,
  .portion-table td {
    padding: 5px 4px;
  }
  .portion-table thead th:first-child,
  .portion-table tbody th {
    width: 30%;
  }
  .portion-table {
    font-size: 0.91rem;
  }
  .bar nav button .icon {
    display: none;
  }
}
@media (prefers-reduced-motion: no-preference) {
  .recipe-link,
  .toolbar button,
  .scope-row button {
    transition:
      background-color 0.12s,
      border-color 0.12s;
  }
}
