.app-shell { min-height: 100vh; display: grid; grid-template-columns: 248px minmax(0, 1fr); background: #f6f4ef; color: #13294b; }
.app-side { background: #fff; border-right: 1px solid #e3e1da; padding: 18px 14px 28px; display: flex; flex-direction: column; gap: 4px; position: sticky; top: 0; height: 100vh; }
.app-side a { display: flex; align-items: center; min-height: 40px; padding: 0 12px; border-radius: 10px; text-decoration: none; font-weight: 600; color: #13294b; }
.app-side a.active, .app-side a:hover { background: #fff1eb; }
.app-side a.active { box-shadow: inset 3px 0 0 #f2643a; }
.app-brand { font-family: Fredoka, sans-serif; font-size: 1.05rem; line-height: 1.15; margin: 4px 8px 14px; }
.app-brand span { display: block; font-family: Inter, sans-serif; font-size: .78rem; font-weight: 550; color: #5b6573; }
.app-main { padding: 22px 28px 64px; min-width: 0; }
.app-top { display: flex; justify-content: space-between; gap: 16px; align-items: center; margin-bottom: 18px; }
.kpis { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.kpi { background: #fff; border: 1px solid #e3e1da; border-radius: 14px; padding: 14px; }
.kpi b { display: block; font-family: Fredoka, sans-serif; font-size: 1.7rem; letter-spacing: -0.03em; }
.kpi span { color: #5b6573; font-size: .82rem; }
.app-grid { display: grid; grid-template-columns: 1.4fr .8fr; gap: 16px; margin-top: 16px; }
.panel { background: #fff; border: 1px solid #e3e1da; border-radius: 16px; padding: 16px 18px; }
.panel h2 { font-size: 1.05rem; margin: 0 0 12px; }
.job-row, .review-row { display: grid; grid-template-columns: 7rem 1fr auto; gap: 12px; align-items: center; padding: 12px 0; border-top: 1px solid #e3e1da; text-decoration: none; color: inherit; }
.chip-status { font-family: "JetBrains Mono", monospace; font-size: .72rem; letter-spacing: .04em; text-transform: uppercase; padding: 4px 8px; border-radius: 999px; background: #f7f5f0; }
.chip-status.flag { background: #fff6e0; color: #9a6700; }
.chip-status.live { background: #e7f8fb; color: #0e7490; }
.chip-status.sent { background: #e3f4ec; color: #0f6b47; }
.report-paper { background: #fff; border: 1px solid #e3e1da; padding: 28px; max-width: 820px; }
.report-paper h1 { color: #1f4e79; }
.phone-app { max-width: 420px; margin: 0 auto; background: #fff; border-radius: 28px; overflow: clip; border: 1px solid #e3e1da; }
.phone-app header { background: #13294b; color: #fff; padding: 22px 18px 14px; }
@media (max-width: 1100px) {
  .app-shell { grid-template-columns: 1fr; }
  .app-side { position: relative; height: auto; flex-direction: row; flex-wrap: wrap; }
  .kpis, .app-grid { grid-template-columns: 1fr; }
}

.office { min-height: 100vh; display: grid; grid-template-columns: 248px minmax(0, 1fr); background: var(--color-paper, #f6f4ef); color: #13294b; }
.office-side { background: #fff; border-right: 1px solid #e3e1da; padding: 16px 12px 24px; display: flex; flex-direction: column; gap: 2px; position: sticky; top: 0; height: 100vh; overflow: auto; }
.office-side a, .office-side button.linkish { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 40px; padding: 0 10px; border-radius: 10px; text-decoration: none; font-weight: 600; color: #13294b; background: transparent; border: 0; width: 100%; text-align: left; }
.office-side a.active { background: #fff1eb; box-shadow: inset 3px 0 0 #f2643a; }
.office-side .group { margin: 14px 10px 4px; font-family: "JetBrains Mono", monospace; font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: #5b6573; }
.badge { font-family: "JetBrains Mono", monospace; font-size: .68rem; background: #13294b; color: #fff; border-radius: 999px; min-width: 1.3rem; text-align: center; padding: 1px 6px; }
.badge.warn { background: #9a6700; }
.badge.bad { background: #c8372d; }
.office-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 20px; background: #fff; border-bottom: 1px solid #e3e1da; position: sticky; top: 0; z-index: 2; }
.office-body { padding: 20px 22px 72px; min-width: 0; }
.alert-row { display: flex; justify-content: space-between; gap: 12px; align-items: center; background: #fff6e0; border: 1px solid #e3c98a; border-radius: 14px; padding: 12px 14px; margin: 12px 0; }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pair img { width: 100%; height: auto; border-radius: 12px; background: #f6f4ef; }
.toast { position: fixed; right: 16px; bottom: 16px; background: #13294b; color: #fff; padding: 12px 14px; border-radius: 12px; display: flex; gap: 10px; align-items: center; z-index: 20; }
.drawer { width: min(440px, 100vw); border: 0; border-left: 1px solid #e3e1da; padding: 20px; }
.drawer::backdrop { background: rgb(19 41 75 / .35); }
.cleaner { min-height: 100vh; background: #f6f4ef; padding-bottom: calc(72px + env(safe-area-inset-bottom)); }
.cleaner-top { display: flex; justify-content: space-between; gap: 8px; padding: 14px 16px; background: #13294b; color: #fff; }
.cleaner-tabs { position: fixed; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: repeat(4, 1fr); background: #fff; border-top: 1px solid #e3e1da; padding-bottom: env(safe-area-inset-bottom); z-index: 5; }
.cleaner-tabs a { min-height: 48px; display: grid; place-items: center; text-decoration: none; font-weight: 700; color: #13294b; }
.cleaner-tabs a.active { color: #c4461e; }
.public-head { background: #1f4e79; color: #fff; padding: 18px 20px; }
.public-foot { padding: 18px 20px 32px; color: #5b6573; font-size: .85rem; }
.week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
.week article { background: #fff; border: 1px solid #e3e1da; border-radius: 12px; padding: 8px; min-height: 88px; }
table.data { width: 100%; border-collapse: collapse; background: #fff; }
table.data th, table.data td { text-align: left; padding: 10px 8px; border-bottom: 1px solid #e3e1da; vertical-align: top; }
.faq details { border-top: 1px solid #e3e1da; }
.faq summary { cursor: pointer; font-weight: 700; padding: 14px 0; }
.faq details::details-content { block-size: 0; overflow: clip; transition: block-size .3s, content-visibility .3s allow-discrete; }
.faq details[open]::details-content { block-size: auto; }
.office-tabs { display: none; }
.settings-nav { display: flex; gap: 8px; flex-wrap: wrap; padding: 10px 20px; background: #fff; border-bottom: 1px solid #e3e1da; }
.settings-nav a { text-decoration: none; font-weight: 650; color: #13294b; min-height: 40px; display: inline-flex; align-items: center; }
@media (max-width: 900px) {
  .office-tabs { position: fixed; left: 0; right: 0; bottom: 0; z-index: 6; display: grid; grid-template-columns: repeat(5, 1fr); background: #fff; border-top: 1px solid #e3e1da; padding-bottom: env(safe-area-inset-bottom); }
  .office-tabs a { min-height: 48px; display: grid; place-items: center; text-decoration: none; font-weight: 700; color: #13294b; font-size: .82rem; }
  .office-body { padding-bottom: 88px; }
}
@media (prefers-reduced-motion: reduce) {
  .faq details::details-content { transition: none; }
}
