:root {
  --paper: #f3eee4;
  --paper-deep: #eae2d3;
  --surface: #fbf8f1;
  --surface-strong: #fffdf8;
  --ink: #20241f;
  --ink-soft: #3b4038;
  --muted: #5c6055;
  --muted-light: #74776c;
  --line: rgba(40, 44, 35, 0.12);
  --line-strong: rgba(40, 44, 35, 0.2);
  --forest: #20372e;
  --forest-deep: #182b23;
  --accent: #db5a35;
  --accent-soft: #f4d9cd;
  --accent-ink: #a83b1d;
  --green: #3c7457;
  --green-soft: #dfeadf;
  --amber: #a56a1e;
  --amber-soft: #f2e5ca;
  --red: #ad4433;
  --red-soft: #f4ded7;
  --blue: #47677d;
  --blue-soft: #e1eaf0;
  --lime: #dce7ad;
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 11px;
  --shadow-soft: 0 18px 46px -30px rgba(38, 35, 24, 0.4);
  --shadow-float: 0 30px 80px -26px rgba(27, 30, 23, 0.38);
  --font-sans: "Inter", "SF Pro Text", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-serif: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, "Songti SC", "STSong", serif;
}

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

[hidden] {
  display: none !important;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at 4% -6%, rgba(219, 90, 53, 0.09), transparent 29rem),
    radial-gradient(circle at 96% 2%, rgba(32, 55, 46, 0.07), transparent 32rem),
    var(--paper);
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.2;
  z-index: 100;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.14'/%3E%3C/svg%3E");
}

::selection {
  color: var(--surface);
  background: var(--forest);
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3,
h4,
p {
  margin: 0;
}

svg {
  display: block;
}

.svg-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.icon {
  width: 20px;
  height: 20px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Boot */
.boot-screen {
  min-height: 100vh;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 24px;
  color: var(--muted);
}

.boot-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--ink);
}

.brand-sun {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 15px;
  background: var(--forest);
  color: var(--lime);
}

.brand-sun svg {
  width: 38px;
  height: 38px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
}

.boot-brand strong {
  display: block;
  font-size: 25px;
  letter-spacing: 0.08em;
  line-height: 1.15;
}

.boot-brand span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.24em;
}

.boot-line {
  width: 140px;
  height: 2px;
  overflow: hidden;
  border-radius: 99px;
  background: rgba(32, 55, 46, 0.12);
}

.boot-line span {
  display: block;
  width: 44%;
  height: 100%;
  border-radius: inherit;
  background: var(--accent);
  animation: boot-slide 1.2s ease-in-out infinite;
}

.boot-screen p {
  font-size: 12px;
  letter-spacing: 0.08em;
}

@keyframes boot-slide {
  0% { transform: translateX(-110%); }
  100% { transform: translateX(340%); }
}

/* Layout */
.shell {
  width: 100%;
  max-width: 1540px;
  min-height: 100vh;
  margin: 0 auto;
  padding: 20px;
  display: grid;
  grid-template-columns: 232px minmax(0, 1fr);
  gap: 26px;
}

.sidebar {
  position: sticky;
  top: 20px;
  height: calc(100vh - 40px);
  min-height: 600px;
  padding: 26px 17px 18px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  color: rgba(247, 241, 229, 0.72);
  background:
    radial-gradient(circle at 22% 4%, rgba(220, 231, 173, 0.15), transparent 14rem),
    radial-gradient(circle at 90% 100%, rgba(219, 90, 53, 0.18), transparent 16rem),
    var(--forest);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-soft);
}

.sidebar::before {
  content: "";
  position: absolute;
  width: 220px;
  height: 220px;
  right: -150px;
  top: 115px;
  border: 1px solid rgba(247, 241, 229, 0.12);
  border-radius: 50%;
}

.sidebar::after {
  content: "";
  position: absolute;
  width: 320px;
  height: 320px;
  right: -230px;
  top: 65px;
  border: 1px solid rgba(247, 241, 229, 0.08);
  border-radius: 50%;
}

.brand {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 8px;
  color: #faf5e9;
}

.brand .brand-sun {
  width: 43px;
  height: 43px;
  border-radius: 13px;
  background: var(--lime);
  color: var(--forest);
}

.brand .brand-sun svg {
  width: 33px;
  height: 33px;
}

.brand strong {
  display: block;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.1em;
  line-height: 1.15;
}

.brand small {
  display: block;
  margin-top: 4px;
  color: rgba(247, 241, 229, 0.44);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.25em;
}

.sidebar-kicker {
  position: relative;
  z-index: 1;
  margin: 33px 10px 27px;
  color: rgba(247, 241, 229, 0.46);
  font-family: var(--font-serif);
  font-size: 13px;
  font-style: italic;
  line-height: 1.65;
  letter-spacing: 0.02em;
}

.sidebar-nav {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.nav-link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 43px;
  padding: 10px 11px;
  border-radius: 12px;
  color: rgba(247, 241, 229, 0.63);
  font-size: 13px;
  font-weight: 550;
  transition: color 160ms ease, background 160ms ease, transform 160ms ease;
}

.nav-link:hover {
  color: #faf5e9;
  background: rgba(255, 255, 255, 0.07);
}

.nav-link .icon {
  width: 18px;
  height: 18px;
  opacity: 0.9;
}

.nav-link.active {
  color: var(--forest-deep);
  background: #f7f1e5;
  box-shadow: 0 8px 20px -16px rgba(0, 0, 0, 0.9);
}

.nav-link.active::before {
  content: "";
  position: absolute;
  left: -3px;
  width: 3px;
  height: 17px;
  border-radius: 99px;
  background: var(--accent);
}

.nav-count {
  margin-left: auto;
  min-width: 21px;
  height: 21px;
  padding: 0 6px;
  display: inline-grid;
  place-items: center;
  border-radius: 99px;
  color: rgba(247, 241, 229, 0.7);
  background: rgba(255, 255, 255, 0.1);
  font-size: 10px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.nav-link.active .nav-count {
  color: var(--forest);
  background: var(--lime);
}

.sidebar-channel {
  position: relative;
  z-index: 1;
  margin-top: auto;
  padding: 17px 12px 14px;
  border: 1px solid rgba(247, 241, 229, 0.1);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.045);
}

.sidebar-channel-head {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(247, 241, 229, 0.55);
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 0.12em;
}

.sidebar-channel h3 {
  margin-top: 9px;
  color: #faf5e9;
  font-size: 13px;
  font-weight: 600;
}

.sidebar-channel p {
  margin-top: 3px;
  color: rgba(247, 241, 229, 0.4);
  font-size: 10.5px;
}

.sidebar-channel a {
  margin-top: 11px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--lime);
  font-size: 10.5px;
  font-weight: 650;
}

.sidebar-channel a .icon {
  width: 13px;
  height: 13px;
  transition: transform 160ms ease;
}

.sidebar-channel a:hover .icon {
  transform: translateX(3px);
}

.sidebar-foot {
  position: relative;
  z-index: 1;
  margin-top: 14px;
  padding: 0 10px;
  display: flex;
  align-items: center;
  gap: 6px;
  color: rgba(247, 241, 229, 0.27);
  font-size: 9px;
  letter-spacing: 0.04em;
}

.sidebar-foot .icon {
  width: 11px;
  height: 11px;
}

.main {
  min-width: 0;
  padding: 8px 2px 46px;
}

/* Topbar */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 44px;
  margin-bottom: 22px;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.mobile-brand {
  display: none;
  align-items: center;
  gap: 8px;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.mobile-brand .brand-sun {
  width: 33px;
  height: 33px;
  border-radius: 10px;
  background: var(--forest);
  color: var(--lime);
}

.mobile-brand .brand-sun svg {
  width: 26px;
  height: 26px;
}

.crumb {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted-light);
  font-size: 11px;
  font-weight: 550;
  letter-spacing: 0.02em;
}

.crumb b {
  color: var(--ink-soft);
  font-weight: 650;
}

.crumb .icon {
  width: 12px;
  height: 12px;
  opacity: 0.5;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 9px;
}

.date-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 36px;
  padding: 0 12px;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 99px;
  background: rgba(251, 248, 241, 0.45);
  font-size: 11px;
  white-space: nowrap;
}

.date-chip .icon {
  width: 14px;
  height: 14px;
}

.icon-btn {
  width: 37px;
  height: 37px;
  padding: 0;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--ink-soft);
  background: rgba(251, 248, 241, 0.56);
  transition: background 150ms ease, border-color 150ms ease, transform 150ms ease;
}

.icon-btn:hover {
  background: var(--surface-strong);
  border-color: var(--line-strong);
  transform: translateY(-1px);
}

.icon-btn .icon {
  width: 17px;
  height: 17px;
}

.icon-btn.spinning .icon {
  animation: spin 0.9s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Buttons */
.btn {
  height: 39px;
  padding: 0 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid transparent;
  border-radius: 11px;
  font-size: 12.5px;
  font-weight: 650;
  line-height: 1;
  white-space: nowrap;
  transition: transform 150ms ease, background 150ms ease, border-color 150ms ease, box-shadow 150ms ease;
}

.btn .icon {
  width: 16px;
  height: 16px;
}

.btn:hover:not(:disabled) {
  transform: translateY(-1px);
}

.btn:active:not(:disabled) {
  transform: translateY(0);
}

.btn:disabled {
  cursor: not-allowed;
  opacity: 0.52;
}

.btn-primary {
  color: #23150e;
  background: var(--accent);
  border-color: rgba(91, 25, 8, 0.15);
  box-shadow: 0 6px 16px -12px rgba(152, 50, 20, 0.9);
}

.btn-primary:hover:not(:disabled) {
  background: #e56a45;
}

.btn-dark {
  color: #f9f3e7;
  background: var(--forest);
  border-color: var(--forest);
}

.btn-dark:hover:not(:disabled) {
  background: var(--forest-deep);
}

.btn-ghost {
  color: var(--ink-soft);
  background: transparent;
  border-color: var(--line);
}

.btn-ghost:hover:not(:disabled) {
  background: var(--surface-strong);
  border-color: var(--line-strong);
}

.btn-soft {
  color: var(--ink-soft);
  background: var(--paper-deep);
  border-color: transparent;
}

.btn-soft:hover:not(:disabled) {
  background: #e2d7c4;
}

.btn-light {
  color: var(--forest-deep);
  background: #f8f2e5;
}

.btn-light:hover:not(:disabled) {
  background: #fffaf0;
}

.btn-danger {
  color: var(--red);
  background: transparent;
  border-color: rgba(173, 68, 51, 0.2);
}

.btn-danger:hover:not(:disabled) {
  background: var(--red-soft);
}

.btn-sm {
  height: 31px;
  padding: 0 10px;
  border-radius: 9px;
  font-size: 11px;
}

.btn-sm .icon {
  width: 14px;
  height: 14px;
}

.link-btn {
  padding: 0;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 0;
  color: var(--ink-soft);
  background: transparent;
  font-size: 11.5px;
  font-weight: 600;
}

.link-btn:hover {
  color: var(--accent-ink);
}

.link-btn .icon {
  width: 14px;
  height: 14px;
  transition: transform 160ms ease;
}

.link-btn:hover .icon {
  transform: translateX(2px);
}

/* Page intro */
.page-intro {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 26px;
  margin-bottom: 24px;
  animation: rise 420ms ease both;
}

.page-intro h1 {
  max-width: 760px;
  margin-top: 10px;
  font-size: clamp(31px, 3.25vw, 46px);
  font-weight: 680;
  line-height: 1.12;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

.page-intro h1 em {
  position: relative;
  z-index: 0;
  isolation: isolate;
  color: var(--accent-ink);
  font-style: normal;
  white-space: nowrap;
}

.page-intro h1 em::after {
  content: "";
  position: absolute;
  left: 2px;
  right: 2px;
  bottom: 2px;
  height: 6px;
  z-index: -1;
  border-radius: 2px;
  background: rgba(219, 90, 53, 0.17);
}

.page-intro .sub {
  max-width: 670px;
  margin-top: 13px;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.7;
}

.page-intro .sub strong {
  color: var(--ink-soft);
  font-weight: 650;
}

.intro-mark {
  flex: none;
  padding-bottom: 5px;
  text-align: right;
}

.intro-mark span {
  display: block;
  color: var(--muted-light);
  font-family: var(--font-serif);
  font-size: 12px;
  font-style: italic;
}

.mini-rule {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  color: var(--muted-light);
  font-size: 9px;
  font-weight: 650;
  letter-spacing: 0.16em;
}

.mini-rule::before {
  content: "";
  width: 24px;
  height: 1px;
  background: var(--line-strong);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.eyebrow .live-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(219, 90, 53, 0.12);
}

/* Demo banner */
.demo-banner {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 36px;
  margin-bottom: 17px;
  padding: 8px 12px;
  border: 1px dashed rgba(125, 103, 58, 0.27);
  border-radius: 11px;
  color: #756646;
  background: rgba(237, 228, 207, 0.54);
  font-size: 11px;
  animation: rise 350ms ease both;
}

.demo-banner .icon {
  width: 14px;
  height: 14px;
}

.demo-banner .demo-label {
  padding: 2px 6px;
  border-radius: 5px;
  color: #fffaf0;
  background: #a5834e;
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.demo-banner p {
  flex: 1;
  min-width: 0;
}

.demo-banner button {
  padding: 0;
  border: 0;
  color: #6b5732;
  background: transparent;
  font-size: 10.5px;
  font-weight: 650;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Hero */
.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.54fr) minmax(260px, 0.76fr);
  gap: 16px;
  animation: rise 460ms 40ms ease both;
}

.hero-card {
  position: relative;
  min-height: 296px;
  padding: 27px 29px 24px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  color: #f9f3e6;
  background:
    radial-gradient(circle at 88% 8%, rgba(219, 90, 53, 0.3), transparent 16rem),
    radial-gradient(circle at 78% 110%, rgba(220, 231, 173, 0.11), transparent 21rem),
    linear-gradient(135deg, #223b31, #1c3129 70%);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-soft);
}

.hero-card::before {
  content: "";
  position: absolute;
  top: -135px;
  right: -120px;
  width: 330px;
  height: 330px;
  border: 1px solid rgba(249, 243, 230, 0.14);
  border-radius: 50%;
}

.hero-card::after {
  content: "";
  position: absolute;
  top: -85px;
  right: -70px;
  width: 230px;
  height: 230px;
  border: 1px solid rgba(249, 243, 230, 0.08);
  border-radius: 50%;
}

.hero-top {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.hero-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(249, 243, 230, 0.5);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.2em;
}

.hero-label::before {
  content: "";
  width: 18px;
  height: 1px;
  background: var(--accent);
}

.hero-cat {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 28px;
  padding: 0 10px;
  color: var(--forest-deep);
  background: var(--lime);
  border-radius: 99px;
  font-size: 10.5px;
  font-weight: 650;
}

.hero-cat .icon {
  width: 13px;
  height: 13px;
}

.hero-title {
  position: relative;
  z-index: 1;
  max-width: 74%;
  margin-top: 16px;
  color: #fbf5e8;
  font-size: clamp(22px, 2.2vw, 29px);
  font-weight: 620;
  line-height: 1.25;
  letter-spacing: -0.025em;
}

.hero-title .demo-inline {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 6px;
  vertical-align: 3px;
  color: rgba(249, 243, 230, 0.58);
  border: 1px solid rgba(249, 243, 230, 0.2);
  border-radius: 5px;
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.hero-countdown {
  position: relative;
  z-index: 1;
  margin-top: 12px;
  display: flex;
  align-items: flex-end;
  gap: 13px;
}

.hero-countdown .num {
  font-family: var(--font-serif);
  font-size: clamp(64px, 6.8vw, 92px);
  font-weight: 400;
  line-height: 0.82;
  letter-spacing: -0.06em;
  font-variant-numeric: lining-nums tabular-nums;
}

.hero-countdown .unit-block {
  padding-bottom: 4px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.hero-countdown .unit {
  color: var(--lime);
  font-size: 15px;
  font-weight: 650;
  line-height: 1;
}

.hero-countdown .caption {
  color: rgba(249, 243, 230, 0.42);
  font-size: 9.5px;
  letter-spacing: 0.08em;
}

.hero-countdown.is-expired .num {
  color: #f3a58e;
}

.hero-countdown.is-expired .unit {
  color: #f3a58e;
}

.hero-bottom {
  position: relative;
  z-index: 1;
  margin-top: auto;
  padding-top: 18px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  border-top: 1px solid rgba(249, 243, 230, 0.1);
}

.hero-meta {
  min-width: 0;
}

.hero-date {
  display: flex;
  align-items: center;
  gap: 7px;
  color: rgba(249, 243, 230, 0.72);
  font-size: 11px;
}

.hero-date .icon {
  width: 14px;
  height: 14px;
  opacity: 0.65;
}

.hero-note {
  margin-top: 6px;
  max-width: 390px;
  overflow: hidden;
  color: rgba(249, 243, 230, 0.36);
  font-size: 10.5px;
  line-height: 1.55;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hero-actions {
  display: flex;
  gap: 7px;
  flex: none;
}

.hero-actions .btn {
  height: 33px;
  border-radius: 9px;
  font-size: 10.5px;
}

.hero-actions .btn-ghost {
  color: rgba(249, 243, 230, 0.74);
  border-color: rgba(249, 243, 230, 0.16);
}

.hero-actions .btn-ghost:hover:not(:disabled) {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(249, 243, 230, 0.24);
}

.hero-empty {
  justify-content: space-between;
  background:
    radial-gradient(circle at 82% 15%, rgba(219, 90, 53, 0.24), transparent 15rem),
    linear-gradient(135deg, #223b31, #1c3129 70%);
}

.hero-empty .hero-title {
  max-width: 80%;
  font-size: clamp(25px, 2.5vw, 34px);
}

.hero-empty .hero-copy {
  position: relative;
  z-index: 1;
  max-width: 380px;
  margin-top: 12px;
  color: rgba(249, 243, 230, 0.48);
  font-size: 11.5px;
  line-height: 1.7;
}

.hero-empty .hero-bottom {
  border-top-color: transparent;
  padding-top: 10px;
}

.hero-empty-sun {
  position: absolute;
  right: 10%;
  top: 23%;
  width: 130px;
  height: 130px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(249, 243, 230, 0.12);
  border-radius: 50%;
}

.hero-empty-sun::before,
.hero-empty-sun::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(249, 243, 230, 0.09);
}

.hero-empty-sun::before {
  inset: 18px;
}

.hero-empty-sun::after {
  inset: 38px;
  background: var(--accent);
  border: 0;
  opacity: 0.12;
}

/* Stats */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  gap: 12px;
}

.stat-card {
  position: relative;
  min-height: 140px;
  padding: 17px 17px 15px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: rgba(251, 248, 241, 0.78);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  transition: transform 180ms ease, background 180ms ease;
}

.stat-card:hover {
  transform: translateY(-2px);
  background: var(--surface);
}

.stat-card::after {
  content: "";
  position: absolute;
  right: -28px;
  bottom: -40px;
  width: 95px;
  height: 95px;
  border: 1px solid var(--line);
  border-radius: 50%;
  opacity: 0.5;
}

.stat-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.stat-label {
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 600;
}

.stat-icon {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  color: var(--accent-ink);
  background: var(--accent-soft);
}

.stat-icon .icon {
  width: 15px;
  height: 15px;
}

.stat-value {
  position: relative;
  z-index: 1;
  margin-top: auto;
  padding-top: 14px;
  display: flex;
  align-items: baseline;
  gap: 4px;
  font-family: var(--font-serif);
  font-size: 37px;
  line-height: 0.9;
  letter-spacing: -0.03em;
  font-variant-numeric: lining-nums tabular-nums;
}

.stat-value small {
  font-family: var(--font-sans);
  font-size: 9px;
  font-weight: 600;
  color: var(--muted-light);
  letter-spacing: 0;
}

.stat-foot {
  position: relative;
  z-index: 1;
  margin-top: 7px;
  color: var(--muted-light);
  font-size: 9px;
}

.stat-card.tone-green .stat-icon { color: var(--green); background: var(--green-soft); }
.stat-card.tone-red .stat-icon { color: var(--red); background: var(--red-soft); }
.stat-card.tone-red .stat-value { color: var(--red); }
.stat-card.tone-blue .stat-icon { color: var(--blue); background: var(--blue-soft); }
.stat-card.tone-amber .stat-icon { color: var(--amber); background: var(--amber-soft); }

/* Dashboard */
.dashboard-grid {
  margin-top: 16px;
  display: grid;
  grid-template-columns: minmax(0, 1.58fr) minmax(268px, 0.72fr);
  gap: 16px;
  align-items: start;
  animation: rise 500ms 80ms ease both;
}

.panel {
  background: rgba(251, 248, 241, 0.75);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-soft);
}

.schedule-panel {
  padding: 22px 22px 13px;
  min-height: 390px;
}

.panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 4px;
}

.section-kicker {
  display: block;
  color: var(--muted-light);
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 0.18em;
}

.panel-head h2 {
  margin-top: 4px;
  font-size: 20px;
  font-weight: 650;
  letter-spacing: -0.025em;
}

.panel-head .head-note {
  margin-top: 4px;
  color: var(--muted-light);
  font-size: 10.5px;
}

.item-groups {
  margin-top: 8px;
}

.item-group + .item-group {
  margin-top: 2px;
}

.group-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 13px 3px 5px;
  color: var(--muted);
  font-size: 9.5px;
  font-weight: 650;
  letter-spacing: 0.03em;
}

.group-head::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

.group-head .group-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--muted-light);
}

.group-head.is-overdue {
  color: var(--red);
}

.group-head.is-overdue .group-dot {
  background: var(--red);
}

.group-head .group-count {
  order: 3;
  color: var(--muted-light);
  font-size: 9px;
  font-weight: 550;
  letter-spacing: 0;
}

.item-row {
  position: relative;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto 116px;
  gap: 12px;
  align-items: center;
  min-height: 64px;
  padding: 10px 4px;
  border-radius: 12px;
  cursor: pointer;
  transition: background 150ms ease;
}

.item-row:hover {
  background: rgba(234, 226, 211, 0.45);
}

.item-row + .item-row {
  border-top: 1px solid rgba(40, 44, 35, 0.065);
}

.item-row.is-completed {
  opacity: 0.55;
}

.item-row.is-completed .item-title {
  text-decoration: line-through;
}

.cat-mark {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  color: var(--cat-color, var(--ink-soft));
  background: var(--cat-bg, var(--paper-deep));
  border-radius: 13px;
}

.cat-mark .icon {
  width: 18px;
  height: 18px;
  stroke-width: 1.7;
}

.item-main {
  min-width: 0;
}

.item-title-line {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.item-title {
  overflow: hidden;
  color: var(--ink);
  font-size: 13.5px;
  font-weight: 620;
  letter-spacing: -0.01em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.item-meta {
  margin-top: 4px;
  overflow: hidden;
  color: var(--muted-light);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.item-meta .meta-warn {
  color: var(--red);
}

.item-due {
  min-width: 70px;
  text-align: right;
  white-space: nowrap;
}

.item-due strong {
  display: block;
  color: var(--ink-soft);
  font-size: 11.5px;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}

.item-due span {
  display: block;
  margin-top: 3px;
  color: var(--muted-light);
  font-size: 9.5px;
}

.item-row.is-overdue .item-due strong,
.item-row.is-overdue .item-due span {
  color: var(--red);
}

.item-row.is-soon .item-due span {
  color: var(--amber);
}

.row-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 2px;
  opacity: 0;
  transition: opacity 140ms ease;
}

.item-row:hover .row-actions,
.item-row:focus-within .row-actions {
  opacity: 1;
}

.mini-action {
  width: 27px;
  height: 27px;
  padding: 0;
  display: inline-grid;
  place-items: center;
  border: 0;
  border-radius: 8px;
  color: var(--muted);
  background: transparent;
}

.mini-action:hover {
  color: var(--ink);
  background: rgba(32, 55, 46, 0.08);
}

.mini-action .icon {
  width: 14px;
  height: 14px;
}

.mini-action.is-danger:hover {
  color: var(--red);
  background: var(--red-soft);
}

.item-tag {
  flex: none;
  padding: 2px 5px;
  border-radius: 4px;
  color: #8d733f;
  background: rgba(165, 131, 78, 0.12);
  font-size: 7.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.item-tag.tag-done {
  color: var(--green);
  background: var(--green-soft);
}

.item-tag.tag-overdue {
  color: var(--red);
  background: var(--red-soft);
}

.empty-inline {
  min-height: 250px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
}

.empty-inline .empty-icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  color: var(--green);
  background: var(--green-soft);
}

.empty-inline .empty-icon .icon {
  width: 25px;
  height: 25px;
}

.empty-inline h3 {
  margin-top: 7px;
  font-size: 14px;
  font-weight: 650;
}

.empty-inline p {
  max-width: 270px;
  color: var(--muted-light);
  font-size: 10.5px;
  line-height: 1.65;
}

.panel-foot-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 10px;
  padding-top: 13px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 600;
}

.panel-foot-link:hover {
  color: var(--accent-ink);
}

.panel-foot-link .icon {
  width: 13px;
  height: 13px;
}

.rail {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}

/* Calendar */
.calendar-card {
  padding: 18px 18px 14px;
  background: rgba(251, 248, 241, 0.8);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.calendar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.cal-title {
  display: flex;
  align-items: baseline;
  gap: 7px;
}

.cal-title strong {
  font-size: 14px;
  font-weight: 650;
  letter-spacing: -0.01em;
}

.cal-title span {
  color: var(--muted-light);
  font-family: var(--font-serif);
  font-size: 10px;
  font-style: italic;
}

.cal-nav {
  display: flex;
  gap: 4px;
}

.cal-nav button {
  width: 26px;
  height: 26px;
  padding: 0;
  display: grid;
  place-items: center;
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--muted);
  background: transparent;
}

.cal-nav button:hover {
  border-color: var(--line);
  background: var(--surface);
}

.cal-nav .icon {
  width: 13px;
  height: 13px;
}

.cal-weekdays,
.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
}

.cal-weekdays {
  margin-top: 15px;
  color: var(--muted-light);
  font-size: 8.5px;
  font-weight: 600;
  text-align: center;
}

.cal-weekdays span {
  padding: 4px 0;
}

.cal-grid {
  gap: 1px;
  margin-top: 3px;
}

.cal-day {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  padding: 0;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 9px;
  color: var(--ink-soft);
  background: transparent;
  font-size: 10.5px;
  font-variant-numeric: tabular-nums;
  transition: background 140ms ease, color 140ms ease;
}

.cal-day:hover {
  background: var(--paper-deep);
}

.cal-day.is-blank {
  visibility: hidden;
}

.cal-day.is-today {
  color: var(--accent-ink);
  font-weight: 700;
  box-shadow: inset 0 0 0 1px rgba(219, 90, 53, 0.55);
}

.cal-day.has-due::after {
  content: "";
  position: absolute;
  bottom: 3px;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--accent);
}

.cal-day.has-due.is-today::after {
  background: var(--accent-ink);
}

.calendar-foot {
  margin-top: 9px;
  padding-top: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  color: var(--muted-light);
  font-size: 8.5px;
}

.calendar-foot span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.calendar-foot i {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--accent);
}

/* Channel */
.channel-card {
  padding: 19px;
  background:
    radial-gradient(circle at 100% 0%, rgba(60, 116, 87, 0.11), transparent 12rem),
    rgba(251, 248, 241, 0.82);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.channel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.channel-icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: #eaf3e9;
  background: var(--green);
  box-shadow: 0 9px 20px -14px rgba(32, 55, 46, 0.8);
}

.channel-icon .icon {
  width: 21px;
  height: 21px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 23px;
  padding: 0 8px;
  border-radius: 99px;
  color: var(--muted);
  background: var(--paper-deep);
  font-size: 8.5px;
  font-weight: 650;
  white-space: nowrap;
}

.status-pill::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
}

.status-pill.tone-ok { color: var(--green); background: var(--green-soft); }
.status-pill.tone-warn { color: var(--amber); background: var(--amber-soft); }
.status-pill.tone-error { color: var(--red); background: var(--red-soft); }
.status-pill.tone-muted { color: var(--muted); background: var(--paper-deep); }
.status-pill.tone-blue { color: var(--blue); background: var(--blue-soft); }

.channel-card h3 {
  margin-top: 12px;
  font-size: 15px;
  font-weight: 650;
  letter-spacing: -0.015em;
}

.channel-desc {
  margin-top: 3px;
  color: var(--muted-light);
  font-size: 9.5px;
}

.channel-rows {
  margin-top: 13px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.channel-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 22px;
  font-size: 9.5px;
}

.channel-row span {
  color: var(--muted-light);
}

.channel-row b {
  overflow: hidden;
  color: var(--ink-soft);
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.channel-row b.is-error {
  color: var(--red);
  font-weight: 550;
}

.channel-actions {
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 9px;
}

.channel-actions .btn {
  height: 32px;
  padding: 0 11px;
  font-size: 10.5px;
}

.channel-tip {
  margin-top: 10px;
  color: var(--muted-light);
  font-size: 8.5px;
  line-height: 1.55;
}

/* Quote */
.quote-card {
  padding: 13px 7px 4px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.quote-card .quote-line {
  width: 1px;
  height: 41px;
  margin-top: 5px;
  background: linear-gradient(var(--accent), transparent);
  flex: none;
}

.quote-card p {
  color: var(--muted);
  font-family: var(--font-serif);
  font-size: 18px;
  font-style: italic;
  line-height: 1.5;
  letter-spacing: 0.01em;
}

.quote-card small {
  display: block;
  margin-top: 5px;
  color: var(--muted-light);
  font-family: var(--font-sans);
  font-size: 8.5px;
  font-style: normal;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* Items page */
.page-inline-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
  animation: rise 400ms ease both;
}

.page-inline-head h1 {
  margin-top: 7px;
  font-size: clamp(28px, 2.8vw, 39px);
  font-weight: 680;
  line-height: 1.15;
  letter-spacing: -0.04em;
}

.page-inline-head .sub {
  margin-top: 9px;
  color: var(--muted);
  font-size: 11.5px;
}

.items-panel {
  padding: 18px 20px 10px;
  animation: rise 450ms 30ms ease both;
}

.items-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.segmented {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border-radius: 11px;
  background: rgba(234, 226, 211, 0.68);
}

.seg-btn {
  height: 30px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 0;
  border-radius: 8px;
  color: var(--muted);
  background: transparent;
  font-size: 10.5px;
  font-weight: 600;
  white-space: nowrap;
}

.seg-btn:hover {
  color: var(--ink);
}

.seg-btn.active {
  color: var(--ink);
  background: var(--surface-strong);
  box-shadow: 0 2px 7px -4px rgba(30, 30, 20, 0.4);
}

.seg-btn span {
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  display: inline-grid;
  place-items: center;
  border-radius: 99px;
  color: var(--muted-light);
  background: rgba(32, 55, 46, 0.06);
  font-size: 8.5px;
  font-variant-numeric: tabular-nums;
}

.search-box {
  position: relative;
  width: 210px;
  max-width: 100%;
}

.search-box .icon {
  position: absolute;
  left: 11px;
  top: 50%;
  width: 14px;
  height: 14px;
  color: var(--muted-light);
  transform: translateY(-50%);
  pointer-events: none;
}

.search-box input {
  width: 100%;
  height: 35px;
  padding: 0 11px 0 32px;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--ink);
  background: rgba(255, 253, 248, 0.65);
  font-size: 10.5px;
}

.search-box input::placeholder {
  color: var(--muted-light);
}

.search-box input:focus {
  outline: none;
  border-color: rgba(219, 90, 53, 0.55);
  background: var(--surface-strong);
}

.items-list {
  min-height: 250px;
}

.items-list .item-row {
  grid-template-columns: 42px minmax(0, 1fr) 130px 116px;
  padding: 13px 5px;
}

.items-list .item-row + .item-row {
  border-top: 1px solid rgba(40, 44, 35, 0.075);
}

.items-list .item-note {
  max-width: 480px;
  margin-top: 4px;
  overflow: hidden;
  color: var(--muted-light);
  font-size: 9.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.items-list .item-due {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 3px;
}

.items-list .item-due small {
  color: var(--muted-light);
  font-size: 8.5px;
}

.items-list .row-actions {
  opacity: 0.55;
}

.items-list .item-row:hover .row-actions {
  opacity: 1;
}

.month-separator {
  padding: 16px 4px 5px;
  color: var(--muted-light);
  font-family: var(--font-serif);
  font-size: 11px;
  font-style: italic;
  letter-spacing: 0.03em;
}

.empty-state {
  min-height: 360px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 34px 20px;
}

.empty-illustration {
  position: relative;
  width: 96px;
  height: 96px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--green);
  background: var(--green-soft);
}

.empty-illustration::before {
  content: "";
  position: absolute;
  inset: -13px;
  border: 1px dashed rgba(60, 116, 87, 0.25);
  border-radius: 50%;
}

.empty-illustration .icon {
  width: 34px;
  height: 34px;
}

.empty-state h2 {
  margin-top: 25px;
  font-size: 20px;
  font-weight: 650;
  letter-spacing: -0.025em;
}

.empty-state p {
  max-width: 340px;
  margin-top: 7px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.7;
}

.empty-state .btn {
  margin-top: 17px;
}

/* Logs */
.log-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
  animation: rise 420ms 20ms ease both;
}

.summary-card {
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: rgba(251, 248, 241, 0.75);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}

.summary-card span {
  color: var(--muted);
  font-size: 10px;
}

.summary-card strong {
  display: block;
  margin-top: 2px;
  color: var(--ink);
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.02em;
}

.summary-card .summary-icon {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  color: var(--green);
  background: var(--green-soft);
}

.summary-card .summary-icon .icon {
  width: 15px;
  height: 15px;
}

.summary-card.is-error .summary-icon {
  color: var(--red);
  background: var(--red-soft);
}

.summary-card.is-time .summary-icon {
  color: var(--blue);
  background: var(--blue-soft);
}

.logs-panel {
  padding: 18px 20px 12px;
  animation: rise 450ms 40ms ease both;
}

.logs-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-bottom: 13px;
  border-bottom: 1px solid var(--line);
}

.logs-toolbar h2 {
  font-size: 16px;
  font-weight: 650;
}

.logs-toolbar h2 span {
  margin-left: 6px;
  color: var(--muted-light);
  font-family: var(--font-serif);
  font-size: 11px;
  font-weight: 400;
}

.log-row {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  gap: 13px;
  align-items: flex-start;
  padding: 15px 3px;
}

.log-row + .log-row {
  border-top: 1px solid rgba(40, 44, 35, 0.075);
}

.log-status-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  color: var(--green);
  background: var(--green-soft);
}

.log-status-icon.is-failed {
  color: var(--red);
  background: var(--red-soft);
}

.log-status-icon .icon {
  width: 16px;
  height: 16px;
}

.log-main {
  min-width: 0;
}

.log-title-line {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
}

.log-title-line b {
  font-size: 12.5px;
  font-weight: 650;
}

.log-trigger {
  padding: 2px 5px;
  border-radius: 4px;
  color: var(--muted);
  background: var(--paper-deep);
  font-size: 7.5px;
  font-weight: 650;
}

.log-preview {
  max-width: 760px;
  margin-top: 4px;
  overflow: hidden;
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.55;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.log-meta {
  margin-top: 5px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted-light);
  font-size: 8.5px;
}

.log-meta span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.log-meta .dot-sep {
  color: rgba(40, 44, 35, 0.24);
}

.log-error {
  margin-top: 8px;
  padding: 7px 9px;
  border-radius: 8px;
  color: var(--red);
  background: rgba(244, 222, 215, 0.7);
  font-size: 9.5px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.log-side {
  display: flex;
  align-items: center;
  gap: 7px;
  padding-top: 1px;
}

.log-status {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 22px;
  padding: 0 7px;
  border-radius: 99px;
  color: var(--green);
  background: var(--green-soft);
  font-size: 8.5px;
  font-weight: 650;
}

.log-status.is-failed {
  color: var(--red);
  background: var(--red-soft);
}

.log-retry {
  width: 26px;
  height: 26px;
  padding: 0;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: transparent;
}

.log-retry:hover {
  color: var(--ink);
  border-color: var(--line-strong);
  background: var(--surface);
}

.log-retry .icon {
  width: 13px;
  height: 13px;
}

/* Settings */
.settings-form {
  animation: rise 420ms ease both;
}

.settings-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(290px, 0.75fr);
  gap: 16px;
  align-items: start;
}

.form-card {
  padding: 23px;
}

.form-card + .form-card {
  margin-top: 15px;
}

.form-section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 19px;
}

.form-section-head h2 {
  margin-top: 4px;
  font-size: 18px;
  font-weight: 650;
  letter-spacing: -0.02em;
}

.form-section-head p {
  margin-top: 4px;
  color: var(--muted-light);
  font-size: 10.5px;
  line-height: 1.55;
}

.form-section-icon {
  width: 37px;
  height: 37px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  color: var(--green);
  background: var(--green-soft);
}

.form-section-icon .icon {
  width: 18px;
  height: 18px;
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 15px;
}

.field {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field.wide {
  grid-column: 1 / -1;
}

.field > label,
.field-label {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--ink-soft);
  font-size: 10.5px;
  font-weight: 650;
}

.field-label .required {
  color: var(--accent);
}

.field-label .optional {
  color: var(--muted-light);
  font-size: 8.5px;
  font-weight: 500;
}

.field-hint {
  color: var(--muted-light);
  font-size: 8.5px;
  line-height: 1.55;
}

.field-hint code {
  padding: 1px 3px;
  border-radius: 3px;
  background: var(--paper-deep);
  font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
  font-size: 8px;
}

.input,
.select,
.textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--ink);
  background: rgba(255, 253, 248, 0.72);
  font-size: 11.5px;
  transition: border-color 140ms ease, background 140ms ease, box-shadow 140ms ease;
}

.input,
.select {
  height: 40px;
  padding: 0 11px;
}

.select {
  appearance: none;
  padding-right: 30px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236d7065' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 9 7 7 7-7'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 11px center;
}

.textarea {
  min-height: 84px;
  padding: 10px 11px;
  resize: vertical;
  line-height: 1.6;
}

.input::placeholder,
.textarea::placeholder {
  color: #a6a698;
}

.input:focus,
.select:focus,
.textarea:focus,
.input:focus-visible,
.select:focus-visible,
.textarea:focus-visible {
  outline: none;
  border-color: rgba(219, 90, 53, 0.65);
  background: var(--surface-strong);
  box-shadow: 0 0 0 3px rgba(219, 90, 53, 0.1);
}

.input-wrap {
  position: relative;
}

.input-wrap .input {
  padding-right: 39px;
}

.input-btn {
  position: absolute;
  right: 4px;
  top: 50%;
  width: 31px;
  height: 31px;
  padding: 0;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 7px;
  color: var(--muted-light);
  background: transparent;
  transform: translateY(-50%);
}

.input-btn:hover {
  color: var(--ink);
  background: var(--paper-deep);
}

.input-btn .icon {
  width: 15px;
  height: 15px;
}

.secret-state {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.secret-saved {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--green);
  font-size: 8.5px;
}

.secret-saved .icon {
  width: 11px;
  height: 11px;
}

.text-action {
  padding: 0;
  border: 0;
  color: var(--muted-light);
  background: transparent;
  font-size: 8.5px;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.text-action:hover {
  color: var(--red);
}

.capture-box {
  margin-top: 17px;
  padding: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border: 1px solid rgba(60, 116, 87, 0.17);
  border-radius: 13px;
  background: rgba(223, 234, 223, 0.35);
}

.capture-box h3 {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 650;
}

.capture-box h3 .icon {
  width: 14px;
  height: 14px;
  color: var(--green);
}

.capture-box p {
  max-width: 410px;
  margin-top: 4px;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.6;
}

.capture-box .btn {
  flex: none;
}

.guide {
  margin-top: 18px;
  padding: 15px 16px 13px;
  border-radius: 14px;
  background: rgba(234, 226, 211, 0.48);
}

.guide-head {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--ink-soft);
  font-size: 10px;
  font-weight: 650;
}

.guide-head .icon {
  width: 14px;
  height: 14px;
  color: var(--amber);
}

.guide-steps {
  margin-top: 11px;
  display: grid;
  gap: 9px;
}

.guide-step {
  display: grid;
  grid-template-columns: 19px minmax(0, 1fr);
  gap: 8px;
  align-items: start;
}

.guide-num {
  width: 19px;
  height: 19px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--forest);
  background: rgba(255, 253, 248, 0.8);
  font-size: 8px;
  font-weight: 700;
}

.guide-step p {
  color: var(--muted);
  font-size: 9.5px;
  line-height: 1.6;
}

.guide-step p b {
  color: var(--ink-soft);
  font-weight: 650;
}

.form-divider {
  height: 1px;
  margin: 18px 0;
  background: var(--line);
}

.toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 3px 0;
}

.toggle-copy strong {
  display: block;
  font-size: 11px;
  font-weight: 650;
}

.toggle-copy span {
  display: block;
  margin-top: 2px;
  color: var(--muted-light);
  font-size: 9px;
  line-height: 1.5;
}

.switch {
  position: relative;
  width: 38px;
  height: 22px;
  flex: none;
}

.switch input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.switch span {
  position: absolute;
  inset: 0;
  border-radius: 99px;
  background: #cec7b8;
  transition: background 160ms ease;
}

.switch span::after {
  content: "";
  position: absolute;
  left: 3px;
  top: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fffdf8;
  box-shadow: 0 1px 3px rgba(20, 20, 10, 0.2);
  transition: transform 160ms ease;
}

.switch input:checked + span {
  background: var(--green);
}

.switch input:checked + span::after {
  transform: translateX(16px);
}

.switch input:focus-visible + span {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.chip-group {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.chip {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 29px;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: rgba(255, 253, 248, 0.5);
  font-size: 9.5px;
  font-weight: 550;
  cursor: pointer;
  user-select: none;
  transition: border-color 140ms ease, background 140ms ease, color 140ms ease;
}

.chip:hover {
  border-color: var(--line-strong);
  color: var(--ink);
}

.chip input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.chip:has(input:checked) {
  color: var(--forest);
  border-color: rgba(60, 116, 87, 0.4);
  background: var(--green-soft);
}

.chip .chip-check {
  width: 11px;
  height: 11px;
  display: none;
}

.chip:has(input:checked) .chip-check {
  display: block;
}

.chip .chip-check .icon {
  width: 11px;
  height: 11px;
}

.message-preview {
  margin-top: 12px;
  padding: 15px;
  border-radius: 14px;
  color: #f7f1e5;
  background:
    radial-gradient(circle at 100% 0%, rgba(219, 90, 53, 0.22), transparent 10rem),
    var(--forest);
}

.message-preview .preview-label {
  display: flex;
  align-items: center;
  gap: 5px;
  color: rgba(247, 241, 229, 0.42);
  font-size: 7.5px;
  font-weight: 650;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.message-preview .preview-label .icon {
  width: 11px;
  height: 11px;
}

.message-preview pre {
  margin: 10px 0 0;
  color: rgba(247, 241, 229, 0.86);
  font-family: var(--font-sans);
  font-size: 9.5px;
  line-height: 1.75;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.security-note {
  margin-top: 15px;
  display: flex;
  align-items: flex-start;
  gap: 7px;
  color: var(--muted-light);
  font-size: 8.5px;
  line-height: 1.6;
}

.security-note .icon {
  width: 12px;
  height: 12px;
  margin-top: 1px;
  flex: none;
  color: var(--green);
}

.form-actions {
  position: sticky;
  bottom: 14px;
  z-index: 5;
  margin-top: 16px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(251, 248, 241, 0.9);
  box-shadow: 0 14px 40px -25px rgba(30, 32, 24, 0.55);
  backdrop-filter: blur(12px);
}

.form-actions .action-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.form-actions .action-note {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--muted-light);
  font-size: 8.5px;
}

.form-actions .action-note .icon {
  width: 11px;
  height: 11px;
}

/* QR connection */
.qr-connect {
  position: relative;
  margin-bottom: 16px;
  padding: 19px 19px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  overflow: hidden;
  border-radius: 17px;
  color: #f9f3e6;
  background:
    radial-gradient(circle at 92% 10%, rgba(219, 90, 53, 0.32), transparent 12rem),
    linear-gradient(135deg, #223b31, #1b3027 75%);
}

.qr-connect::before {
  content: "";
  position: absolute;
  top: -75px;
  right: -55px;
  width: 190px;
  height: 190px;
  border: 1px solid rgba(249, 243, 230, 0.12);
  border-radius: 50%;
}

.qr-connect::after {
  content: "";
  position: absolute;
  top: -42px;
  right: -22px;
  width: 120px;
  height: 120px;
  border: 1px solid rgba(249, 243, 230, 0.07);
  border-radius: 50%;
}

.qr-connect-copy {
  position: relative;
  z-index: 1;
  min-width: 0;
  max-width: 76%;
}

.qr-kicker {
  display: block;
  color: var(--lime);
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 0.18em;
}

.qr-connect h3 {
  margin-top: 6px;
  color: #fbf5e8;
  font-size: 20px;
  font-weight: 620;
  line-height: 1.25;
  letter-spacing: -0.025em;
}

.qr-connect p {
  max-width: 430px;
  margin-top: 5px;
  color: rgba(249, 243, 230, 0.48);
  font-size: 10.5px;
  line-height: 1.65;
}

.qr-facts {
  margin-top: 11px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.qr-fact,
.qr-session {
  min-height: 22px;
  padding: 0 8px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: 1px solid rgba(249, 243, 230, 0.13);
  border-radius: 99px;
  color: rgba(249, 243, 230, 0.62);
  background: rgba(255, 255, 255, 0.055);
  font-size: 8.5px;
  font-weight: 550;
  white-space: nowrap;
}

.qr-fact .icon {
  width: 11px;
  height: 11px;
}

.qr-session {
  color: rgba(249, 243, 230, 0.5);
  border-color: transparent;
}

.qr-session.is-ready {
  color: var(--forest-deep);
  background: var(--lime);
}

.qr-connect-actions {
  margin-top: 14px;
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
}

.qr-connect-actions .btn {
  height: 33px;
  padding-inline: 12px;
  border-radius: 9px;
  font-size: 11px;
}

.qr-connect .btn-ghost {
  color: rgba(249, 243, 230, 0.78);
  border-color: rgba(249, 243, 230, 0.2);
  background: transparent;
}

.qr-connect .btn-ghost:hover:not(:disabled) {
  color: #fffaf0;
  background: rgba(255, 255, 255, 0.08);
}

.qr-art {
  position: relative;
  z-index: 1;
  width: 102px;
  height: 102px;
  flex: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid rgba(249, 243, 230, 0.16);
  border-radius: 20px;
  color: var(--lime);
  background: rgba(255, 255, 255, 0.055);
}

.qr-art::before {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px dashed rgba(249, 243, 230, 0.1);
  border-radius: 14px;
}

.qr-art-icon {
  display: grid;
  place-items: center;
}

.qr-art-icon .icon {
  width: 34px;
  height: 34px;
  stroke-width: 1.5;
}

.qr-art > span:last-child {
  color: rgba(249, 243, 230, 0.4);
  font-size: 7.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.advanced-config {
  margin-top: 15px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(234, 226, 211, 0.26);
}

.advanced-config summary {
  min-height: 41px;
  padding: 0 13px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--ink-soft);
  font-size: 10px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

.advanced-config summary::-webkit-details-marker {
  display: none;
}

.advanced-config summary::after {
  content: "+";
  width: 18px;
  height: 18px;
  flex: none;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--muted);
  font-size: 12px;
  font-weight: 400;
}

.advanced-config[open] summary::after {
  content: "−";
}

.advanced-hint {
  margin-left: auto;
  color: var(--muted-light);
  font-size: 8.5px;
  font-weight: 400;
}

.advanced-body {
  padding: 4px 13px 13px;
  border-top: 1px solid var(--line);
}

.advanced-body .field-grid {
  padding-top: 13px;
}

.advanced-body .capture-box {
  margin-top: 13px;
}

/* QR modal */
dialog.modal.modal-qr {
  width: min(760px, calc(100vw - 28px));
}

.qr-body {
  padding: 20px 24px 23px;
}

.qr-stepper {
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted-light);
  font-size: 9px;
  font-weight: 550;
}

.qr-stepper > span:not(.qr-step-line) {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}

.qr-stepper i {
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--muted);
  background: var(--paper-deep);
  font-style: normal;
  font-size: 8px;
  font-weight: 700;
}

.qr-stepper [data-step].is-active {
  color: var(--ink);
  font-weight: 650;
}

.qr-stepper [data-step].is-active i {
  color: #23150e;
  background: var(--accent);
}

.qr-stepper [data-step].is-done i {
  color: #f7f1e5;
  background: var(--green);
}

.qr-stepper [data-step].is-done {
  color: var(--green);
}

.qr-step-line {
  flex: 1;
  height: 1px;
  min-width: 15px;
  background: var(--line);
}

.qr-scan-screen {
  display: grid;
  grid-template-columns: 218px minmax(0, 1fr);
  gap: 25px;
  align-items: center;
}

.qr-image-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  padding: 12px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fffdf8;
  box-shadow: 0 15px 30px -26px rgba(30, 34, 24, 0.5);
}

.qr-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 6px;
  image-rendering: pixelated;
}

.qr-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: var(--muted-light);
  font-size: 9px;
  letter-spacing: 0.03em;
}

.spinner {
  width: 24px;
  height: 24px;
  border: 2px solid rgba(32, 55, 46, 0.14);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}

.qr-side h3 {
  color: var(--ink);
  font-size: 21px;
  font-weight: 650;
  line-height: 1.25;
  letter-spacing: -0.03em;
}

.qr-side > p {
  margin-top: 6px;
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.65;
}

.qr-status {
  min-height: 38px;
  margin-top: 13px;
  padding: 9px 10px;
  display: flex;
  align-items: flex-start;
  gap: 6px;
  border-radius: 9px;
  color: var(--muted);
  background: rgba(234, 226, 211, 0.56);
  font-size: 9.5px;
  line-height: 1.55;
}

.qr-status.is-live {
  color: var(--green);
  background: var(--green-soft);
}

.qr-status.is-error {
  color: var(--red);
  background: var(--red-soft);
}

.qr-status-dot {
  width: 5px;
  height: 5px;
  margin-top: 5px;
  flex: none;
  border-radius: 50%;
  background: currentColor;
}

.qr-status.is-live .qr-status-dot {
  animation: qr-pulse 1.4s ease-in-out infinite;
}

@keyframes qr-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.28; }
}

.qr-status strong {
  font-weight: 700;
}

.qr-side .btn {
  margin-top: 9px;
}

.qr-footnote {
  margin-top: 11px;
  color: var(--muted-light);
  font-size: 8.5px;
  line-height: 1.55;
}

.qr-activation-screen,
.qr-success-screen {
  padding: 7px 22px 8px;
  text-align: center;
}

.qr-activation-visual {
  position: relative;
  width: 76px;
  height: 76px;
  margin: 0 auto 16px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--green);
  background: var(--green-soft);
}

.qr-check-icon {
  position: relative;
  z-index: 1;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #f9f3e6;
  background: var(--green);
}

.qr-check-icon .icon {
  width: 19px;
  height: 19px;
  stroke-width: 2.2;
}

.qr-orbit {
  position: absolute;
  inset: -10px;
  border: 1px dashed rgba(60, 116, 87, 0.28);
  border-radius: 50%;
  animation: spin 18s linear infinite;
}

.qr-activation-screen h3,
.qr-success-screen h3 {
  font-size: 21px;
  font-weight: 650;
  letter-spacing: -0.03em;
}

.qr-activation-copy,
.qr-success-screen > p {
  max-width: 440px;
  margin: 7px auto 0;
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.7;
}

.qr-account-pill {
  width: fit-content;
  max-width: 100%;
  min-height: 25px;
  margin: 12px auto 0;
  padding: 0 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 99px;
  color: var(--muted);
  background: rgba(255, 253, 248, 0.6);
  font-size: 8.5px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.qr-activation-screen .qr-status {
  max-width: 450px;
  margin: 13px auto 0;
  text-align: left;
}

.qr-activation-actions {
  margin-top: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.qr-success-visual {
  width: 65px;
  height: 65px;
  margin: 0 auto 15px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #f9f3e6;
  background: var(--green);
  box-shadow: 0 0 0 9px rgba(60, 116, 87, 0.1);
}

.qr-success-visual .icon {
  width: 31px;
  height: 31px;
  stroke-width: 2;
}

.qr-success-screen .btn {
  margin-top: 14px;
}

.modal-foot .field-hint {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.modal-qr .modal-foot .btn {
  margin-left: auto;
}

.modal-foot .field-hint .icon {
  width: 11px;
  height: 11px;
  flex: none;
}

/* Modal */
dialog.modal {
  width: min(690px, calc(100vw - 28px));
  max-width: none;
  max-height: calc(100vh - 28px);
  padding: 0;
  border: 0;
  border-radius: 24px;
  color: var(--ink);
  background: transparent;
  overflow: visible;
}

dialog.modal:focus {
  outline: none;
}

dialog.modal::backdrop {
  background: rgba(22, 27, 22, 0.48);
  backdrop-filter: blur(5px);
}

.modal-card {
  max-height: calc(100vh - 28px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.27);
  border-radius: 24px;
  box-shadow: var(--shadow-float);
}

dialog[open] .modal-card {
  animation: modal-in 220ms cubic-bezier(0.2, 0.75, 0.3, 1) both;
}

.modal-head {
  padding: 20px 23px 17px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid var(--line);
}

.modal-head .eyebrow {
  font-size: 8px;
}

.modal-head h2 {
  margin-top: 5px;
  font-size: 21px;
  font-weight: 650;
  line-height: 1.2;
  letter-spacing: -0.03em;
}

.modal-head p {
  margin-top: 4px;
  color: var(--muted-light);
  font-size: 9.5px;
}

.modal-close {
  width: 31px;
  height: 31px;
  padding: 0;
  flex: none;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--muted);
  background: transparent;
}

.modal-close:hover {
  color: var(--ink);
  background: var(--paper-deep);
}

.modal-close .icon {
  width: 15px;
  height: 15px;
}

.modal-body {
  padding: 20px 23px;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.modal-foot {
  padding: 14px 23px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border-top: 1px solid var(--line);
  background: rgba(243, 238, 228, 0.55);
}

.modal-foot .foot-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.form-error {
  display: none;
  margin-bottom: 14px;
  padding: 8px 10px;
  border-radius: 8px;
  color: var(--red);
  background: var(--red-soft);
  font-size: 9.5px;
  line-height: 1.5;
}

.form-error.is-visible {
  display: block;
}

.editor-actions {
  margin-bottom: 15px;
  padding: 9px 10px 9px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(234, 226, 211, 0.36);
}

.editor-state {
  color: var(--muted-light);
  font-size: 9px;
  line-height: 1.5;
}

.editor-actions > div {
  display: flex;
  align-items: center;
  gap: 5px;
  flex: none;
}

.editor-actions .btn {
  height: 28px;
  padding-inline: 9px;
  font-size: 10px;
}

.editor-actions .btn .icon {
  width: 13px;
  height: 13px;
}

.item-form .field-grid {
  gap: 14px;
}

.item-form .modal-body > .field + .field,
.item-form .modal-body > .field-grid + .field {
  margin-top: 15px;
}

.category-picker {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
}

.category-option {
  position: relative;
  min-height: 38px;
  padding: 0 8px;
  display: flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--muted);
  background: rgba(255, 253, 248, 0.5);
  font-size: 9.5px;
  font-weight: 550;
  cursor: pointer;
  transition: border-color 140ms ease, background 140ms ease, color 140ms ease;
}

.category-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.category-option .icon {
  width: 14px;
  height: 14px;
}

.category-option:hover {
  border-color: var(--line-strong);
}

.category-option:has(input:checked) {
  color: var(--cat-color, var(--forest));
  border-color: var(--cat-color, var(--green));
  background: var(--cat-bg, var(--green-soft));
}

.reminder-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.reminder-option {
  position: relative;
  min-height: 32px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: rgba(255, 253, 248, 0.5);
  font-size: 9.5px;
  cursor: pointer;
  transition: border-color 140ms ease, background 140ms ease, color 140ms ease;
}

.reminder-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.reminder-option:hover {
  border-color: var(--line-strong);
}

.reminder-option:has(input:checked) {
  color: var(--forest);
  border-color: rgba(60, 116, 87, 0.45);
  background: var(--green-soft);
}

.reminder-option .icon {
  display: none;
  width: 11px;
  height: 11px;
}

.reminder-option:has(input:checked) .icon {
  display: block;
}

.reminder-hint {
  margin-top: 6px;
  color: var(--muted-light);
  font-size: 8.5px;
  line-height: 1.55;
}

.modal-note {
  margin-top: 14px;
  padding: 9px 11px;
  display: flex;
  gap: 7px;
  border-radius: 9px;
  color: #786844;
  background: rgba(242, 229, 202, 0.45);
  font-size: 9px;
  line-height: 1.6;
}

.modal-note .icon {
  width: 13px;
  height: 13px;
  margin-top: 1px;
  flex: none;
}

.modal-delete {
  padding: 0;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 0;
  color: var(--red);
  background: transparent;
  font-size: 9.5px;
  font-weight: 600;
}

.modal-delete .icon {
  width: 13px;
  height: 13px;
}

.modal-delete:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Confirm */
dialog.modal.modal-confirm {
  width: min(410px, calc(100vw - 28px));
}

.modal-confirm .modal-body {
  padding: 26px 25px 20px;
}

.confirm-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: var(--red);
  background: var(--red-soft);
}

.confirm-icon .icon {
  width: 22px;
  height: 22px;
}

.modal-confirm h2 {
  margin-top: 16px;
  font-size: 19px;
  font-weight: 650;
  letter-spacing: -0.025em;
}

.modal-confirm p {
  margin-top: 7px;
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.65;
}

.modal-confirm .modal-foot {
  padding: 14px 25px;
  justify-content: flex-end;
}

/* Capture */
dialog.modal.modal-capture {
  width: min(470px, calc(100vw - 28px));
}

.capture-body {
  padding: 26px 25px 22px;
  text-align: center;
}

.capture-visual {
  position: relative;
  width: 88px;
  height: 88px;
  margin: 3px auto 19px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #eef6ed;
  background: var(--green);
}

.capture-visual::before,
.capture-visual::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(60, 116, 87, 0.24);
}

.capture-visual::before {
  inset: -11px;
}

.capture-visual::after {
  inset: -23px;
  border-style: dashed;
  border-color: rgba(60, 116, 87, 0.15);
}

.capture-visual .icon {
  width: 38px;
  height: 38px;
}

.capture-visual.is-live::before {
  animation: pulse-ring 1.8s ease-out infinite;
}

@keyframes pulse-ring {
  0% { transform: scale(0.92); opacity: 0.9; }
  100% { transform: scale(1.25); opacity: 0; }
}

.capture-body h2 {
  font-size: 20px;
  font-weight: 650;
  letter-spacing: -0.03em;
}

.capture-body .capture-copy {
  max-width: 330px;
  margin: 8px auto 0;
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.7;
}

.capture-status {
  margin-top: 15px;
  min-height: 37px;
  padding: 9px 12px;
  border-radius: 10px;
  color: var(--muted);
  background: rgba(234, 226, 211, 0.55);
  font-size: 9.5px;
  line-height: 1.55;
}

.capture-status.is-live {
  color: var(--green);
  background: var(--green-soft);
}

.capture-status.is-error {
  color: var(--red);
  background: var(--red-soft);
}

.capture-status strong {
  font-weight: 650;
}

.capture-actions {
  margin-top: 15px;
  display: flex;
  justify-content: center;
  gap: 8px;
}

.capture-found {
  margin-top: 14px;
  padding: 11px 12px;
  text-align: left;
  border: 1px solid rgba(60, 116, 87, 0.2);
  border-radius: 10px;
  background: rgba(223, 234, 223, 0.35);
}

.capture-found div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  font-size: 9px;
}

.capture-found div + div {
  margin-top: 5px;
}

.capture-found span {
  color: var(--muted-light);
}

.capture-found b {
  overflow: hidden;
  color: var(--ink-soft);
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Toast */
.toast-host {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 1000;
  display: flex;
  flex-direction: column-reverse;
  gap: 8px;
  pointer-events: none;
}

.toast {
  min-width: 250px;
  max-width: 390px;
  padding: 11px 13px;
  display: flex;
  align-items: flex-start;
  gap: 9px;
  border-radius: 12px;
  color: #f8f2e5;
  background: rgba(31, 52, 43, 0.97);
  box-shadow: 0 18px 48px -18px rgba(20, 24, 18, 0.65);
  font-size: 10.5px;
  line-height: 1.55;
  pointer-events: auto;
  animation: toast-in 220ms ease both;
}

.toast .toast-icon {
  width: 18px;
  height: 18px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--forest);
  background: var(--lime);
}

.toast .toast-icon .icon {
  width: 11px;
  height: 11px;
  stroke-width: 2.2;
}

.toast.is-error {
  background: rgba(126, 49, 36, 0.97);
}

.toast.is-error .toast-icon {
  color: #7e3124;
  background: #f4d3c8;
}

.toast.is-leaving {
  animation: toast-out 180ms ease both;
}

@keyframes toast-in {
  from { opacity: 0; transform: translateY(8px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes toast-out {
  to { opacity: 0; transform: translateY(6px) scale(0.98); }
}

/* Fatal */
.fatal {
  min-height: 100vh;
  padding: 24px;
  display: grid;
  place-content: center;
  justify-items: center;
  text-align: center;
}

.fatal-icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  color: var(--red);
  background: var(--red-soft);
}

.fatal-icon .icon {
  width: 27px;
  height: 27px;
}

.fatal h1 {
  margin-top: 20px;
  font-size: 25px;
  letter-spacing: -0.03em;
}

.fatal p {
  max-width: 380px;
  margin-top: 8px;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.7;
}

.fatal .btn {
  margin-top: 17px;
}

/* Motion */
@keyframes rise {
  from { opacity: 0; transform: translateY(7px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes modal-in {
  from { opacity: 0; transform: translateY(10px) scale(0.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

body.modal-open {
  overflow: hidden;
}

/* Dashboard setup strip */
.dashboard-left {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.setup-strip {
  padding: 15px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(251, 248, 241, 0.55);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.setup-strip .setup-mark {
  width: 34px;
  height: 34px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: var(--green);
  background: var(--green-soft);
}

.setup-strip .setup-mark .icon {
  width: 17px;
  height: 17px;
}

.setup-strip .setup-copy {
  flex: 1;
  min-width: 0;
}

.setup-strip b {
  display: block;
  font-size: 11.5px;
  font-weight: 650;
}

.setup-strip span {
  display: block;
  margin-top: 2px;
  color: var(--muted-light);
  font-size: 10px;
  line-height: 1.5;
}

.setup-strip .btn {
  height: 33px;
  flex: none;
  padding-inline: 12px;
  font-size: 11px;
}

/* Legibility pass */
.crumb { font-size: 11.5px; }
.date-chip { font-size: 12px; }
.btn { font-size: 13px; }
.btn-sm { font-size: 12px; }
.page-intro .sub { font-size: 13.5px; line-height: 1.75; }
.eyebrow { font-size: 10.5px; }
.demo-banner { font-size: 12px; }
.demo-banner .demo-label { font-size: 9px; }
.demo-banner button { font-size: 11.5px; }
.hero-label { font-size: 10px; }
.hero-cat { font-size: 11.5px; }
.hero-date { font-size: 12px; }
.hero-note { font-size: 11.5px; }
.hero-actions .btn { font-size: 12px; }
.hero-copy { font-size: 12.5px; }
.stat-label { font-size: 11.5px; }
.stat-foot { font-size: 10.5px; }
.stat-value small { font-size: 10px; }
.section-kicker { font-size: 9.5px; }
.panel-head .head-note { font-size: 11.5px; }
.group-head { font-size: 10.5px; }
.group-head .group-count { font-size: 9.5px; }
.item-title { font-size: 14.5px; }
.item-meta { font-size: 11.5px; }
.item-due strong { font-size: 12.5px; }
.item-due span { font-size: 10.5px; }
.item-tag { font-size: 8.5px; }
.panel-foot-link { font-size: 11.5px; }
.cal-title span { font-size: 11px; }
.cal-weekdays { font-size: 9.5px; }
.cal-day { font-size: 11.5px; }
.calendar-foot { font-size: 9.5px; }
.status-pill { font-size: 9.5px; }
.channel-desc { font-size: 10.5px; }
.channel-row { font-size: 10.5px; }
.channel-actions .btn { font-size: 11.5px; }
.channel-tip { font-size: 9.5px; }
.page-inline-head .sub { font-size: 12.5px; }
.seg-btn { font-size: 11.5px; }
.search-box input { font-size: 11.5px; }
.month-separator { font-size: 12px; }
.empty-state p { font-size: 12px; }
.summary-card span { font-size: 11px; }
.logs-toolbar h2 span { font-size: 12px; }
.log-title-line b { font-size: 13.5px; }
.log-trigger { font-size: 8.5px; }
.log-preview { font-size: 11.5px; }
.log-meta { font-size: 9.5px; }
.log-error { font-size: 10.5px; }
.log-status { font-size: 9.5px; }
.form-section-head p { font-size: 11.5px; }
.field > label, .field-label { font-size: 11.5px; }
.field-label .optional { font-size: 9.5px; }
.field-hint { font-size: 10px; }
.field-hint code { font-size: 9px; }
.input, .select, .textarea { font-size: 12.5px; }
.secret-saved { font-size: 9.5px; }
.text-action { font-size: 9.5px; }
.capture-box h3 { font-size: 12px; }
.capture-box p { font-size: 10.5px; }
.guide-head { font-size: 11px; }
.guide-step p { font-size: 10.5px; }
.toggle-copy strong { font-size: 12px; }
.toggle-copy span { font-size: 10px; }
.chip { font-size: 10.5px; }
.message-preview .preview-label { font-size: 8.5px; }
.message-preview pre { font-size: 10.5px; }
.security-note { font-size: 9.5px; }
.form-actions .action-note { font-size: 9.5px; }
.modal-head p { font-size: 10.5px; }
.form-error { font-size: 10.5px; }
.item-form .reminder-hint, .reminder-hint { font-size: 10px; }
.category-option { font-size: 10.5px; }
.reminder-option { font-size: 10.5px; }
.modal-note { font-size: 10px; }
.modal-delete { font-size: 10.5px; }
.modal-confirm p { font-size: 11.5px; }
.capture-body .capture-copy { font-size: 11.5px; }
.capture-status { font-size: 10.5px; }
.capture-found div { font-size: 10px; }
.toast { font-size: 11.5px; }
.fatal p { font-size: 12.5px; }

@media (max-width: 920px) {
  .nav-link { font-size: 10px; }
}

@media (max-width: 720px) {
  .page-intro .sub { font-size: 12.5px; }
  .item-title { font-size: 13.5px; }
  .item-due strong { font-size: 11.5px; }
  .item-due span { font-size: 9.5px; }
  .stat-label { font-size: 10.5px; }
  .setup-strip { padding: 13px 14px; }
  .setup-strip .setup-copy span { display: none; }
}

/* Responsive */
@media (max-width: 1240px) {
  .shell {
    grid-template-columns: 216px minmax(0, 1fr);
    gap: 22px;
    padding: 18px;
  }

  .sidebar {
    top: 18px;
    height: calc(100vh - 36px);
    padding-inline: 14px;
  }

  .hero-card {
    padding: 24px 25px 21px;
  }

  .hero-title {
    max-width: 80%;
  }

  .items-list .item-row {
    grid-template-columns: 42px minmax(0, 1fr) 115px 116px;
  }
}

@media (max-width: 1080px) {
  .hero-layout {
    grid-template-columns: minmax(0, 1.4fr) minmax(235px, 0.8fr);
  }

  .hero-title {
    max-width: 90%;
  }

  .hero-title {
    font-size: 23px;
  }

  .dashboard-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .rail {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: start;
  }

  .quote-card {
    display: none;
  }

  .settings-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 920px) {
  .shell {
    display: block;
    padding: 14px 14px calc(90px + env(safe-area-inset-bottom));
  }

  .sidebar {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: calc(11px + env(safe-area-inset-bottom));
    top: auto;
    z-index: 50;
    height: 62px;
    min-height: 0;
    padding: 7px;
    flex-direction: row;
    align-items: center;
    border-radius: 20px;
    background: rgba(32, 55, 46, 0.97);
    box-shadow: 0 14px 40px -16px rgba(20, 30, 22, 0.55);
    backdrop-filter: blur(14px);
  }

  .sidebar::before,
  .sidebar::after,
  .sidebar-kicker,
  .sidebar-channel,
  .sidebar-foot,
  .sidebar > .brand {
    display: none;
  }

  .sidebar-nav {
    flex: 1;
    flex-direction: row;
    justify-content: space-around;
    gap: 4px;
  }

  .nav-link {
    flex: 1;
    min-height: 48px;
    padding: 5px 4px;
    flex-direction: column;
    justify-content: center;
    gap: 2px;
    border-radius: 13px;
    font-size: 9px;
  }

  .nav-link .icon {
    width: 17px;
    height: 17px;
  }

  .nav-link.active::before {
    display: none;
  }

  .nav-count {
    position: absolute;
    top: 4px;
    right: calc(50% - 19px);
    min-width: 15px;
    height: 15px;
    padding: 0 4px;
    font-size: 7.5px;
  }

  .nav-link.active .nav-count {
    color: #faf5e9;
    background: var(--accent);
  }

  .main {
    padding: 3px 0 0;
  }

  .mobile-brand {
    display: flex;
  }

  .crumb {
    display: none;
  }

  .topbar {
    min-height: 40px;
    margin-bottom: 20px;
  }

  .page-intro {
    align-items: flex-start;
  }

  .intro-mark {
    display: none;
  }

  .hero-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .stat-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .stat-card {
    min-height: 126px;
  }

  .hero-title {
    max-width: 80%;
    font-size: 26px;
  }

  .rail {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .form-actions {
    bottom: calc(80px + env(safe-area-inset-bottom));
  }
}

@media (max-width: 720px) {
  .shell {
    padding-inline: 11px;
  }

  .date-chip {
    display: none;
  }

  .topbar-actions .btn .btn-label {
    display: none;
  }

  .topbar-actions .btn {
    width: 37px;
    padding: 0;
    border-radius: 50%;
  }

  .page-intro h1 {
    font-size: 31px;
    letter-spacing: -0.045em;
  }

  .page-intro .sub {
    font-size: 12.5px;
  }

  .hero-card {
    min-height: 320px;
    padding: 22px 20px 18px;
  }

  .hero-title {
    font-size: 23px;
    max-width: 92%;
  }

  .hero-countdown .num {
    font-size: 73px;
  }

  .hero-bottom {
    align-items: flex-start;
    flex-direction: column;
    gap: 13px;
  }

  .hero-actions {
    width: 100%;
  }

  .hero-actions .btn {
    flex: 1;
  }

  .hero-empty-sun {
    right: -10px;
    top: 18%;
    width: 105px;
    height: 105px;
    opacity: 0.7;
  }

  .stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stat-card {
    min-height: 119px;
  }

  .stat-value {
    font-size: 33px;
  }

  .rail {
    grid-template-columns: minmax(0, 1fr);
  }

  .schedule-panel {
    padding: 19px 15px 12px;
  }

  .item-row {
    grid-template-columns: 38px minmax(0, 1fr) auto;
    gap: 10px;
    min-height: 62px;
    padding: 10px 3px;
  }

  .item-row .row-actions {
    display: none;
  }

  .cat-mark {
    width: 38px;
    height: 38px;
    border-radius: 12px;
  }

  .item-title {
    font-size: 13.5px;
  }

  .item-due {
    min-width: 61px;
  }

  .item-due strong {
    font-size: 11.5px;
  }

  .item-due span {
    font-size: 9.5px;
  }

  .panel-head h2 {
    font-size: 18px;
  }

  .page-inline-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 13px;
  }

  .page-inline-head h1 {
    font-size: 28px;
  }

  .items-panel {
    padding: 14px 13px 8px;
  }

  .items-toolbar {
    align-items: stretch;
    flex-direction: column;
    gap: 10px;
  }

  .segmented {
    overflow-x: auto;
    scrollbar-width: none;
  }

  .segmented::-webkit-scrollbar {
    display: none;
  }

  .seg-btn {
    flex: none;
  }

  .search-box {
    width: 100%;
  }

  .items-list .item-row {
    grid-template-columns: 39px minmax(0, 1fr) auto;
    padding: 12px 3px;
  }

  .items-list .row-actions {
    display: none;
  }

  .items-list .item-note {
    max-width: 100%;
  }

  .items-list .item-due {
    min-width: 62px;
  }

  .month-separator {
    padding-top: 13px;
  }

  .log-summary {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .summary-card {
    padding: 11px 13px;
  }

  .summary-card strong {
    font-size: 20px;
  }

  .logs-panel {
    padding: 14px 13px 8px;
  }

  .logs-toolbar {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .log-row {
    grid-template-columns: 32px minmax(0, 1fr);
    gap: 10px;
  }

  .log-status-icon {
    width: 31px;
    height: 31px;
  }

  .log-side {
    grid-column: 2;
    padding-top: 0;
  }

  .log-preview {
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
  }

  .settings-grid {
    gap: 12px;
  }

  .form-card {
    padding: 19px 16px;
  }

  .qr-connect {
    align-items: flex-start;
    padding: 17px;
  }

  .qr-connect-copy {
    max-width: calc(100% - 88px);
  }

  .qr-connect h3 {
    font-size: 18px;
  }

  .qr-art {
    width: 78px;
    height: 78px;
    border-radius: 16px;
  }

  .qr-art-icon .icon {
    width: 27px;
    height: 27px;
  }

  .qr-scan-screen {
    grid-template-columns: minmax(0, 1fr);
    gap: 17px;
    text-align: center;
  }

  .qr-image-wrap {
    width: 212px;
    max-width: 100%;
    margin: 0 auto;
  }

  .qr-side {
    text-align: center;
  }

  .qr-side .qr-status {
    text-align: left;
  }

  .qr-footnote {
    text-align: center;
  }

  .qr-body {
    padding: 16px 17px 18px;
  }

  .qr-stepper {
    margin-bottom: 16px;
    font-size: 8.5px;
  }

  .qr-activation-screen,
  .qr-success-screen {
    padding: 5px 2px;
  }

  .qr-activation-screen h3,
  .qr-success-screen h3,
  .qr-side h3 {
    font-size: 19px;
  }

  .modal-foot .field-hint {
    display: none;
  }

  .field-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 13px;
  }

  .field.wide {
    grid-column: auto;
  }

  .capture-box {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .capture-box .btn {
    width: 100%;
  }

  .form-actions {
    position: static;
    padding: 11px;
    flex-wrap: wrap;
  }

  .form-actions .action-left {
    width: 100%;
  }

  .form-actions .action-left .btn {
    flex: 1;
  }

  .form-actions .action-note {
    display: none;
  }

  .form-actions > .btn {
    width: 100%;
  }

  .category-picker {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  dialog.modal {
    width: calc(100vw - 14px);
    max-height: calc(100vh - 14px);
  }

  .modal-card {
    max-height: calc(100vh - 14px);
    border-radius: 20px;
  }

  .modal-head {
    padding: 17px 17px 14px;
  }

  .modal-head h2 {
    font-size: 19px;
  }

  .modal-body {
    padding: 16px 17px;
  }

  .modal-foot {
    padding: 12px 17px;
    flex-wrap: wrap;
  }

  .modal-foot .foot-right {
    flex: 1;
    justify-content: flex-end;
  }

  .modal-foot .foot-right .btn {
    flex: 1;
  }

  .modal-confirm .modal-body,
  .modal-confirm .modal-foot {
    padding-inline: 19px;
  }

  .toast-host {
    left: 14px;
    right: 14px;
    bottom: calc(84px + env(safe-area-inset-bottom));
  }

  .toast {
    min-width: 0;
    max-width: none;
  }
}

@media (max-width: 460px) {
  .page-intro h1 {
    font-size: 28px;
  }

  .hero-title {
    font-size: 21px;
  }

  .hero-countdown .num {
    font-size: 64px;
  }

  .hero-cat {
    height: 25px;
    padding-inline: 8px;
    font-size: 10.5px;
  }

  .stat-card {
    padding: 14px;
  }

  .stat-label {
    font-size: 10.5px;
  }

  .stat-value {
    font-size: 30px;
  }

  .stat-icon {
    width: 24px;
    height: 24px;
  }

  .stat-icon .icon {
    width: 13px;
    height: 13px;
  }

  .calendar-card {
    padding: 16px 14px 12px;
  }

  .channel-card {
    padding: 16px;
  }

  .demo-banner {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .demo-banner p {
    flex-basis: calc(100% - 80px);
  }

  .demo-banner button {
    margin-left: auto;
  }

  .item-title-line {
    flex-wrap: wrap;
    gap: 4px;
  }

  .item-tag {
    display: none;
  }

  .category-picker {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .qr-connect {
    padding: 15px;
  }

  .qr-connect-copy {
    max-width: 100%;
  }

  .qr-connect-art,
  .qr-art {
    display: none;
  }

  .qr-connect h3 {
    font-size: 17px;
  }

  .qr-connect-actions {
    width: 100%;
  }

  .qr-connect-actions .btn {
    flex: 1;
  }

  .qr-image-wrap {
    width: 190px;
  }

  .qr-stepper {
    gap: 5px;
  }

  .qr-step-line {
    min-width: 8px;
  }

  .reminder-option {
    padding-inline: 8px;
  }

  .editor-actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .editor-actions > div {
    width: 100%;
  }

  .editor-actions .btn {
    flex: 1;
  }

  .modal-foot {
    justify-content: space-between;
  }

  .modal-foot .foot-right {
    width: 100%;
    flex: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
