@font-face {
  font-family: Exrooz;
  src: url("./Vazirmatn-Regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: Exrooz;
  src: url("./Vazirmatn-ExtraBold.woff2") format("woff2");
  font-weight: 700 900;
  font-display: swap;
}
:root {
  color-scheme: light;
  --paper: #eee4ce;
  --paper-light: #faf5e8;
  --ink: #211c25;
  --muted: #655e67;
  --faint: #777078;
  --purple: #7138bc;
  --purple-dark: #55218e;
  --cyan: #24b1c3;
  --green: #256044;
  --amber: #875310;
  --red: #a82c44;
  --stroke: #c8bfac;
  --stroke-strong: #211c25;
  --text: var(--ink);
  --primary: var(--purple);
  --primary-3: var(--purple-dark);
  --nav-h: 80px;
  --font: Exrooz, Tahoma, Arial, sans-serif;
  --shadow: 4px 5px 0 #211c2517;
}
* {
  box-sizing: border-box;
}
html {
  min-height: 100%;
  background: var(--paper);
  scroll-padding-bottom: 110px;
}
body {
  margin: 0;
  min-height: 100vh;
  direction: rtl;
  background: var(--paper);
  color: var(--ink);
  font: 400 14px/1.8 var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 50;
  pointer-events: none;
  opacity: 0.19;
  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='.84' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' opacity='.25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}
button,
input,
textarea,
select {
  font: inherit;
}
button {
  min-height: 44px;
  border: 0;
  color: inherit;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
button:disabled {
  cursor: wait;
  opacity: 0.52;
}
button:focus-visible,
a:focus-visible,
[tabindex]:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--purple);
  outline-offset: 4px;
}
button:active:not(:disabled) {
  translate: 0 1px;
}
a {
  color: inherit;
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
svg {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}
.hidden {
  display: none !important;
}
[hidden] {
  display: none !important;
}
h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}
h1,
h2,
h3,
strong,
b {
  font-weight: 800;
}
input,
textarea {
  min-width: 0;
  max-width: 100%;
}
input::placeholder,
textarea::placeholder {
  color: #746b77;
  opacity: 1;
}
.shell {
  width: min(760px, 100%);
  min-height: 100vh;
  margin: auto;
  padding: max(14px, env(safe-area-inset-top)) 16px
    calc(var(--nav-h) + env(safe-area-inset-bottom) + 30px);
}
.screen {
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - 110px);
  gap: 22px;
}
.screen > * {
  min-width: 0;
}
.topbar,
.hero-top,
.detail-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.icon-btn {
  display: inline-grid;
  place-items: center;
  min-width: 44px;
  min-height: 44px;
  padding: 8px;
  border: 1px solid var(--ink);
  background: var(--paper-light);
  border-radius: 2px;
  box-shadow: 2px 2px 0 #211c251c;
}
.subtle {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.95;
}
.eyebrow {
  font-size: 11px;
  letter-spacing: 0.06em;
  font-weight: 800;
  color: var(--purple-dark);
}
/* Cut-paper masthead, always read left-to-right independently of the Persian UI. */
.brand {
  text-align: center;
}
.cut-logo {
  display: inline-flex;
  align-items: center;
  flex-direction: column;
  direction: ltr;
  isolation: isolate;
  vertical-align: middle;
  padding: 10px 12px 7px;
  background: var(--purple);
  clip-path: polygon(
    0 5%,
    5% 3%,
    12% 5%,
    22% 0,
    33% 3%,
    45% 0,
    56% 3%,
    69% 0,
    78% 3%,
    88% 0,
    100% 3%,
    99% 95%,
    93% 97%,
    79% 95%,
    65% 100%,
    52% 97%,
    40% 100%,
    24% 96%,
    12% 100%,
    0 96%
  );
}
.cut-letters {
  display: flex;
  align-items: center;
  height: 57px;
  gap: 2px;
  direction: ltr;
}
.cut-letters i {
  display: inline-grid;
  place-items: center;
  min-width: 30px;
  height: 51px;
  padding: 0 3px;
  font:
    900 47px/0.9 Georgia,
    serif;
  color: var(--ink);
  background: var(--paper-light);
  font-style: normal;
  rotate: -5deg;
  box-shadow: 1px 2px 0 #0005;
}
.cut-letters i:nth-child(2n) {
  background: var(--ink);
  color: var(--paper-light);
  rotate: 4deg;
  font-family: Arial, sans-serif;
}
.cut-letters i:nth-child(3) {
  rotate: -2deg;
  height: 57px;
  font-size: 53px;
}
.cut-letters i:nth-child(4) {
  rotate: 3deg;
}
.cut-letters i:nth-child(5) {
  height: 55px;
  rotate: -4deg;
  font-family: Georgia, serif;
}
.cut-sub {
  font:
    700 10px/1.6 Georgia,
    serif;
  letter-spacing: 0.46em;
  color: var(--paper-light);
  margin-top: 5px;
}
.brand-sub {
  display: block;
  font:
    700 10px/1.7 Georgia,
    serif;
  letter-spacing: 0.2em;
  color: var(--purple-dark);
  direction: ltr;
}
.brand-title {
  font:
    800 34px/1.3 Georgia,
    serif;
}
.hero {
  position: relative;
}
.hero-top {
  padding: 1px 0 10px;
}
.hero-top .icon-btn {
  box-shadow: none;
  border-color: transparent;
  background: transparent;
}
.edition-line {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  border-block: 1px solid var(--ink);
  padding: 5px 0;
  font-size: 9px;
  font-weight: 800;
  line-height: 1.8;
}
.hero-greeting {
  position: relative;
  isolation: isolate;
  margin: 20px 0 0;
  padding: 30px 22px 26px;
  background: var(--purple);
  color: var(--paper-light);
  box-shadow: 3px 5px 0 #211c2530;
}
.hero-greeting::before,
.hero-greeting::after {
  content: "";
  pointer-events: none;
  position: absolute;
  z-index: -1;
}
.hero-greeting::before {
  inset: 0;
  opacity: 0.19;
  background-image: radial-gradient(var(--paper) 1px, transparent 1.2px);
  background-size: 5px 5px;
  mask-image: linear-gradient(110deg, #000, transparent 58%);
}
.hero-greeting::after {
  height: 9px;
  inset-inline: 0;
  bottom: -5px;
  background: var(--paper);
  clip-path: polygon(
    0 30%,
    3% 60%,
    7% 10%,
    11% 50%,
    15% 20%,
    19% 70%,
    24% 30%,
    29% 60%,
    35% 10%,
    42% 65%,
    48% 20%,
    53% 70%,
    60% 30%,
    66% 65%,
    71% 10%,
    77% 60%,
    82% 25%,
    88% 70%,
    94% 10%,
    100% 50%,
    100% 100%,
    0 100%
  );
}
.paper-sticker {
  display: inline-block;
  position: absolute;
  top: -11px;
  inset-inline-end: 17px;
  rotate: -5deg;
  padding: 3px 12px;
  background: var(--cyan);
  color: var(--ink);
  font-size: 11px;
  font-weight: 800;
  box-shadow: 2px 2px 0 #211c2525;
}
.hero-greeting h1 {
  margin: 0 0 9px;
  font-size: clamp(30px, 8.6vw, 46px);
  line-height: 1.45;
  letter-spacing: -1.3px;
}
.hero-greeting em {
  font-style: normal;
  display: inline-block;
  color: var(--ink);
  background: var(--paper-light);
  padding: 0 7px;
  rotate: -2deg;
  margin: 2px 0 3px;
}
.hero-greeting p {
  max-width: 340px;
  margin: 12px 0 18px;
  font-size: 12px;
  line-height: 1.9;
  color: var(--paper-light);
}
.btn.hero-cta {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper-light);
  min-width: 185px;
  justify-content: space-between;
  box-shadow: 3px 3px 0 #eee4ce75;
}
.hero-cta svg {
  transform: rotate(180deg);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  border: 1px solid var(--ink);
  background: var(--paper-light);
  box-shadow: var(--shadow);
}
.stat-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 7px;
  text-align: center;
  align-items: center;
  min-width: 0;
}
.stat-card:not(:last-child) {
  border-inline-end: 1px solid var(--stroke);
}
.stat-icon {
  display: none;
}
.stat-value {
  font-size: 28px;
  line-height: 1.3;
  font-variant-numeric: tabular-nums;
}
.stat-label {
  font-size: 9px;
  line-height: 1.6;
  color: var(--muted);
  white-space: normal;
}
.stat-card:first-child {
  background: var(--ink);
  color: var(--paper-light);
}
.stat-card:first-child .stat-label {
  color: var(--paper);
}
.panel-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.glass-card,
.content-card,
.detail-card,
.preview-phone,
.gate-card,
.empty-state {
  background: var(--paper-light);
  border: 1px solid var(--stroke);
  border-radius: 2px;
  box-shadow: var(--shadow);
}
.glass-card {
  padding: 16px;
  min-width: 0;
  position: relative;
}
.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--ink);
}
.section-title h2 {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
}
.section-title .btn {
  font-size: 10px;
  min-height: 36px;
  padding-inline: 9px;
}
.quality-ring {
  display: grid;
  place-items: center;
  width: 105px;
  height: 105px;
  margin: 8px auto 12px;
  border-radius: 50%;
  background:
    radial-gradient(
      circle at center,
      var(--paper-light) 0 57%,
      transparent 58%
    ),
    conic-gradient(var(--purple) calc(var(--score, 0) * 1%), #e3d6bd 0);
}
.quality-ring strong {
  display: block;
  font-size: 27px;
  line-height: 1.35;
  text-align: center;
}
.quality-ring small {
  display: block;
  color: var(--green);
  font-size: 11px;
  text-align: center;
}
.mini-list {
  display: grid;
  gap: 0;
}
.metric-row,
.activity-item,
.admin-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 45px;
  padding: 9px 0;
  border-bottom: 1px dashed var(--stroke);
}
.metric-row:last-child,
.activity-item:last-child {
  border-bottom: 0;
}
.metric-row span,
.activity-item span {
  font-size: 11px;
  color: var(--muted);
}
.metric-row b,
.activity-item b {
  font-size: 12px;
  overflow-wrap: anywhere;
}
.metric-row a {
  overflow-wrap: anywhere;
  color: var(--purple-dark);
}
.activity-item {
  cursor: pointer;
}
.activity-item > div {
  min-width: 0;
}
.activity-item b {
  display: block;
  font-weight: 800;
  line-height: 1.8;
}
.activity-item span {
  display: block;
}
.featured-story {
  border-color: var(--ink);
}
.featured-story::before {
  content: "";
  position: absolute;
  top: -7px;
  inset-inline-start: 18px;
  width: 54px;
  height: 15px;
  background: var(--cyan);
  opacity: 0.85;
  rotate: -7deg;
}
.featured-story .content-card {
  box-shadow: none;
  border: 0;
  padding: 0;
  background: transparent;
}
.toolbar {
  position: sticky;
  top: 0;
  z-index: 8;
  display: grid;
  gap: 8px;
  padding: 12px 0 10px;
  background: var(--paper);
  border-bottom: 2px solid var(--ink);
}
.screen-title {
  margin: 0;
  font-size: 24px;
  line-height: 1.6;
  letter-spacing: -0.6px;
}
.topbar {
  margin-bottom: 3px;
}
.tabs {
  display: flex;
  gap: 7px;
  max-width: 100%;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scrollbar-width: none;
  padding: 1px 0 4px;
}
.tabs::-webkit-scrollbar {
  display: none;
}
.tab,
.chip,
.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  white-space: nowrap;
  border: 1px solid var(--stroke);
  background: transparent;
  padding: 4px 9px;
  min-height: 27px;
  font-size: 10px;
  line-height: 1.65;
  border-radius: 1px;
  color: var(--muted);
  font-weight: 800;
}
.tab {
  min-height: 44px;
  padding-inline: 14px;
  font-size: 12px;
  flex: 0 0 auto;
}
.tab.active {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper-light);
  box-shadow: 2px 2px 0 var(--purple);
}
.pill.primary,
.chip.primary {
  color: var(--purple-dark);
  border-color: #c5aadf;
  background: #eadeef;
}
.pill.green {
  color: #245239;
  background: #e2ecdf;
  border-color: #a5bfa2;
}
.pill.amber {
  color: #77500e;
  background: #f4e7c7;
  border-color: #ccb47c;
}
.pill.red {
  color: #8c233a;
  background: #f7e1e3;
  border-color: #d3a1a7;
}
.source-link {
  color: var(--muted);
  background: transparent;
  max-width: 100%;
  font-weight: 400;
}
.source-link span {
  max-width: 190px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.source-link svg {
  width: 13px;
  height: 13px;
}
.meta-row {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 6px;
}
.search-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}
.search-box {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  border: 1px solid var(--ink);
  background: var(--paper-light);
  padding: 0 12px;
}
.search-box input {
  border: 0;
  outline: none;
  min-height: 44px;
  width: 100%;
  background: transparent;
  color: var(--ink);
  direction: rtl;
  text-align: right;
  font-size: 13px;
}
.search-box:focus-within {
  outline: 2px solid var(--purple);
  outline-offset: 2px;
}
.feed {
  display: grid;
  gap: 22px;
}
.content-card {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  min-width: 0;
  padding: 12px;
  cursor: pointer;
  transition: border-color 0.15s ease;
}
.content-card:hover {
  border-color: var(--purple);
}
.thumb {
  position: relative;
  overflow: hidden;
  min-height: 130px;
  background: #e4d8c2;
  border: 1px solid var(--stroke);
}
.thumb > img {
  display: block;
  width: 100%;
  height: 220px;
  object-fit: cover;
}
.thumb-fallback {
  display: grid;
  min-height: 160px;
  place-items: center;
  color: var(--purple);
}
.card-main {
  min-width: 0;
  display: grid;
  gap: 12px;
}
.card-main > div:first-child {
  display: grid;
  gap: 10px;
}
.card-title {
  margin: 0;
  font-size: 18px;
  line-height: 1.8;
  font-weight: 800;
  direction: rtl;
  text-align: right;
  unicode-bidi: isolate;
}
.card-copy {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.95;
  direction: rtl;
  text-align: right;
  unicode-bidi: isolate;
}
.score-mini {
  position: absolute;
  top: 8px;
  inset-inline-start: 8px;
  padding: 3px 8px;
  background: var(--ink);
  color: var(--paper-light);
  font-size: 11px;
  font-weight: 800;
  border: 1px solid var(--paper-light);
  box-shadow: 2px 2px 0 #211c2533;
}
.detail-page,
.preview-page {
  display: grid;
  gap: 16px;
}
.detail-top {
  padding-bottom: 12px;
  border-bottom: 1px solid var(--ink);
}
.detail-top .screen-title {
  font-size: 21px;
}
.detail-top .icon-btn:first-child svg {
  transform: rotate(180deg);
}
.detail-card,
.preview-phone {
  overflow: hidden;
  border-color: var(--ink);
}
.detail-media {
  position: relative;
  background: var(--paper);
  min-height: 0;
  padding: 10px 10px 0;
}
.detail-media img,
.preview-media img {
  display: block;
  width: 100%;
  height: auto;
}
.detail-media video,
.preview-media video {
  width: 100%;
  max-height: 65vh;
  display: block;
  object-fit: contain;
  background: var(--ink);
}
.detail-content {
  padding: 20px 17px;
  display: grid;
  gap: 16px;
}
.detail-title {
  margin: 0;
  font-size: 24px;
  line-height: 1.75;
  direction: rtl;
  text-align: right;
  unicode-bidi: isolate;
}
.news-copy,
.body-text {
  direction: rtl;
  text-align: right;
  color: var(--ink);
  font-size: 15px;
  line-height: 2.15;
  overflow-wrap: anywhere;
}
.news-copy p,
.news-copy blockquote {
  white-space: pre-wrap;
  unicode-bidi: isolate;
}
.news-copy p {
  margin: 0 0 18px;
}
.news-copy p:last-child {
  margin-bottom: 0;
}
.body-text {
  white-space: pre-wrap;
  unicode-bidi: isolate;
}
.news-copy blockquote,
.body-text blockquote {
  margin: 18px 0;
  padding: 12px 15px;
  border: 0;
  border-inline-start: 4px solid var(--purple);
  background: #eadeef;
  font-size: 14px;
  line-height: 2.1;
}
.prompt-text {
  margin: 0;
  max-height: 400px;
  overflow: auto;
  direction: ltr;
  text-align: left;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  border: 1px dashed var(--stroke);
  padding: 14px;
  background: var(--paper);
  color: var(--ink);
  font: 400 13px/1.95 monospace;
  unicode-bidi: isolate;
}
.tg-spoiler {
  background: #62506a;
  color: transparent;
  border-radius: 2px;
  cursor: pointer;
}
.tg-spoiler:hover,
.tg-spoiler:focus,
.tg-spoiler:active {
  background: #d7c5e9;
  color: inherit;
}
.channel-preview {
  position: relative;
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px dashed var(--purple);
  background: #f0e6f4;
}
.channel-preview strong {
  font-size: 14px;
  color: var(--purple-dark);
}
.preview-brand {
  text-align: center;
  padding: 14px 0 0;
}
.preview-brand .cut-logo {
  scale: 0.75;
  margin-block: -8px;
}
.preview-media {
  margin: 14px 12px;
  height: 210px;
  overflow: hidden;
  background: var(--paper);
}
.preview-media.magazine-preview {
  height: auto;
}
.preview-body {
  padding: 4px 18px 22px;
}
.footer-brand {
  color: var(--ink);
  line-height: 2;
}
.magazine-cover-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  background: var(--paper);
  color: var(--ink);
  overflow: hidden;
}
.magazine-cover-frame img.magazine-cover {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.cover-loading {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 16px;
  font-size: 12px;
  line-height: 1.8;
}
.cover-loading::before {
  content: "EXROOZ";
  position: absolute;
  top: 30%;
  font:
    900 23px Georgia,
    serif;
  color: var(--purple);
  letter-spacing: 3px;
}
.magazine-thumb {
  align-self: start;
  min-height: 0;
}
.detail-media .magazine-cover-frame + video,
.magazine-preview video {
  margin-top: 12px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 46px;
  padding: 9px 14px;
  border: 1px solid var(--ink);
  background: var(--paper-light);
  color: var(--ink);
  font-weight: 800;
  font-size: 12px;
  line-height: 1.6;
  border-radius: 2px;
  box-shadow: 2px 2px 0 #211c251c;
}
.btn.primary,
.btn.publish {
  background: var(--purple);
  border-color: var(--purple-dark);
  color: var(--paper-light);
  box-shadow: 3px 3px 0 #211c2528;
}
.btn.success {
  background: #deebd9;
  color: #214b35;
  border-color: #5e8b68;
}
.btn.danger {
  background: #f7e0df;
  color: #92283b;
  border-color: #c57c80;
}
.btn.ghost {
  background: transparent;
  box-shadow: none;
  border-color: var(--stroke);
}
.btn.wide {
  width: 100%;
}
.action-dock {
  position: sticky;
  bottom: calc(var(--nav-h) + env(safe-area-inset-bottom) + 5px);
  z-index: 6;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--ink);
  box-shadow: 3px 3px 0 #211c2528;
  background: var(--paper-light);
}
.action-dock > .icon-btn {
  display: none;
}
.action-dock > .pill {
  white-space: normal;
  grid-column: 1/-1;
  justify-content: flex-start;
  line-height: 1.9;
}
.action-dock .btn {
  min-height: 46px;
}
.bottom-nav {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 20;
  display: grid;
  width: min(760px, 100%);
  margin-inline: auto;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 3px;
  padding: 8px 8px calc(8px + env(safe-area-inset-bottom));
  border-top: 2px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  box-shadow: 0 -4px 0 #eee4ce99;
}
.nav-item {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  min-height: 59px;
  padding: 5px 1px;
  background: transparent;
  color: #d9d0dc;
  font-size: 9px;
  line-height: 1.6;
  border: 1px solid transparent;
  border-radius: 1px;
}
.nav-item svg {
  width: 20px;
  height: 20px;
}
.nav-item.active {
  background: var(--paper-light);
  border-color: var(--paper-light);
  color: var(--ink);
  box-shadow: 2px 2px 0 var(--purple);
  transform: rotate(-2deg);
}
.nav-item.active svg {
  color: var(--purple);
}
.gate {
  display: grid;
  place-items: center;
  min-height: 100dvh;
  padding: 24px;
}
.gate-card {
  position: relative;
  width: min(420px, 100%);
  padding: 35px 23px;
  text-align: center;
  border-color: var(--ink);
}
.gate-card::before {
  content: "";
  position: absolute;
  width: 90px;
  height: 23px;
  background: var(--cyan);
  top: -11px;
  inset-inline-start: 20px;
  rotate: -6deg;
  opacity: 0.88;
}
.gate-mark {
  display: grid;
  place-items: center;
  width: 80px;
  height: 80px;
  margin: 0 auto 24px;
  background: var(--purple);
  color: var(--paper-light);
  font:
    900 39px Georgia,
    serif;
  rotate: -5deg;
  box-shadow: 4px 4px 0 var(--ink);
}
.gate h1 {
  font-size: 30px;
  margin: 14px 0;
}
.gate-copy {
  color: var(--muted);
  margin: 15px 0 25px;
  line-height: 2;
}
.gate-card .eyebrow {
  letter-spacing: 0.14em;
}
.sheet {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: end center;
  padding: 12px;
  background: #211c2570;
}
.scrim {
  position: absolute;
  inset: 0;
}
.sheet-card,
.sheet-panel {
  position: relative;
  width: min(720px, 100%);
  max-height: calc(100dvh - 36px - env(safe-area-inset-top));
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 18px 16px max(18px, env(safe-area-inset-bottom));
  border: 1px solid var(--ink);
  background: var(--paper-light);
  box-shadow: 5px -5px 0 var(--purple);
}
.sheet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}
.sheet-head h2 {
  margin: 0;
  font-size: 23px;
}
.sheet-head .eyebrow {
  margin: 0 0 4px;
}
.sheet-actions {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 10px;
  padding-top: 7px;
}
.field {
  display: grid;
  gap: 7px;
  min-width: 0;
  margin-bottom: 12px;
  padding: 11px 12px;
  border: 1px solid var(--stroke);
  background: var(--paper);
}
.field > span {
  color: var(--muted);
  font-size: 12px;
}
.field input,
.field textarea {
  width: 100%;
  border: 0;
  outline: none;
  background: transparent;
  color: var(--ink);
  line-height: 1.9;
  resize: vertical;
  min-height: 44px;
  font-size: 16px;
}
.field:focus-within {
  outline: 2px solid var(--purple);
  outline-offset: 2px;
}
.field textarea {
  min-height: 190px;
}
.admin-form {
  display: grid;
  gap: 10px;
  margin-bottom: 18px;
}
.admin-row > div {
  display: grid;
  gap: 3px;
  min-width: 0;
}
.admin-row b,
.admin-row span {
  overflow-wrap: anywhere;
}
.admin-row span {
  font-size: 11px;
  color: var(--muted);
  direction: ltr;
  text-align: right;
}
.admin-row .btn {
  min-width: 67px;
}
.toast {
  position: fixed;
  inset-inline: 0;
  bottom: calc(var(--nav-h) + env(safe-area-inset-bottom) + 18px);
  z-index: 60;
  width: max-content;
  max-width: min(92vw, 520px);
  margin-inline: auto;
  padding: 12px 16px;
  border: 1px solid var(--paper);
  background: var(--ink);
  box-shadow: 3px 3px 0 var(--purple);
  color: var(--paper-light);
  opacity: 0;
  transform: translateY(18px);
  transition: 180ms ease;
  pointer-events: none;
}
.toast.show {
  opacity: 1;
  transform: translateY(0);
}
.empty-state {
  display: grid;
  place-items: center;
  gap: 10px;
  min-height: 210px;
  padding: 26px;
  text-align: center;
  border-style: dashed;
  box-shadow: none;
}
.empty-state h2 {
  font-size: 20px;
  margin: 0;
}
.empty-state p {
  margin: 0;
}
.empty-state svg {
  color: var(--purple);
}
.skeleton {
  position: relative;
  overflow: hidden;
}
.skeleton::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, #fff7, transparent);
  animation: shimmer 1.25s infinite;
  transform: translateX(100%);
}
@keyframes shimmer {
  to {
    transform: translateX(-100%);
  }
}
@media (max-width: 380px) {
  .shell {
    padding-inline: 12px;
  }
  .cut-letters {
    height: 50px;
  }
  .cut-letters i {
    min-width: 25px;
    height: 44px;
    font-size: 40px;
  }
  .cut-letters i:nth-child(3) {
    height: 49px;
    font-size: 46px;
  }
  .cut-letters i:nth-child(5) {
    height: 48px;
  }
  .cut-logo {
    padding: 8px 10px 5px;
  }
  .cut-sub {
    font-size: 8px;
  }
  .hero-greeting {
    padding-inline: 18px;
  }
  .edition-line {
    font-size: 8px;
  }
  .panel-grid {
    grid-template-columns: 1fr;
  }
  .stat-label {
    font-size: 8px;
  }
  .screen-title {
    font-size: 22px;
  }
  .card-title {
    font-size: 17px;
  }
}
@media (min-width: 600px) {
  .shell {
    padding-inline: 25px;
  }
  .hero-greeting {
    padding: 35px;
  }
  .hero-greeting h1 {
    font-size: 49px;
  }
  .hero-greeting p {
    font-size: 14px;
  }
  .edition-line {
    font-size: 11px;
  }
  .cut-letters {
    height: 66px;
  }
  .cut-letters i {
    min-width: 38px;
    height: 59px;
    font-size: 55px;
  }
  .cut-letters i:nth-child(3) {
    height: 65px;
    font-size: 61px;
  }
  .cut-letters i:nth-child(5) {
    height: 64px;
  }
  .stats-grid {
    gap: 0;
  }
  .stat-label {
    font-size: 12px;
  }
  .stat-value {
    font-size: 34px;
  }
  .feed {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
  }
  .featured-story .content-card {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
  }
  .detail-content {
    padding: 25px;
  }
  .detail-title {
    font-size: 29px;
  }
  .action-dock {
    grid-template-columns: repeat(4, 1fr);
  }
  .nav-item {
    font-size: 11px;
  }
  .nav-item svg {
    width: 22px;
    height: 22px;
  }
  .btn {
    font-size: 13px;
  }
  .detail-page,
  .preview-page {
    max-width: 640px;
    width: 100%;
    margin-inline: auto;
  }
  .panel-grid .glass-card {
    padding: 20px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
/* Keep the cut-letter masthead inside the two 44px touch controls. */
.hero-top .brand {
  flex: 1;
  min-width: 0;
}
.hero-top .cut-logo {
  width: 100%;
  max-width: 220px;
  padding: 8px 7px 5px;
}
.hero-top .cut-letters {
  width: 100%;
  height: 50px;
  justify-content: center;
  gap: 1px;
}
.hero-top .cut-letters i {
  min-width: 0;
  flex: 1;
  width: calc((100% - 5px) / 6);
  height: 43px;
  font-size: 38px;
  padding: 0;
}
.hero-top .cut-letters i:nth-child(3) {
  height: 48px;
  font-size: 43px;
}
.hero-top .cut-letters i:nth-child(5) {
  height: 47px;
}
.hero-top .cut-sub {
  font-size: 8px;
  letter-spacing: 0.35em;
}
.hero-top .icon-btn {
  flex: 0 0 44px;
}
.hero-cta svg {
  transform: none;
}
.source-link {
  min-height: 44px;
}
.section-title .btn {
  min-height: 44px;
}
body.editing-open {
  overflow: hidden;
}
.metric-row a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.paper-count {
  display: grid;
  flex: 0 0 44px;
  place-items: center;
  padding: 4px 8px;
  border: 1px solid var(--ink);
  background: var(--cyan);
  font-size: 19px;
  font-weight: 800;
  line-height: 1.25;
  rotate: -3deg;
}
.paper-count small {
  font-size: 8px;
}
