/* LLCServco Drive — /try/ interactive demo.
   Visual language inherited from ../index.html: paper palette, ink strokes,
   Playfair display + Inter body; Markazi Text + Noto Sans Arabic for fa/ar. Logical properties
   throughout so fa/ar mirror structurally, not cosmetically. */

/* The same five typefaces as ../index.html, served from this host (see /fonts/fonts.css:
   fonts.googleapis.com is filtered where a good share of this page's readers are). */
@import url('/fonts/fonts.css');

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg: #F0EFED;
  --panel: #E8E7E5;
  --card: #ffffff;
  --ink: #2a2a2a;
  --ink2: #555555;
  --mut: #6b6b6b;
  --line: #e5e5e5;
  --ok: #3d7a4e;
  --warn: #9a6b2f;
  --font-body: 'Inter', system-ui, 'Segoe UI', sans-serif;
  --font-display: 'Playfair Display', Georgia, serif;
  --font-eyebrow: 'Space Grotesk', 'Inter', sans-serif;
  --dx: 14px;             /* directional slide distance */
}
html[dir="rtl"] { --dx: -14px; }
/* Persian and Arabic changed with the rest of the site on 2026-09-07: Markazi Text for display,
   Noto Sans Arabic for text, so Persian has the same three-role typography English has instead of
   one face doing all three jobs. The demo simulates real product screens, so the body face is the
   one that matters here — a file list is read, not admired. */
html[lang="fa"], html[lang="ar"] {
  --font-body: 'Noto Sans Arabic', 'Segoe UI', Tahoma, sans-serif;
  --font-display: 'Markazi Text', 'Noto Sans Arabic', 'Segoe UI', Tahoma, serif;
  --font-eyebrow: 'Noto Sans Arabic', 'Segoe UI', Tahoma, sans-serif;
}
html[lang="fa"] .try-h1, html[lang="ar"] .try-h1 { font-size: 2.4rem; line-height: 1.36; }
html[lang="zh"] {
  --font-body: 'Inter', 'Microsoft YaHei', 'PingFang SC', sans-serif;
  --font-display: 'Microsoft YaHei', 'PingFang SC', 'Noto Sans SC', sans-serif;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}
img, svg { max-width: 100%; }
a { color: inherit; }
[hidden] { display: none !important; }
bdi.dk-ltr, span.dk-ltr, .dk-ltr { direction: ltr; unicode-bidi: isolate; }
button { font-family: inherit; color: inherit; }
button:focus-visible, a:focus-visible, select:focus-visible, input:focus-visible {
  outline: 2px solid var(--ink); outline-offset: 2px; border-radius: 4px;
}

/* ================= header / footer (marketing language) ================= */
.dk-header {
  position: fixed; top: 0; inset-inline: 0; height: 64px; z-index: 60;
  background: rgba(240,239,237,.88);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0,0,0,.06);
}
.dk-shell { max-width: 1080px; margin: 0 auto; padding-inline: 24px; }
.try-headrow { height: 100%; display: flex; align-items: center; gap: 16px; }
.dk-brand { font-family: var(--font-eyebrow); font-size: 1rem; letter-spacing: .02em; text-decoration: none; white-space: nowrap; }
.dk-brand strong { font-weight: 600; }
.dk-brand span { color: #8a8a8a; font-weight: 400; }
.try-flag {
  font-size: .68rem; letter-spacing: .08em; text-transform: uppercase;
  color: var(--mut); border: 1px solid #d8d5cf; background: var(--card);
  border-radius: 30px; padding: 4px 11px; white-space: nowrap;
}
.try-headctl { margin-inline-start: auto; display: flex; align-items: center; gap: 12px; }
.dk-lang {
  appearance: none; -webkit-appearance: none;
  font-family: var(--font-body); font-size: .8rem; color: var(--ink);
  background: transparent; border: 1px solid #cfccc5; border-radius: 20px;
  padding: 6px 14px; cursor: pointer;
}
.try-acct { display: inline-flex; background: #e4e2dd; border-radius: 30px; padding: 3px; gap: 2px; }
.try-acct-opt {
  border: 0; background: transparent; cursor: pointer;
  padding: 5px 13px; border-radius: 30px; font-size: .78rem; font-weight: 500; color: #777;
  transition: background .2s ease, color .2s ease; white-space: nowrap;
}
.try-acct-opt.is-on { background: var(--ink); color: #F0EFED; }

.dk-footer { border-top: 1px solid #ddd9d2; margin-top: 64px; }
.dk-footer .dk-shell {
  padding-block: 26px; display: flex; flex-wrap: wrap; gap: 12px 28px;
  align-items: center; font-size: .8rem; color: var(--mut);
}
.try-footnav { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-inline-start: auto; }
.try-footnav a { color: var(--mut); text-decoration: none; }
.try-footnav a:hover { color: var(--ink); }
.dk-legalline { width: 100%; font-size: .75rem; color: #98938a; line-height: 1.7; }

.try-noscript { max-width: 640px; margin: 120px auto; padding: 0 24px; font-size: .9rem; color: var(--ink2); }
.try-noscript p { margin-bottom: 10px; }

/* ================= intro ================= */
.try-main { padding-top: 104px; }
.try-h1 {
  font-family: var(--font-display); font-weight: 400;
  font-size: 2.6rem; line-height: 1.14; letter-spacing: -.01em; margin-bottom: 10px;
  animation: fadeUp .7s cubic-bezier(.16,1,.3,1) both;
}
.try-sub { font-size: .98rem; color: var(--ink2); max-width: 44rem; margin-bottom: 14px; animation: fadeUp .7s cubic-bezier(.16,1,.3,1) .06s both; }
.try-persona {
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--card); border: 1px solid #ddd9d2; border-radius: 30px;
  padding: 5px 14px 5px 6px; font-size: .8rem; color: var(--ink2);
  animation: fadeUp .7s cubic-bezier(.16,1,.3,1) .1s both;
}
html[dir="rtl"] .try-persona { padding: 5px 6px 5px 14px; }
.try-ava {
  width: 26px; height: 26px; border-radius: 50%; background: var(--ink); color: #F0EFED;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: .62rem; font-weight: 600; letter-spacing: .04em; flex: none;
}
.try-persona b { color: var(--ink); font-weight: 600; }

@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ================= device switcher ================= */
.try-devices { display: flex; gap: 12px; margin: 26px 0 20px; flex-wrap: wrap; }
.try-dev {
  flex: 1 1 200px; display: flex; align-items: center; gap: 13px;
  background: var(--card); border: 1px solid #ddd9d2; border-radius: 16px;
  padding: 13px 16px; cursor: pointer; text-align: start;
  transition: transform .3s cubic-bezier(.16,1,.3,1), box-shadow .3s cubic-bezier(.16,1,.3,1), border-color .2s ease;
}
.try-dev:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(0,0,0,.08); }
.try-dev.is-on { border-color: var(--ink); box-shadow: 0 10px 26px rgba(0,0,0,.08); }
.try-dev svg { width: 34px; height: 34px; flex: none; stroke: var(--ink); fill: none; stroke-width: 1.6; }
.try-dev .t { font-size: .92rem; font-weight: 600; line-height: 1.3; }
.try-dev .s { font-size: .72rem; color: var(--mut); line-height: 1.4; }
.try-dev.is-on .t::after { content: ' •'; }

/* ================= stage ================= */
.try-stage { min-height: 420px; display: flex; justify-content: center; }
.stage-in { animation: stagein .34s cubic-bezier(.16,1,.3,1) both; width: 100%; display: flex; justify-content: center; }
@keyframes stagein { from { opacity: 0; transform: scale(.975) translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------- shared app chrome ---------- */
.web-main, .p-body, .win-body { container-type: inline-size; }
.fico, .wico { display: inline-flex; align-items: center; justify-content: center; }
.fico svg, .wico svg { width: 100%; height: 100%; }
.p-deco { display: inline-flex; padding: 5px; opacity: .55; }
.p-deco svg { width: 17px; height: 17px; stroke: var(--ink); fill: none; stroke-width: 1.7; }
.abtn {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--ink); color: #F0EFED; border: 0; cursor: pointer;
  border-radius: 20px; padding: 6px 14px; font-size: .74rem; font-weight: 500;
  transition: transform .18s ease, box-shadow .18s ease;
  white-space: nowrap;
}
.abtn:hover { transform: translateY(-1px); box-shadow: 0 5px 14px rgba(0,0,0,.18); }
.abtn.ghost { background: transparent; color: var(--ink); border: 1px solid #c9c5bd; }
.abtn.mini { padding: 3px 10px; font-size: .68rem; }
.abtn.link { background: transparent; color: var(--ink2); border: 0; padding: 3px 6px; text-decoration: underline; text-underline-offset: 2px; }
.abtn.link:hover { color: var(--ink); box-shadow: none; transform: none; }
.pill {
  display: inline-block; border-radius: 20px; padding: 2px 9px;
  font-size: .66rem; border: 1px solid #d8d5cf; color: var(--ink2); background: var(--card); white-space: nowrap;
}
.pill.ok { border-color: #b9d2c0; color: var(--ok); background: #eef4ef; }
.pill.warn { border-color: #e0cba8; color: var(--warn); background: #f7f1e5; }
.pill.dim { color: #979288; }

.tbl-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; background: var(--card); }
table.tbl { width: 100%; border-collapse: collapse; font-size: .76rem; }
.tbl th {
  text-align: start; font-weight: 500; color: var(--mut); font-size: .68rem;
  letter-spacing: .04em; padding: 9px 12px; border-bottom: 1px solid var(--line); white-space: nowrap;
}
.tbl td { padding: 9px 12px; border-bottom: 1px solid #f0eeea; vertical-align: middle; white-space: nowrap; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl tbody tr { transition: background .15s ease; }
.tbl tbody tr:hover { background: #faf9f7; }
.tbl .acts { display: flex; gap: 4px; justify-content: flex-end; }

.scr-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.scr-title { font-size: 1.02rem; font-weight: 600; letter-spacing: -.01em; margin-inline-end: auto; }
.scr-sub { font-size: .74rem; color: var(--mut); margin-bottom: 12px; max-width: 46rem; line-height: 1.65; }
.search {
  border: 1px solid #d5d1ca; border-radius: 20px; padding: 5px 13px;
  font-size: .74rem; font-family: inherit; background: var(--card); color: var(--ink); min-width: 130px;
}

.cardrow { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-bottom: 14px; }
.statcard { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.statcard .k { font-size: .66rem; color: var(--mut); letter-spacing: .04em; margin-bottom: 4px; }
.statcard .v { font-size: 1.25rem; font-weight: 600; letter-spacing: -.01em; line-height: 1.2; }
.statcard .m { font-size: .66rem; color: var(--mut); margin-top: 3px; }

.kv { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 6px 14px; }
.kv > div { display: flex; justify-content: space-between; gap: 18px; padding: 8px 0; border-bottom: 1px solid #f0eeea; font-size: .76rem; align-items: center; }
.kv > div:last-child { border-bottom: 0; }
.kv .k { color: var(--mut); }
.kv .v { font-weight: 500; text-align: end; }

.quota { height: 7px; border-radius: 6px; background: #e6e3dd; overflow: hidden; margin-top: 8px; }
.quota > i { display: block; height: 100%; background: var(--ink); border-radius: 6px; }

.pg { height: 5px; border-radius: 5px; background: #e6e3dd; overflow: hidden; min-width: 90px; }
.pg > i { display: block; height: 100%; background: var(--ink); border-radius: 5px; transition: width .5s linear; }
.pg.done > i { background: var(--ok); }

.empty { padding: 26px 14px; text-align: center; color: var(--mut); font-size: .78rem; }

.fico { width: 17px; height: 17px; flex: none; stroke: var(--ink2); fill: none; stroke-width: 1.5; vertical-align: -3px; margin-inline-end: 7px; }
.namecell { display: inline-flex; align-items: center; }

/* bars chart */
.bars { display: flex; align-items: flex-end; gap: 7px; height: 86px; padding: 6px 2px 0; }
.bars > i {
  flex: 1; background: var(--ink); border-radius: 4px 4px 0 0; min-height: 4px;
  transform-origin: bottom; animation: grow .7s cubic-bezier(.16,1,.3,1) both;
}
.bars > i:nth-child(2n) { background: #6f6c66; }
@keyframes grow { from { transform: scaleY(0); } to { transform: scaleY(1); } }
.barlabels { display: flex; gap: 7px; font-size: .6rem; color: var(--mut); }
.barlabels > span { flex: 1; text-align: center; }

/* spinner */
.spin { width: 14px; height: 14px; border-radius: 50%; border: 2px solid #cfccc5; border-top-color: var(--ink); animation: rot 1s linear infinite; flex: none; }
@keyframes rot { to { transform: rotate(360deg); } }
.spin.still { animation: none; border-top-color: #cfccc5; }

/* screen transition */
.scr { animation: scrin .22s cubic-bezier(.16,1,.3,1) both; }
@keyframes scrin { from { opacity: 0; transform: translateX(var(--dx)); } to { opacity: 1; transform: none; } }

/* ================= WINDOWS frame ================= */
.frame-laptop { width: 100%; max-width: 980px; padding-inline: 14px; }
.laptop-screen {
  border: 2px solid var(--ink); border-radius: 16px 16px 0 0; background: #dfdcd6;
  overflow: hidden; position: relative; box-shadow: 0 24px 60px -30px rgba(0,0,0,.35);
}
.laptop-base { height: 12px; background: var(--ink); border-radius: 0 0 14px 14px; margin: 0 -14px; opacity: .92; }
.laptop-cam { position: absolute; top: 5px; inset-inline-start: 50%; transform: translateX(-50%); width: 5px; height: 5px; border-radius: 50%; background: var(--ink); opacity: .5; z-index: 5; }
.win-desk { min-height: 560px; display: flex; flex-direction: column; background: linear-gradient(160deg, #e7e4de, #d9d5cd); }
.win-work { flex: 1; position: relative; padding: 22px; display: flex; }
.win-hint { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #8a857b; font-size: .82rem; }

.win-window {
  background: var(--bg); border: 1px solid #c9c5bd; border-radius: 10px;
  box-shadow: 0 18px 44px -18px rgba(0,0,0,.3); width: 100%;
  display: flex; flex-direction: column; overflow: hidden;
  animation: winopen .28s cubic-bezier(.16,1,.3,1) both;
}
@keyframes winopen { from { opacity: 0; transform: scale(.97) translateY(10px); } to { opacity: 1; transform: none; } }
.win-titlebar {
  display: flex; align-items: center; gap: 10px; padding: 8px 12px;
  background: var(--card); border-bottom: 1px solid var(--line); font-size: .74rem; font-weight: 600;
}
.win-titlebar .wico { width: 15px; height: 15px; stroke: var(--ink); fill: none; stroke-width: 1.7; flex: none; }
.win-ctl { margin-inline-start: auto; display: flex; gap: 6px; }
.win-ctl button {
  width: 24px; height: 20px; border: 1px solid #d5d1ca; background: transparent; border-radius: 5px;
  cursor: pointer; font-size: .68rem; line-height: 1; color: var(--ink2); display: inline-flex; align-items: center; justify-content: center;
}
.win-ctl button:hover { background: #eceae5; }
.win-body { flex: 1; overflow: auto; padding: 16px; max-height: 470px; }

.win-taskbar {
  display: flex; align-items: center; gap: 8px; background: rgba(42,42,42,.96);
  color: #d7d4cd; padding: 7px 12px; font-size: .72rem;
}
.tb-app {
  display: inline-flex; align-items: center; gap: 7px; border: 0; cursor: pointer;
  background: transparent; color: #cfccc4; border-radius: 8px; padding: 6px 11px; font-size: .72rem;
  border-bottom: 2px solid transparent; transition: background .15s ease;
}
.tb-app:hover { background: rgba(255,255,255,.09); }
.tb-app.is-on { background: rgba(255,255,255,.13); border-bottom-color: #F0EFED; color: #fff; }
.tb-app svg { width: 15px; height: 15px; stroke: currentColor; fill: none; stroke-width: 1.7; }
.tb-right { margin-inline-start: auto; display: flex; align-items: center; gap: 12px; }
.tb-tray { display: inline-flex; align-items: center; gap: 6px; border: 0; background: transparent; color: #cfccc4; cursor: pointer; padding: 4px 6px; border-radius: 7px; }
.tb-tray:hover { background: rgba(255,255,255,.09); }
.tb-tray svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 1.7; }
.tb-clock { font-variant-numeric: tabular-nums; opacity: .85; }

.tray-pop {
  position: absolute; bottom: 46px; inset-inline-end: 14px; width: 250px; z-index: 20;
  background: var(--card); border: 1px solid #cfccc5; border-radius: 12px; padding: 13px 15px;
  box-shadow: 0 18px 40px -16px rgba(0,0,0,.35); font-size: .76rem;
  animation: winopen .2s cubic-bezier(.16,1,.3,1) both;
}
.tray-pop .row { display: flex; align-items: center; gap: 8px; margin-bottom: 9px; }

.sync-strip {
  display: flex; align-items: center; gap: 9px; background: var(--card);
  border: 1px solid var(--line); border-radius: 10px; padding: 9px 13px; margin-bottom: 12px; font-size: .78rem;
}
.path-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: .74rem; color: var(--ink2); margin-bottom: 12px; }
.path-row code { background: var(--card); border: 1px solid var(--line); border-radius: 7px; padding: 3px 9px; font-size: .72rem; }

.q-item { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid #f0eeea; font-size: .75rem; }
.q-item:last-child { border-bottom: 0; }
.q-name { flex: 1; min-width: 120px; }
.q-pct { color: var(--mut); font-size: .68rem; min-width: 34px; text-align: end; }

.win-tabs { display: flex; gap: 2px; flex-wrap: wrap; border-bottom: 1px solid #d9d5ce; margin-bottom: 14px; }
.win-tab {
  border: 0; background: transparent; cursor: pointer; padding: 7px 13px; font-size: .74rem;
  color: var(--mut); border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap;
}
.win-tab:hover { color: var(--ink); }
.win-tab.is-on { color: var(--ink); font-weight: 600; border-bottom-color: var(--ink); }

/* ================= PHONE frames ================= */
.frame-phone { width: min(340px, 92vw); }
.phone-shell {
  border: 2px solid var(--ink); border-radius: 30px; background: var(--ink);
  padding: 7px; box-shadow: 0 24px 60px -30px rgba(0,0,0,.4); position: relative;
}
.phone-screen { background: var(--bg); border-radius: 23px; overflow: hidden; display: flex; flex-direction: column; height: 640px; position: relative; }
.frame-iphone .phone-shell { border-radius: 38px; }
.frame-iphone .phone-screen { border-radius: 31px; }
.p-status { display: flex; align-items: center; justify-content: space-between; padding: 8px 18px 4px; font-size: .64rem; color: var(--ink); font-variant-numeric: tabular-nums; }
.p-status .icons { display: inline-flex; gap: 4px; align-items: center; }
.p-status svg { width: 13px; height: 10px; }
.p-island { position: absolute; top: 7px; inset-inline-start: 50%; transform: translateX(-50%); width: 84px; height: 20px; border-radius: 12px; background: var(--ink); z-index: 6; }
.p-hole { position: absolute; top: 10px; inset-inline-start: 50%; transform: translateX(-50%); width: 10px; height: 10px; border-radius: 50%; background: var(--ink); z-index: 6; }
.frame-iphone .p-status { padding-top: 9px; }
.p-home { position: absolute; bottom: 6px; inset-inline-start: 50%; transform: translateX(-50%); width: 96px; height: 4px; border-radius: 4px; background: var(--ink); opacity: .8; z-index: 6; }

.p-appbar { display: flex; align-items: center; gap: 10px; padding: 10px 14px; background: var(--card); border-bottom: 1px solid var(--line); }
.p-appbar .t { font-size: .86rem; font-weight: 600; margin-inline-end: auto; }
.iconbtn { border: 0; background: transparent; cursor: pointer; padding: 5px; border-radius: 8px; display: inline-flex; }
.iconbtn:hover { background: #efede8; }
.iconbtn svg { width: 17px; height: 17px; stroke: var(--ink); fill: none; stroke-width: 1.7; }

.p-body { flex: 1; overflow: auto; padding: 13px 14px 60px; position: relative; }
.frame-iphone .p-body { padding-bottom: 74px; }

.p-tabs {
  position: absolute; bottom: 0; inset-inline: 0; display: flex; background: rgba(255,255,255,.96);
  border-top: 1px solid var(--line); padding: 5px 4px 14px; z-index: 5;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.p-tab { flex: 1; border: 0; background: transparent; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 4px 2px; color: var(--mut); font-size: .56rem; border-radius: 8px; }
.p-tab svg { width: 17px; height: 17px; stroke: currentColor; fill: none; stroke-width: 1.6; }
.p-tab.is-on { color: var(--ink); font-weight: 600; }

.drawer-veil { position: absolute; inset: 0; background: rgba(42,42,42,.32); z-index: 8; animation: veil .2s ease both; }
@keyframes veil { from { opacity: 0; } to { opacity: 1; } }
.drawer {
  position: absolute; top: 0; bottom: 0; inset-inline-start: 0; width: 76%; max-width: 270px; z-index: 9;
  background: var(--card); box-shadow: 8px 0 30px rgba(0,0,0,.2); padding: 16px 0 14px;
  overflow: auto; animation: drawin .24s cubic-bezier(.16,1,.3,1) both;
}
@keyframes drawin { from { transform: translateX(calc(var(--dx) * -6)); opacity: .4; } to { transform: none; opacity: 1; } }
.drawer .dhead { padding: 2px 18px 12px; border-bottom: 1px solid var(--line); margin-bottom: 8px; }
.drawer .dhead .nm { font-weight: 600; font-size: .84rem; }
.drawer .dhead .em { font-size: .68rem; color: var(--mut); }
.d-item {
  display: flex; align-items: center; gap: 11px; width: 100%; border: 0; background: transparent;
  cursor: pointer; padding: 9px 18px; font-size: .78rem; color: var(--ink2); text-align: start;
}
.d-item svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 1.6; flex: none; }
.d-item:hover { background: #f6f5f2; }
.d-item.is-on { color: var(--ink); font-weight: 600; background: #f1efeb; }
.d-group { padding: 12px 18px 5px; font-size: .62rem; letter-spacing: .1em; text-transform: uppercase; color: #9a958c; }

.fab {
  position: absolute; bottom: 66px; inset-inline-end: 16px; z-index: 6;
  width: 48px; height: 48px; border-radius: 16px; border: 0; cursor: pointer;
  background: var(--ink); color: #F0EFED; font-size: 1.3rem; line-height: 1;
  box-shadow: 0 10px 24px rgba(0,0,0,.3); display: flex; align-items: center; justify-content: center;
  transition: transform .18s ease;
}
.fab:hover { transform: translateY(-2px); }

.rowline { display: flex; align-items: center; gap: 10px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; margin-bottom: 8px; font-size: .77rem; }
.rowline .grow { flex: 1; min-width: 0; }
.rowline .nm { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rowline .meta { font-size: .66rem; color: var(--mut); margin-top: 1px; }

/* browser chrome (web app on the laptop) */
.br-bar { display: flex; align-items: center; gap: 9px; background: #e6e3dd; padding: 7px 12px; border-bottom: 1px solid #d5d1ca; }
.br-dots { display: inline-flex; gap: 5px; }
.br-dots i { width: 9px; height: 9px; border-radius: 50%; background: #c6c2ba; }
.br-url {
  flex: 1; background: var(--card); border: 1px solid #d5d1ca; border-radius: 16px;
  padding: 4px 13px; font-size: .7rem; color: var(--ink2); overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
}
.web-layout { display: flex; min-height: 430px; }
.web-nav { width: 198px; flex: none; border-inline-end: 1px solid #e2dfd9; padding: 12px 0; background: var(--card); }
.web-main { flex: 1; min-width: 0; padding: 16px 18px; }

/* upload zone */
.upzone {
  border: 2px dashed #c9c5bd; border-radius: 16px; background: var(--card);
  padding: 34px 20px; text-align: center; color: var(--ink2); font-size: .8rem;
  display: flex; flex-direction: column; align-items: center; gap: 12px; cursor: pointer;
  transition: border-color .2s ease, background .2s ease;
}
.upzone:hover { border-color: var(--ink); background: #fdfdfc; }
.upzone svg { width: 34px; height: 34px; stroke: var(--ink2); fill: none; stroke-width: 1.4; }

/* folder grid */
.foldergrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.foldcard {
  background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 13px 14px;
  cursor: pointer; transition: transform .25s cubic-bezier(.16,1,.3,1), box-shadow .25s cubic-bezier(.16,1,.3,1);
  text-align: start;
}
.foldcard:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0,0,0,.07); }
.foldcard svg { width: 25px; height: 25px; stroke: var(--ink); fill: none; stroke-width: 1.5; margin-bottom: 8px; }
.foldcard .fn { font-size: .8rem; font-weight: 600; }
.foldcard .fm { font-size: .66rem; color: var(--mut); margin-top: 2px; }

/* toggles (display-only state; clicking answers honestly) */
.tgl { position: relative; width: 34px; height: 20px; border-radius: 20px; background: #d5d5d5; border: 0; cursor: pointer; flex: none; transition: background .2s ease; }
.tgl::after {
  content: ''; position: absolute; top: 2px; inset-inline-start: 2px; width: 16px; height: 16px; border-radius: 50%;
  background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.18); transition: transform .2s ease;
}
.tgl.on { background: var(--ink); }
.tgl.on::after { transform: translateX(14px); }
html[dir="rtl"] .tgl.on::after { transform: translateX(-14px); }

/* locked (non-admin) card */
.lockcard {
  max-width: 430px; margin: 28px auto; background: var(--card); border: 1px solid #ddd9d2;
  border-radius: 16px; padding: 26px 26px 22px; text-align: center;
}
.lockcard svg { width: 34px; height: 34px; stroke: var(--ink); fill: none; stroke-width: 1.5; margin-bottom: 12px; }
.lockcard h3 { font-size: 1rem; margin-bottom: 8px; letter-spacing: -.01em; }
.lockcard p { font-size: .78rem; color: var(--ink2); line-height: 1.7; margin-bottom: 16px; }

/* preview sheet */
.sheet-veil { position: fixed; inset: 0; background: rgba(42,42,42,.4); z-index: 90; animation: veil .18s ease both; }
.sheet {
  position: fixed; inset-inline-start: 50%; top: 50%; transform: translate(-50%, -50%);
  width: min(430px, 92vw); max-height: 84vh; overflow: auto; z-index: 91;
  background: var(--card); border-radius: 16px; padding: 22px;
  box-shadow: 0 30px 80px rgba(0,0,0,.35); animation: sheetin .24s cubic-bezier(.16,1,.3,1) both;
}
html[dir="rtl"] .sheet { transform: translate(50%, -50%); }
@keyframes sheetin { from { opacity: 0; margin-top: 12px; } to { opacity: 1; margin-top: 0; } }
.sheet h3 { font-size: .95rem; margin-bottom: 4px; word-break: break-word; }
.sheet .sub { font-size: .7rem; color: var(--mut); margin-bottom: 14px; }
.sheet .kv { margin-bottom: 14px; }
.sheet .closer { display: flex; justify-content: flex-end; }

/* ================= answer bar & toast ================= */
.try-answer {
  position: sticky; bottom: 12px; z-index: 40;
  display: flex; gap: 12px; align-items: baseline;
  background: var(--ink); color: #e8e6e1; border-radius: 14px;
  padding: 12px 18px; margin-top: 22px; font-size: .8rem; line-height: 1.6;
  box-shadow: 0 16px 40px -14px rgba(0,0,0,.45);
}
.try-answer-label { font-size: .64rem; letter-spacing: .1em; text-transform: uppercase; color: #a49f95; white-space: nowrap; flex: none; }
.try-answer-text { min-height: 1.2em; }
.try-answer.flash { animation: ansflash .5s ease; }
@keyframes ansflash { 0% { box-shadow: 0 0 0 3px rgba(42,42,42,.0), 0 16px 40px -14px rgba(0,0,0,.45); background: #3a3a38; } 100% { background: var(--ink); } }

.try-toast {
  position: fixed; bottom: 86px; inset-inline-start: 50%; transform: translateX(-50%);
  z-index: 95; background: var(--card); color: var(--ink); border: 1px solid #d8d5cf;
  border-radius: 12px; padding: 10px 16px; font-size: .76rem; max-width: min(520px, 90vw);
  box-shadow: 0 18px 44px -12px rgba(0,0,0,.3); line-height: 1.6;
  animation: toastin .3s cubic-bezier(.16,1,.3,1) both;
}
html[dir="rtl"] .try-toast { transform: translateX(50%); }
@keyframes toastin { from { opacity: 0; margin-bottom: -8px; } to { opacity: 1; margin-bottom: 0; } }
.try-toast.out { opacity: 0; transition: opacity .3s ease; }

/* ================= container adaptation ================= */
@container (max-width: 640px) {
  .hide-md { display: none; }
  .web-nav { width: 158px; }
  .web-main { padding: 12px; }
}
@container (max-width: 470px) {
  .hide-sm { display: none; }
  .cardrow { grid-template-columns: 1fr 1fr; }
}

/* ================= responsive page ================= */
@media (max-width: 900px) {
  .try-h1 { font-size: 2.1rem; }
  .win-body { max-height: none; }
}
@media (max-width: 760px) {
  .try-flag { display: none; }
  .web-nav { width: 150px; }
}
@media (max-width: 620px) {
  .dk-shell { padding-inline: 14px; }
  .try-headrow { gap: 10px; }
  .try-h1 { font-size: 1.8rem; }
  .try-sub { font-size: .88rem; }
  .try-dev { flex: 1 1 100%; padding: 10px 14px; }
  .try-dev svg { width: 27px; height: 27px; }
  .win-work { padding: 10px; }
  .win-desk { min-height: 480px; }
  .web-layout { flex-direction: column; }
  .web-nav { width: 100%; display: flex; overflow-x: auto; padding: 6px 8px; gap: 2px; border-inline-end: 0; border-bottom: 1px solid #e2dfd9; }
  .web-nav .d-item { padding: 7px 11px; white-space: nowrap; width: auto; border-radius: 8px; }
  .web-nav .d-group { padding: 7px 6px 7px; white-space: nowrap; }
  .win-body { padding: 12px; }
  .tb-app span { display: none; }
  .tb-app.is-on span { display: inline; }
  .try-answer { border-radius: 12px; padding: 10px 14px; font-size: .74rem; }
}

/* ================= reduced motion =================
   JS mirrors the media query onto html.reduced (plus ?motion=reduced for testing),
   so every rule lives once. Progress/state still update — instantly, without motion. */
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
html.reduced *, html.reduced *::before, html.reduced *::after {
  animation-duration: .001s !important;
  animation-iteration-count: 1 !important;
  transition-duration: .001s !important;
}
html.reduced .spin { animation: none; border-top-color: var(--ink); }
html.reduced .bars > i { animation: none; transform: none; }
