/* Generated by tools/link-assets.mjs — do not edit. Edit the files listed below instead. */

/* ---- packages/ui/styles/fonts.css ---- */
/* IBM Plex Sans Arabic, self-hosted (SIL Open Font License 1.1, served at /fonts/OFL.txt).
   Subsets: Arabic, and Basic Latin incl. digits and punctuation. font-display: swap. */
@font-face {
  font-family: "IBM Plex Sans Arabic";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/ibm-plex-sans-arabic-400-arabic.woff2") format("woff2");
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC7, U+10EC9-10EEE, U+10EF0-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1;
}
@font-face {
  font-family: "IBM Plex Sans Arabic";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/ibm-plex-sans-arabic-400-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "IBM Plex Sans Arabic";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/ibm-plex-sans-arabic-500-arabic.woff2") format("woff2");
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC7, U+10EC9-10EEE, U+10EF0-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1;
}
@font-face {
  font-family: "IBM Plex Sans Arabic";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/ibm-plex-sans-arabic-500-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "IBM Plex Sans Arabic";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/ibm-plex-sans-arabic-600-arabic.woff2") format("woff2");
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC7, U+10EC9-10EEE, U+10EF0-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1;
}
@font-face {
  font-family: "IBM Plex Sans Arabic";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/ibm-plex-sans-arabic-600-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---- packages/ui/styles/tokens.css ---- */
/* غاف · Ghaf — generated from tokens.json */
:root, [data-theme="light"] {
  --surface: #fafaf7; --surface-raised: #ffffff; --ink: #1c1c1c; --ink-muted: #6b6b66; --on-ink: #ffffff;
  --border: #e3e3de; --border-strong: #8a8a84; --ghaf: #2e7d5b; --on-ghaf: #ffffff;
  --ghaf-tint: #dcefe4; --ghaf-ink: #1f5a40; --danger: #b3261e;
}
[data-theme="dark"] {
  --surface: #121412; --surface-raised: #1b1e1c; --ink: #f2f2ee; --ink-muted: #a3a39c; --on-ink: #121412;
  --border: #2c302d; --border-strong: #6e726f; --ghaf: #5bbe91; --on-ghaf: #0f1a14;
  --ghaf-tint: #1e3a2d; --ghaf-ink: #bfe6d1; --danger: #f2b8b5;
}
:root {
  --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px; --space-6: 24px; --space-8: 32px; --space-12: 48px;
  --radius-sm: 6px; --radius-md: 10px; --radius-lg: 16px; --radius-full: 999px;
  --font-sans: "IBM Plex Sans Arabic", "IBM Plex Sans", system-ui, sans-serif;
}

/* ---- packages/ui/styles/base.css ---- */
/* Base: reset, body font, focus ring, RTL helpers, type scale (brief §5). */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 26px;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--ghaf); }
a:hover { color: var(--ghaf-ink); }
:focus-visible { outline: 2px solid var(--ghaf); outline-offset: 2px; }
h1, h2, h3, p { margin: 0; }
/* The hidden attribute always wins over layout rules (display:flex etc.). */
[hidden] { display: none !important; }

.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;
}
.container { max-width: var(--page-max); margin-inline: auto; padding-left: var(--pad-left); padding-right: var(--pad-right); }

/* Arrows and other directional icons flip in RTL. */
[dir="rtl"] .flip-rtl { transform: scaleX(-1); }

/* A line in the other language sits at the start edge of the page,
   even though it has its own dir (e.g. the English line on an Arabic page). */
html[dir="rtl"] .other-lang { text-align: right; }
html[dir="ltr"] .other-lang { text-align: left; }

/* Type scale — mobile first (brief §5, §5.1). Phone sizes are the base; larger screens step up. */
.t-hero { font-size: 36px; line-height: 46px; font-weight: 500; letter-spacing: -0.5px; }
.t-display { font-size: 30px; line-height: 40px; font-weight: 500; }
.t-h2 { font-size: 26px; line-height: 34px; font-weight: 500; }
.t-h3 { font-size: 22px; line-height: 30px; font-weight: 500; }
.t-large { font-size: 18px; line-height: 30px; }
.t-small { font-size: 14px; line-height: 22px; }
.t-caption { font-size: 12px; line-height: 18px; color: var(--ink-muted); }
/* Disclaimers: caption style, but 13px so they read without zoom on phones. Never hidden. */
.t-disclaimer { font-size: 13px; line-height: 20px; color: var(--ink-muted); }
.t-label { font-size: 15px; line-height: 20px; font-weight: 500; }
.muted { color: var(--ink-muted); }
@media (min-width: 768px) {
  .t-hero { font-size: 52px; line-height: 64px; }
  .t-display { font-size: 40px; line-height: 48px; }
  .t-h2 { font-size: 32px; line-height: 40px; }
}

/* The reference lays out a 1160px content column plus 24px side padding (content-box).
   With border-box everywhere, the outer max-width is 1160 + 2 × 24. */
:root { --page-max: calc(1160px + 48px); }

/* Side padding: 24px, or more on iPhones with a notch in landscape (viewport-fit=cover). */
:root {
  --pad-left: max(24px, env(safe-area-inset-left));
  --pad-right: max(24px, env(safe-area-inset-right));
}
body { padding-bottom: env(safe-area-inset-bottom); }
/* No sideways scrolling, ever: wide things (tables, breakdowns) scroll inside their own box. */
/* position: relative keeps screen-reader-only text inside the box (Safari RTL counted it in the page width). */
.scroll-x { position: relative; overflow-x: auto; -webkit-overflow-scrolling: touch; max-width: 100%; width: 100%; }

/* ---- packages/ui/styles/components.css ---- */
/* Font is loaded once by <link> in BaseLayout (the @import from design/components.css was removed here to avoid a second download). */
.ghaf-btn{display:inline-flex;align-items:center;justify-content:center;gap:var(--space-2);height:44px;padding:0 var(--space-6);border-radius:var(--radius-md);border:1px solid transparent;font-family:var(--font-sans);font-size:15px;line-height:20px;font-weight:500;cursor:pointer;text-decoration:none;white-space:nowrap;transition:background-color .15s,border-color .15s,transform .1s}
.ghaf-btn:active{transform:scale(.98)}
.ghaf-btn:focus-visible{outline:2px solid var(--ghaf);outline-offset:2px}
.ghaf-btn[aria-disabled="true"]{opacity:.5;cursor:not-allowed}
.ghaf-btn--primary{background:var(--ink);color:var(--on-ink)}
.ghaf-btn--primary:hover{background:var(--ghaf);color:var(--on-ghaf)}
.ghaf-btn--brand{background:var(--ghaf);color:var(--on-ghaf)}
.ghaf-btn--brand:hover{background:var(--ink);color:var(--on-ink)}
.ghaf-btn--secondary{background:var(--surface-raised);color:var(--ink);border-color:var(--border-strong)}
.ghaf-btn--secondary:hover{border-color:var(--ink)}
.ghaf-btn--ghost{background:transparent;color:var(--ghaf);padding:0 var(--space-3)}
.ghaf-btn--ghost:hover{background:var(--ghaf-tint);color:var(--ghaf-ink)}
.ghaf-btn--sm{height:36px;padding:0 var(--space-4);font-size:14px}
.ghaf-btn--lg{height:52px;padding:0 var(--space-8);font-size:16px}
.ghaf-btn__icon{width:18px;height:18px;flex:none}
[dir="rtl"] .ghaf-btn__icon--arrow{transform:scaleX(-1)}
.ghaf-card{display:flex;align-items:flex-start;gap:var(--space-4);padding:var(--space-4);background:var(--surface-raised);border:1px solid var(--border);border-radius:var(--radius-lg);font-family:var(--font-sans);color:var(--ink);text-decoration:none;transition:border-color .15s}
.ghaf-card:hover{border-color:var(--border-strong)}
.ghaf-card:focus-visible{outline:2px solid var(--ghaf);outline-offset:2px}
.ghaf-card__icon{flex:none;width:44px;height:44px;border-radius:var(--radius-md);background:var(--ghaf-tint);color:var(--ghaf-ink);display:flex;align-items:center;justify-content:center}
.ghaf-card__icon svg{width:22px;height:22px}
.ghaf-card__title{margin:0;font-size:16px;line-height:24px;font-weight:500}
.ghaf-card__sub{margin:0;font-size:14px;line-height:22px;color:var(--ink-muted)}
.ghaf-card__tag--new{background:var(--ghaf-tint)!important;border-color:var(--ghaf-tint)!important;color:var(--ghaf-ink)!important}
.ghaf-card__tag{display:inline-block;margin-top:var(--space-2);padding:2px var(--space-2);border-radius:var(--radius-sm);background:var(--surface);border:1px solid var(--border);font-size:12px;line-height:18px;color:var(--ink-muted)}

/* ---- Form fields (added per brief §5, same tokens) ---- */
.ghaf-field{display:flex;flex-direction:column;gap:var(--space-2)}
.ghaf-label{font-family:var(--font-sans);font-size:15px;line-height:20px;font-weight:500;color:var(--ink)}
.ghaf-input,.ghaf-select{box-sizing:border-box;width:100%;height:48px;background:var(--surface-raised);border:1px solid var(--border-strong);border-radius:var(--radius-md);padding-inline:14px;font-family:var(--font-sans);font-size:16px;color:var(--ink)}
.ghaf-input:focus-visible,.ghaf-select:focus-visible{outline:2px solid var(--ghaf);outline-offset:2px}
.ghaf-input[aria-invalid="true"]{border-color:var(--danger)}
.ghaf-hint{margin:0;font-size:14px;line-height:22px;color:var(--ink-muted)}
.ghaf-error{margin:0;font-size:14px;line-height:22px;color:var(--danger)}

/* ---- Ghaf bar: the thin bar above every subdomain's own header (never on ghaf.work itself) ----
   Same markup from GhafBar.astro (home/calc/admin) and apps/malfa/partials/ghaf-bar.php.
   A site whose header has another width sets --ghaf-bar-max / --ghaf-bar-pad-left / --ghaf-bar-pad-right.
   Not sticky, so it never covers content. 44px tall on touch screens, 36px with a mouse (from 768px). */
.ghaf-bar { background: var(--surface); border-bottom: 1px solid var(--border); font-size: 14px; line-height: 20px; }
.ghaf-bar__in {
  max-width: var(--ghaf-bar-max, var(--page-max)); margin: 0 auto;
  padding: 0 var(--ghaf-bar-pad-right, var(--pad-right)) 0 var(--ghaf-bar-pad-left, var(--pad-left));
  min-height: 44px; display: flex; align-items: stretch; justify-content: space-between; gap: 16px;
}
.ghaf-bar a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; text-decoration: none; }
.ghaf-bar a:hover { text-decoration: underline; text-underline-offset: 3px; }
.ghaf-bar__home { color: var(--ink); font-weight: 500; }
.ghaf-bar__home img { width: 20px; height: 20px; display: block; }
.ghaf-bar__all { color: var(--ink-muted); }
.ghaf-bar__end { display: flex; align-items: stretch; gap: 16px; }
.ghaf-bar__all:hover { color: var(--ink); }
@media (min-width: 768px) and (pointer: fine) {
  .ghaf-bar__in, .ghaf-bar a { min-height: 36px; }
}

/* "Part of Ghaf · All services" line in every subdomain footer. */
.ghaf-part { flex-basis: 100%; margin: 0; font-size: 14px; color: var(--ink-muted); }
.ghaf-part a { color: var(--ink-muted); text-decoration: underline; text-underline-offset: 3px; display: inline-block; padding-block: 12px; }
.ghaf-part a:hover { color: var(--ink); }

/* ---- "ضيفني لتلفونك / Add to your phone" (InstallButton.astro): phones and tablets only, never in the installed app ---- */
.pwa { display: none; align-items: center; gap: 0; }
@media (pointer: coarse) { .pwa { display: inline-flex; } }
@media (display-mode: standalone) { .pwa { display: none !important; } }
.pwa.pwa--off { display: none !important; }
.pwa__btn {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 10px; cursor: pointer;
  border: 1px solid var(--border-strong); border-start-start-radius: var(--radius-full); border-end-start-radius: var(--radius-full);
  border-start-end-radius: 0; border-end-end-radius: 0; border-inline-end: 0;
  background: var(--surface-raised); color: var(--ghaf-ink); font-family: var(--font-sans);
}
.pwa__btn svg { width: 20px; height: 20px; flex: none; color: var(--ghaf); }
.pwa__txt { display: flex; flex-direction: column; font-size: 12px; line-height: 15px; font-weight: 500; text-align: start; white-space: nowrap; }
.pwa__x {
  min-height: 44px; width: 30px; display: grid; place-items: center; cursor: pointer; padding: 0;
  border: 1px solid var(--border-strong); border-start-end-radius: var(--radius-full); border-end-end-radius: var(--radius-full);
  background: var(--surface-raised); color: var(--ink-muted); font-size: 18px; line-height: 1;
}
.pwa__btn:focus-visible, .pwa__x:focus-visible { outline: 2px solid var(--ghaf); outline-offset: 2px; }
/* Narrow tool headers: icon only (the label is still read out: aria-label). */
@media (max-width: 419px) { .pwa--compact .pwa__txt { display: none; } }
@media (max-width: 379px) { .pwa--narrow .pwa__txt { display: none; } }
.pwa-sheet {
  margin: auto auto 0; width: 100%; max-width: 560px; border: 0; padding: 0; border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  background: var(--surface-raised); color: var(--ink);
}
.pwa-sheet::backdrop { background: rgba(28, 28, 28, .45); }
.pwa-sheet__in { padding: 24px 20px calc(20px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 16px; }
.pwa-sheet__in section { display: flex; flex-direction: column; gap: 12px; }
.pwa-sheet__h { font-size: 20px; line-height: 28px; font-weight: 600; }
.pwa-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; counter-reset: s; }
.pwa-steps li { display: flex; align-items: flex-start; gap: 12px; font-size: 16px; line-height: 24px; counter-increment: s; }
.pwa-steps li::before { content: counter(s); flex: none; width: 24px; height: 24px; border-radius: 50%; background: var(--ink); color: var(--on-ink); display: grid; place-items: center; font-size: 13px; line-height: 1; margin-top: 2px; }
.pwa-steps__icon { flex: none; width: 28px; height: 28px; border-radius: var(--radius-sm); background: var(--ghaf-tint); color: var(--ghaf-ink); display: grid; place-items: center; }
.pwa-steps__icon svg { width: 18px; height: 18px; }
.pwa-sheet__note { font-size: 13px; line-height: 20px; color: var(--ink-muted); }
.pwa-link { font-size: 14px; overflow-wrap: anywhere; background: var(--surface); padding: 8px 12px; border-radius: var(--radius-sm); user-select: all; }
.pwa-sheet__close { width: 100%; }

/* ---- apps/link/link.css ---- */
/* LinkGhaf (link.ghaf.work). Built into public/assets/site.css after the shared fonts, tokens, base and components
   (tools/link-assets.mjs). Mockups: docs/link/design/01-05. Tokens only; the owner's theme is data-theme on <html>.
   Layout: one narrow column (390px phone mockups), centred on wider screens; the editor gets a sticky preview column. */
:root { --lg-max: 480px; --lg-key-bg: #FFF6DC; --lg-key-border: #F0D58C; --lg-key-ink: #5A4A1E; --lg-badge-on-ghaf: rgba(0, 0, 0, .14); }
[data-theme="dark"] { --lg-key-bg: #2F2914; --lg-key-border: #6B5A26; --lg-key-ink: #F1DFA6; --lg-badge-on-ghaf: rgba(0, 0, 0, .12); }
html, body { min-height: 100%; }
body { background: var(--surface); color: var(--ink); }

/* Ghaf bar, 48px like the mockups, on the raised surface */
.lg-bar { background: var(--surface-raised); --ghaf-bar-max: var(--lg-max); --ghaf-bar-pad-left: 16px; --ghaf-bar-pad-right: 16px; }
.lg-bar .ghaf-bar__in { min-height: 48px; align-items: center; }
.lg-bar .ghaf-bar__home { font-size: 15px; font-weight: 600; }
.lg-bar .ghaf-bar__home img { width: 24px; height: 24px; }
.lg-bar .ghaf-bar__all, .lg-bar__label { font-size: 13px; color: var(--ink-muted); }
.lg-bar__label { display: inline-flex; align-items: center; }

/* ---------- public page (01-03) ---------- */
.lg { max-width: var(--lg-max); margin: 0 auto; padding: 22px 20px 24px; display: flex; flex-direction: column; gap: 18px; min-height: calc(100vh - 49px); min-height: calc(100dvh - 49px); }
/* The greeting slot keeps its height before and after the script runs, so nothing jumps. */
.lg-greet { min-height: 70px; display: flex; flex-direction: column; justify-content: center; }
.lg-greet__box { background: var(--ghaf-tint); color: var(--ghaf-ink); border-radius: var(--radius-lg); padding: 12px 16px; display: flex; flex-direction: column; gap: 2px; }
.lg-greet__src { font-size: 18px; line-height: 28px; font-weight: 600; }
.lg-greet__time { font-size: 13px; line-height: 20px; }
.lg-greet__only { text-align: center; font-size: 15px; line-height: 24px; color: var(--ghaf-ink); font-weight: 500; }
.lg-head { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.lg-photo { width: 84px; height: 84px; border-radius: 50%; object-fit: cover; }
.lg-photo--letter { background: var(--ghaf); color: var(--on-ghaf); display: flex; align-items: center; justify-content: center; font-size: 36px; line-height: 1; font-weight: 600; }
.lg-name { font-size: 22px; line-height: 32px; font-weight: 600; overflow-wrap: anywhere; }
.lg-bio { font-size: 14px; line-height: 1.5; color: var(--ink-muted); overflow-wrap: anywhere; white-space: pre-line; }
.lg-items { display: flex; flex-direction: column; gap: 10px; }
.lg-item {
  background: var(--surface-raised); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 10px 12px;
  display: flex; align-items: center; gap: 12px; min-height: 56px; color: var(--ink); text-decoration: none; min-width: 0;
}
.lg-item:hover { border-color: var(--ghaf); color: var(--ink); }
.lg-badge { flex: none; width: 38px; height: 38px; border-radius: var(--radius-md); background: var(--ghaf-tint); color: var(--ghaf-ink); display: flex; align-items: center; justify-content: center; }
.lg-badge--lg { width: 56px; height: 56px; border-radius: var(--radius-lg); }
.lg-item__text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.lg-item__title { font-size: 15px; line-height: 22px; font-weight: 600; overflow-wrap: anywhere; }
.lg-item__sub { font-family: "IBM Plex Sans", var(--font-sans); font-size: 12px; line-height: 18px; color: var(--ink-muted); text-align: start; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
[dir="rtl"] .lg-item__sub { text-align: right; }
.lg-item__go { flex: none; color: var(--ink-muted); }
[dir="ltr"] .lg-item__go svg { transform: scaleX(-1); }
/* Custom links: the filled green button of the mockups */
.lg-item--custom { background: var(--ghaf); border-color: var(--ghaf); color: var(--on-ghaf); padding-inline: 14px; }
.lg-item--custom:hover { color: var(--on-ghaf); filter: brightness(1.05); }
.lg-item--custom .lg-badge { background: var(--lg-badge-on-ghaf); color: var(--on-ghaf); }
.lg-item--custom .lg-item__sub { color: var(--on-ghaf); }
.lg-owner { align-self: center; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: var(--radius-md); border: 1px solid var(--ghaf); color: var(--ghaf); font-weight: 500; font-size: 15px; text-decoration: none; }
.lg-foot { margin-top: auto; display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 12px; line-height: 18px; color: var(--ink-muted); text-align: center; }
.lg-foot a { color: inherit; display: inline-flex; align-items: center; min-height: 32px; }
.lg-foot__make { color: var(--ghaf) !important; font-weight: 500; text-decoration: none; }
.lg-report { width: 100%; display: flex; flex-direction: column; align-items: center; }
.lg-report > summary { list-style: none; cursor: pointer; min-height: 32px; display: inline-flex; align-items: center; text-decoration: underline; text-underline-offset: 3px; }
.lg-report > summary::-webkit-details-marker { display: none; }
.lg-report__form, .lg-report__done { width: 100%; text-align: start; margin-top: 8px; background: var(--surface-raised); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; font-size: 14px; line-height: 22px; color: var(--ink); }
.lg-report__form fieldset { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; }
.lg-report__form legend { font-weight: 600; margin-bottom: 4px; }
.lg-radio { display: flex; align-items: center; gap: 10px; min-height: 40px; cursor: pointer; }
.lg-radio input { width: 20px; height: 20px; accent-color: var(--ghaf); margin: 0; }
.lg-report__form textarea, .lge-input, .lge-prefix, .lge-row input, .lge-row select {
  font: inherit; font-size: 16px; color: var(--ink); background: var(--surface-raised); border: 1px solid var(--border); border-radius: var(--radius-md);
}
.lg-report__form textarea { padding: 10px 12px; min-height: 72px; resize: vertical; width: 100%; }
.lg-label { font-weight: 500; }
.lg-muted, .lg-disclaimer { color: var(--ink-muted); font-size: 12px; line-height: 18px; }
.lg-disclaimer { max-width: 34em; margin-top: 4px; }
.lg-error { color: var(--danger); font-size: 14px; }
.lg-hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* Buttons */
.lg-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 44px; padding: 0 16px; border-radius: var(--radius-md); border: 1px solid transparent; font-family: var(--font-sans); font-size: 15px; font-weight: 500; cursor: pointer; text-decoration: none; background: var(--surface-raised); color: var(--ink); }
.lg-btn--brand { background: var(--ghaf); color: var(--on-ghaf); border-color: var(--ghaf); }
.lg-btn--brand:hover { color: var(--on-ghaf); filter: brightness(1.06); }
.lg-btn--line { border-color: var(--border-strong); }
.lg-btn--line:hover { border-color: var(--ink); color: var(--ink); }
.lg-btn--quiet { color: var(--ink-muted); }
.lg-btn--danger { border-color: var(--danger); color: var(--danger); }
.lg-btn--lg { min-height: 52px; font-size: 17px; font-weight: 600; }
.lg-btn--sm { min-height: 36px; font-size: 13px; padding: 0 14px; }
.lg-btn:disabled { opacity: .55; cursor: default; }
.lg-btn svg { flex: none; }

/* Message pages and the front page */
.lg-msg { justify-content: center; text-align: center; align-items: center; gap: 12px; }
.lg-msg__title { font-size: 22px; line-height: 32px; font-weight: 600; }
.lg-msg__text { color: var(--ink-muted); font-size: 15px; line-height: 24px; max-width: 30em; }
.lg-home { align-items: center; text-align: center; justify-content: center; gap: 16px; }
.lg-home__title { font-size: 26px; line-height: 36px; font-weight: 600; text-wrap: balance; }
.lg-home__text { color: var(--ink-muted); font-size: 16px; line-height: 26px; max-width: 30em; }
.lg-home__lang { font-size: 14px; color: var(--ink-muted); min-height: 44px; display: inline-flex; align-items: center; }

/* ---------- editor (04) ---------- */
.lge { max-width: var(--lg-max); margin: 0 auto; padding: 18px 20px 48px; display: flex; flex-direction: column; gap: 24px; }
.lge-form { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.lge-head { display: flex; flex-direction: column; gap: 2px; }
.lge-title { font-size: 22px; line-height: 32px; font-weight: 600; }
.lge-title--sm { font-size: 18px; line-height: 28px; }
.lge-sub { font-size: 13px; line-height: 20px; color: var(--ink-muted); }
.lge-mylink { font-family: "IBM Plex Sans", var(--font-sans); color: var(--ghaf); text-decoration: none; align-self: flex-start; min-height: 32px; display: inline-flex; align-items: center; }
.lge-bizline { color: var(--ghaf); align-self: flex-start; min-height: 32px; display: inline-flex; align-items: center; text-decoration: underline; text-underline-offset: 3px; }
.lge-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.lge-label { font-size: 13px; line-height: 20px; font-weight: 500; color: var(--ink); padding: 0; margin: 0; }
.lge-input { height: 46px; padding: 0 12px; width: 100%; }
.lge-input:focus, .lge-prefix:focus-within, .lge-row input:focus { outline: none; border-color: var(--ghaf); box-shadow: 0 0 0 1px var(--ghaf); }
.lge-prefix { display: flex; align-items: center; height: 46px; padding: 0 12px; font-family: "IBM Plex Sans", var(--font-sans); }
.lge-prefix span { color: var(--ink-muted); flex: none; }
.lge-prefix input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: inherit; font-size: 16px; color: var(--ink); padding: 0; height: 44px; }
.lge-status { font-size: 13px; line-height: 20px; color: var(--ink-muted); min-height: 20px; }
.lge-status.is-ok { color: var(--ghaf); }
.lge-status.is-bad, .lge-error { color: var(--danger); font-size: 13px; line-height: 20px; }
.lge-error--form { font-size: 14px; }
.lge-note { font-size: 13px; line-height: 20px; color: var(--ink-muted); font-weight: 400; }
.lge-note--warn { color: var(--lg-key-ink); background: var(--lg-key-bg); border: 1px solid var(--lg-key-border); border-radius: var(--radius-md); padding: 8px 12px; }
.lge-center { text-align: center; }
.lge-photo { display: flex; align-items: center; gap: 12px; }
.lge-photo__img { width: 56px; height: 56px; border-radius: 50%; background: var(--ghaf-tint); color: var(--ghaf-ink); flex: none; display: flex; align-items: center; justify-content: center; font-size: 22px; font-weight: 600; background-size: cover; background-position: center; }
.lge-photo__btns { display: flex; flex-wrap: wrap; gap: 8px; }
.lge-file { position: absolute; width: 1px; height: 1px; opacity: 0; }
.lge-file:focus-visible + label { outline: 2px solid var(--ghaf); outline-offset: 2px; }
.lge-rows { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.lge-row { background: var(--surface-raised); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 6px 8px 8px 6px; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 6px 6px; align-items: start; }
.lge-row__top { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 44px; }
.lge-row.is-drag { border-color: var(--ghaf); box-shadow: 0 0 0 1px var(--ghaf); position: relative; z-index: 2; }
.lge-row__grip { width: 32px; height: 44px; align-self: start; display: flex; align-items: center; justify-content: center; color: var(--ink-muted); cursor: grab; touch-action: none; border: 0; background: transparent; padding: 0; }
.lge-row__main { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.lge-row__name { font-size: 14px; font-weight: 500; display: flex; align-items: center; gap: 8px; }
.lge-row__name svg { width: 18px; height: 18px; color: var(--ghaf); }
.lge-row input { height: 40px; padding: 0 10px; width: 100%; min-width: 0; font-size: 16px; }
.lge-row input[dir="ltr"] { font-family: "IBM Plex Sans", var(--font-sans); }
.lge-row__btns { display: flex; gap: 4px; }
.lge-row__btns button { width: 44px; height: 44px; border: 0; border-radius: 8px; background: var(--surface); color: var(--ink); font-size: 16px; cursor: pointer; font-family: inherit; }
.lge-row__btns button:disabled { opacity: .35; cursor: default; }
.lge-row__btns .lge-x { color: var(--danger); }
.lge-row .lge-error { grid-column: 1 / -1; }
.lge-add { min-height: 44px; border: 1px dashed var(--ghaf); background: transparent; color: var(--ghaf); border-radius: var(--radius-md); font-family: inherit; font-size: 14px; font-weight: 500; cursor: pointer; }
.lge-add:disabled { opacity: .5; cursor: default; }
.lge-picker { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 6px; }
.lge-picker button { min-height: 44px; display: flex; align-items: center; justify-content: center; gap: 6px; border: 1px solid var(--border); background: var(--surface-raised); border-radius: var(--radius-md); font-family: inherit; font-size: 13px; color: var(--ink); cursor: pointer; padding: 0 6px; }
.lge-picker button svg { width: 18px; height: 18px; color: var(--ghaf); flex: none; }
.lge-two { display: flex; gap: 10px; flex-wrap: wrap; }
.lge-seg { flex: 1 1 140px; border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.lge-seg__in { display: flex; background: var(--border); border-radius: var(--radius-md); padding: 3px; }
.lge-seg__in label { flex: 1; position: relative; }
.lge-seg__in input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.lge-seg__in span { display: flex; align-items: center; justify-content: center; height: 40px; border-radius: 8px; font-size: 14px; color: var(--ink); cursor: pointer; }
.lge-seg__in input:checked + span { background: var(--surface-raised); color: var(--ink); font-weight: 500; }
.lge-seg__in input:focus-visible + span { outline: 2px solid var(--ghaf); outline-offset: 1px; }
.lge-preview { display: flex; flex-direction: column; gap: 8px; }
.lge-phone { border: 1px solid var(--border); border-radius: 24px; overflow: hidden; background: var(--surface); color: var(--ink); max-height: 560px; overflow-y: auto; }
.lge-phone .lg { min-height: 0; padding: 16px 14px 18px; gap: 14px; pointer-events: none; }
.lge-phone .lg-greet { min-height: 0; }
.lge-submit { display: flex; flex-direction: column; gap: 10px; }
.lge-ok { font-size: 14px; color: var(--ghaf); min-height: 20px; text-align: center; }
.lge-settings { display: flex; flex-direction: column; gap: 12px; border-top: 1px solid var(--border); padding-top: 20px; }
.lge-box { background: var(--surface-raised); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 14px 16px; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.lge-confirm { width: 100%; display: flex; flex-direction: column; gap: 10px; padding-top: 8px; border-top: 1px solid var(--border); }
.lge-confirm__q { font-weight: 600; font-size: 15px; }
.lge-confirm__btns { display: flex; gap: 8px; flex-wrap: wrap; }

/* ---------- "save your edit link" (05) ---------- */
.lge-done { display: flex; flex-direction: column; gap: 16px; }
.lge-done:focus { outline: none; }
.lge-done__top { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.lge-done__check { width: 60px; height: 60px; border-radius: 50%; background: var(--ghaf-tint); color: var(--ghaf-ink); display: flex; align-items: center; justify-content: center; }
.lge-urlbox { background: var(--surface-raised); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 12px 14px; display: flex; align-items: center; justify-content: space-between; gap: 10px; min-width: 0; }
.lge-urlbox__url { font-family: "IBM Plex Sans", var(--font-sans); font-size: 15px; font-weight: 500; color: var(--ghaf); text-decoration: none; overflow-wrap: anywhere; min-width: 0; }
.lge-key { background: var(--lg-key-bg); border: 1px solid var(--lg-key-border); border-radius: var(--radius-lg); padding: 16px; display: flex; flex-direction: column; gap: 12px; color: var(--ink); }
.lge-key__title { font-size: 17px; line-height: 26px; font-weight: 600; }
.lge-key__text { font-size: 14px; line-height: 1.6; color: var(--lg-key-ink); }
.lge-key__link { background: var(--surface-raised); border-radius: var(--radius-md); padding: 10px 12px; font-family: "IBM Plex Sans", var(--font-sans); font-size: 13px; color: var(--ink-muted); word-break: break-all; text-align: left; }
.lge-key__hint { font-size: 12px; line-height: 18px; color: var(--lg-key-ink); text-align: center; margin-top: -4px; }
.lge-check { display: flex; align-items: center; gap: 10px; font-size: 14px; min-height: 44px; cursor: pointer; }
.lge-check input { width: 20px; height: 20px; accent-color: var(--ghaf); margin: 0; }
.lge-after { display: flex; flex-direction: column; gap: 10px; }

/* Wider screens: the editor's preview sits beside the form and stays in view. */
@media (min-width: 900px) {
  .lge { max-width: 960px; }
  .lge-form { display: grid; grid-template-columns: minmax(0, 1fr) 380px; column-gap: 40px; row-gap: 14px; align-items: start; }
  .lge-form > * { grid-column: 1; }
  .lge-form > .lge-preview { grid-column: 2; grid-row: 1 / span 20; position: sticky; top: 16px; }
  .lge-settings, .lge-done { max-width: 560px; }
}
