@font-face {
  font-family: Vazirmatn;
  src: url('/vazirmatn.woff2') format('woff2');
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  font-family: Vazirmatn, Tahoma, sans-serif;
  color-scheme: light;
  --canvas: #edf0f3;
  --surface: #f9fafb;
  --rail: #e5eaf0;
  --ink: #15202c;
  --muted: #495866;
  --line: #cbd4de;
  --strong-line: #8798aa;
  --accent: #304b66;
  --accent-ink: #244361;
  --accent-soft: #dae6f3;
  --on-accent: #ffffff;
  --habits: #3e5c67;
  --habit-soft: #dce8ea;
  --danger: #94373c;
  --shadow: 0 16px 45px #13263d22;
  --ease-out: cubic-bezier(.23, 1, .32, 1);
  --press: cubic-bezier(.19, 1, .22, 1);
  --nav-ms: 250ms;
  --swap-ms: 220ms;
  background: var(--canvas);
  color: var(--ink);
  font-size: 15px;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --canvas: #11151c;
  --surface: #202630;
  --rail: #2a3441;
  --ink: #edf3fb;
  --muted: #b9c8d9;
  --line: #414e60;
  --strong-line: #788ca1;
  --accent: #b7d1ef;
  --accent-ink: #d4e7fd;
  --accent-soft: #354c64;
  --on-accent: #162b40;
  --habits: #a6cbd1;
  --habit-soft: #303f48;
  --danger: #ffaeb0;
  --shadow: 0 16px 45px #00091888;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; line-height: 1.65; }
button, input, select, textarea { font: inherit; color: inherit; }
button, a.button { cursor: pointer; -webkit-tap-highlight-color: transparent; }
button { border: 0; background: transparent; }
button:disabled { cursor: default; opacity: .5; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
a { color: var(--accent-ink); }
h1, h2, h3, p { margin: 0; }
h1 { font-size: clamp(1.65rem, 4.9vw, 2.7rem); font-weight: 800; letter-spacing: -.045em; line-height: 1.25; }
h2 { font-size: 1.12rem; font-weight: 760; }
h3 { font-size: 1rem; font-weight: 720; }

.top { background: var(--surface); border-bottom: 1px solid var(--line); }
.top-inner {
  max-width: 1180px; margin: auto; display: flex; align-items: center; justify-content: space-between;
  min-height: 68px; padding: env(safe-area-inset-top, 0px) clamp(16px, 4vw, 40px) 0;
}
.brand, .profile { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0; }
.brand { font-size: 1.37rem; font-weight: 850; letter-spacing: -.045em; }
.brand-mark { width: 43px; height: 46px; object-fit: contain; }
.profile { color: var(--muted); font-size: .86rem; font-weight: 650; }
.avatar {
  width: 32px; height: 32px; display: inline-grid; place-items: center; border-radius: 50%;
  background: var(--habit-soft); color: var(--habits); font-weight: 800;
}
.layout {
  display: grid; grid-template-columns: 154px minmax(0, 1fr); gap: clamp(24px, 4.6vw, 58px);
  max-width: 1180px; margin: auto; padding: 31px clamp(16px, 4vw, 40px) 60px;
}
.layout:has(nav[hidden]) { display: block; max-width: 760px; }
nav {
  display: grid; gap: 4px; align-self: start; position: sticky; top: 16px;
  padding-inline-start: 9px; border-inline-start: 1px solid var(--line);
}
nav button {
  display: flex; gap: 11px; align-items: center; min-height: 44px; padding: 8px 11px;
  text-align: right; border-radius: 7px; color: var(--muted); font-weight: 620;
  transition: color 150ms linear, background-color 150ms linear;
}
nav button:hover { background: var(--rail); color: var(--ink); }
nav button[aria-current="page"] { background: var(--accent-soft); color: var(--accent-ink); }
.nav-indicator {
  pointer-events: none; position: absolute; top: 0; left: 0; z-index: 1;
  width: 3px; height: 23px; border-radius: 3px; background: var(--accent);
  transform: translate(var(--nav-x, 0px), var(--nav-y, 0px)); opacity: 0;
}
nav[data-placed] .nav-indicator { opacity: 1; transition: transform var(--nav-ms) var(--ease-out); }


main { min-width: 0; display: grid; gap: 19px; align-content: start; }
.entry {
  margin: 5vh auto 0; width: min(100%, 480px); background: var(--surface); padding: clamp(23px, 5vw, 38px);
  border: 1px solid var(--line); border-block-start: 3px solid var(--accent); border-radius: 9px;
}
.entry h1 { font-size: clamp(1.4rem, 4vw, 1.9rem); }
.entry p { margin: 9px 0 17px; color: var(--muted); }
.page-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 4px 0 12px; }
.sub { color: var(--muted); font-size: .9rem; margin-top: 6px; }
.hero { padding-bottom: 0; }
.hero .page-head { padding-bottom: 16px; }
.week {
  display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px;
  padding: 4px; margin-top: 2px; background: var(--rail); border: 1px solid var(--line); border-radius: 9px;
}
.day {
  display: grid; align-content: center; justify-items: center; width: 100%; min-height: 63px;
  gap: 2px; border-radius: 6px; border: 1px solid transparent; padding: 4px 0;
  color: var(--muted); text-align: center;
}
.day:hover { background: var(--surface); }
.day strong { font-weight: 780; color: var(--ink); }
.day small { font-size: .78rem; }
.day[aria-current="date"] { background: var(--accent); color: var(--on-accent); }
.day[aria-current="date"] strong { color: inherit; }
.day[data-today]:not([aria-current="date"]) { border-color: var(--accent); color: var(--accent-ink); }
.dot { width: 4px; height: 4px; border-radius: 50%; background: currentColor; }
.dot.empty { visibility: hidden; }
.btn, a.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px; text-decoration: none;
  min-height: 44px; padding: 7px 14px; border-radius: 7px; border: 1px solid transparent;
  font-weight: 720; white-space: nowrap; touch-action: manipulation;
  transition: transform 160ms var(--press), background-color 150ms linear;
}
.btn:active:not(:disabled) { transform: scale(.975); }
.primary { background: var(--accent); color: var(--on-accent); }
.secondary { background: var(--surface); border-color: var(--line); }
.secondary:hover { background: var(--rail); }
.danger { color: var(--danger); border-color: var(--line); background: var(--surface); }
.icon { font-size: 1.16rem; min-width: 44px; padding: 4px; }
.text-action {
  min-height: 44px; padding: 4px 0; color: var(--accent-ink); font-size: .86rem; font-weight: 720;
}
.text-action:hover { text-decoration: underline; text-underline-offset: 3px; }

.panels { display: grid; gap: 15px; min-width: 0; }
.panels.two { grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); align-items: start; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 9px; padding: 13px 16px; min-width: 0; }
.panel-head { display: flex; flex-wrap: wrap; gap: 5px 10px; align-items: center; justify-content: space-between; min-height: 38px; }
.panel-head h2 { font-size: 1.05rem; }
.agenda .panel { padding-block: 9px 8px; }
.today-habits .panel-head h2 { color: var(--habits); }
.count { color: var(--muted); font-size: .82rem; font-weight: 560; }
.empty-state { color: var(--muted); padding: 11px 0 8px; font-size: .91rem; }
.row { display: flex; align-items: center; gap: 7px; min-height: 57px; padding: 3px 0; border-top: 1px solid var(--line); }
.row-main { padding: 5px 0; text-align: start; min-width: 0; flex: 1; display: grid; align-content: center; min-height: 44px; }
.row-main strong { overflow-wrap: anywhere; font-weight: 680; }
.row-main:hover strong { color: var(--accent-ink); }
.row[data-done="true"] .row-main strong { color: var(--muted); text-decoration: line-through; text-decoration-color: var(--strong-line); }
.meta { display: flex; flex-wrap: wrap; column-gap: 6px; color: var(--muted); font-size: .8rem; }
.meta .warm { color: var(--accent-ink); }
.touch { display: inline-grid; place-items: center; min-width: 44px; min-height: 44px; border-radius: 6px; padding: 0; }
.touch:hover { background: var(--rail); }
.check {
  display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 5px;
  border: 1.5px solid var(--strong-line); background: var(--surface); line-height: 1; color: var(--ink);
}
.touch[aria-pressed="true"] .check { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-ink); }
.today-habits .touch[aria-pressed="true"] .check, .habit-card .touch[aria-pressed="true"] .check {
  border-color: var(--habits); background: var(--habit-soft); color: var(--habits);
}
.touch[data-completed] .check { animation: checked-in 210ms var(--ease-out); }
@keyframes checked-in { from { transform: scale(.8); } to { transform: scale(1); } }

.meter { display: grid; margin-block: 3px 10px; }
.segment-track { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 3px; }
.segment {
  min-width: 0; height: 6px; border-radius: 2px; background: var(--rail); overflow: hidden;
  position: relative;
}
.segment::after { content: ""; position: absolute; inset: 0; background: var(--accent); transform: scaleX(0); transform-origin: right; }
.segment[data-filled]::after { transform: scaleX(1); }
.segment[data-fill-in]::after { animation: segment-in 250ms var(--ease-out); }
.habit-card .segment { background: var(--habit-soft); }
.habit-card .segment::after { background: var(--habits); }
@keyframes segment-in { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.filters { display: flex; gap: 6px; flex-wrap: wrap; }
.filters button { min-height: 44px; border-radius: 6px; padding: 5px 12px; background: var(--surface); border: 1px solid var(--line); }
.filters [aria-pressed="true"] { color: var(--accent-ink); border-color: var(--accent); background: var(--accent-soft); font-weight: 700; }
.calendar-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.month { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; margin-top: 8px; }
.month .day { min-height: 45px; }
.weekday { text-align: center; color: var(--muted); font-size: .72rem; overflow: hidden; white-space: nowrap; }
.small .day { min-height: 39px; }
.habit-card { display: grid; gap: 7px; border-inline-start: 3px solid var(--habits); }
.habit-card .row { border-top: 0; }
.history { display: flex; gap: 4px; margin-block: 0 4px; }
.history span { flex: 1; min-width: 0; height: 4px; border-radius: 2px; background: var(--rail); }
.history [data-done="true"] { background: var(--habits); }
.project-header { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.graph-wrap { position: relative; overflow-x: auto; margin-top: 13px; background: var(--canvas); border-radius: 6px; border: 1px solid var(--line); }
.graph { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(142px,1fr); position: relative; min-width: max-content; gap: 16px; padding: 15px; align-items: start; }
.graph canvas { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.graph-col { display: grid; gap: 10px; z-index: 1; min-width: 142px; }
.node { max-width: 188px; min-height: 50px; text-align: right; padding: 7px 11px; background: var(--surface); border: 1px solid var(--line); border-radius: 7px; overflow-wrap: anywhere; }
.node small { display: block; color: var(--muted); }
.node[data-ready="true"] { border-color: var(--accent); }

.settings { display: grid; gap: 13px; }
.setting { display: grid; gap: 5px; }
.setting-line { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; }
input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--accent); }
.switch { flex: 0 0 auto; display: inline-flex; align-items: center; }
.switch input { appearance: none; width: 41px; height: 24px; border: 1px solid var(--strong-line); border-radius: 20px; background: var(--rail); display: grid; align-items: center; padding: 2px; cursor: pointer; transition: background-color 160ms linear; }
.switch input::before { content: ""; width: 17px; height: 17px; border-radius: 50%; background: var(--muted); transform: translateX(0); transition: transform 180ms var(--ease-out); }
.switch input:checked { background: var(--accent); border-color: var(--accent); }
.switch input:checked::before { background: var(--on-accent); transform: translateX(-17px); }
input:not([type="checkbox"]), select, textarea, .date-control {
  border: 1px solid var(--strong-line); background: var(--canvas); border-radius: 6px;
  min-height: 44px; padding: 6px 10px; min-width: 0; width: 100%;
}
input[type=time], input[type=number] { direction: ltr; }
textarea { resize: vertical; }
label, .label { font-weight: 650; font-size: .92rem; }
.field { display: grid; align-content: start; gap: 5px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.span { grid-column: 1 / -1; }
.date-control { text-align: right; }
dialog {
  background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: 11px;
  box-shadow: var(--shadow); padding: 19px; width: min(550px, calc(100% - 24px)); max-height: 86vh; max-height: min(86dvh, 780px);
}
dialog::backdrop { background: #0e1724a0; }
.dialog-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 13px; }
.dialog-actions { display: flex; align-items: center; gap: 8px; justify-content: flex-end; margin-top: 17px; flex-wrap: wrap; }
.date-panel { padding: 8px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); margin-top: 3px; }
.choices { display: flex; gap: 7px; flex-wrap: wrap; }
.choices label { display: inline-flex; gap: 5px; align-items: center; min-height: 38px; padding: 0 4px; }
.field-error { color: var(--danger); margin-top: 10px; }
.submit-swap { display: inline-grid; overflow: hidden; }
.submit-swap span {
  grid-area: 1 / 1; text-align: center;
  transition: opacity var(--swap-ms) var(--ease-out), transform var(--swap-ms) var(--ease-out);
}
.swap-pending { opacity: 0; transform: translateY(-85%); }
.btn[aria-busy="true"] .swap-ready { opacity: 0; transform: translateY(85%); }
.btn[aria-busy="true"] .swap-pending { opacity: 1; transform: translateY(0); }
.btn[aria-busy="true"] { opacity: 1; }
.toast {
  position: fixed; z-index: 20; right: 50%; transform: translateX(50%); bottom: max(18px, env(safe-area-inset-bottom));
  width: max-content; max-width: calc(100% - 24px); border-radius: 7px; background: var(--ink); color: var(--surface);
  padding: 10px 16px; box-shadow: var(--shadow);
}
.toast:not([hidden]) { animation: toast-in 190ms var(--ease-out); }
@keyframes toast-in { from { opacity: 0; transform: translate(50%, 5px); } to { opacity: 1; transform: translate(50%, 0); } }

@media (max-width: 730px) {
  .layout { display: block; padding-top: 18px; padding-bottom: calc(85px + env(safe-area-inset-bottom)); }
  .top-inner { min-height: 57px; }
  .brand-mark { width: 36px; height: 40px; }
  .brand { font-size: 1.23rem; gap: 8px; }
  nav {
    position: fixed; inset: auto 0 0; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 0;
    background: var(--surface); border-inline-start: 0; border-top: 1px solid var(--line);
    padding: 4px 5px env(safe-area-inset-bottom); z-index: 5;
  }
  nav button { flex-direction: column; justify-content: center; gap: 3px; padding: 5px 0; font-size: .71rem; min-height: 49px; }
  nav button[aria-current="page"] { background: transparent; }
  .nav-indicator { width: 22px; height: 3px; border-radius: 0 0 3px 3px; }
  .panels.two { grid-template-columns: 1fr; }
  .page-head { padding-bottom: 7px; }
  .page-head .btn { padding-inline: 11px; }
  .panel { padding-inline: 12px; }
  .toast { bottom: calc(61px + env(safe-area-inset-bottom)); }
}
@media (max-width: 345px) {
  .form-grid { grid-template-columns: 1fr; }
  .week { gap: 1px; padding-inline: 2px; }
  .day small { font-size: .71rem; }
  nav button { font-size: .65rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0s !important; animation-duration: 0s !important; }
  .btn:active:not(:disabled) { transform: none; }
}

/* Frosted navigation over a neutral wallpaper. Content uses a denser surface. */
:root {
  --glass: #f7faffd1;
  --glass-edge: #ffffffed;
  --glass-depth: #7291ac2e;
  --paper: #f9fbfdd9;
  --wallpaper: radial-gradient(ellipse at 81% -14%, #fff 0, #f7f9fb00 49%),
    radial-gradient(ellipse at 12% 30%, #c7d4e1 0, #d4dde75c 29%, transparent 60%),
    radial-gradient(ellipse at 92% 75%, #cddbe5 0, transparent 55%);
}
:root[data-theme="dark"] {
  --glass: #25303de0;
  --glass-edge: #8594a768;
  --glass-depth: #000a1b64;
  --paper: #202833e0;
  --wallpaper: radial-gradient(ellipse at 82% -15%, #354a61 0, transparent 54%),
    radial-gradient(ellipse at 11% 36%, #263849 0, transparent 59%),
    radial-gradient(ellipse at 92% 80%, #1c2a39 0, transparent 55%);
}
body { min-height: 100vh; background: var(--wallpaper), var(--canvas); background-attachment: fixed; }
.top {
  position: sticky; top: 0; z-index: 4;
  background: var(--glass); border-bottom: 1px solid var(--glass-edge);
  box-shadow: 0 8px 28px var(--glass-depth), inset 0 1px var(--glass-edge);
  -webkit-backdrop-filter: blur(22px) saturate(1.16);
  backdrop-filter: blur(22px) saturate(1.16);
}
.profile {
  width: 44px; height: 44px; padding: 4px; min-height: 44px; justify-content: center;
  border-radius: 50%; background: var(--glass); border: 1px solid var(--glass-edge);
  box-shadow: inset 0 1px var(--glass-edge), 0 3px 12px var(--glass-depth);
}
.profile .avatar { width: 34px; height: 34px; object-fit: cover; }
nav {
  top: 89px; padding: 8px;
  background: var(--glass); border: 1px solid var(--glass-edge); border-radius: 19px;
  box-shadow: inset 0 1px var(--glass-edge), 0 8px 25px var(--glass-depth);
  -webkit-backdrop-filter: blur(20px) saturate(1.17);
  backdrop-filter: blur(20px) saturate(1.17);
}
nav button { border-radius: 12px; }
nav button[aria-current="page"] { box-shadow: inset 0 1px var(--glass-edge); }
.week {
  background: var(--glass); border-color: var(--glass-edge); border-radius: 20px;
  box-shadow: inset 0 1px var(--glass-edge), 0 5px 20px var(--glass-depth);
}
.day { border-radius: 13px; }
.day[aria-current="date"] { box-shadow: inset 0 1px #ffffff50, 0 4px 10px var(--glass-depth); }
.panel, .entry {
  background: var(--paper); border: 1px solid var(--glass-edge);
  border-radius: 17px; box-shadow: 0 5px 16px var(--glass-depth);
}
.habit-card { border-inline-start: 3px solid var(--habits); }
.btn, a.button, .filters button { border-radius: 13px; }
.btn.primary { box-shadow: inset 0 1px #ffffff49, 0 5px 12px var(--glass-depth); }
.btn.secondary, .filters button { background: var(--glass); border-color: var(--glass-edge); box-shadow: inset 0 1px var(--glass-edge); }
dialog { border-radius: 21px; border-color: var(--glass-edge); }
.graph-wrap { border-radius: 12px; }
.setting-line { padding-inline: 3px; }
@media (max-width: 730px) {
  .top-inner { min-height: 57px; }
  .layout { padding-bottom: calc(95px + env(safe-area-inset-bottom)); }
  nav {
    position: fixed; inset: auto 8px calc(7px + env(safe-area-inset-bottom)); padding: 4px 4px 3px;
    background: var(--glass); border: 1px solid var(--glass-edge); border-radius: 22px;
    box-shadow: inset 0 1px var(--glass-edge), 0 5px 20px var(--glass-depth);
  }
  nav button { border-radius: 15px; min-height: 49px; }
  nav button[aria-current="page"] { background: var(--accent-soft); }
  .toast { bottom: calc(76px + env(safe-area-inset-bottom)); }
}
@media (prefers-reduced-transparency: reduce), (forced-colors: active) {
  .top, nav, .week { background: var(--surface); -webkit-backdrop-filter: none; backdrop-filter: none; }
  .panel, .entry { background: var(--surface); }
}

nav button.red-launch{color:#8e3047} :root[data-theme="dark"] nav button.red-launch{color:#f1afbd}
@media(max-width:730px){nav .red-launch{font-size:.64rem;line-height:1.12}}

:root{--material:linear-gradient(152deg,#fffdfbe3,#ebf4fc8c 75%);--glass-edge:#fffffff2;--glass-depth:#4e71974a}
:root[data-theme="dark"]{--material:linear-gradient(152deg,#3a4d637a,#1e293cb3 80%);--glass-edge:#b7d4f44a;--glass-depth:#000c2279}
body{background:radial-gradient(ellipse at 15% 30%,#9fb9d188,transparent 56%),radial-gradient(ellipse at 92% 69%,#a5bec488,transparent 54%),var(--canvas);background-attachment:fixed}
:root[data-theme="dark"] body{background:radial-gradient(ellipse at 12% 26%,#304b6c92,transparent 58%),radial-gradient(ellipse at 78% 66%,#344b5392,transparent 61%),var(--canvas)}
.top,nav,.week,.panel,.entry,.btn.secondary,dialog:not(.letter-dialog){background:var(--material);border-color:var(--glass-edge);box-shadow:inset 0 1px var(--glass-edge),0 7px 21px var(--glass-depth);-webkit-backdrop-filter:blur(18px) saturate(1.18);backdrop-filter:blur(18px) saturate(1.18)}
.btn.primary{background:linear-gradient(145deg,#54789b,#2a445f 75%);border-color:#a9c4de79;box-shadow:inset 0 1px #d6ebff80,0 7px 18px var(--glass-depth)}
:root[data-theme="dark"] .btn.primary{background:linear-gradient(140deg,#d1e2f6,#a4c3e7 76%)}
.setting-tile{padding:13px;grid-template-columns:minmax(0,1fr)}.setting-tile .sub{margin-top:1px}.setting-tile input,.setting-tile select{min-height:43px}.setting-line{min-width:0}
@media(prefers-reduced-transparency:reduce){.top,nav,.week,.panel,.entry,.btn.secondary,dialog:not(.letter-dialog){background:var(--surface);backdrop-filter:none}}

.main-hero { position: relative; isolation: isolate; }
.main-hero-aura { position: absolute; z-index: -1; inset: -15px -10px 50px; overflow: hidden; border-radius: 23px; pointer-events: none; }
.main-hero-aura::before {
  content: ""; position: absolute; inset: -80% -12%;
  background: radial-gradient(ellipse 34% 24% at 25% 50%, #91b8df75, transparent 86%),
              radial-gradient(ellipse 24% 25% at 70% 40%, #c1d3e77d, transparent 84%);
  animation: catcher-aura 9s ease-in-out infinite alternate;
}
:root[data-theme="dark"] .main-hero-aura::before { opacity: .42; }
@keyframes catcher-aura { from { transform: translateX(10%) rotate(-7deg); } to { transform: translateX(-13%) rotate(9deg); } }

.setting-tile { padding: 0; }
.setting-tile .ui-tile { padding: 12px 13px; }
.setting-tile[open] .ui-tile-arrow { transform: rotate(-90deg); }
.setting-tile .ui-tile-arrow { transition: transform 180ms var(--ease-out); }
.setting-controls { padding: 8px 12px 13px; margin-inline: 10px; border-top: 1px solid var(--line); min-width: 0; }
.setting-tile[open] .setting-controls { animation: setting-reveal 240ms var(--ease-out) both; }
@keyframes setting-reveal { from { opacity: .5; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.check .ui-icon { width: 14px; height: 14px; }
.touch[aria-pressed="true"] .ui-icon { animation: icon-settle 310ms var(--press); }
@media (prefers-reduced-motion: reduce) {
  .main-hero-aura::before, .setting-tile[open] .setting-controls { animation: none; }
  .setting-tile .ui-tile-arrow { transition: none; }
}

.red-window { position: fixed; z-index: 10; inset: 0; background: #f6e9e9; color: #351f2a; }
.red-window iframe { width: 100%; height: 100%; display: block; border: 0; }
.red-window .entry { margin: 18vh auto 0; max-width: calc(100% - 26px); color: var(--ink); }
.red-window .btn { margin: 0 0 6px 5px; }
