/* ============================================================
   DRY BUTTER — THE DAILY CRUMB
   هوية: كريمي الشعار + بني الشعار + ورق جرائد التغليف
   ============================================================ */
:root {
  --cream: #F8EFE0;        /* خلفية الشعار الفعلية */
  --cream-2: #F1E5D0;
  --paper: #FBF7EE;        /* ورق الجرائد */
  --paper-2: #F3EDE0;
  --brown: #764E37;        /* بني الشعار الفعلي */
  --brown-2: #5A3A29;
  --brown-deep: #3E2718;
  --ink: #1B1612;
  --ink-2: #3A322B;
  --mute: #8C7E70;
  --line: rgba(27, 22, 18, .16);
  --line-2: rgba(27, 22, 18, .34);
  --terracotta: #B8653D;   /* حافة الصينية */
  --red: #B3261E;          /* ختم نفد */
  --amber: #E0A24A;
  --ok: #3F7D4E;
  --radius: 6px;
  --shadow: 0 10px 30px rgba(62, 39, 24, .14);
  --font-ar: 'Beiruti', 'Segoe UI', Tahoma, sans-serif;
  --font-head: 'Fustat', 'Segoe UI', Tahoma, sans-serif;
  --font-np: 'Oswald', 'Arial Narrow', Impact, sans-serif;
  --font-latin: 'Playfair Display', Georgia, serif;
  --max: 1180px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--cream); color: var(--ink);
  font-family: var(--font-ar); font-size: 17.5px; line-height: 1.55; font-weight: 400;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; padding: 0; }
input, select { font: inherit; color: inherit; }
.num, [dir="ltr"] { direction: ltr; unicode-bidi: isolate; }
.hidden { display: none !important; }
.wrap { width: min(100% - 32px, var(--max)); margin-inline: auto; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- ايقونات ---------- */
.ic { width: 20px; height: 20px; display: inline-block; vertical-align: middle; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; flex: 0 0 auto; }

/* ---------- ازرار ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 14px 22px; border-radius: var(--radius); font-weight: 800; font-size: 17px; line-height: 1; transition: transform .15s ease, background .2s ease, box-shadow .2s ease; white-space: nowrap; text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--brown); color: var(--cream); box-shadow: 0 6px 18px rgba(118, 78, 55, .28); }
.btn-primary:hover { background: var(--brown-2); }
.btn-ink { background: var(--ink); color: var(--cream); }
.btn-outline { border: 1.5px solid var(--ink); color: var(--ink); background: transparent; }
.btn-outline:hover { background: rgba(27, 22, 18, .06); }
.btn-ghost { color: var(--brown); padding: 10px 12px; }
.btn-sm { padding: 10px 14px; font-size: 14px; }
.btn-lg { padding: 18px 28px; font-size: 18px; }
.btn[disabled] { opacity: .45; pointer-events: none; }

/* ---------- السعر ---------- */
.price { display: inline-flex; align-items: baseline; gap: 4px; font-family: var(--font-np); font-weight: 500; letter-spacing: .02em; }
.price b { font-size: 1.25em; font-weight: 500; direction: ltr; }
.price small { font-family: var(--font-ar); font-size: .72em; color: var(--mute); font-weight: 500; }

/* ---------- ورق الجرائد (مولد بـJS) ---------- */
.newsprint { position: relative; overflow: hidden; background: var(--paper); color: var(--ink); isolation: isolate; }
.newsprint::after { content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 2;
  background-image: radial-gradient(rgba(27, 22, 18, .14) .55px, transparent .7px); background-size: 3px 3px; opacity: .55; mix-blend-mode: multiply; }
.np-grid { position: absolute; inset: -6%; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px 18px; align-content: start; transform: rotate(-7deg); z-index: 1; }
.np-col { break-inside: avoid; padding: 2px 0; }
.np-h { font-family: var(--font-np); font-weight: 600; text-transform: uppercase; line-height: .92; letter-spacing: .01em; color: var(--ink); margin: 0 0 6px; direction: ltr; text-align: left; }
.np-h.s1 { font-size: 34px; } .np-h.s2 { font-size: 24px; } .np-h.s3 { font-size: 17px; font-weight: 500; }
.np-sub { font-family: var(--font-latin); font-style: italic; font-size: 11px; color: var(--ink-2); margin: 0 0 5px; direction: ltr; text-align: left; }
.np-l { height: 2.5px; background: rgba(27, 22, 18, .28); margin: 0 0 3.5px; border-radius: 2px; }
.np-l.w1 { width: 92%; } .np-l.w2 { width: 70%; } .np-l.w3 { width: 84%; } .np-l.w4 { width: 55%; }
.np-ill { width: 42px; height: 42px; margin: 4px 0 6px; color: var(--ink); opacity: .85; }
.np-rule { height: 1px; background: rgba(27, 22, 18, .45); margin: 6px 0 8px; }

/* ---------- الانترو: فتح ورق التغليف ---------- */
#intro { position: fixed; inset: 0; z-index: 90; perspective: 1400px; overflow: hidden; background: var(--brown-deep); }
#intro .flap { position: absolute; top: 0; bottom: 0; width: 50.5%; transform-style: preserve-3d; backface-visibility: hidden; box-shadow: 0 0 60px rgba(0, 0, 0, .25); }
#intro .flap.l { left: 0; transform-origin: left center; }
#intro .flap.r { right: 0; transform-origin: right center; }
#intro .flap .newsprint { position: absolute; inset: 0; }
#intro .flap.l::after, #intro .flap.r::after { content: ''; position: absolute; top: 0; bottom: 0; width: 70px; z-index: 3; pointer-events: none; }
#intro .flap.l::after { right: 0; background: linear-gradient(to left, rgba(27, 22, 18, .22), transparent); }
#intro .flap.r::after { left: 0; background: linear-gradient(to right, rgba(27, 22, 18, .22), transparent); }
#intro .seal { position: absolute; left: 50%; top: 50%; translate: -50% -50%; width: min(66vw, 300px); aspect-ratio: 1; border-radius: 50%; background: var(--cream); display: grid; place-items: center; z-index: 5; box-shadow: 0 18px 50px rgba(0, 0, 0, .35), inset 0 0 0 6px var(--cream), inset 0 0 0 8px var(--brown); cursor: pointer; }
#intro .seal img { width: 56%; height: 56%; object-fit: contain; border-radius: 50%; }
#intro .seal svg.ring { position: absolute; inset: 0; width: 100%; height: 100%; }
#intro .seal svg.ring text { font-family: var(--font-np); font-size: 15.5px; letter-spacing: .22em; fill: var(--brown); font-weight: 500; direction: ltr; unicode-bidi: bidi-override; }
#intro .seal .date { position: absolute; bottom: 17%; font-family: var(--font-head); font-size: 15px; color: var(--brown-2); font-weight: 700; }
#intro .hint { position: absolute; bottom: 7vh; left: 50%; translate: -50% 0; text-align: center; color: var(--cream); background: var(--ink); padding: 9px 16px; border-radius: 999px; font-size: 13.5px; font-weight: 600; z-index: 6; box-shadow: 0 8px 24px rgba(0, 0, 0, .25); }
#intro .tear { position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; background: repeating-linear-gradient(to bottom, rgba(27, 22, 18, .55) 0 8px, transparent 8px 14px); z-index: 4; translate: -50% 0; }
@media (prefers-reduced-motion: reduce) { #intro { display: none; } }

/* ---------- رأس الجريدة ---------- */
.masthead { background: var(--cream); padding: 14px 0 0; position: relative; z-index: 3; }
.mh-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 14px; font-weight: 700; color: var(--ink-2); padding-bottom: 8px; border-bottom: 1px solid var(--line-2); flex-wrap: wrap; letter-spacing: .01em; }
.mh-top .mh-mid { display: none; }
@media (min-width: 700px) { .mh-top .mh-mid { display: inline; } }
.mh-top .live { display: inline-flex; align-items: center; gap: 7px; font-weight: 600; }
.mh-top .live i { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 rgba(63, 125, 78, .5); animation: pulse 1.8s infinite; }
.mh-top .live.closed i { background: var(--red); animation: none; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(63, 125, 78, .55); } 70% { box-shadow: 0 0 0 8px rgba(63, 125, 78, 0); } 100% { box-shadow: 0 0 0 0 rgba(63, 125, 78, 0); } }
.mh-name { text-align: center; padding: 12px 0 10px; border-bottom: 3px double var(--ink); position: relative; }
.mh-name .en { font-family: var(--font-np); font-weight: 500; letter-spacing: .34em; font-size: 12px; color: var(--brown); text-transform: uppercase; direction: ltr; }
.mh-name h1 { margin: 0; padding: .02em 0 .26em; font-family: var(--font-head); font-weight: 700; font-size: clamp(58px, 12vw, 112px); line-height: 1.1; color: var(--ink); }
.mh-name .sub { font-family: var(--font-np); font-size: 12px; letter-spacing: .3em; color: var(--ink-2); text-transform: uppercase; direction: ltr; margin-top: 6px; }
.mh-name .logo { position: absolute; inset-inline-start: 0; top: 50%; translate: 0 -50%; width: 64px; height: 64px; border-radius: 50%; object-fit: cover; border: 2px solid var(--brown); background: var(--cream); display: none; }
.mh-nav { display: flex; gap: 4px; justify-content: center; padding: 8px 0; border-bottom: 1px solid var(--line-2); font-size: 15.5px; font-weight: 700; flex-wrap: wrap; }
.mh-nav a { text-decoration: none; padding: 6px 12px; border-radius: 4px; color: var(--ink-2); }
.mh-nav a:hover { background: rgba(27, 22, 18, .06); color: var(--ink); }
@media (max-width: 480px) { .mh-nav { font-size: 14px; gap: 0; } .mh-nav a { padding: 6px 8px; } }
@media (min-width: 900px) { .mh-name .logo { display: block; } .mh-top { font-size: 13.5px; } }

/* ---------- الصفحة الاولى (الهيرو) ---------- */
.front { padding: 18px 0 10px; }
.front-grid { display: grid; gap: 18px; }
.front-photo { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; background: var(--paper-2); box-shadow: var(--shadow); }
.front-photo img { width: 100%; height: 100%; object-fit: cover; }
.front-photo .cap { position: absolute; inset-inline: 0; bottom: 0; padding: 14px 16px; background: linear-gradient(to top, rgba(27, 22, 18, .72), transparent); color: var(--cream); font-size: 13px; display: flex; justify-content: space-between; align-items: end; gap: 10px; }
.front-photo .cap b { font-family: var(--font-np); font-weight: 500; letter-spacing: .12em; text-transform: uppercase; direction: ltr; }
.front-text { display: flex; flex-direction: column; gap: 12px; }
.kicker { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 800; color: var(--brown); letter-spacing: .01em; }
.kicker::before { content: ''; width: 26px; height: 2px; background: var(--brown); }
.front h2 { margin: 0; font-family: var(--font-head); font-weight: 700; font-size: clamp(30px, 6.4vw, 54px); line-height: 1.45; color: var(--ink); }
.front h2 .n { font-family: var(--font-np); font-weight: 500; font-size: .9em; }
.front .dek { margin: 0; font-size: 18px; color: var(--ink-2); max-width: 46ch; }
.front .cta { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 6px; }
.front .cta .btn { flex: 1 1 180px; }
@media (min-width: 900px) { .front { padding: 28px 0 14px; } .front-grid { grid-template-columns: 1.05fr 1fr; align-items: center; gap: 36px; } .front-photo { aspect-ratio: 5 / 4; } }

/* ---------- عناوين الاقسام ---------- */
.sec { padding: 34px 0 10px; }
.sec-h { display: flex; align-items: end; justify-content: space-between; gap: 14px; border-bottom: 2px solid var(--ink); padding-bottom: 8px; margin-bottom: 16px; }
.sec-h h3 { margin: 0; font-family: var(--font-head); font-weight: 700; font-size: clamp(28px, 6vw, 42px); line-height: 1.35; }
.sec-h .en { font-family: var(--font-np); font-size: 12px; letter-spacing: .3em; color: var(--brown); text-transform: uppercase; direction: ltr; display: block; margin-bottom: 0; }
.sec-h .aside { font-size: 14px; color: var(--mute); white-space: nowrap; font-weight: 700; }

/* ---------- ساعة الفرن ---------- */
.oven { position: relative; }
.oven-rail { position: relative; height: 4px; background: var(--line); border-radius: 2px; margin: 10px 2px 6px; overflow: visible; }
.oven-rail .fill { position: absolute; inset-inline-start: 0; top: 0; bottom: 0; background: var(--brown); border-radius: 2px; transition: width .6s ease; }
.oven-rail .now { position: absolute; top: 50%; translate: 50% -50%; width: 14px; height: 14px; border-radius: 50%; background: var(--cream); border: 3px solid var(--brown); box-shadow: 0 0 0 4px rgba(118, 78, 55, .18); transition: inset-inline-start .6s ease; }
html[dir="rtl"] .oven-rail .now { translate: 50% -50%; }
.oven-rail .now::after { content: attr(data-t); position: absolute; top: 18px; left: 50%; translate: -50% 0; font-family: var(--font-np); font-size: 12px; letter-spacing: .06em; color: var(--brown); white-space: nowrap; direction: ltr; }
.oven-track { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x proximity; padding: 26px 2px 14px; scrollbar-width: none; }
.oven-track::-webkit-scrollbar { display: none; }
.batch { flex: 0 0 150px; scroll-snap-align: center; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 12px 12px; text-align: center; position: relative; transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.batch .t { font-family: var(--font-np); font-size: 15px; letter-spacing: .08em; color: var(--ink-2); direction: ltr; }
.batch .pic { width: 86px; height: 86px; border-radius: 50%; object-fit: cover; margin: 8px auto 8px; border: 2px solid var(--cream-2); background: var(--cream-2); }
.batch .ph { display: grid; place-items: center; font-family: var(--font-np); font-size: 11px; letter-spacing: .1em; color: var(--mute); }
.batch .n { font-weight: 800; font-size: 15.5px; line-height: 1.3; min-height: 2.6em; display: flex; align-items: center; justify-content: center; }
.batch .st { margin-top: 8px; font-size: 12.5px; font-weight: 600; padding: 5px 9px; border-radius: 999px; display: inline-block; }
.batch.done .st { background: rgba(63, 125, 78, .12); color: var(--ok); }
.batch.baking .st { background: rgba(224, 162, 74, .2); color: #8a5a12; }
.batch.next .st { background: rgba(27, 22, 18, .06); color: var(--ink-2); }
.batch.baking { border-color: var(--amber); box-shadow: 0 0 0 3px rgba(224, 162, 74, .25); }
.batch.latest { border-color: var(--brown); box-shadow: var(--shadow); transform: translateY(-4px); }
.batch.latest::before { content: 'طلع الحين'; position: absolute; top: -12px; inset-inline-start: 50%; translate: 50% 0; background: var(--brown); color: var(--cream); font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 999px; }
.batch .lbl { font-size: 11px; color: var(--mute); margin-top: 2px; }

/* ---------- المنيو (بطاقات) ---------- */
.chips { position: sticky; top: 0; z-index: 20; background: var(--cream); padding: 10px 0; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid var(--line); margin-bottom: 8px; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: 0 0 auto; padding: 8px 15px; border-radius: 999px; border: 1px solid var(--line-2); font-size: 15px; font-weight: 700; color: var(--ink-2); background: transparent; transition: background .2s, color .2s; }
.chip.on, .chip:hover { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.cat-block { padding: 10px 0 6px; }
.cat-h { display: flex; align-items: baseline; gap: 10px; margin: 8px 0 12px; }
.cat-h h4 { margin: 0; font-family: var(--font-head); font-size: 28px; font-weight: 700; line-height: 1.4; }
.cat-h .en { font-family: var(--font-np); font-size: 11px; letter-spacing: .26em; color: var(--brown); text-transform: uppercase; direction: ltr; }
.cat-h .cnt { margin-inline-start: auto; font-size: 12px; color: var(--mute); }
.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 700px) { .grid { grid-template-columns: repeat(3, 1fr); gap: 16px; } }
@media (min-width: 1000px) { .grid { grid-template-columns: repeat(4, 1fr); } }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; position: relative; transition: transform .2s ease, box-shadow .2s ease; }
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.card .img { aspect-ratio: 5 / 4; background: var(--cream-2); position: relative; overflow: hidden; }
.card .img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.card:hover .img img { transform: scale(1.04); }
.card .img .ph { position: absolute; inset: 0; display: grid; place-items: center; padding: 12px; text-align: center; font-family: var(--font-np); font-size: 18px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); line-height: 1; direction: ltr; }
.card .body { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.card .nm { font-weight: 800; font-size: 17px; line-height: 1.3; }
.card .en { font-family: var(--font-np); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--mute); direction: ltr; text-align: start; }
.card .note { font-size: 11.5px; color: var(--mute); }
.card .row { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 8px; gap: 8px; }
.card .add { width: 38px; height: 38px; border-radius: 50%; background: var(--brown); color: var(--cream); display: grid; place-items: center; transition: background .2s, transform .15s; }
.card .add:hover { background: var(--brown-2); }
.card .add:active { transform: scale(.92); }
.card .add.in { background: var(--ok); }
.card.out .img img { filter: grayscale(.9) contrast(.9); opacity: .55; }
.card.out .add { display: none; }
.card .fresh { position: absolute; top: 10px; inset-inline-start: 10px; z-index: 2; background: var(--cream); color: var(--brown-2); font-size: 11px; font-weight: 700; padding: 4px 8px; border-radius: 999px; display: inline-flex; align-items: center; gap: 5px; box-shadow: 0 2px 8px rgba(0, 0, 0, .12); }
.card .fresh .ic { width: 13px; height: 13px; }
.card .spec { position: absolute; top: 10px; inset-inline-end: 10px; z-index: 2; background: var(--amber); color: var(--ink); font-size: 11px; font-weight: 700; padding: 4px 8px; border-radius: 999px; }
.card .nop { font-size: 12px; color: var(--red); font-weight: 600; }

/* ختم «نفد» */
.stamp { position: absolute; z-index: 3; inset-inline-start: 50%; top: 42%; translate: 50% -50%; rotate: -14deg; border: 3px solid var(--red); color: var(--red); font-family: var(--font-head); font-weight: 700; font-size: 30px; line-height: 1.3; padding: 2px 16px 6px; border-radius: 4px; letter-spacing: .04em; background: rgba(251, 247, 238, .55); mix-blend-mode: multiply; box-shadow: inset 0 0 0 1.5px rgba(251, 247, 238, .8), 0 0 0 1.5px var(--red); pointer-events: none; }
html[dir="rtl"] .stamp { translate: 50% -50%; }

/* ---------- باني العلبة ---------- */
.boxb { display: grid; gap: 18px; }
@media (min-width: 900px) { .boxb { grid-template-columns: 1fr 1fr; align-items: start; } }
.box-wrap { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.box-sizes { display: flex; gap: 8px; margin-bottom: 12px; }
.box-sizes .chip { font-family: var(--font-np); letter-spacing: .06em; direction: ltr; }
.box { position: relative; background: linear-gradient(180deg, #F6EBD6, #EADBC2); border: 3px solid var(--brown); border-radius: 10px; padding: 12px; box-shadow: inset 0 6px 18px rgba(118, 78, 55, .14), var(--shadow); }
.box::before { content: 'DRY BUTTER · BAKERY HOUSE · CRAFTED WITH BUTTER & LOVE'; position: absolute; top: -12px; inset-inline-start: 14px; background: var(--brown); color: var(--cream); font-family: var(--font-np); font-size: 10px; letter-spacing: .18em; padding: 3px 10px; border-radius: 999px; direction: ltr; }
.slots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.slots.s12 { grid-template-columns: repeat(4, 1fr); }
.slot { aspect-ratio: 1; border-radius: 50%; border: 2px dashed rgba(118, 78, 55, .45); display: grid; place-items: center; position: relative; overflow: hidden; background: rgba(255, 255, 255, .35); transition: border-color .2s, transform .2s; }
.slot.over { border-color: var(--brown); transform: scale(1.06); background: rgba(118, 78, 55, .12); }
.slot img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; animation: drop .35s cubic-bezier(.2, .9, .3, 1.3); }
.slot.full { border-style: solid; border-color: var(--brown); cursor: pointer; }
.slot .x { position: absolute; top: 4px; inset-inline-end: 4px; width: 20px; height: 20px; border-radius: 50%; background: var(--ink); color: var(--cream); display: grid; place-items: center; opacity: 0; transition: opacity .2s; }
.slot.full:hover .x { opacity: 1; }
.slot .idx { font-family: var(--font-np); color: rgba(118, 78, 55, .5); font-size: 13px; }
@keyframes drop { from { transform: scale(.4) translateY(-30px); opacity: 0; } to { transform: none; opacity: 1; } }
.box-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; flex-wrap: wrap; }
.box-foot .sum { font-size: 14px; color: var(--ink-2); }
.shelf-h { font-weight: 700; margin: 0 0 8px; font-size: 15px; display: flex; justify-content: space-between; align-items: center; }
.shelf-h span { font-size: 12px; color: var(--mute); font-weight: 500; }
.shelf { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
@media (min-width: 520px) { .shelf { grid-template-columns: repeat(4, 1fr); } }
.sh { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 8px; text-align: center; cursor: grab; user-select: none; touch-action: none; transition: transform .15s, box-shadow .2s; position: relative; }
.sh:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.sh:active { cursor: grabbing; }
.sh img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; margin: 0 auto 6px; pointer-events: none; }
.sh .ph { width: 64px; height: 64px; border-radius: 50%; margin: 0 auto 6px; background: var(--cream-2); display: grid; place-items: center; font-family: var(--font-np); font-size: 10px; color: var(--mute); }
.sh .n { font-size: 12.5px; font-weight: 600; line-height: 1.25; min-height: 2.5em; }
.sh .p { font-size: 12px; color: var(--brown); font-family: var(--font-np); direction: ltr; }
.sh.out { opacity: .4; pointer-events: none; }
.drag-ghost { position: fixed; z-index: 100; width: 64px; height: 64px; border-radius: 50%; object-fit: cover; pointer-events: none; box-shadow: var(--shadow); translate: -50% -50%; }

/* ---------- طلب الفجر ---------- */
.dawn { margin-top: 30px; background: linear-gradient(180deg, #1A1A2B 0%, #3A2A3C 45%, #B86A3D 85%, #E7B46A 100%); color: var(--cream); border-radius: 10px; padding: 28px 20px; position: relative; overflow: hidden; }
.dawn::before { content: ''; position: absolute; inset-inline-end: -40px; bottom: -80px; width: 220px; height: 220px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 220, 150, .9), rgba(255, 190, 90, .2) 60%, transparent 70%); }
.dawn .kicker { color: #F3D9A8; }
.dawn .kicker::before { background: #F3D9A8; }
.dawn h3 { margin: 6px 0 8px; font-family: var(--font-head); font-size: clamp(26px, 6vw, 42px); line-height: 1.5; font-weight: 700; }
.dawn p { margin: 0 0 16px; max-width: 48ch; color: rgba(248, 239, 224, .9); }
.dawn .slots-t { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.dawn .slots-t .chip { border-color: rgba(248, 239, 224, .5); color: var(--cream); font-family: var(--font-np); letter-spacing: .06em; direction: ltr; }
.dawn .slots-t .chip.on { background: var(--cream); color: var(--ink); border-color: var(--cream); }
.dawn .plate { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.dawn .plate input { background: rgba(255, 255, 255, .12); border: 1px solid rgba(248, 239, 224, .4); color: var(--cream); padding: 12px 14px; border-radius: var(--radius); font-family: var(--font-np); letter-spacing: .14em; font-size: 16px; width: 170px; text-transform: uppercase; }
.dawn .plate input::placeholder { color: rgba(248, 239, 224, .55); letter-spacing: .08em; }
.dawn .steps { display: grid; gap: 10px; margin-top: 18px; font-size: 13.5px; }
@media (min-width: 700px) { .dawn { padding: 36px 32px; } .dawn .steps { grid-template-columns: repeat(3, 1fr); } }
.dawn .steps div { display: flex; gap: 10px; align-items: start; color: rgba(248, 239, 224, .92); }
.dawn .steps b { font-family: var(--font-np); font-size: 22px; line-height: 1; color: #F3D9A8; }

/* ---------- جاي؟ ---------- */
.visit { display: grid; gap: 14px; margin-top: 10px; }
@media (min-width: 900px) { .visit { grid-template-columns: 1.2fr 1fr; align-items: start; } }
.visit .card-v { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.visit .card-v h4 { margin: 0 0 6px; font-family: var(--font-head); font-size: 26px; }
.visit .row { display: flex; gap: 10px; align-items: center; color: var(--ink-2); font-size: 14.5px; margin: 6px 0; }
.visit .cta { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.visit .cover { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; }
.visit .cover img { width: 100%; height: 100%; object-fit: cover; }
.hours-tbl { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; font-size: 14px; margin-top: 8px; }
.hours-tbl b { font-family: var(--font-np); font-weight: 500; letter-spacing: .06em; direction: ltr; text-align: left; }

/* ---------- تذييل ---------- */
footer { margin-top: 36px; border-top: 3px double var(--ink); padding: 20px 0 110px; text-align: center; color: var(--ink-2); font-size: 13px; }
footer .en { font-family: var(--font-np); letter-spacing: .3em; font-size: 11px; color: var(--brown); text-transform: uppercase; direction: ltr; }
footer .links { display: flex; justify-content: center; gap: 14px; margin-top: 8px; flex-wrap: wrap; }
footer .links a { text-decoration: none; font-weight: 600; }

/* ---------- سلة الطلب (شريط + ورقة) ---------- */
.tray { position: fixed; inset-inline: 12px; bottom: 12px; z-index: 60; background: var(--ink); color: var(--cream); border-radius: 12px; padding: 10px 10px 10px 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; box-shadow: 0 16px 40px rgba(27, 22, 18, .35); transform: translateY(130%); transition: transform .35s cubic-bezier(.2, .9, .3, 1.1); max-width: 560px; margin-inline: auto; }
.tray.show { transform: none; }
.tray .info { display: flex; flex-direction: column; line-height: 1.25; }
.tray .info small { font-size: 12px; color: rgba(248, 239, 224, .7); }
.tray .info b { font-size: 15px; }
.tray .btn { background: var(--cream); color: var(--ink); padding: 12px 18px; }
.sheet-bg { position: fixed; inset: 0; background: rgba(27, 22, 18, .5); z-index: 70; opacity: 0; pointer-events: none; transition: opacity .3s; backdrop-filter: blur(2px); }
.sheet-bg.show { opacity: 1; pointer-events: auto; }
.sheet { position: fixed; inset-inline: 0; bottom: 0; z-index: 71; background: var(--cream); border-radius: 18px 18px 0 0; max-height: 92vh; display: flex; flex-direction: column; transform: translateY(105%); transition: transform .4s cubic-bezier(.2, .9, .3, 1); max-width: 640px; margin-inline: auto; box-shadow: 0 -20px 60px rgba(27, 22, 18, .3); }
.sheet.show { transform: none; }
.sheet .hd { padding: 14px 18px 10px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.sheet .hd h4 { margin: 0; font-family: var(--font-head); font-size: 24px; }
.sheet .hd .x { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: rgba(27, 22, 18, .06); }
.steps-i { display: flex; gap: 6px; padding: 10px 18px 0; }
.steps-i i { flex: 1; height: 3px; border-radius: 2px; background: var(--line); }
.steps-i i.on { background: var(--brown); }
.sheet .bd { padding: 14px 18px; overflow: auto; flex: 1; }
.sheet .ft { padding: 12px 18px calc(14px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); display: flex; gap: 10px; align-items: center; justify-content: space-between; }
.sheet .ft .tot { display: flex; flex-direction: column; line-height: 1.2; }
.sheet .ft .tot small { font-size: 12px; color: var(--mute); }
.line { display: flex; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.line img, .line .ph { width: 54px; height: 54px; border-radius: 8px; object-fit: cover; background: var(--cream-2); flex: 0 0 auto; }
.line .ph { display: grid; place-items: center; font-family: var(--font-np); font-size: 10px; color: var(--mute); }
.line .t { flex: 1; min-width: 0; }
.line .t b { display: block; font-size: 14.5px; }
.line .t small { color: var(--mute); font-size: 12px; display: block; }
.line select { margin-top: 4px; font-size: 12.5px; padding: 4px 8px; border: 1px solid var(--line-2); border-radius: 4px; background: var(--paper); }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line-2); border-radius: 999px; overflow: hidden; }
.qty button { width: 32px; height: 32px; display: grid; place-items: center; }
.qty button:hover { background: rgba(27, 22, 18, .06); }
.qty b { width: 26px; text-align: center; font-family: var(--font-np); direction: ltr; }
.modes { display: grid; gap: 10px; }
.mode { border: 1.5px solid var(--line-2); border-radius: var(--radius); padding: 14px; display: flex; gap: 12px; align-items: start; cursor: pointer; background: var(--paper); transition: border-color .2s, background .2s; }
.mode:hover { border-color: var(--brown); }
.mode.on { border-color: var(--brown); background: #F3E8D8; box-shadow: inset 0 0 0 1px var(--brown); }
.mode .ic { width: 26px; height: 26px; color: var(--brown); margin-top: 2px; }
.mode b { display: block; font-size: 15.5px; }
.mode small { color: var(--ink-2); font-size: 13px; display: block; }
.mode .ext { margin-top: 10px; display: none; gap: 8px; flex-wrap: wrap; }
.mode.on .ext { display: flex; }
.mode input { padding: 10px 12px; border: 1px solid var(--line-2); border-radius: var(--radius); background: var(--cream); min-width: 0; }
.mode input.plate { font-family: var(--font-np); letter-spacing: .14em; text-transform: uppercase; width: 150px; }
.mode .chip { padding: 6px 12px; font-size: 13px; }
.field { display: flex; flex-direction: column; gap: 6px; margin: 12px 0; font-size: 14px; font-weight: 600; }
.field input { padding: 12px 14px; border: 1px solid var(--line-2); border-radius: var(--radius); background: var(--paper); font-weight: 500; }
.pay { display: grid; gap: 10px; margin-top: 10px; }
.pay-btn { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 15px; border-radius: var(--radius); font-weight: 700; font-size: 16px; border: 1.5px solid var(--ink); }
.pay-btn.apple { background: #000; color: #fff; border-color: #000; font-family: -apple-system, 'Segoe UI', sans-serif; letter-spacing: -.01em; }
.pay-btn.apple .ic { width: 22px; height: 22px; stroke: none; fill: #fff; }
.pay-btn.mada { background: var(--paper); }
.pay-btn.mada .mada { font-family: var(--font-np); font-weight: 600; letter-spacing: .1em; color: #1B6F8A; direction: ltr; }
.summary { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; font-size: 14px; display: grid; gap: 6px; }
.summary div { display: flex; justify-content: space-between; }
.summary .big { font-size: 17px; font-weight: 700; border-top: 1px solid var(--line); padding-top: 8px; margin-top: 2px; }
.done { text-align: center; padding: 10px 0 20px; }
.done .num { font-family: var(--font-np); font-size: 64px; line-height: 1; color: var(--brown); letter-spacing: .04em; direction: ltr; }
.done h4 { margin: 8px 0 4px; font-family: var(--font-head); font-size: 30px; }
.done p { color: var(--ink-2); margin: 0 0 14px; }
.done .cta { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.toast { position: fixed; left: 50%; bottom: 90px; translate: -50% 0; background: var(--ink); color: var(--cream); padding: 10px 16px; border-radius: 999px; font-size: 14px; font-weight: 600; z-index: 80; opacity: 0; transition: opacity .25s, translate .25s; pointer-events: none; white-space: nowrap; }
.toast.show { opacity: 1; translate: -50% -6px; }

/* ============================================================
   منيو المحل (QR)
   ============================================================ */
.qr-head { background: var(--cream); padding: 12px 0 8px; border-bottom: 3px double var(--ink); }
.qr-head .top { display: flex; align-items: center; gap: 12px; }
.qr-head img { width: 54px; height: 54px; border-radius: 50%; border: 2px solid var(--brown); }
.qr-head h1 { margin: 0; font-family: var(--font-head); font-size: 30px; line-height: 1; }
.qr-head .en { font-family: var(--font-np); font-size: 10.5px; letter-spacing: .3em; color: var(--brown); direction: ltr; text-align: start; }
.qr-head .st { margin-inline-start: auto; font-size: 12.5px; font-weight: 600; display: inline-flex; gap: 6px; align-items: center; }
.live-strip { background: var(--ink); color: var(--cream); font-size: 13.5px; padding: 9px 0; overflow: hidden; white-space: nowrap; }
.live-strip .in { display: inline-flex; gap: 28px; padding-inline-start: 100%; animation: ticker 28s linear infinite; }
.live-strip .in span { display: inline-flex; gap: 8px; align-items: center; }
.live-strip .in b { color: var(--amber); font-family: var(--font-np); font-weight: 500; letter-spacing: .06em; direction: ltr; }
@keyframes ticker { to { transform: translateX(100%); } }
html[dir="rtl"] .live-strip .in { padding-inline-start: 100%; animation-name: ticker-rtl; }
@keyframes ticker-rtl { to { transform: translateX(100%); } }
.qr-list .cat-block { padding: 6px 0 2px; }
.qr-item { display: flex; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px dashed var(--line); position: relative; }
.qr-item img, .qr-item .ph { width: 72px; height: 72px; border-radius: 8px; object-fit: cover; background: var(--cream-2); flex: 0 0 auto; }
.qr-item .ph { display: grid; place-items: center; font-family: var(--font-np); font-size: 10px; color: var(--mute); text-align: center; padding: 4px; line-height: 1.1; }
.qr-item .t { flex: 1; min-width: 0; }
.qr-item .t b { display: block; font-size: 15.5px; }
.qr-item .t .en { font-family: var(--font-np); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--mute); direction: ltr; text-align: start; }
.qr-item .t .note { font-size: 11.5px; color: var(--mute); }
.qr-item .dots { flex: 1; border-bottom: 2px dotted var(--line-2); height: 1px; align-self: end; margin-bottom: 14px; min-width: 20px; }
.qr-item .price { font-size: 16px; }
.qr-item.out { opacity: .55; }
.qr-item.out .price { text-decoration: line-through; }
.qr-item .stamp { font-size: 22px; top: 50%; inset-inline-start: auto; inset-inline-end: 90px; translate: 0 -50%; }
.qr-item .fresh { position: absolute; top: 8px; inset-inline-start: 4px; background: var(--brown); color: var(--cream); font-size: 10px; font-weight: 700; padding: 2px 7px; border-radius: 999px; }
.qr-special { margin: 12px 0 4px; background: var(--amber); color: var(--ink); padding: 12px 14px; border-radius: var(--radius); display: flex; gap: 12px; align-items: center; }
.qr-special b { font-family: var(--font-head); font-size: 20px; }
.qr-foot { text-align: center; padding: 24px 0 40px; color: var(--mute); font-size: 12.5px; }

/* ============================================================
   الشاشة الثابتة بالمحل (تلفزيون)
   ============================================================ */
body.board { background: var(--paper); overflow: hidden; height: 100vh; width: 100vw; cursor: none; }
.bd-wrap { display: grid; grid-template-rows: auto 1fr auto; height: 100vh; padding: 1.6vh 2vw 0; gap: 1.2vh; }
.bd-mast { display: flex; align-items: end; justify-content: space-between; border-bottom: .5vh double var(--ink); padding-bottom: .8vh; }
.bd-mast .nm { display: flex; align-items: center; gap: 1.4vw; }
.bd-mast img { width: 7vh; height: 7vh; border-radius: 50%; border: .3vh solid var(--brown); }
.bd-mast h1 { margin: 0; font-family: var(--font-head); font-size: 6.4vh; line-height: 1; }
.bd-mast .en { font-family: var(--font-np); letter-spacing: .34em; font-size: 1.6vh; color: var(--brown); direction: ltr; text-align: start; }
.bd-mast .clock { text-align: end; }
.bd-mast .clock b { font-family: var(--font-np); font-size: 6vh; line-height: 1; letter-spacing: .06em; direction: ltr; display: block; font-weight: 500; }
.bd-mast .clock small { font-size: 1.9vh; color: var(--ink-2); }
.bd-body { display: grid; grid-template-columns: 30% 1fr; gap: 2vw; min-height: 0; }
.bd-oven { background: var(--ink); color: var(--cream); border-radius: 1.2vh; padding: 1.8vh 1.6vw; display: flex; flex-direction: column; min-height: 0; }
.bd-oven h2 { margin: 0 0 1vh; font-family: var(--font-head); font-size: 4.2vh; display: flex; align-items: center; gap: 1vw; }
.bd-oven h2 .ic { width: 3.6vh; height: 3.6vh; color: var(--amber); }
.bd-b { display: flex; align-items: center; gap: 1vw; padding: 1.1vh 0; border-bottom: 1px solid rgba(248, 239, 224, .14); }
.bd-b img, .bd-b .ph { width: 6.6vh; height: 6.6vh; border-radius: 50%; object-fit: cover; background: #2a2420; flex: 0 0 auto; }
.bd-b .t { flex: 1; min-width: 0; }
.bd-b .t b { display: block; font-size: 2.5vh; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bd-b .t small { font-size: 1.8vh; color: rgba(248, 239, 224, .7); }
.bd-b .tm { font-family: var(--font-np); font-size: 3vh; letter-spacing: .06em; direction: ltr; font-weight: 500; }
.bd-b.done .tm { color: #9BD3A6; }
.bd-b.baking { background: rgba(224, 162, 74, .14); margin-inline: -1.6vw; padding-inline: 1.6vw; border-radius: .8vh; }
.bd-b.baking .tm { color: var(--amber); }
.bd-b.next { opacity: .62; }
.bd-b .lbl { font-size: 1.6vh; padding: .3vh .8vh; border-radius: 99px; background: rgba(248, 239, 224, .12); white-space: nowrap; }
.bd-b.baking .lbl { background: var(--amber); color: var(--ink); font-weight: 700; }
.bd-menu { columns: 4; column-gap: 1.6vw; min-height: 0; overflow: hidden; }
.bd-cat { break-inside: avoid; margin-bottom: 1.4vh; }
.bd-cat h3 { margin: 0 0 .4vh; font-family: var(--font-head); font-size: 3vh; line-height: 1.4; border-bottom: .25vh solid var(--ink); display: flex; justify-content: space-between; align-items: baseline; gap: .6vw; }
.bd-cat h3 small { font-family: var(--font-np); font-size: 1.3vh; letter-spacing: .2em; color: var(--brown); direction: ltr; white-space: nowrap; }
.bd-i { display: flex; align-items: baseline; gap: .5vw; font-size: 2vh; line-height: 1.38; position: relative; font-weight: 700; }
.bd-i .dots { flex: 1; border-bottom: 2px dotted var(--line-2); translate: 0 -.5vh; }
.bd-i .p { font-family: var(--font-np); font-weight: 500; font-size: 2.1vh; direction: ltr; }
.bd-i.out { color: var(--mute); }
.bd-i.out span:first-child { text-decoration: line-through; }
.bd-i.out .p { color: var(--red); font-family: var(--font-head); font-weight: 700; font-size: 2.5vh; }
.bd-i.fresh::before { content: ''; width: 1vh; height: 1vh; border-radius: 50%; background: var(--ok); margin-inline-end: .2vw; translate: 0 -.2vh; flex: 0 0 auto; }
.bd-i.nop .p { color: var(--mute); font-size: 1.7vh; }
.bd-ticker { background: var(--brown); color: var(--cream); font-size: 2.6vh; padding: 1.2vh 0; overflow: hidden; white-space: nowrap; border-radius: 1.2vh 1.2vh 0 0; }
.bd-ticker .in { display: inline-flex; gap: 4vw; padding-inline-start: 100%; animation: ticker-rtl 40s linear infinite; }
.bd-ticker b { color: #F3D9A8; font-family: var(--font-np); font-weight: 500; letter-spacing: .06em; direction: ltr; }
.bd-special { background: var(--amber); color: var(--ink); border-radius: 1vh; padding: 1.2vh 1.4vw; margin-top: auto; display: flex; gap: 1vw; align-items: center; }
.bd-special b { font-family: var(--font-head); font-size: 3vh; }
.bd-special small { font-size: 1.9vh; }

/* الشاشة على جوال عمودي او شاشة ضيقة: تخطيط مكدس يتمرر */
@media (max-width: 900px), (orientation: portrait) {
  body.board { overflow: auto; height: auto; width: auto; cursor: auto; }
  .bd-wrap { display: block; height: auto; padding: 14px 14px 0; }
  .bd-mast { display: flex; align-items: center; gap: 10px; border-bottom-width: 3px; padding-bottom: 8px; }
  .bd-mast .nm { gap: 10px; }
  .bd-mast img { width: 42px; height: 42px; border-width: 2px; }
  .bd-mast h1 { font-size: 28px; }
  .bd-mast .en { font-size: 9.5px; letter-spacing: .28em; }
  .bd-mast .clock b { font-size: 26px; }
  .bd-mast .clock small { font-size: 11px; }
  .bd-body { display: block; margin-top: 12px; }
  .bd-oven { border-radius: 12px; padding: 14px; display: block; }
  .bd-oven h2 { font-size: 22px; gap: 8px; margin: 0 0 6px; }
  .bd-oven h2 .ic { width: 20px; height: 20px; }
  #bdOven { overflow: visible !important; }
  .bd-b { gap: 10px; padding: 8px 0; }
  .bd-b img, .bd-b .ph { width: 40px; height: 40px; }
  .bd-b .t b { font-size: 15px; }
  .bd-b .t small { font-size: 12px; }
  .bd-b .tm { font-size: 18px; }
  .bd-b .lbl { font-size: 11px; padding: 3px 8px; }
  .bd-b.baking { margin-inline: -14px; padding-inline: 14px; border-radius: 8px; }
  .bd-special { padding: 10px 12px; margin-top: 10px; border-radius: 8px; gap: 10px; }
  .bd-special b { font-size: 18px; } .bd-special small { font-size: 13px; }
  .bd-menu { columns: 1; column-gap: 16px; overflow: visible; margin-top: 14px; }
  .bd-cat { margin-bottom: 14px; }
  .bd-cat h3 { font-size: 20px; line-height: 1.5; border-bottom-width: 2px; margin-bottom: 4px; gap: 8px; }
  .bd-cat h3 small { font-size: 10px; }
  .bd-i { font-size: 15px; gap: 6px; line-height: 1.5; }
  .bd-i .dots { translate: 0 -4px; }
  .bd-i .p { font-size: 16px; }
  .bd-i.out .p { font-size: 15px; }
  .bd-i.fresh::before { width: 8px; height: 8px; margin-inline-end: 2px; translate: 0 -1px; }
  .bd-i.nop .p { font-size: 12px; }
  .bd-ticker { position: sticky; bottom: 0; font-size: 14px; padding: 9px 0; border-radius: 0; margin: 14px -14px 0; }
}
@media (min-width: 560px) and (max-width: 900px) { .bd-menu { columns: 2; } }

/* ============================================================
   لوحة التحكم
   ============================================================ */
body.admin { background: #F3EEE4; }
.ad-head { background: var(--ink); color: var(--cream); padding: 12px 0; position: sticky; top: 0; z-index: 30; }
.ad-head .in { display: flex; align-items: center; gap: 12px; }
.ad-head img { width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--cream); }
.ad-head h1 { margin: 0; font-size: 18px; font-family: var(--font-head); }
.ad-head small { display: block; font-size: 11.5px; color: rgba(248, 239, 224, .7); }
.ad-head .sync { margin-inline-start: auto; font-size: 12px; display: inline-flex; gap: 6px; align-items: center; color: #9BD3A6; }
.ad-head .sync i { width: 8px; height: 8px; border-radius: 50%; background: #9BD3A6; animation: pulse 1.8s infinite; }
.ad-tabs { display: flex; background: var(--paper); border-bottom: 1px solid var(--line); position: sticky; top: 64px; z-index: 29; }
.ad-tabs button { flex: 1; padding: 12px 6px; font-size: 14px; font-weight: 600; color: var(--mute); border-bottom: 3px solid transparent; }
.ad-tabs button.on { color: var(--ink); border-color: var(--brown); }
.ad-tabs button .bdg { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--red); color: #fff; font-size: 11px; margin-inline-start: 4px; font-family: var(--font-np); }
.ad-sec { padding: 16px 0 100px; }
.ad-card { background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 14px; margin-bottom: 12px; }
.ad-card h3 { margin: 0 0 10px; font-size: 16px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.ad-card h3 small { font-weight: 500; color: var(--mute); font-size: 12px; }
.ad-row { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.ad-row:last-child { border-bottom: 0; }
.ad-row img, .ad-row .ph { width: 46px; height: 46px; border-radius: 8px; object-fit: cover; background: var(--cream-2); flex: 0 0 auto; }
.ad-row .ph { display: grid; place-items: center; font-family: var(--font-np); font-size: 9px; color: var(--mute); }
.ad-row .t { flex: 1; min-width: 0; }
.ad-row .t b { display: block; font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ad-row .t small { color: var(--mute); font-size: 12px; }
.ad-row .t small.warn { color: var(--red); font-weight: 600; }
.ad-row input.pr { width: 72px; padding: 8px 10px; border: 1px solid var(--line-2); border-radius: 6px; background: #fff; text-align: center; font-family: var(--font-np); direction: ltr; font-size: 15px; }
.ad-row input.pr.warn { border-color: var(--red); }
.sw { position: relative; width: 48px; height: 28px; border-radius: 999px; background: #CFC6B8; transition: background .2s; flex: 0 0 auto; }
.sw::after { content: ''; position: absolute; top: 3px; inset-inline-start: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; transition: translate .2s; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); }
.sw.on { background: var(--ok); }
html[dir="rtl"] .sw.on::after { translate: -20px 0; }
html[dir="ltr"] .sw.on::after { translate: 20px 0; }
.ad-b { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.ad-b:last-child { border-bottom: 0; }
.ad-b .tm { font-family: var(--font-np); font-size: 18px; letter-spacing: .06em; direction: ltr; width: 56px; color: var(--ink-2); }
.ad-b img, .ad-b .ph { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; background: var(--cream-2); }
.ad-b .ph { display: grid; place-items: center; font-family: var(--font-np); font-size: 9px; color: var(--mute); }
.ad-b .t { flex: 1; min-width: 0; }
.ad-b .t b { display: block; font-size: 14.5px; }
.ad-b .t small { font-size: 12px; color: var(--mute); }
.ad-b.done .t small { color: var(--ok); font-weight: 600; }
.ad-b.baking .t small { color: #8a5a12; font-weight: 600; }
.ad-b .btn-sm { padding: 9px 12px; font-size: 13px; }
.ad-b .undo { color: var(--mute); font-size: 12px; padding: 6px; }
.ad-add { display: grid; grid-template-columns: 1fr auto auto; gap: 8px; margin-top: 10px; }
.ad-add select, .ad-add input { padding: 10px; border: 1px solid var(--line-2); border-radius: 6px; background: #fff; }
.ad-add input { font-family: var(--font-np); direction: ltr; width: 92px; }
.ad-o { background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; margin-bottom: 10px; }
.ad-o .h { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 6px; }
.ad-o .h b { font-family: var(--font-np); font-size: 20px; letter-spacing: .04em; direction: ltr; }
.ad-o .mode { padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; background: rgba(27, 22, 18, .07); display: inline-block; }
.ad-o .mode.dawn { background: #2B2440; color: #F3D9A8; }
.ad-o .mode.delivery { background: rgba(27, 111, 138, .14); color: #1B6F8A; }
.ad-o ul { margin: 6px 0; padding: 0; list-style: none; font-size: 13.5px; color: var(--ink-2); }
.ad-o ul li { display: flex; justify-content: space-between; }
.ad-o .meta { font-size: 12.5px; color: var(--mute); display: flex; gap: 12px; flex-wrap: wrap; }
.ad-o .meta b { font-family: var(--font-np); letter-spacing: .1em; direction: ltr; color: var(--ink); }
.ad-o .acts { display: flex; gap: 6px; margin-top: 10px; flex-wrap: wrap; }
.ad-o .acts .chip { font-size: 12.5px; padding: 6px 12px; }
.ad-o .acts .chip.cur { background: var(--brown); border-color: var(--brown); color: var(--cream); }
.ad-empty { text-align: center; color: var(--mute); padding: 30px 0; font-size: 14px; }
.ad-sp { display: grid; gap: 8px; }
.ad-sp select, .ad-sp input { padding: 10px 12px; border: 1px solid var(--line-2); border-radius: 6px; background: #fff; }
.ad-links { display: grid; gap: 8px; margin-top: 8px; }
.ad-links a { display: flex; justify-content: space-between; align-items: center; text-decoration: none; padding: 10px 12px; background: #fff; border: 1px solid var(--line); border-radius: 8px; font-size: 14px; font-weight: 600; }
.ad-links a small { font-family: var(--font-np); color: var(--mute); direction: ltr; font-weight: 400; letter-spacing: .04em; }
