@font-face {
font-family: "Estedad";
src: url("/assets/fonts/estedad-arabic.e0efecd488.woff2") format("woff2-variations"), url("/assets/fonts/estedad-arabic.e0efecd488.woff2") format("woff2");
font-weight: 100 900;
font-style: normal;
font-display: swap;
unicode-range: U+0600-06FF,U+0750-077F,U+0870-088E,U+0890-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-10EC4,U+10EFC-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: "Estedad";
src: url("/assets/fonts/estedad-latin.e593cc0158.woff2") format("woff2-variations"), url("/assets/fonts/estedad-latin.e593cc0158.woff2") format("woff2");
font-weight: 100 900;
font-style: normal;
font-display: swap;
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: "Estedad";
src: url("/assets/fonts/estedad-latin-ext.bad1890517.woff2") format("woff2-variations"), url("/assets/fonts/estedad-latin-ext.bad1890517.woff2") format("woff2");
font-weight: 100 900;
font-style: normal;
font-display: swap;
unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
font-family: "Estedad Fallback";
src: local("Tahoma"), local("Segoe UI"), local("Arial");
size-adjust: 94%;
ascent-override: 109%;
descent-override: 53%;
line-gap-override: 0%;
}
:root {
color-scheme: light;
--font: "Estedad", "Estedad Fallback", Tahoma, sans-serif;
--mono: var(--font);
--bg: #f7f6f2;
--surface: #ffffff;
--surface-solid: #ffffff;
--surface-2: #f1efe9;
--surface-3: #e7e4dc;
--border: #e5e1d8;
--border-strong: #cfc8bb;
--text: #1b1a17;
--text-2: #45423b;
--muted: #6d685e;
--ink: #1b1a17;
--on-ink: #fbfaf7;
--accent: #0b7268;
--accent-soft: rgba(11, 114, 104, .09);
--mark: #fff1bd;
--mark-strong: #f2c94c;
--success: #15803d; --success-soft: rgba(21, 128, 61, .09);
--danger: #b42318;  --danger-soft: rgba(180, 35, 24, .08);
--warning: #9a5b00; --warning-soft: rgba(217, 140, 0, .12);
--info: #0b7268;    --info-soft: rgba(11, 114, 104, .08);
--trust: #1d5fd1;   --trust-soft: rgba(29, 95, 209, .08); --trust-border: rgba(29, 95, 209, .22);
--brand: var(--accent);
--brand-ink: var(--accent);
--brand-soft: var(--accent-soft);
--grad: var(--ink);
--grad-soft: var(--mark);
--glow: none;
--ring: 0 0 0 3px rgba(11, 114, 104, .28);
--sh-1: none;
--sh-2: 0 1px 2px rgba(27, 26, 23, .05);
--sh-3: 0 16px 40px -16px rgba(27, 26, 23, .28);
--r-sm: 6px; --r: 10px; --r-lg: 12px; --r-xl: 14px; --r-full: 999px;
--ease: cubic-bezier(.2, .8, .2, 1);
--header-h: 60px;
--maxw: 1180px;
--readw: 920px;
--gutter: clamp(16px, 3vw, 28px);
--fs-xs: .78rem; --fs-sm: .875rem; --fs-base: 1rem; --fs-md: 1.1rem; --fs-lg: 1.25rem;
--fs-xl: clamp(1.3rem, 1.15rem + .6vw, 1.6rem);
--fs-2xl: clamp(1.6rem, 1.3rem + 1.4vw, 2.25rem);
--fs-hero: clamp(1.9rem, 1.35rem + 2.6vw, 3.1rem);
}
:root[data-theme="dark"] {
color-scheme: dark;
--bg: #141412; --surface: #1c1b19; --surface-solid: #1c1b19; --surface-2: #24231f; --surface-3: #2e2c28;
--border: #302e29; --border-strong: #46423b;
--text: #eeeae1; --text-2: #cfc9bd; --muted: #a39d91;
--ink: #eeeae1; --on-ink: #141412;
--accent: #46c2b2; --accent-soft: rgba(70, 194, 178, .12);
--mark: #3a3216; --mark-strong: #8a7224;
--success: #4ade80; --success-soft: rgba(74, 222, 128, .1);
--danger: #f87171; --danger-soft: rgba(248, 113, 113, .1);
--warning: #fbbf24; --warning-soft: rgba(251, 191, 36, .1);
--info: #46c2b2; --info-soft: rgba(70, 194, 178, .1);
--trust: #7fb0ff; --trust-soft: rgba(127, 176, 255, .1); --trust-border: rgba(127, 176, 255, .25);
--ring: 0 0 0 3px rgba(70, 194, 178, .35);
--sh-2: 0 1px 2px rgba(0, 0, 0, .4);
--sh-3: 0 18px 44px -16px rgba(0, 0, 0, .7);
}
.hue-sky { --hue: #0369a1; } .hue-emerald { --hue: #047857; } .hue-amber { --hue: #b45309; }
.hue-rose { --hue: #be123c; } .hue-violet { --hue: #6d28d9; } .hue-cyan { --hue: #0e7490; }
.hue-orange { --hue: #c2410c; } .hue-indigo { --hue: #4338ca; } .hue-lime { --hue: #4d7c0f; }
.hue-fuchsia { --hue: #a21caf; } .hue-teal { --hue: #0f766e; } .hue-red { --hue: #b91c1c; }
.hue-yellow { --hue: #a16207; } .hue-blue { --hue: #1d4ed8; } .hue-brand { --hue: var(--accent); }
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
margin: 0; min-height: 100vh; overflow-x: hidden;
font-family: var(--font); font-size: var(--fs-base); line-height: 1.85;
color: var(--text); background: var(--bg);
-webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg, video, canvas { display: block; max-width: 100%; }
img, video { height: auto; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
::selection { background: var(--mark); color: var(--text); }
h1, h2, h3, h4 { line-height: 1.4; margin: 0 0 .6em; font-weight: 800; color: var(--text); }
p { margin: 0 0 1em; }
hr { border: 0; border-top: 1px solid var(--border); margin: 2rem 0; }
code, kbd, samp, pre { font-family: var(--mono); font-size: .92em; }
mark { background: var(--mark); color: inherit; padding: 0 .15em; border-radius: 3px; }
[hidden] { display: none !important; }
.i { width: 1.25em; height: 1.25em; flex: none; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.i-lg { width: 1.6em; height: 1.6em; }
.flip-rtl { transform: scaleX(-1); }
.ltr { direction: ltr; unicode-bidi: isolate; }
.mono { font-family: var(--mono); }
.muted { color: var(--muted); }
.small { font-size: var(--fs-sm); }
.nowrap { white-space: nowrap; }
.center { text-align: center; }
.hint { font-size: .8rem; color: var(--muted); margin: 0; line-height: 1.8; }
.err { font-size: .84rem; color: var(--danger); margin: 0; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 100; background: var(--ink); color: var(--on-ink); padding: 10px 16px; border-radius: var(--r-sm); transition: top .2s; }
.skip-link:focus { top: 12px; text-decoration: none; }
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.container.narrow { max-width: calc(var(--readw) + 2 * var(--gutter)); }
.stack > * + * { margin-block-start: var(--stack, 1rem); }
.row { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: .75rem; flex-wrap: wrap; }
.grid { display: grid; gap: var(--gap, 1rem); }
.grid-2 { display: grid; gap: 1.5rem; grid-template-columns: minmax(0, 1fr); }
.grid-3 { display: grid; gap: 1rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 860px) { .grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.cols-auto { display: grid; gap: .75rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, var(--min, 260px)), 1fr)); }
.section { padding-block: clamp(1.75rem, 4vw, 3rem); }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; flex-wrap: wrap; }
.section-head h2 { font-size: var(--fs-xl); margin: 0; }
.section-head p { margin: .15rem 0 0; color: var(--muted); font-size: .92rem; }
.section-head .more { font-size: .9rem; font-weight: 700; color: var(--text-2); display: inline-flex; align-items: center; gap: .3rem; }
.eyebrow { display: inline-block; font-size: .82rem; font-weight: 700; color: var(--muted); }
.site-header { position: sticky; top: 0; z-index: 50; height: var(--header-h); background: var(--bg); border-bottom: 1px solid var(--border); }
.site-header .container { height: 100%; display: flex; align-items: center; gap: 1.25rem; }
.brand { display: inline-flex; align-items: center; gap: .55rem; color: var(--text); font-weight: 800; font-size: 1.08rem; }
.brand:hover { text-decoration: none; }
.brand svg { width: 32px; height: 32px; border-radius: 8px; }
.logo-bg { fill: #1b1a17; }
:root[data-theme="dark"] .logo-bg { fill: #3a3832; }
.brand small { display: block; font-size: .7rem; font-weight: 500; color: var(--muted); margin-top: -5px; }
.main-nav { display: none; align-items: center; gap: .15rem; }
.main-nav > a, .main-nav > button { position: relative; display: inline-flex; align-items: center; gap: .3rem; height: var(--header-h); padding-inline: .7rem; color: var(--text-2); font-weight: 600; font-size: .93rem; background: none; border: 0; }
.main-nav > a:hover, .main-nav > button:hover, .main-nav > button[aria-expanded="true"] { color: var(--text); text-decoration: none; }
.main-nav > a[aria-current="page"] { color: var(--text); }
.main-nav > a[aria-current="page"]::after, .main-nav > button[aria-expanded="true"]::after { content: ""; position: absolute; inset-inline: .7rem; bottom: -1px; height: 2px; background: var(--ink); }
.main-nav .i { width: 1em; height: 1em; }
.header-actions { margin-inline-start: auto; display: flex; align-items: center; gap: .25rem; }
.search-trigger { display: inline-flex; align-items: center; gap: .5rem; height: 40px; padding-inline: .75rem .45rem; min-width: 0; border-radius: var(--r-sm); border: 1px solid var(--border-strong); background: var(--surface); color: var(--muted); font-size: .9rem; }
.search-trigger:hover { border-color: var(--text-2); color: var(--text-2); }
.search-trigger .label { display: none; }
.kbd, kbd { display: inline-flex; align-items: center; padding: 0 6px; border-radius: 4px; border: 1px solid var(--border-strong); background: var(--surface-2); font-size: .72rem; line-height: 1.6; color: var(--muted); font-family: var(--mono); direction: ltr; }
.search-trigger .kbd { display: none; }
@media (min-width: 900px) {
.main-nav { display: flex; }
.search-trigger { min-width: 240px; }
.search-trigger .label { display: inline; flex: 1; text-align: start; }
.search-trigger .kbd { display: inline-flex; }
}
.icon-btn { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: var(--r-sm); border: 0; background: none; color: var(--text-2); }
.icon-btn:hover { background: var(--surface-2); color: var(--text); }
.theme-toggle .i-sun, :root[data-theme="dark"] .theme-toggle .i-moon { display: none; }
:root[data-theme="dark"] .theme-toggle .i-sun { display: block; }
.mega { position: absolute; inset-inline: 0; top: calc(var(--header-h) - 1px); background: var(--surface); border-block: 1px solid var(--border); box-shadow: var(--sh-3); padding: 1.25rem 0; animation: drop .18s var(--ease); }
.mega-grid { flex: 1; min-width: 0; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 0 1.5rem; }
.mega a.cat-link { display: flex; gap: .7rem; align-items: center; padding: .6rem .25rem; border-bottom: 1px solid var(--border); color: var(--text); }
.mega-grid > li { margin: 0; }
.mega a.cat-link:hover { text-decoration: none; background: var(--surface-2); }
.mega .cat-link b { display: block; font-weight: 700; font-size: .93rem; line-height: 1.5; }
.mega .cat-link span { display: block; font-size: .78rem; color: var(--muted); line-height: 1.4; }
@keyframes drop { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.ic-tile { display: inline-grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: var(--r-sm); color: var(--text-2); background: var(--surface-2); }
.ic-tile .i { width: 20px; height: 20px; }
.ic-tile.lg { width: 48px; height: 48px; border-radius: 8px; }
.ic-tile.lg .i { width: 24px; height: 24px; }
.ic-tile.solid { color: var(--on-ink); background: var(--ink); }
.btn {
--bh: 44px;
display: inline-flex; align-items: center; justify-content: center; gap: .45rem;
height: var(--bh); padding-inline: 1.1rem; border-radius: var(--r-sm); border: 1px solid transparent;
font-weight: 700; font-size: .93rem; white-space: nowrap; user-select: none; text-decoration: none;
transition: background .15s, border-color .15s, color .15s;
}
.btn:hover { text-decoration: none; }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .5; pointer-events: none; }
.btn-primary { background: var(--ink); color: var(--on-ink); }
.btn-primary:hover { background: color-mix(in srgb, var(--ink) 86%, var(--bg)); color: var(--on-ink); }
.btn-soft { background: var(--surface); border-color: var(--border-strong); color: var(--text); }
.btn-soft:hover { border-color: var(--text-2); }
.btn-ghost { background: transparent; color: var(--text-2); }
.btn-ghost:hover { background: var(--surface-2); color: var(--text); }
.btn-danger { background: var(--danger-soft); color: var(--danger); }
.btn-sm { --bh: 36px; padding-inline: .75rem; font-size: .86rem; }
.btn-lg { --bh: 52px; padding-inline: 1.5rem; font-size: 1rem; }
.btn-block { width: 100%; }
.btn .i { width: 1.1em; height: 1.1em; }
.chip { display: inline-flex; align-items: center; gap: .35rem; min-height: 34px; padding: .2rem .7rem; border-radius: var(--r-sm); background: var(--surface); border: 1px solid var(--border); color: var(--text-2); font-size: .86rem; font-weight: 600; }
.chip:hover { border-color: var(--text-2); color: var(--text); text-decoration: none; }
.chip .i { width: 1em; height: 1em; color: var(--muted); }
.chip.is-active { background: var(--ink); border-color: var(--ink); color: var(--on-ink); }
button.chip { cursor: pointer; }
.chip-list { display: flex; flex-wrap: wrap; gap: .4rem; margin: 0; padding: 0; list-style: none; }
.badge { display: inline-flex; align-items: center; gap: .25rem; padding: 0 .45rem; border-radius: 4px; font-size: .72rem; font-weight: 700; line-height: 1.7; background: var(--surface-2); color: var(--text-2); vertical-align: middle; }
.badge.new { background: var(--success-soft); color: var(--success); }
.badge.hot { background: var(--warning-soft); color: var(--warning); }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); }
.card-pad { padding: clamp(1rem, 2.5vw, 1.5rem); }
.tcard { position: relative; display: flex; align-items: center; gap: .8rem; padding: .8rem .9rem; min-height: 68px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); color: var(--text); transition: border-color .15s, background .15s; }
.tcard:hover { border-color: var(--text-2); text-decoration: none; }
.tcard-body { flex: 1; min-width: 0; }
.tcard-name { display: block; font-weight: 700; font-size: .96rem; line-height: 1.55; }
.tcard-desc { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: .8rem; color: var(--muted); line-height: 1.65; }
.tcard-go { color: var(--muted); opacity: 0; transition: opacity .15s; }
.tcard:hover .tcard-go { opacity: 1; }
.tcard .fav-dot { position: absolute; top: 8px; inset-inline-end: 10px; color: var(--danger); width: 14px; height: 14px; }
.bento { display: grid; gap: .75rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 760px) { .bento { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .bento { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.ccard { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "icon name" "icon count" "desc desc"; gap: 0 .75rem; align-items: center; padding: .9rem 1rem; border-radius: var(--r); background: var(--surface); border: 1px solid var(--border); color: var(--text); transition: border-color .15s; }
.ccard:hover { border-color: var(--text-2); text-decoration: none; }
.ccard .ic-tile { grid-area: icon; }
.ccard .ccard-title { grid-area: name; font-size: .98rem; margin: 0; line-height: 1.5; }
.ccard .count { grid-area: count; font-size: .8rem; color: var(--muted); line-height: 1.5; }
.ccard p { grid-area: desc; margin: .65rem 0 0; font-size: .82rem; color: var(--muted); line-height: 1.7; }
.ccard.wide { grid-column: auto; }
.home-bento .ccard p { display: none; }
.page-head { padding-block: clamp(1.25rem, 3vw, 2.25rem) 1.25rem; }
.page-head h1 { font-size: var(--fs-2xl); margin: 0 0 .4rem; }
.page-head .lead { color: var(--text-2); margin: 0; max-width: 70ch; }
.crumbs { font-size: .8rem; color: var(--muted); margin-bottom: .75rem; }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .2rem; align-items: center; }
.crumbs li { display: inline-flex; align-items: center; gap: .2rem; }
.crumbs li + li::before { content: "/"; color: var(--border-strong); margin-inline-end: .25rem; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--text); }
.hero { padding-block: clamp(2rem, 6vw, 4rem) clamp(1.5rem, 3vw, 2.25rem); }
.hero h1 { font-size: var(--fs-hero); font-weight: 800; line-height: 1.35; margin: 0 0 .75rem; max-width: 20ch; }
.hero h1 mark { background: linear-gradient(transparent 58%, var(--mark-strong) 58%, var(--mark-strong) 90%, transparent 90%); padding: 0; border-radius: 0; }
:root[data-theme="dark"] .hero h1 mark { background: linear-gradient(transparent 62%, #6b5a1e 62%, #6b5a1e 92%, transparent 92%); }
.hero .lead { font-size: clamp(1rem, .95rem + .3vw, 1.12rem); color: var(--text-2); max-width: 62ch; margin: 0 0 1.5rem; }
.hero-search { position: relative; max-width: 720px; }
.hero-search .i-search { position: absolute; inset-inline-start: 16px; top: 50%; transform: translateY(-50%); color: var(--muted); width: 22px; height: 22px; pointer-events: none; }
.hero-search input { width: 100%; height: 58px; padding-inline: 50px 70px; border-radius: var(--r); font-size: 1.05rem; background: var(--surface); border: 1.5px solid var(--ink); outline: none; }
.hero-search input:focus { box-shadow: var(--ring); }
.hero-search .kbd { position: absolute; inset-inline-end: 16px; top: 50%; transform: translateY(-50%); }
.hero-results { position: absolute; z-index: 30; inset-inline: 0; top: calc(100% + 6px); text-align: start; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); box-shadow: var(--sh-3); padding: .35rem; max-height: 60vh; overflow: auto; }
.hero-meta { margin: .85rem 0 0; font-size: .86rem; color: var(--muted); }
.trust-badge { display: inline-flex; align-items: center; gap: .3rem; color: var(--trust); font-weight: 700; }
.trust-badge .i { width: 1.05em; height: 1.05em; }
.quick { display: flex; gap: .4rem; flex-wrap: wrap; align-items: center; margin-top: 1rem; }
.quick .quick-label { font-size: .85rem; color: var(--muted); margin-inline-end: .2rem; }
.stats { display: none; }
.hero-blob { display: none; }
.tab-list { display: flex; gap: .25rem; border-bottom: 1px solid var(--border); margin-bottom: 1.1rem; overflow-x: auto; scrollbar-width: none; }
.tab-list::-webkit-scrollbar { display: none; }
.tab { position: relative; display: inline-flex; align-items: center; gap: .4rem; min-height: 46px; padding: .35rem .8rem; border: 0; background: none; color: var(--muted); font: inherit; font-size: .9rem; font-weight: 700; white-space: nowrap; cursor: pointer; }
.tab .i { width: 18px; height: 18px; }
.tab small { font-size: .74rem; font-weight: 600; color: var(--muted); }
.tab:hover { color: var(--text); }
.tab[aria-selected="true"] { color: var(--text); }
.tab[aria-selected="true"]::after { content: ""; position: absolute; inset-inline: .5rem; bottom: -1px; height: 2px; background: var(--ink); }
.tab:focus-visible { outline-offset: -2px; }
.tab-panel { animation: fade .2s ease both; }
.tab-panel:focus-visible { outline: none; }
.tab-more { display: flex; justify-content: flex-start; margin-top: 1rem; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.tool-page { max-width: calc(var(--readw) + 2 * var(--gutter)); }
.tool-head { display: flex; gap: .9rem; align-items: flex-start; }
.tool-head h1 { font-size: var(--fs-2xl); margin: 0 0 .3rem; }
.tool-head .lead { color: var(--text-2); margin: 0; max-width: 70ch; }
.tool-head .ic-tile { margin-top: .35rem; }
.tool-actions { display: flex; gap: .25rem; margin-top: .75rem; flex-wrap: wrap; align-items: center; }
.tool-actions .btn { --bh: 34px; padding-inline: .6rem; font-size: .84rem; color: var(--text-2); background: none; border: 0; }
.tool-actions .btn:hover { background: var(--surface-2); color: var(--text); }
.tool-actions .rating-chip { font-size: .82rem; color: var(--muted); display: inline-flex; align-items: center; gap: .3rem; padding-inline: .5rem; }
.fav-btn[aria-pressed="true"] { color: var(--danger) !important; }
.fav-btn[aria-pressed="true"] .i { fill: currentColor; }
.app { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-xl); padding: clamp(1rem, 3vw, 1.75rem); }
.app > .notice:first-child { margin-bottom: 1.25rem; }
.notice { display: flex; gap: .6rem; align-items: flex-start; padding: .75rem .9rem; border-radius: var(--r-sm); font-size: .9rem; line-height: 1.85; background: var(--info-soft); color: var(--text-2); border-inline-start: 3px solid var(--info); }
.notice .i { color: var(--info); margin-top: .3rem; width: 1.1em; height: 1.1em; }
.notice.warn { background: var(--warning-soft); border-color: var(--warning); }
.notice.warn .i { color: var(--warning); }
.notice.danger { background: var(--danger-soft); border-color: var(--danger); }
.notice.danger .i { color: var(--danger); }
.notice.ok { background: var(--success-soft); border-color: var(--success); }
.notice.ok .i { color: var(--success); }
.privacy-note { display: flex; align-items: center; gap: .5rem; font-size: .8rem; font-weight: 600; color: var(--trust); background: var(--trust-soft); border: 1px solid var(--trust-border); border-radius: var(--r-sm); margin: 1.25rem 0 0; padding: .6rem .8rem; }
.privacy-note .i { flex: none; color: var(--trust); width: 1.15em; height: 1.15em; }
.tool-content { padding-block: clamp(2rem, 5vw, 3rem) 0; }
.tool-content > * + * { margin-top: clamp(2rem, 5vw, 3rem); }
.updated-note { font-size: .82rem; color: var(--muted); display: flex; align-items: center; gap: .35rem; margin-top: 2rem; }
.updated-note .i { width: 1em; height: 1em; color: var(--trust); }
.updated-note time { color: var(--trust); font-weight: 600; }
.form { display: grid; gap: 1.1rem; align-content: start; }
.field { display: grid; gap: .35rem; min-width: 0; }
.field > label, .field-label { font-weight: 600; font-size: .9rem; color: var(--text); display: flex; align-items: center; gap: .4rem; justify-content: space-between; }
.field .hint { font-size: .78rem; }
.input, .select, .textarea {
width: 100%; min-width: 0; height: 48px; padding-inline: .9rem; border-radius: var(--r-sm); border: 1px solid var(--border-strong);
background: var(--surface); color: var(--text); font-size: 1rem; outline: none; transition: border-color .15s, box-shadow .15s;
}
.input::placeholder, .textarea::placeholder { color: color-mix(in srgb, var(--muted) 70%, transparent); }
.input:hover, .select:hover, .textarea:hover { border-color: var(--muted); }
.input:focus, .select:focus, .textarea:focus { border-color: var(--accent); box-shadow: var(--ring); }
.input[aria-invalid="true"] { border-color: var(--danger); box-shadow: 0 0 0 3px var(--danger-soft); }
.input.num { font-size: 1.1rem; font-weight: 700; direction: ltr; text-align: right; }
.input.num::placeholder { text-align: right; font-weight: 400; }
.input.ltr, .textarea.ltr { direction: ltr; text-align: left; }
.textarea { height: auto; min-height: 140px; padding: .75rem .9rem; line-height: 1.9; resize: vertical; }
.textarea.code { font-family: var(--mono); font-size: .9rem; line-height: 1.7; direction: ltr; text-align: left; }
.select { appearance: none; -webkit-appearance: none; padding-inline-end: 2.4rem; cursor: pointer;
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236d685e' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
background-repeat: no-repeat; background-position: left 12px center; }
.input-wrap { position: relative; display: flex; align-items: stretch; }
.input-wrap .input { flex: 1; }
.input-wrap .suffix, .input-wrap .prefix { position: absolute; left: 1px; right: auto; top: 1px; bottom: 1px; display: inline-flex; align-items: center; padding-inline: .8rem; border: 0; border-right: 1px solid var(--border); border-radius: calc(var(--r-sm) - 1px) 0 0 calc(var(--r-sm) - 1px); background: var(--surface-2); color: var(--muted); font: inherit; font-size: .84rem; font-weight: 600; pointer-events: none; }
.input-wrap select.suffix { pointer-events: auto; cursor: pointer; appearance: none; -webkit-appearance: none; color: var(--text-2); outline: none; }
.input-wrap select.suffix:focus-visible { box-shadow: inset var(--ring); }
.input-wrap:has(.suffix) .input { padding-left: 5.6rem; padding-right: .9rem; }
.input-wrap:has(select.suffix) .input { padding-left: 6.6rem; }
.words { min-height: 1.4em; font-size: .8rem; color: var(--muted); line-height: 1.7; }
.fields-2 { display: grid; gap: 1rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.fields-3 { display: grid; gap: .75rem; grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 480px) { .fields-3.collapse { grid-template-columns: 1fr; } }
.actions { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; }
.seg { display: inline-flex; flex-wrap: wrap; gap: 0; padding: 0; border-radius: var(--r-sm); border: 1px solid var(--border-strong); background: var(--surface); max-width: 100%; overflow: hidden; }
.seg.block { display: flex; }
.seg.block label { flex: 1; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg label { display: inline-flex; align-items: center; justify-content: center; gap: .3rem; min-height: 42px; padding: .3rem .85rem; font-size: .88rem; font-weight: 600; color: var(--text-2); cursor: pointer; text-align: center; line-height: 1.5; border-inline-start: 1px solid var(--border); }
.seg label:first-of-type { border-inline-start: 0; }
.seg label:hover { background: var(--surface-2); color: var(--text); }
.seg input:checked + label { background: var(--ink); color: var(--on-ink); }
.seg input:focus-visible + label { box-shadow: inset var(--ring); outline: 2px solid var(--accent); outline-offset: -2px; }
.switch { display: inline-flex; align-items: center; gap: .55rem; cursor: pointer; font-weight: 600; font-size: .92rem; user-select: none; }
.switch input { appearance: none; -webkit-appearance: none; width: 42px; height: 24px; border-radius: 99px; background: var(--surface-3); border: 1px solid var(--border-strong); position: relative; cursor: pointer; flex: none; margin: 0; transition: background .15s; }
.switch input::after { content: ""; position: absolute; top: 2px; inset-inline-start: 2px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .25); transition: inset-inline-start .15s var(--ease); }
.switch input:checked { background: var(--ink); border-color: var(--ink); }
.switch input:checked::after { inset-inline-start: 20px; background: var(--on-ink); }
.check { display: inline-flex; align-items: center; gap: .5rem; cursor: pointer; font-size: .92rem; font-weight: 600; }
.check input { width: 18px; height: 18px; accent-color: var(--ink); margin: 0; }
.check-grid { display: grid; gap: .5rem .9rem; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
.range { width: 100%; accent-color: var(--ink); height: 28px; }
.range-row { display: flex; align-items: center; gap: .8rem; }
.range-row output { min-width: 3.5ch; font-weight: 700; text-align: center; }
.color-input { width: 100%; height: 44px; border-radius: var(--r-sm); border: 1px solid var(--border-strong); background: var(--surface); padding: 3px; cursor: pointer; }
.dropzone { position: relative; display: grid; place-items: center; gap: .4rem; text-align: center; padding: 2rem 1rem; border-radius: var(--r); border: 1.5px dashed var(--border-strong); background: var(--bg); cursor: pointer; transition: border-color .15s, background .15s; }
.dropzone:hover, .dropzone.is-over { border-color: var(--ink); background: var(--surface-2); }
.dropzone input[type="file"] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.dropzone .ic-tile { margin-inline: auto; background: var(--surface); border: 1px solid var(--border); }
.dropzone b { font-size: 1rem; font-weight: 700; }
.dropzone span { font-size: .82rem; color: var(--muted); }
.file-list { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.file-item { display: flex; align-items: center; gap: .65rem; padding: .55rem 0; border-bottom: 1px solid var(--border); font-size: .88rem; }
.file-item .name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; direction: ltr; text-align: right; }
.file-item img { width: 44px; height: 44px; object-fit: cover; border-radius: var(--r-sm); }
details.panel { border: 1px solid var(--border); border-radius: var(--r); background: var(--surface); }
details.panel > summary { cursor: pointer; list-style: none; padding: .8rem .95rem; font-weight: 700; display: flex; align-items: center; gap: .5rem; border-radius: inherit; }
details.panel > summary::-webkit-details-marker { display: none; }
details.panel > summary::after { content: ""; margin-inline-start: auto; width: .45rem; height: .45rem; border-inline-end: 1.8px solid currentColor; border-block-end: 1.8px solid currentColor; transform: rotate(45deg); transition: transform .15s; }
details.panel[open] > summary::after { transform: rotate(-135deg); }
details.panel[open] > summary { border-bottom: 1px solid var(--border); border-radius: var(--r) var(--r) 0 0; }
details.panel > .stack { padding: .95rem; }
.results { display: grid; gap: 1rem; align-content: start; }
.result { position: relative; padding: .85rem 0 .5rem; border-top: 1px solid var(--border); }
.result .label { font-size: .84rem; color: var(--muted); font-weight: 600; display: flex; align-items: center; gap: .35rem; }
.result .value { font-size: clamp(1.25rem, 1.1rem + .6vw, 1.55rem); font-weight: 800; line-height: 1.5; word-break: break-word; }
.result .value small { font-size: .6em; font-weight: 600; color: var(--muted); margin-inline-start: .3rem; }
.result .sub { font-size: .82rem; color: var(--text-2); margin-top: .1rem; line-height: 1.75; }
.result .copy { position: absolute; top: .5rem; inset-inline-end: 0; width: 34px; height: 34px; }
.result.hero-result { padding: 1rem 1.1rem; border: 0; border-radius: var(--r); background: var(--mark); }
.result.hero-result .label { color: var(--text-2); }
.result.hero-result .value { font-size: clamp(1.7rem, 1.35rem + 1.5vw, 2.4rem); line-height: 1.35; margin-top: .15rem; }
.result.hero-result .copy { top: .6rem; inset-inline-end: .6rem; }
.result.hero-result .copy:hover { background: color-mix(in srgb, var(--mark-strong) 35%, transparent); }
.result.empty { color: var(--muted); text-align: center; padding: 1.75rem 1rem; border: 1px dashed var(--border-strong); border-radius: var(--r); }
.result.empty .i { margin-inline: auto; margin-bottom: .4rem; width: 28px; height: 28px; }
.tiles { display: grid; gap: 0; border-top: 1px solid var(--border); }
.tile { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; padding: .6rem 0; border-bottom: 1px solid var(--border); }
.tile .k { font-size: .86rem; color: var(--muted); }
.tile .v { font-size: 1rem; font-weight: 700; text-align: end; word-break: break-word; }
.tile .v small { font-size: .78em; color: var(--muted); font-weight: 600; }
.kv { display: grid; gap: 0; margin: 0; }
.kv > div { display: flex; justify-content: space-between; gap: 1rem; padding: .6rem 0; border-bottom: 1px solid var(--border); font-size: .92rem; }
.kv > div:last-child { border-bottom: 0; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-weight: 700; text-align: end; word-break: break-word; }
.output-box { position: relative; padding: .9rem 1rem; border-radius: var(--r-sm); background: var(--bg); border: 1px solid var(--border); min-height: 3rem; white-space: pre-wrap; word-break: break-word; font-size: .95rem; line-height: 1.9; }
.output-box.code { font-family: var(--mono); font-size: .86rem; direction: ltr; text-align: left; line-height: 1.7; }
.big-number { font-size: clamp(2.4rem, 1.9rem + 3.5vw, 4.5rem); font-weight: 800; line-height: 1.15; }
#app #clock, #app #now { font-variant-numeric: tabular-nums; }
.meter { position: relative; height: 10px; border-radius: 99px; background: linear-gradient(90deg, #2f6fb0 0 25%, #2f8f5b 25% 50%, #d9a21b 50% 75%, #c2412d 75%); }
.meter .needle { position: absolute; top: -6px; width: 4px; height: 22px; border-radius: 2px; background: var(--ink); box-shadow: 0 0 0 2px var(--surface); transform: translateX(50%); transition: right .4s var(--ease); }
.meter-scale { display: flex; justify-content: space-between; font-size: .72rem; color: var(--muted); margin-top: .45rem; direction: ltr; }
.meter-wrap { padding: .5rem .25rem 0; }
.progress { height: 8px; border-radius: 99px; background: var(--surface-3); overflow: hidden; }
.progress > span { display: block; height: 100%; border-radius: inherit; background: var(--ink); transition: width .4s var(--ease); }
.table-wrap { width: 100%; overflow-x: auto; border-radius: var(--r-sm); border: 1px solid var(--border); background: var(--surface); margin-block: 1rem; -webkit-overflow-scrolling: touch; }
table { width: 100%; border-collapse: collapse; font-size: .9rem; }
th, td { padding: .6rem .8rem; text-align: start; border-bottom: 1px solid var(--border); vertical-align: top; }
th { background: var(--surface-2); font-weight: 700; color: var(--text-2); font-size: .82rem; white-space: nowrap; }
tbody th[scope="row"] { background: none; color: var(--text); font-size: inherit; font-weight: 600; }
tbody tr:last-child td, tbody tr:last-child th { border-bottom: 0; }
td.num, th.num { text-align: end; white-space: nowrap; }
.table-scroll { max-height: 460px; overflow: auto; }
.table-scroll th { position: sticky; top: 0; z-index: 1; }
tr.is-hidden { display: none; }
.prose { font-size: 1.02rem; line-height: 2.05; color: var(--text-2); max-width: 72ch; }
.prose > :first-child { margin-top: 0; }
.prose h2 { font-size: var(--fs-xl); margin: 2.25rem 0 .7rem; scroll-margin-top: calc(var(--header-h) + 20px); }
.prose h3 { font-size: 1.12rem; margin: 1.6rem 0 .5rem; }
.prose ul, .prose ol { padding-inline-start: 1.3rem; margin: 0 0 1.2rem; }
.prose li { margin-bottom: .35rem; }
.prose li::marker { color: var(--muted); }
.prose strong { color: var(--text); font-weight: 700; }
.prose blockquote { margin: 1.2rem 0; padding: .4rem 1rem; border-inline-start: 3px solid var(--mark-strong); color: var(--text-2); }
.prose code { background: var(--surface-2); padding: .05rem .35rem; border-radius: 4px; direction: ltr; unicode-bidi: isolate; }
.prose pre { background: var(--surface); border: 1px solid var(--border); padding: 1rem; border-radius: var(--r-sm); overflow-x: auto; direction: ltr; text-align: left; }
.prose pre code { background: none; padding: 0; }
.prose table { font-size: .92rem; }
.prose .table-wrap { max-width: 100%; }
.prose a { text-decoration: underline; text-decoration-thickness: 1px; text-decoration-color: color-mix(in srgb, var(--accent) 45%, transparent); text-underline-offset: 4px; }
.prose a:hover { text-decoration-color: var(--accent); }
.content-card { padding: 0; }
.steps { counter-reset: step; list-style: none; padding: 0; margin: 0 0 1rem; display: grid; gap: .65rem; max-width: 72ch; }
.steps li { counter-increment: step; position: relative; padding-inline-start: 2.4rem; line-height: 1.9; color: var(--text-2); }
.steps li::before { content: counter(step, persian); position: absolute; inset-inline-start: 0; top: .1rem; width: 1.7rem; height: 1.7rem; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: .85rem; color: var(--text); border: 1.5px solid var(--ink); }
.faq { display: grid; gap: 0; border-top: 1px solid var(--border); max-width: 72ch; }
.faq details { border-bottom: 1px solid var(--border); }
.faq summary { list-style: none; cursor: pointer; padding: .95rem 0; font-weight: 700; display: flex; align-items: center; gap: .75rem; justify-content: space-between; line-height: 1.7; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; width: 1.5rem; text-align: center; font-size: 1.3rem; font-weight: 400; color: var(--muted); line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq .answer { padding: 0 0 1rem; color: var(--text-2); line-height: 2; }
.rating-card { border-top: 1px solid var(--border); padding-top: 1.25rem; }
.rating { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.stars { display: inline-flex; flex-direction: row-reverse; gap: 2px; }
.stars button { background: none; border: 0; padding: 3px; color: var(--border-strong); }
.stars button .i { width: 28px; height: 28px; fill: currentColor; stroke-width: 1.4; }
.stars button:hover, .stars button:hover ~ button, .stars button.on { color: #d9a21b; }
.palette { border: 0; padding: 0; background: transparent; width: min(640px, calc(100vw - 24px)); max-height: min(620px, 80vh); margin: 10vh auto auto; color: var(--text); overflow: visible; }
.palette::backdrop { background: rgba(20, 20, 18, .45); }
.palette[open] { animation: pop .16s var(--ease); }
@keyframes pop { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.palette-box { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--sh-3); overflow: hidden; display: flex; flex-direction: column; max-height: inherit; }
.palette-input { display: flex; align-items: center; gap: .65rem; padding: .25rem 1rem; border-bottom: 1px solid var(--border); }
.palette-input input { flex: 1; height: 56px; border: 0; outline: none; background: none; font-size: 1.05rem; min-width: 0; }
.palette-input .i { color: var(--muted); width: 22px; height: 22px; }
.palette-list { overflow-y: auto; padding: .35rem; flex: 1; overscroll-behavior: contain; }
.palette-group { padding: .6rem .7rem .25rem; font-size: .74rem; font-weight: 700; color: var(--muted); }
.p-item { display: flex; align-items: center; gap: .75rem; padding: .55rem .65rem; border-radius: var(--r-sm); color: var(--text); cursor: pointer; }
.p-item:hover { text-decoration: none; background: var(--surface-2); }
.p-item[aria-selected="true"] { background: var(--surface-2); box-shadow: inset 3px 0 0 var(--ink); }
.p-item .ic-tile { width: 36px; height: 36px; }
.p-item .ic-tile .i { width: 18px; height: 18px; }
.p-item b { display: block; font-weight: 700; font-size: .94rem; }
.p-item span { display: block; font-size: .78rem; color: var(--muted); line-height: 1.5; }
.p-item .p-cat { margin-inline-start: auto; font-size: .72rem; color: var(--muted); white-space: nowrap; }
.p-item mark { background: var(--mark); color: inherit; }
.palette-foot { display: flex; gap: 1rem; padding: .55rem 1rem; border-top: 1px solid var(--border); font-size: .75rem; color: var(--muted); }
.palette-empty { padding: 2.5rem 1rem; text-align: center; color: var(--muted); }
@media (max-width: 640px) {
.palette { width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; margin: 0; }
.palette-box { border-radius: 0; height: 100%; max-height: 100%; border: 0; }
}
.toasts { position: fixed; z-index: 90; inset-inline: 0; bottom: calc(80px + env(safe-area-inset-bottom)); display: grid; justify-items: center; gap: .5rem; pointer-events: none; padding-inline: 16px; }
@media (min-width: 900px) { .toasts { bottom: 28px; } }
.toast { pointer-events: auto; display: inline-flex; align-items: center; gap: .5rem; padding: .65rem 1rem; border-radius: var(--r-sm); background: #1b1a17; color: #fbfaf7; font-weight: 600; font-size: .9rem; box-shadow: var(--sh-3); animation: toast-in .2s var(--ease); max-width: 100%; }
.toast .i { color: #6ee7b7; }
.toast.error .i { color: #fca5a5; }
.toast.out { animation: toast-out .2s ease forwards; }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes toast-out { to { opacity: 0; transform: translateY(6px); } }
.dp { position: relative; }
.dp .input { padding-left: 3.2rem; padding-right: .9rem; }
.dp-btn { position: absolute; left: 1px; right: auto; top: 1px; bottom: 1px; width: 44px; border: 0; border-right: 1px solid var(--border); border-radius: calc(var(--r-sm) - 1px) 0 0 calc(var(--r-sm) - 1px); background: var(--surface-2); color: var(--text-2); display: grid; place-items: center; }
.dp-btn:hover { color: var(--text); }
.dp-pop { position: absolute; z-index: 40; top: calc(100% + 6px); inset-inline-start: 0; width: 320px; max-width: calc(100vw - 32px); background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); box-shadow: var(--sh-3); padding: .75rem; animation: pop .15s var(--ease); }
.dp-head { display: flex; align-items: center; justify-content: space-between; gap: .4rem; margin-bottom: .5rem; }
.dp-head button { border: 0; background: none; border-radius: var(--r-sm); height: 36px; padding-inline: .6rem; font-weight: 700; color: var(--text); }
.dp-head button:hover { background: var(--surface-2); }
.dp-head .dp-nav { width: 36px; padding: 0; display: grid; place-items: center; color: var(--muted); }
.dp-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; text-align: center; }
.dp-grid .wd { font-size: .74rem; font-weight: 700; color: var(--muted); padding: .3rem 0; }
.dp-grid button { height: 38px; border: 0; border-radius: var(--r-sm); background: none; font-weight: 600; font-size: .9rem; color: var(--text); font-variant-numeric: tabular-nums; }
.dp-grid button:hover { background: var(--surface-2); }
.dp-grid button.fri { color: var(--danger); }
.dp-grid button.today { box-shadow: inset 0 0 0 1.5px var(--ink); }
.dp-grid button[aria-selected="true"] { background: var(--ink); color: var(--on-ink); }
.dp-grid button:focus-visible { outline-offset: -2px; }
.dp-grid.months, .dp-grid.years { grid-template-columns: repeat(3, 1fr); gap: 4px; }
.dp-grid.months button, .dp-grid.years button { height: 44px; }
.dp-foot { display: flex; justify-content: space-between; gap: .5rem; margin-top: .6rem; padding-top: .6rem; border-top: 1px solid var(--border); }
@media (max-width: 640px) {
.dp-pop.sheet { position: fixed; inset: auto 0 0 0; top: auto; width: 100%; max-width: 100%; border-radius: var(--r-lg) var(--r-lg) 0 0; padding: 1rem 1rem calc(1rem + env(safe-area-inset-bottom)); animation: sheet .2s var(--ease); }
.dp-pop.sheet .dp-grid button { height: 44px; }
}
@keyframes sheet { from { transform: translateY(100%); } to { transform: none; } }
.dp-backdrop { position: fixed; inset: 0; z-index: 39; background: rgba(20, 20, 18, .35); }
.cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 0; border-top: 1px solid var(--border); border-inline-start: 1px solid var(--border); }
.cal .wd { text-align: center; font-size: .78rem; font-weight: 700; color: var(--muted); padding: .35rem 0; border-bottom: 1px solid var(--border); border-inline-end: 1px solid var(--border); background: var(--surface-2); }
.cal .day { position: relative; min-height: 64px; padding: .35rem .5rem; background: var(--surface); border-bottom: 1px solid var(--border); border-inline-end: 1px solid var(--border); display: flex; flex-direction: column; justify-content: space-between; }
.cal .day b { font-size: 1.1rem; font-weight: 700; }
.cal .day small { font-size: .68rem; color: var(--muted); direction: ltr; text-align: left; }
.cal .day.off b { color: var(--danger); }
.cal .day.holiday { background: var(--danger-soft); }
.cal .day.today { background: var(--mark); }
.cal .day.today b { text-decoration: underline; text-underline-offset: 4px; }
.cal .day .dot { position: absolute; top: 8px; inset-inline-end: 8px; width: 6px; height: 6px; border-radius: 50%; background: var(--danger); }
@media (max-width: 520px) { .cal .day { min-height: 52px; padding: .25rem .3rem; } .cal .day b { font-size: .98rem; } }
.site-footer { margin-top: 3.5rem; padding: 2.5rem 0 calc(6rem + env(safe-area-inset-bottom)); border-top: 1px solid var(--border); }
@media (min-width: 900px) { .site-footer { padding-bottom: 2.5rem; } }
.footer-grid { display: grid; gap: 2rem; grid-template-columns: 1fr; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.4fr repeat(3, 1fr); } }
.site-footer h2 { font-size: .9rem; margin-bottom: .7rem; color: var(--text); }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .3rem; }
.site-footer a { color: var(--text-2); font-size: .88rem; }
.site-footer a:hover { color: var(--text); }
.site-footer p { color: var(--muted); font-size: .88rem; line-height: 1.95; }
.footer-bottom { margin-top: 2rem; padding-top: 1.25rem; border-top: 1px solid var(--border); display: flex; gap: 1rem; justify-content: space-between; align-items: center; flex-wrap: wrap; color: var(--muted); font-size: .82rem; }
.bottom-nav { position: fixed; z-index: 60; inset-inline: 0; bottom: 0; display: grid; grid-template-columns: repeat(5, 1fr); height: calc(60px + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); background: var(--surface); border-top: 1px solid var(--border); }
@media (min-width: 900px) { .bottom-nav { display: none; } }
.bottom-nav a, .bottom-nav button { position: relative; display: grid; align-content: center; justify-items: center; gap: 2px; font-size: .68rem; font-weight: 600; color: var(--muted); background: none; border: 0; padding: 0; text-decoration: none; }
.bottom-nav a[aria-current="page"], .bottom-nav button[aria-current="page"] { color: var(--text); }
.bottom-nav a[aria-current="page"]::before { content: ""; position: absolute; top: -1px; inset-inline: 30%; height: 2px; background: var(--ink); }
.bottom-nav .i { width: 22px; height: 22px; }
.float-result { position: fixed; z-index: 55; inset-inline: 12px; bottom: calc(70px + env(safe-area-inset-bottom)); display: flex; align-items: center; gap: .6rem; padding: .6rem .9rem; border: 0; border-radius: var(--r); background: var(--ink); color: var(--on-ink); font: inherit; box-shadow: var(--sh-3); cursor: pointer; text-align: start; animation: fade .2s ease both; }
.float-result .fr-label { font-size: .78rem; opacity: .8; white-space: nowrap; }
.float-result .fr-value { flex: 1; min-width: 0; font-size: 1.05rem; font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.float-result .i { width: 18px; height: 18px; flex: none; }
@media (min-width: 900px) { .float-result { display: none !important; } }
.empty-state { text-align: center; padding: 3rem 1rem; color: var(--muted); }
.empty-state .ic-tile { margin: 0 auto 1rem; }
.az-index { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: 1.25rem; }
.reveal { animation: fade-up .35s var(--ease) both; }
@keyframes fade-up { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.spinner { width: 18px; height: 18px; border-radius: 50%; border: 2px solid currentColor; border-inline-end-color: transparent; animation: spin .8s linear infinite; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }
.related h2, .tool-content h2.sub-title { font-size: var(--fs-lg); margin-bottom: .9rem; }
.post-list { display: grid; gap: 0; border-top: 1px solid var(--border); max-width: 820px; }
.post-item { display: block; padding: 1.1rem 0; border-bottom: 1px solid var(--border); color: inherit; }
.post-item:hover { text-decoration: none; }
.post-item:hover h2 { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; }
.post-item h2 { font-size: 1.15rem; margin: .2rem 0 .35rem; }
.post-item p { margin: 0 0 .4rem; color: var(--text-2); font-size: .93rem; }
.post-meta { font-size: .8rem; color: var(--muted); }
.toc-box { margin: 0 0 2rem; max-width: 72ch; }
.toc-box ol { margin: 0; padding-inline-start: 1.2rem; display: grid; gap: .2rem; font-size: .92rem; }
.timer-display { font-size: clamp(3rem, 2rem + 7vw, 6.5rem); font-weight: 800; text-align: center; font-variant-numeric: tabular-nums; direction: ltr; line-height: 1.15; }
.color-swatch { width: 100%; height: 120px; border-radius: var(--r); border: 1px solid var(--border); }
.kbd-grid { display: grid; gap: 6px; direction: rtl; }
.kbd-row { display: flex; gap: 6px; justify-content: center; }
.kbd-row button { flex: 1; min-width: 0; max-width: 62px; height: 52px; padding: 0; border-radius: var(--r-sm); border: 1px solid var(--border-strong); background: var(--surface); font-weight: 600; font-size: 1.05rem; box-shadow: 0 2px 0 var(--border-strong); }
.kbd-row button:active, .kbd-row button.pressed { transform: translateY(2px); box-shadow: none; background: var(--mark); }
.kbd-row button small { display: block; font-size: .62rem; color: var(--muted); font-family: var(--mono); }
.kbd-row .wide { max-width: 140px; flex: 2; } .kbd-row .space { max-width: 360px; flex: 6; }
.typing { display: grid; gap: 1rem; }
.typing-stats { display: flex; gap: 1.1rem; font-size: .9rem; color: var(--muted); font-weight: 600; }
.typing-stats b { color: var(--text); font-variant-numeric: tabular-nums; }
.typing-text { font-size: 1.22rem; line-height: 2.3; padding: 1rem 1.1rem; border-radius: var(--r-sm); background: var(--bg); border: 1px solid var(--border); user-select: none; max-height: 220px; overflow: auto; }
.typing-text .ok { color: var(--success); }
.typing-text .bad { color: var(--danger); background: var(--danger-soft); border-radius: 3px; }
.typing-text .cur { background: var(--mark); border-radius: 3px; }
.typing-input { font-size: 1.15rem; line-height: 2; }
.diff-out ins { background: var(--success-soft); color: var(--success); text-decoration: none; border-radius: 3px; }
.diff-out del { background: var(--danger-soft); color: var(--danger); border-radius: 3px; }
.serp { padding: 1rem 1.1rem; border-radius: var(--r-sm); background: #fff; border: 1px solid #e5e7eb; color: #202124; font-family: arial, sans-serif; direction: rtl; }
.serp .s-url { font-size: 12px; color: #4d5156; display: flex; gap: 6px; align-items: center; direction: ltr; justify-content: flex-end; }
.serp .s-title { font-size: 20px; color: #1a0dab; line-height: 1.3; margin: 4px 0; font-family: var(--font); }
.serp .s-desc { font-size: 14px; color: #4d5156; line-height: 1.58; font-family: var(--font); }
.invoice-sheet { background: #fff; color: #111; border-radius: var(--r-sm); border: 1px solid var(--border); padding: clamp(1rem, 3.5vw, 2.25rem); font-size: .9rem; line-height: 1.85; overflow-x: auto; }
.invoice-sheet .num { }
.invoice-sheet h2, .invoice-sheet h3 { color: #111; }
.inv-head { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1rem; padding-bottom: 1rem; margin-bottom: 1.25rem; border-bottom: 2px solid #111; }
.inv-brand { display: flex; align-items: center; gap: .6rem; min-width: 0; }
.inv-brand b { font-size: 1rem; }
.inv-logo { max-height: 56px; max-width: 120px; width: auto; }
.inv-head h2 { margin: 0; font-size: 1.45rem; text-align: center; }
.inv-meta { justify-self: end; margin: 0; display: grid; gap: .1rem; font-size: .88rem; }
.inv-meta div { display: flex; gap: .5rem; justify-content: flex-end; }
.inv-meta dt { color: #555; }
.inv-meta dd { margin: 0; font-weight: 700; min-width: 6.5rem; text-align: end; }
.inv-parties { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1.25rem; }
.inv-party { border: 1px solid #c9c9c9; border-radius: 6px; overflow: hidden; }
.inv-party h3 { margin: 0; padding: .4rem .8rem; font-size: .84rem; background: #f3f2ee; border-bottom: 1px solid #c9c9c9; }
.inv-party dl { margin: 0; padding: .5rem .8rem .6rem; display: grid; gap: .15rem; font-size: .86rem; }
.inv-party dl div { display: flex; gap: .6rem; }
.inv-party dt { color: #555; flex: none; min-width: 5.5rem; }
.inv-party dd { margin: 0; font-weight: 600; min-width: 0; overflow-wrap: anywhere; }
.inv-empty { color: #999; font-weight: 400; }
.invoice-sheet .inv-table { width: 100%; min-width: 520px; border-collapse: collapse; margin: 0 0 .9rem; font-size: .88rem; }
.invoice-sheet .inv-table th, .invoice-sheet .inv-table td { border: 1px solid #b9b9b9; padding: .5rem .65rem; color: #111; background: #fff; vertical-align: middle; }
.invoice-sheet .inv-table thead th { background: #f3f2ee; font-weight: 700; font-size: .82rem; white-space: nowrap; }
.invoice-sheet .inv-table .inv-n { width: 3rem; text-align: center; }
.invoice-sheet .inv-table tfoot td { font-weight: 600; background: #fbfaf7; }
.invoice-sheet .inv-table tfoot td:first-child { text-align: end; color: #333; }
.invoice-sheet .inv-table tfoot tr:first-child td { border-top: 2px solid #111; }
.invoice-sheet .inv-table tfoot tr.grand td { font-weight: 800; font-size: .98rem; background: #f3f2ee; color: #111; }
.inv-words { margin: 0 0 1rem; padding: .55rem .8rem; border: 1px dashed #b9b9b9; border-radius: 6px; font-weight: 700; }
.inv-words span { color: #555; font-weight: 400; margin-inline-end: .3rem; }
.inv-notes { margin-bottom: 1rem; }
.inv-notes h3 { font-size: .84rem; margin: 0 0 .25rem; }
.inv-notes p { margin: 0; color: #333; }
.inv-sign { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; margin-top: 3rem; text-align: center; color: #555; font-size: .86rem; }
.inv-sign div { border-top: 1px solid #999; padding-top: .5rem; }
.calc-keys { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; direction: ltr; }
.calc-keys button { height: 54px; border-radius: var(--r-sm); border: 1px solid var(--border); background: var(--surface); font-size: 1.12rem; font-weight: 600; color: var(--text); font-family: var(--font); }
.calc-keys button:hover { background: var(--surface-2); }
.calc-keys button:active { transform: translateY(1px); }
.calc-keys button.fn { font-size: .92rem; color: var(--text-2); background: var(--bg); }
.calc-keys button.op { font-size: 1.3rem; color: var(--text); background: var(--surface-2); }
.calc-keys button.ac { color: var(--danger); }
.calc-keys button.eq { background: var(--ink); color: var(--on-ink); border-color: var(--ink); }
@media (max-width: 760px) { #calc { grid-template-columns: 1fr !important; } }
.frac-input { display: grid; gap: 6px; width: 110px; }
.frac-input span { height: 2px; background: var(--text); }
.frac-input .input { text-align: center; font-size: 1.3rem; }
.converter { display: grid; grid-template-columns: 1fr auto 1fr; gap: .75rem; align-items: end; }
.conv-side { display: grid; gap: .4rem; min-width: 0; }
.conv-box { display: grid; grid-template-columns: minmax(0, 1fr); gap: .5rem; }
.conv-box .input { height: 56px; font-size: 1.3rem; }
.conv-swap { margin-bottom: 62px; border: 1px solid var(--border-strong) !important; }
@media (max-width: 700px) { .converter { grid-template-columns: 1fr; } .conv-swap { margin: 0 auto; transform: rotate(90deg); } }
.crop-tool { display: grid; gap: 1.25rem; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); align-items: start; }
@media (max-width: 860px) { .crop-tool { grid-template-columns: minmax(0, 1fr); } }
.crop-stage { direction: ltr; text-align: center; padding: 12px; border-radius: var(--r-sm); border: 1px solid var(--border); overflow: hidden; background: repeating-conic-gradient(var(--surface-3) 0 25%, var(--surface-2) 0 50%) 0 0 / 20px 20px; }
.crop-wrap { position: relative; display: inline-block; vertical-align: top; line-height: 0; user-select: none; -webkit-user-select: none; }
.crop-wrap canvas { display: block; }
.crop-box { position: absolute; box-shadow: 0 0 0 9999px rgb(0 0 0 / .5); outline: 2px solid #fff; cursor: move; touch-action: none; }
.crop-box:focus-visible { outline: 3px solid var(--mark-strong); }
.crop-grid { position: absolute; inset: 0; pointer-events: none; background:
linear-gradient(to right, transparent 33%, rgb(255 255 255 / .4) 33% calc(33% + 1px), transparent calc(33% + 1px) 66%, rgb(255 255 255 / .4) 66% calc(66% + 1px), transparent calc(66% + 1px)),
linear-gradient(to bottom, transparent 33%, rgb(255 255 255 / .4) 33% calc(33% + 1px), transparent calc(33% + 1px) 66%, rgb(255 255 255 / .4) 66% calc(66% + 1px), transparent calc(66% + 1px)); }
.crop-h { position: absolute; width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 3px solid #1b1a17; touch-action: none; }
.crop-h::before { content: ""; position: absolute; inset: -12px; }
.crop-h[data-h="nw"] { left: -9px; top: -9px; cursor: nwse-resize; }
.crop-h[data-h="ne"] { right: -9px; top: -9px; cursor: nesw-resize; }
.crop-h[data-h="sw"] { left: -9px; bottom: -9px; cursor: nesw-resize; }
.crop-h[data-h="se"] { right: -9px; bottom: -9px; cursor: nwse-resize; }
.player-tool { display: grid; gap: 1rem; }
.player { border-radius: var(--r-sm); overflow: hidden; background: #000; }
.player video { display: block; width: 100%; max-height: 78vh; background: #000; }
.player video::cue { font-family: var(--font); font-size: 1.05em; line-height: 1.6; background: rgb(0 0 0 / .65); color: #fff; }
.player-bar { display: grid; gap: .85rem; }
.qr-tool { display: grid; gap: 1.5rem; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: start; }
.qr-preview { position: sticky; top: calc(var(--header-h) + 16px); display: grid; gap: .8rem; }
.qr-frame { aspect-ratio: 1; border-radius: var(--r); border: 1px solid var(--border); padding: clamp(.75rem, 3vw, 1.25rem); display: grid; place-items: center; background: repeating-conic-gradient(var(--surface-2) 0 25%, var(--surface) 0 50%) 0 0 / 18px 18px; }
#qr-out { width: 100%; display: grid; place-items: center; color: var(--muted); text-align: center; gap: .5rem; font-size: .9rem; }
#qr-out svg { width: 100%; max-width: 340px; height: auto; display: block; }
#qr-out .i { width: 48px; height: 48px; opacity: .45; }
@media (max-width: 860px) { .qr-tool { grid-template-columns: minmax(0, 1fr); } .qr-preview { position: static; } .qr-frame { max-width: 400px; width: 100%; margin-inline: auto; } }
.bc-frame { min-height: 220px; border-radius: var(--r); border: 1px solid var(--border); background: #fff; display: grid; place-items: center; padding: 1.25rem; }
.bc-frame img { max-width: 100%; height: auto; display: block; }
.scan-tool { display: grid; gap: 1.25rem; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: start; }
@media (max-width: 860px) { .scan-tool { grid-template-columns: minmax(0, 1fr); } }
.scan-view { position: relative; aspect-ratio: 1; max-width: 520px; width: 100%; margin-inline: auto; border-radius: var(--r); overflow: hidden; background: #1b1a17; display: grid; place-items: center; }
.scan-view video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.scan-view .scan-box { position: absolute; inset: 18%; border-radius: 12px; box-shadow: 0 0 0 9999px rgb(0 0 0 / .35); outline: 2px solid rgb(255 255 255 / .9); pointer-events: none; }
.scan-view .scan-box::after { content: ""; position: absolute; inset-inline: 8%; top: 10%; height: 2px; background: var(--mark-strong); animation: scanline 2.2s ease-in-out infinite alternate; }
@keyframes scanline { to { top: 90%; } }
.scan-view .scan-idle { position: relative; z-index: 1; display: grid; gap: .75rem; place-items: center; color: #d6d1c6; text-align: center; padding: 1rem; }
.scan-view .scan-idle .i { width: 56px; height: 56px; opacity: .6; }
.scan-view .scan-idle .btn-primary { background: #fbfaf7; color: #1b1a17; }
.scan-ctrl { position: absolute; inset-block-end: 12px; inset-inline: 12px; z-index: 2; display: flex; gap: .5rem; justify-content: center; flex-wrap: wrap; }
.scan-result { word-break: break-word; overflow-wrap: anywhere; }
.scan-result .raw { direction: ltr; text-align: left; font-family: var(--mono); font-size: .9rem; white-space: pre-wrap; background: var(--bg); border: 1px solid var(--border); border-radius: var(--r-sm); padding: .75rem .9rem; max-height: 260px; overflow: auto; }
.scan-history { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; font-size: .85rem; border-top: 1px solid var(--border); }
.scan-history li { display: flex; gap: .5rem; align-items: center; padding: .4rem 0; border-bottom: 1px solid var(--border); direction: ltr; overflow: hidden; }
.scan-history li span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.verdict { display: flex; gap: .75rem; align-items: flex-start; padding: .9rem 1rem; border-radius: var(--r-sm); background: var(--surface-2); border-inline-start: 3px solid var(--border-strong); }
.verdict .i { width: 26px; height: 26px; flex: none; }
.verdict b { display: block; font-size: 1.08rem; }
.verdict p { margin: .15rem 0 0; font-size: .88rem; color: var(--text-2); line-height: 1.8; }
.verdict.ok { background: var(--success-soft); border-color: var(--success); }
.verdict.ok .i { color: var(--success); }
.verdict.bad { background: var(--danger-soft); border-color: var(--danger); }
.verdict.bad .i { color: var(--danger); }
.verdict.warn, .verdict.info { background: var(--warning-soft); border-color: var(--warning); }
.verdict.warn .i, .verdict.info .i { color: var(--warning); }
.mono-big { font-family: var(--mono); font-size: 1.3rem; font-weight: 700; direction: ltr; text-align: center; letter-spacing: .06em; padding: .55rem; border-radius: var(--r-sm); background: var(--bg); border: 1px solid var(--border); word-break: break-all; }
.code-list { display: grid; gap: 0; margin: .5rem 0 0; padding: 0; list-style: none; border-top: 1px solid var(--border); }
.code-list li { display: flex; align-items: center; gap: .6rem; padding: .35rem 0; border-bottom: 1px solid var(--border); }
.code-list code { font-family: var(--mono); font-size: 1rem; font-weight: 700; letter-spacing: .06em; flex: 1; }
.filter-input { max-width: 420px; }
.plate { display: flex; align-items: stretch; height: 76px; width: min(100%, 420px); margin-inline: auto; direction: ltr; border: 3px solid #1f2937; border-radius: 8px; background: #fff; color: #111; overflow: hidden; font-family: var(--font); font-weight: 800; }
.plate .flag { width: 46px; background: #1d4ed8; color: #fff; display: grid; place-items: center; font-size: .62rem; font-weight: 700; text-align: center; line-height: 1.3; }
.plate .flag i { display: block; width: 24px; height: 14px; border-radius: 2px; background: linear-gradient(#239f40 33%, #fff 33% 66%, #da0000 66%); margin-bottom: 4px; }
.plate .main { flex: 1; display: flex; align-items: center; justify-content: space-evenly; gap: .25rem; padding: 0 .5rem; }
.plate .main input, .plate .main select { height: 52px; border: 0; border-bottom: 3px solid #cbd5e1; background: transparent; font: inherit; font-size: 2rem; text-align: center; color: inherit; border-radius: 0; padding: 0; }
.plate .main input:focus, .plate .main select:focus { outline: none; border-bottom-color: #1b1a17; }
.plate .main input.d2 { width: 3ch; }
.plate .main input.d3 { width: 4ch; }
.plate .main select { width: 3ch; appearance: none; -webkit-appearance: none; text-align: center; text-align-last: center; }
.plate .region { width: 78px; border-left: 3px solid #1f2937; display: grid; grid-template-rows: auto 1fr; }
.plate .region small { font-size: .6rem; text-align: center; background: #e5e7eb; padding: 2px 0; font-weight: 700; }
.plate .region input { width: 100%; height: 100%; border: 0; background: transparent; font: inherit; font-size: 1.9rem; text-align: center; padding: 0; color: inherit; }
.plate .region input:focus { outline: none; background: #fff3c4; }
.plate.taxi, .plate.public { background: #fbbf24; }
.plate.gov { background: #dc2626; color: #fff; }
.plate.gov .region small { background: rgb(0 0 0 / .25); }
.plate.free { background: #22c55e; color: #fff; }
.plate.army { background: #f1f5f9; }
.hafez { display: grid; gap: 1.5rem; }
.hafez-niyat { text-align: center; padding: 1.25rem 1rem 1.5rem; display: grid; gap: 1rem; justify-items: center; border-bottom: 1px solid var(--border); }
.niyat-text { font-size: 1.05rem; line-height: 2.2; max-width: 620px; margin: 0; color: var(--text-2); }
.hafez-card { padding: 0; }
.hafez-card.reveal { animation: fade-up .5s var(--ease) both; }
.hafez-head { display: flex; align-items: center; justify-content: space-between; gap: .75rem; margin-bottom: 1rem; }
.hafez-head h2 { margin: 0; font-size: 1.2rem; }
.beyts { display: grid; gap: .25rem; }
.beyt { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; font-size: clamp(1.02rem, .95rem + .45vw, 1.2rem); line-height: 2.2; text-align: center; padding: .4rem .5rem; border-bottom: 1px dashed var(--border); }
.beyt:last-child { border-bottom: 0; }
@media (max-width: 600px) { .beyt { grid-template-columns: 1fr; gap: 0; } }
.summary-text { line-height: 2.1; color: var(--text-2); margin: 0; }
.hafez-foot { display: flex; flex-wrap: wrap; gap: .75rem; justify-content: space-between; align-items: center; margin-top: 1.25rem; padding-top: 1rem; border-top: 1px solid var(--border); font-size: .9rem; }
.draw-stage { min-height: 70px; display: grid; place-items: center; font-size: 1.5rem; font-weight: 800; text-align: center; }
.draw-stage.rolling b { animation: blink .12s steps(2) infinite; }
@keyframes blink { 50% { opacity: .5; } }
.winners { margin: .5rem 0 0; padding-inline-start: 1.6rem; font-size: 1.3rem; font-weight: 800; line-height: 2; }
.winners.backups { font-size: 1rem; font-weight: 600; color: var(--text-2); }
.winners li { animation: fade-up .4s var(--ease) both; }
.winners li::marker { color: var(--muted); }
.wheel-tool { display: grid; gap: 1.5rem; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
@media (max-width: 860px) { .wheel-tool { grid-template-columns: minmax(0, 1fr); } }
.wheel-wrap { position: relative; width: min(100%, 500px); margin-inline: auto; aspect-ratio: 1; }
.wheel-wrap canvas { width: 100%; height: 100%; display: block; border-radius: 50%; box-shadow: 0 0 0 6px var(--surface), 0 0 0 7px var(--border-strong); cursor: pointer; }
.wheel-pointer { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); width: 0; height: 0; border-left: 16px solid transparent; border-right: 16px solid transparent; border-top: 34px solid var(--ink); z-index: 2; }
.wheel-btn { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 15%; aspect-ratio: 1; border-radius: 50%; border: 3px solid var(--surface); background: var(--ink); color: var(--on-ink); font: inherit; font-weight: 800; font-size: clamp(.68rem, 2vw, .95rem); cursor: pointer; z-index: 2; }
.dice-tool { display: grid; gap: 1.25rem; }
.dice-area { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; min-height: 130px; padding: 1.5rem; border-radius: var(--r); background: var(--bg); border: 1px solid var(--border); cursor: pointer; }
.die { width: 84px; height: 84px; border-radius: 16px; background: #fff; color: #1b1a17; border: 1.5px solid #1b1a17; box-shadow: 0 3px 0 #1b1a17; display: grid; place-items: center; }
.dice-area.rolling .die { animation: shake .35s ease-in-out infinite; }
.dice-area[data-count="1"] .die { width: 116px; height: 116px; }
@keyframes shake { 0%, 100% { transform: rotate(-8deg); } 50% { transform: rotate(8deg) translateY(-8px); } }
.die.d6 { position: relative; }
.pips { position: absolute; inset: 12%; display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(3, 1fr); gap: 4px; }
.pips i { display: block; border-radius: 50%; background: transparent; margin: 10%; }
.pips i.on { background: #1b1a17; }
.die.dn { font-size: 2.1rem; font-weight: 800; color: #fbfaf7; background: #1b1a17; box-shadow: none; }
.die.dn.s4 { clip-path: polygon(50% 4%, 100% 96%, 0 96%); border-radius: 0; }
.die.dn.s4 span { margin-top: 24%; }
.die.dn.s8 { clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); border-radius: 0; }
.die.dn.s10 { clip-path: polygon(50% 0, 95% 35%, 80% 100%, 20% 100%, 5% 35%); border-radius: 0; }
.die.dn.s12 { clip-path: polygon(50% 0, 90% 20%, 100% 60%, 75% 100%, 25% 100%, 0 60%, 10% 20%); border-radius: 0; }
.die.dn.s20 { clip-path: polygon(50% 0, 93% 25%, 93% 75%, 50% 100%, 7% 75%, 7% 25%); border-radius: 0; }
.dice-sum { text-align: center; font-size: 1.5rem; font-weight: 800; min-height: 2.2rem; }
.roll-history { margin: 0; padding: 0; list-style: none; display: grid; gap: 0; border-top: 1px solid var(--border); }
.roll-history li { display: flex; gap: .75rem; align-items: center; padding: .4rem 0; border-bottom: 1px solid var(--border); font-size: .9rem; }
.roll-history li span:nth-child(2) { flex: 1; direction: ltr; text-align: right; }
.coin-tool { display: grid; gap: 1.25rem; justify-items: center; }
.coin-tool .form { width: 100%; }
.coin-stage { perspective: 1000px; padding: 1rem; }
.coin { position: relative; width: 180px; height: 180px; border: 0; background: none; padding: 0; cursor: pointer; transform-style: preserve-3d; transition: transform 1.5s cubic-bezier(.2, .8, .25, 1); border-radius: 50%; }
.coin .face { position: absolute; inset: 0; border-radius: 50%; display: grid; place-items: center; backface-visibility: hidden; font-weight: 800; font-size: 2.3rem; color: #3d2c00; background: #f2c94c; box-shadow: inset 0 0 0 8px #e0b33a, inset 0 0 0 10px #3d2c00; }
.coin .face i { font-style: normal; }
.coin .tails { transform: rotateY(180deg); background: #d6d1c6; color: #1b1a17; box-shadow: inset 0 0 0 8px #c4beb1, inset 0 0 0 10px #1b1a17; }
.coin-result { font-size: 1.6rem; font-weight: 800; min-height: 2.4rem; text-align: center; }
.game-screen { display: grid; gap: 1rem; }
.game-top { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: .75rem; }
.team-badge { justify-self: start; padding: .25rem .8rem; border-radius: var(--r-sm); color: #fff; font-weight: 800; }
.score-mini { justify-self: end; font-size: .82rem; color: var(--muted); font-weight: 600; }
.timer-ring { --p: 1; width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center; font-size: 1.45rem; font-weight: 800; background: conic-gradient(var(--ink) calc(var(--p) * 360deg), var(--surface-3) 0); position: relative; margin-inline: auto; }
.timer-ring::before { content: ""; position: absolute; inset: 6px; border-radius: 50%; background: var(--surface); }
.timer-ring span { position: relative; font-variant-numeric: tabular-nums; }
.timer-ring.big { width: 176px; height: 176px; font-size: 2.5rem; }
.word-card { min-height: 180px; display: grid; place-items: center; text-align: center; padding: 1.5rem; border-radius: var(--r); background: var(--mark); }
.word-card .word { display: grid; gap: .35rem; }
.word-card .word small { color: var(--text-2); font-weight: 600; }
.word-card .word b { font-size: clamp(1.6rem, 1.2rem + 2vw, 2.5rem); line-height: 1.5; }
.game-btns { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.btn-ok { background: var(--success); color: #fff; }
.btn-skip { background: var(--surface); border-color: var(--border-strong); color: var(--text); }
.round-words { display: flex; flex-wrap: wrap; gap: .4rem; list-style: none; margin: 0; padding: 0; justify-content: center; }
.round-words li { padding: .15rem .6rem; border-radius: var(--r-sm); font-size: .88rem; font-weight: 600; }
.round-words li.ok { background: var(--success-soft); color: var(--success); }
.round-words li.skip { background: var(--surface-2); color: var(--muted); text-decoration: line-through; }
.scoreboard { display: grid; gap: 0; max-width: 420px; margin-inline: auto; width: 100%; border-top: 1px solid var(--border); }
.score-row { display: flex; justify-content: space-between; padding: .6rem .25rem; border-bottom: 1px solid var(--border); font-weight: 700; }
.score-row span::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--c); margin-inline-end: .5rem; }
.score-row.lead { background: var(--mark); }
.hold-btn { width: 100%; min-height: 150px; border-radius: var(--r); border: 1.5px dashed var(--border-strong); background: var(--bg); font: inherit; font-weight: 700; font-size: 1.05rem; color: var(--text-2); cursor: pointer; display: grid; place-items: center; gap: .5rem; user-select: none; -webkit-user-select: none; touch-action: none; }
.hold-btn:active { background: var(--mark); border-color: var(--ink); }
.role-card { display: grid; justify-items: center; gap: .3rem; text-align: center; padding: 1.75rem 1rem; border-radius: var(--r); background: var(--mark); }
.role-card small { color: var(--text-2); font-weight: 600; }
.role-card b { font-size: clamp(1.7rem, 1.3rem + 2vw, 2.5rem); line-height: 1.4; }
.role-card span { color: var(--text-2); }
.role-card.spy { background: #1b1a17; color: #fbfaf7; }
.role-card.spy small, .role-card.spy span { color: #d6d1c6; }
.quiz { display: grid; gap: 1rem; }
.quiz-title { font-weight: 700; margin: 0; font-size: 1.02rem; }
.quiz-items { margin: 0; padding: 0; list-style: none; display: grid; gap: 0; counter-reset: q; border-top: 1px solid var(--border); }
.quiz-item { padding: 1rem 0; border-bottom: 1px solid var(--border); counter-increment: q; }
.quiz-item.missing > p { color: var(--danger); }
.quiz-item > p { margin: 0 0 .65rem; font-weight: 600; line-height: 1.9; }
.quiz-item > p::before { content: counter(q, persian) ". "; color: var(--muted); }
.quiz-opts label { font-size: .84rem; padding-inline: .55rem; flex: 1; }
.quiz-result { display: grid; gap: .85rem; }
@media (max-width: 520px) { .seg.quiz-opts { display: grid; grid-template-columns: 1fr 1fr; } .seg.quiz-opts label { min-height: 44px; border-inline-start: 0; border-top: 1px solid var(--border); } }
.course-rows { display: grid; gap: .5rem; }
.course-row { display: grid; grid-template-columns: minmax(0, 1fr) 84px 72px auto; gap: .5rem; align-items: center; }
.course-row .input.num { padding-inline: .5rem; text-align: center; }
@media (max-width: 480px) { .course-row { grid-template-columns: minmax(0, 1fr) 70px 60px auto; } }
.confetti { position: fixed; inset: 0; pointer-events: none; z-index: 999; overflow: hidden; }
.confetti i { position: absolute; top: -20px; border-radius: 2px; animation: confetti-fall linear forwards; opacity: .95; }
@keyframes confetti-fall { to { transform: translateY(105vh) rotate(720deg); opacity: .7; } }
@media (max-width: 600px) {
.kbd-grid, .kbd-row { gap: 3px; }
.kbd-row button { height: 44px; border-radius: 6px; font-size: .9rem; }
.kbd-row button small { display: none; }
.inv-head { grid-template-columns: 1fr; text-align: center; }
.inv-brand, .inv-meta { justify-self: center; }
.inv-parties { grid-template-columns: 1fr; }
.inv-sign { gap: 1.5rem; }
.fields-2 { gap: .75rem; }
}
@media (max-width: 640px) {
.hero .quick { flex-wrap: nowrap; overflow-x: auto; margin-inline: calc(-1 * var(--gutter)); padding: 2px var(--gutter) 6px; scrollbar-width: none; }
.hero .quick::-webkit-scrollbar { display: none; }
.hero .quick > * { flex: none; }
.tab-list { margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); }
.popular-grid { grid-template-columns: 1fr 1fr; gap: .5rem; }
.popular-grid .tcard { min-height: 56px; padding: .65rem .7rem; gap: .55rem; }
.popular-grid .tcard .ic-tile { width: 32px; height: 32px; }
.popular-grid .tcard .ic-tile .i { width: 17px; height: 17px; }
.popular-grid .tcard-desc, .popular-grid .tcard-go { display: none; }
.popular-grid .tcard-name { font-size: .86rem; line-height: 1.45; }
.popular-grid > li:nth-child(n+13) { display: none; }
.home-bento .ccard { padding: .75rem .8rem; }
.home-bento .ccard .ic-tile { width: 34px; height: 34px; }
.home-bento .ccard .ccard-title { font-size: .9rem; }
.tool-head .ic-tile { display: none; }
}
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .18s; }
@media (prefers-reduced-motion: reduce) {
*, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
@view-transition { navigation: none; }
}
@media print {
.site-header, .site-footer, .bottom-nav, .tool-actions, .no-print, .rating-card, .related, .toasts, .float-result { display: none !important; }
body { background: #fff; color: #000; }
.app, .card { border: 1px solid #ddd; }
a { color: #000; }
body.printing-invoice * { visibility: hidden !important; }
body.printing-invoice #sheet, body.printing-invoice #sheet * { visibility: visible !important; }
body.printing-invoice #sheet { position: absolute; inset: 0 0 auto 0; border: 0; border-radius: 0; }
@page { margin: 12mm; }
}
.app .faq, .app .prose, .app .steps { max-width: none; }
.cal > :not(.wd):not(.day) { border-bottom: 1px solid var(--border); border-inline-end: 1px solid var(--border); min-height: 64px; }
@media (max-width: 520px) { .cal > :not(.wd):not(.day) { min-height: 52px; } }
.fsection { padding-block: 1.5rem; border-top: 1px solid var(--border); }
.fsection:first-child { padding-top: 0; border-top: 0; }
.fsection-title { display: flex; align-items: center; gap: .6rem; font-size: 1.05rem; font-weight: 800; margin: 0 0 1.1rem; }
.fsection-title > span { display: inline-grid; place-items: center; flex: none; width: 1.75rem; height: 1.75rem; border-radius: 50%; border: 1.5px solid var(--ink); font-size: .85rem; font-weight: 700; }
.fsection-title > span .i { width: 15px; height: 15px; }
.fsection-sub { font-size: .9rem; font-weight: 700; color: var(--muted); margin: 0; }
.fsection-actions { display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; padding-top: 1.5rem; border-top: 1px solid var(--border); }
.fsection-actions .hint { margin-inline-start: auto; }
.preview-title { margin: 2.25rem 0 1rem; }
.logo-pick { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.logo-pick img { height: 40px; width: auto; max-width: 120px; object-fit: contain; border: 1px solid var(--border); border-radius: var(--r-sm); padding: 2px; background: #fff; }
.line-items { border-top: 1px solid var(--border); }
.li-head, .li-row { display: grid; grid-template-columns: minmax(0, 1fr) 80px 150px 130px 40px; gap: .5rem; align-items: center; }
.li-head { padding: .45rem 0; font-size: .8rem; font-weight: 600; color: var(--muted); border-bottom: 1px solid var(--border); }
.li-row { padding: .5rem 0; border-bottom: 1px solid var(--border); }
.li-cell { display: block; min-width: 0; }
.li-label { display: none; }
.li-sum { text-align: end; }
.li-sum b { font-weight: 700; }
.li-del { display: flex; justify-content: center; }
.li-row .input { height: 44px; }
.li-row .input.num { padding-inline: .6rem; }
.add-row { margin-top: .6rem; }
@media (max-width: 640px) {
.li-head { display: none; }
.li-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr) auto; grid-template-areas: "desc desc del" "qty price price" "sum sum sum"; row-gap: .45rem; padding: .85rem 0; }
.li-row .li-desc { grid-area: desc; }
.li-row .li-cell:nth-child(2) { grid-area: qty; }
.li-row .li-cell:nth-child(3) { grid-area: price; }
.li-row .li-sum { grid-area: sum; display: flex; justify-content: space-between; align-items: baseline; }
.li-row .li-del { grid-area: del; align-self: end; }
.li-label { display: block; font-size: .76rem; color: var(--muted); margin-bottom: .2rem; }
.li-sum .li-label { margin: 0; }
.fsection-actions .hint { margin-inline-start: 0; width: 100%; }
.fsection-actions .btn-lg { width: 100%; }
}
.add-line { display: grid; grid-template-columns: minmax(0, 1fr) 76px auto; gap: .5rem; }
.add-line .input.num { text-align: center; padding-inline: .4rem; }
.pick-list { list-style: none; margin: .35rem 0 0; padding: 0; border-top: 1px solid var(--border); }
.pick-list li { display: flex; align-items: center; gap: .6rem; padding: .45rem 0; border-bottom: 1px solid var(--border); font-size: .93rem; }
.pick-list li > span { flex: 1; min-width: 0; }
.pick-list li > b { }
.pick-list .icon-btn { width: 34px; height: 34px; }
details.panel > .stack.grid-2, details.panel > .stack.form { display: grid; }
@media (max-width: 480px) { .add-line { grid-template-columns: minmax(0, 1fr) 64px; } .add-line .btn { grid-column: 1 / -1; } }
details.panel > .stack.grid-2 > *, details.panel > .stack.form > * { margin-block-start: 0; }
.qa-list { border-top: 1px solid var(--border); }
.qa-item { display: grid; gap: .5rem; padding: .9rem 0; border-bottom: 1px solid var(--border); }
@media (max-width: 560px) {
.seg.stack-sm { display: flex; flex-direction: column; }
.seg.stack-sm label { justify-content: flex-start; text-align: start; min-height: 46px; padding-inline: 1rem; border-inline-start: 0; border-top: 1px solid var(--border); }
.seg.stack-sm label:first-of-type { border-top: 0; }
}
@media (max-width: 600px) {
.invoice-sheet { padding: .9rem .75rem; font-size: .82rem; }
.invoice-sheet .inv-table { min-width: 0; font-size: .74rem; }
.invoice-sheet .inv-table th, .invoice-sheet .inv-table td { padding: .4rem .3rem; }
.invoice-sheet .inv-table thead th { white-space: normal; font-size: .7rem; line-height: 1.5; }
.invoice-sheet .inv-table .inv-n { width: 1.8rem; }
.invoice-sheet .inv-table tfoot tr.grand td { font-size: .82rem; }
.inv-party dt { min-width: 4.5rem; }
}
.article-meta { display: flex; align-items: center; gap: .4rem; font-size: .84rem; color: var(--muted); margin: 0 0 1rem; }
.article-meta .i { width: 1.05em; height: 1.05em; }
.prose figure.infographic { margin: 2rem 0; }
.prose figure.infographic img { width: 100%; height: auto; border-radius: var(--r); border: 1px solid var(--border); background: #f7f6f2; }
.prose figure.infographic figcaption { margin-top: .55rem; font-size: .84rem; color: var(--muted); text-align: center; line-height: 1.8; }
.prose p { text-align: justify; text-justify: inter-word; }
@media (max-width: 600px) { .prose p { text-align: start; } }
.toc-box ol { list-style: persian; }
.article-more-toggle { display: none; margin: 1rem auto 0; }
.article-more-toggle .i { transition: transform .2s; }
.js .article-more.is-collapsible .article-more-toggle { display: flex; }
.js .article-more.is-collapsible:not(.is-open) .article-more-body { max-height: 28rem; overflow: hidden; position: relative; }
.js .article-more.is-collapsible:not(.is-open) .article-more-body::after {
content: ""; position: absolute; inset: auto 0 0 0; height: 7rem; pointer-events: none;
background: linear-gradient(to bottom, transparent, var(--bg));
}
.article-more.is-open .article-more-toggle .i { transform: rotate(180deg); }
@media print { .js .article-more.is-collapsible .article-more-body { max-height: none !important; overflow: visible !important; } .article-more-toggle { display: none !important; } }
ul.card-list { list-style: none; margin: 0; padding: 0; }
ul.card-list > li { display: flex; min-width: 0; margin: 0; }
ul.card-list > li > .tcard, ul.card-list > li > .ccard { flex: 1; min-width: 0; }
ul.card-list > li[hidden] { display: none; }
