@font-face {
  font-family: "Paperlogy";
  src: url("../fonts/Paperlogy-4Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Paperlogy";
  src: url("../fonts/Paperlogy-5Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Paperlogy";
  src: url("../fonts/Paperlogy-6SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Paperlogy";
  src: url("../fonts/Paperlogy-7Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "SchoolSafetyNotification";
  src: url("https://cdn.jsdelivr.net/gh/projectnoonnu/2408-5@1.0/HakgyoansimAllimjangTTF-R.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "SchoolSafetyNotification";
  src: url("https://cdn.jsdelivr.net/gh/projectnoonnu/2408-5@1.0/HakgyoansimAllimjangTTF-B.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --leaf: #8bab34;
  --leaf-dark: #4f6f1f;
  --leaf-deep: #243f25;
  --cream: #f8f5ec;
  --paper: #fffdf8;
  --mint: #eef5d8;
  --sky: #dcebf0;
  --sun: #d8752f;
  --ink: #1d241f;
  --muted: #687166;
  --line: #d7e2b8;
  --white: #ffffff;
  --shadow: 0 22px 60px rgba(35, 54, 31, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Paperlogy", "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif;
  letter-spacing: 0;
}

img {
  display: block;
  max-width: 100%;
}

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

.section-shell {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  padding: 12px max(20px, calc((100vw - 1120px) / 2));
  background: rgba(255, 253, 248, 0.94);
  border-bottom: 1px solid rgba(217, 226, 184, 0.82);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--leaf-deep);
  font-family: "SchoolSafetyNotification", "Paperlogy", sans-serif;
  font-size: 20px;
  font-weight: 700;
}

.brand img {
  border-radius: 8px;
  box-shadow: 0 8px 18px rgba(49, 80, 36, 0.2);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.site-nav a {
  padding: 10px 12px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 700;
}

.site-nav a:hover {
  color: var(--leaf-dark);
  background: var(--mint);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(520px, 1.08fr);
  gap: 46px;
  align-items: center;
  padding: 62px 0 48px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--sun);
  font-size: 14px;
  font-weight: 900;
  text-transform: uppercase;
}

.hero h1,
.section-heading h2,
.intro-grid h2,
.flow-copy h3,
.book-card h3 {
  margin: 0;
  color: var(--leaf-deep);
  font-family: "SchoolSafetyNotification", "Paperlogy", sans-serif;
  font-weight: 700;
  line-height: 1.08;
}

.hero h1 {
  font-size: 58px;
}

.hero h1 span,
.intro-grid h2 span {
  display: block;
}

.hero-lead {
  margin: 24px 0 0;
  color: #394236;
  font-size: 20px;
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border: 0;
  border-radius: 8px;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.button.primary {
  color: var(--white);
  background: var(--leaf-dark);
  box-shadow: 0 14px 26px rgba(49, 80, 36, 0.22);
}

.button.secondary {
  color: var(--leaf-dark);
  background: var(--sky);
}

.button.danger {
  color: #ffffff;
  background: #b13d28;
  box-shadow: 0 12px 22px rgba(177, 61, 40, 0.18);
}

.button.compact {
  min-height: 40px;
  padding: 0 14px;
}

.button:disabled {
  opacity: 0.48;
  cursor: not-allowed;
  transform: none;
}

.button:hover {
  transform: translateY(-1px);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 34px;
}

.hero-stats article {
  min-height: 128px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
}

.stat-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 26px;
  margin-bottom: 10px;
  border-radius: 8px;
  color: var(--white);
  background: var(--leaf-dark);
  font-size: 12px;
  font-weight: 900;
}

.hero-stats strong,
.hero-stats span {
  display: block;
}

.hero-stats strong {
  color: var(--sun);
  font-size: 19px;
  font-weight: 900;
}

.hero-stats article > span:last-child {
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.hero-media {
  position: relative;
  min-height: 548px;
}

.hero-book {
  width: 100%;
  aspect-ratio: 2 / 1;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.hero-badge {
  position: absolute;
  top: 190px;
  left: 50%;
  width: 138px;
  border-radius: 50%;
  box-shadow: 0 14px 34px rgba(35, 54, 31, 0.2);
  transform: translateX(-50%);
}

.hero-phone {
  position: absolute;
  bottom: 0;
  width: 174px;
  aspect-ratio: 9 / 18.7;
  object-fit: cover;
  border: 7px solid var(--white);
  border-radius: 8px;
  box-shadow: 0 20px 42px rgba(22, 30, 20, 0.22);
}

.hero-phone-left {
  left: 28px;
}

.hero-phone-right {
  right: 32px;
  bottom: 30px;
}

.intro-band {
  color: var(--white);
  background: linear-gradient(90deg, var(--leaf-deep), #65783a);
}

.intro-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 42px;
  align-items: center;
  padding: 46px 0;
}

.intro-grid h2 {
  color: var(--white);
  font-size: 34px;
}

.intro-grid p:last-child {
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 18px;
  line-height: 1.85;
}

.feature-section {
  padding: 76px 0;
}

.section-heading {
  margin-bottom: 32px;
}

.section-heading h2 {
  font-size: 40px;
}

.section-heading.split {
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  gap: 36px;
  align-items: end;
}

.section-heading.split > p {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
}

.flow-list {
  display: grid;
  gap: 24px;
}

.flow-item {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(390px, 1.08fr);
  gap: 34px;
  align-items: center;
  min-height: 430px;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 12px 32px rgba(49, 80, 36, 0.08);
}

.flow-item.reverse {
  grid-template-columns: minmax(390px, 1.08fr) minmax(0, 0.92fr);
}

.flow-item.reverse .flow-copy {
  order: 2;
}

.flow-copy {
  max-width: 520px;
}

.feature-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border-radius: 8px;
  color: var(--white);
  background: var(--sun);
  font-size: 20px;
  font-weight: 900;
}

.screen-kicker {
  margin: 18px 0 8px;
  color: var(--leaf-dark);
  font-size: 15px;
  font-weight: 900;
}

.flow-copy h3,
.book-card h3 {
  font-size: 30px;
}

.flow-copy p:not(.screen-kicker),
.book-card p {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.75;
}

.screen-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.screen-badges span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--leaf-dark);
  background: var(--mint);
  font-size: 14px;
  font-weight: 800;
}

.phone-frame {
  justify-self: center;
  width: min(100%, 270px);
  margin: 0;
  border: 7px solid #20251f;
  border-radius: 8px;
  overflow: hidden;
  background: #20251f;
  box-shadow: 0 18px 40px rgba(31, 36, 32, 0.18);
}

.phone-frame img {
  width: 100%;
  aspect-ratio: 9 / 18.7;
  object-fit: cover;
}

.phone-cluster,
.book-phone-pair {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
}

.phone-cluster .side-phone {
  width: 210px;
  transform: translateY(34px);
}

.memory-board {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.memory-board img {
  width: 100%;
  aspect-ratio: 9 / 18.7;
  object-fit: cover;
  border: 5px solid #20251f;
  border-radius: 8px;
  box-shadow: 0 14px 30px rgba(31, 36, 32, 0.16);
}

.book-phone-pair .phone-frame {
  width: 230px;
}

.book-section {
  padding: 78px 0;
  background: var(--cream);
}

.book-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr 1fr;
  gap: 18px;
}

.book-card {
  min-height: 280px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 12px 30px rgba(49, 80, 36, 0.08);
}

.book-card.large {
  grid-row: span 2;
  display: grid;
  gap: 18px;
  align-content: start;
}

.book-card.wide {
  grid-column: span 2;
}

.book-card img {
  width: 100%;
  aspect-ratio: 4 / 5.45;
  object-fit: cover;
  border-radius: 6px;
  background: var(--cream);
}

.book-card.large img {
  aspect-ratio: 4 / 5.6;
}

.book-card.wide img {
  aspect-ratio: 1.62 / 1;
  object-position: top center;
}

.site-footer {
  padding: 28px 0;
  color: rgba(255, 255, 255, 0.82);
  background: var(--leaf-deep);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.footer-brand {
  color: var(--white);
}

.footer-links {
  display: grid;
  gap: 6px;
  justify-items: end;
}

.footer-links p {
  margin: 0;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  font-weight: 700;
}

.footer-links a:hover {
  color: var(--white);
  text-decoration: underline;
}

.admin-page {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--cream), var(--sky));
}

.admin-shell {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  min-height: 100vh;
}

.admin-visual {
  display: grid;
  align-content: space-between;
  gap: 34px;
  padding: 52px;
  color: var(--white);
  background: linear-gradient(135deg, var(--leaf-deep), #667132);
}

.admin-brand {
  color: var(--white);
}

.admin-visual h1,
.login-panel h2 {
  margin: 0;
  font-family: "SchoolSafetyNotification", "Paperlogy", sans-serif;
  font-weight: 700;
  line-height: 1.12;
}

.admin-visual h1 {
  max-width: 640px;
  color: var(--white);
  font-size: 44px;
}

.admin-visual p {
  max-width: 640px;
  margin-top: 18px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 17px;
  line-height: 1.75;
}

.admin-preview {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 18px;
  align-items: center;
  max-width: 520px;
  padding: 16px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
}

.admin-preview img {
  width: 120px;
  aspect-ratio: 9 / 18.7;
  object-fit: cover;
  border-radius: 8px;
}

.preview-copy strong,
.preview-copy span {
  display: block;
}

.preview-copy strong {
  color: var(--white);
  font-size: 22px;
}

.preview-copy span {
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.74);
}

.login-panel {
  display: grid;
  align-content: center;
  width: min(480px, calc(100% - 40px));
  margin: 0 auto;
  padding: 48px 0;
}

.back-link {
  justify-self: start;
  margin-bottom: 22px;
  color: var(--leaf-dark);
  font-weight: 900;
}

.login-panel h2 {
  margin-bottom: 26px;
  color: var(--leaf-deep);
  font-size: 36px;
}

.login-form {
  display: grid;
  gap: 18px;
}

.login-form label {
  display: grid;
  gap: 8px;
  color: var(--leaf-deep);
  font-weight: 900;
}

.login-form input {
  width: 100%;
  min-height: 54px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
  font: inherit;
}

.login-form input:focus {
  outline: 3px solid rgba(122, 155, 46, 0.24);
  border-color: var(--leaf);
}

.button.full {
  width: 100%;
  min-height: 54px;
}

.form-message {
  min-height: 24px;
  margin: 0;
  color: var(--sun);
  font-weight: 800;
  line-height: 1.5;
}

@media (max-width: 980px) {
  .hero,
  .intro-grid,
  .section-heading.split,
  .flow-item,
  .flow-item.reverse,
  .admin-shell {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 38px;
  }

  .hero-media {
    min-height: 440px;
  }

  .flow-item.reverse .flow-copy {
    order: 0;
  }

  .memory-board {
    grid-template-columns: repeat(2, 1fr);
  }

  .book-grid {
    grid-template-columns: 1fr 1fr;
  }

  .book-card.large,
  .book-card.wide {
    grid-column: auto;
  }

  .admin-visual {
    min-height: 560px;
  }
}

@media (max-width: 720px) {
  .section-shell {
    width: min(100% - 28px, 1120px);
  }

  .site-header {
    min-height: 66px;
    padding: 10px 14px;
  }

  .brand {
    gap: 8px;
    font-size: 17px;
  }

  .brand img {
    width: 38px;
    height: 38px;
  }

  .site-nav a {
    padding: 8px 7px;
    font-size: 13px;
  }

  .hero h1 {
    font-size: 38px;
  }

  .hero-lead {
    font-size: 17px;
  }

  .hero-stats {
    grid-template-columns: 1fr;
  }

  .hero-media {
    min-height: 356px;
  }

  .hero-phone {
    width: 128px;
    border-width: 5px;
  }

  .hero-badge {
    top: 132px;
    width: 96px;
  }

  .hero-phone-left {
    left: 10px;
  }

  .hero-phone-right {
    right: 10px;
    bottom: 20px;
  }

  .intro-grid h2,
  .section-heading h2 {
    font-size: 30px;
  }

  .feature-section,
  .book-section {
    padding: 54px 0;
  }

  .flow-item {
    min-height: auto;
    padding: 22px;
  }

  .flow-copy h3,
  .book-card h3 {
    font-size: 24px;
  }

  .phone-cluster,
  .book-phone-pair {
    flex-direction: column;
  }

  .phone-cluster .side-phone {
    width: min(100%, 270px);
    transform: none;
  }

  .memory-board {
    grid-template-columns: 1fr 1fr;
  }

  .book-grid {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-links {
    justify-items: start;
  }

  .admin-visual {
    min-height: auto;
    padding: 34px 20px;
  }

  .admin-visual h1 {
    font-size: 34px;
  }

  .admin-preview {
    grid-template-columns: 86px 1fr;
  }

  .admin-preview img {
    width: 86px;
  }
}

@media (max-width: 420px) {
  .hero-actions .button {
    width: 100%;
  }

  .hero-media {
    min-height: 312px;
  }

  .hero-phone {
    width: 108px;
  }

  .memory-board {
    gap: 8px;
  }
}


/* layout refinement 2026-06-23 */
.hero {
  grid-template-columns: minmax(0, 0.9fr) minmax(480px, 1.1fr);
}

.hero-title-lockup {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 128px;
  gap: 22px;
  align-items: center;
}

.title-badge {
  width: 128px;
  border-radius: 50%;
  box-shadow: 0 16px 34px rgba(36, 63, 37, 0.18);
}

.hero-stats {
  gap: 14px;
}

.hero-stats article {
  position: relative;
  min-height: 144px;
  padding: 20px 18px 18px;
  overflow: hidden;
  border-color: rgba(139, 171, 52, 0.38);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(238, 245, 216, 0.88)),
    var(--white);
  box-shadow: 0 12px 26px rgba(49, 80, 36, 0.08);
}

.hero-stats article::after {
  position: absolute;
  right: -18px;
  bottom: -24px;
  width: 82px;
  height: 82px;
  border-radius: 50%;
  background: rgba(139, 171, 52, 0.14);
  content: "";
}

.stat-icon {
  min-width: 38px;
  height: 28px;
  background: var(--sun);
}

.hero-stats strong {
  color: var(--leaf-deep);
  font-size: 21px;
}

.hero-media {
  min-height: auto;
}

.hero-book {
  aspect-ratio: 1.8 / 1;
}

.hero-badge,
.hero-phone,
.hero-phone-left,
.hero-phone-right {
  display: none;
}

.phone-cluster,
.book-phone-pair,
.memory-board {
  --flow-phone-width: 230px;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 470px;
}

.phone-frame,
.phone-cluster .side-phone,
.book-phone-pair .phone-frame {
  width: var(--flow-phone-width);
  transform: none;
}

.memory-board {
  grid-template-columns: repeat(2, var(--flow-phone-width));
}

.memory-board img {
  width: var(--flow-phone-width);
}

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

.book-card {
  min-height: auto;
}

.book-card img,
.book-card.large img,
.book-card.wide img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: top center;
}

@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .hero-title-lockup {
    grid-template-columns: minmax(0, 1fr) 112px;
  }

  .title-badge {
    width: 112px;
  }

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

@media (max-width: 720px) {
  .hero-title-lockup {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .title-badge {
    width: 104px;
  }

  .phone-cluster,
  .book-phone-pair,
  .memory-board {
    --flow-phone-width: min(230px, calc(100vw - 80px));
    min-height: auto;
  }

  .memory-board {
    grid-template-columns: 1fr;
  }

  .book-grid {
    grid-template-columns: 1fr;
  }
}


/* family book layout refinement 2026-06-23 */
.book-grid.family-book-layout {
  grid-template-columns: minmax(300px, 0.84fr) minmax(0, 1.36fr);
  align-items: stretch;
  gap: 22px;
}

.book-feature-card {
  display: grid;
  align-content: start;
  gap: 18px;
}

.book-feature-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5.62;
  object-fit: cover;
  object-position: center top;
}

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

.book-page-card {
  display: grid;
  grid-template-rows: 1fr auto;
  align-content: stretch;
  min-height: 0;
}

.book-page-card img {
  width: 100%;
  height: 360px;
  aspect-ratio: auto;
  object-fit: contain;
  object-position: center;
  background: #fbf8f0;
}

.book-page-card h3 {
  margin-top: 14px;
}

@media (max-width: 980px) {
  .book-grid.family-book-layout {
    grid-template-columns: 1fr;
  }

  .book-feature-card {
    grid-template-columns: minmax(180px, 0.42fr) minmax(0, 0.58fr);
    align-items: center;
  }

  .book-feature-card img {
    aspect-ratio: 4 / 5.4;
  }
}

@media (max-width: 720px) {
  .book-feature-card,
  .book-page-grid {
    grid-template-columns: 1fr;
  }

  .book-page-card img {
    height: min(480px, calc(100vw - 92px));
  }
}

/* web admin dashboard 2026-06-23 */
.admin-dashboard-page {
  min-height: 100vh;
  color: #1e241f;
  background: #f5f2e9;
}

.admin-dashboard-page [hidden] {
  display: none !important;
}

.ops-login-screen {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 32px;
  background:
    linear-gradient(135deg, rgba(79, 111, 31, 0.14), rgba(216, 117, 47, 0.1)),
    #f8f5ec;
}

.ops-login-card {
  width: min(520px, 100%);
  padding: 34px;
  border: 1px solid #d8e2bd;
  border-radius: 8px;
  background: #fffdf8;
  box-shadow: 0 24px 70px rgba(35, 54, 31, 0.14);
}

.ops-login-brand {
  margin-bottom: 26px;
}

.ops-login-card h1,
.ops-commandbar h1,
.ops-panel h2 {
  margin: 0;
  color: #243f25;
  font-family: "SchoolSafetyNotification", "Paperlogy", sans-serif;
  font-weight: 700;
  line-height: 1.12;
}

.ops-login-card h1 {
  font-size: 38px;
}

.ops-login-card p:not(.eyebrow) {
  margin: 14px 0 0;
  color: #687166;
  font-size: 16px;
  line-height: 1.75;
}

.ops-login-form {
  display: grid;
  gap: 16px;
  margin-top: 28px;
}

.ops-login-form label,
.ops-search {
  display: grid;
  gap: 7px;
  color: #4f6f1f;
  font-size: 13px;
  font-weight: 900;
}

.ops-login-form input,
.ops-search input {
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid #d8e2bd;
  border-radius: 8px;
  color: #1e241f;
  background: #ffffff;
  font: inherit;
  font-weight: 700;
}

.ops-login-form input[readonly] {
  color: #4f6f1f;
  background: #eef5d8;
}

.form-message[data-type="error"],
.ops-status[data-type="error"] {
  color: #b13d28;
}

.form-message[data-type="info"] {
  color: #4f6f1f;
}

.ops-app {
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
  min-height: 100vh;
}

.ops-sidebar {
  position: sticky;
  top: 0;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 24px;
  height: 100vh;
  padding: 22px;
  color: #fffdf8;
  background: #243f25;
}

.ops-sidebar-brand {
  color: #ffffff;
}

.ops-nav {
  display: grid;
  align-content: start;
  gap: 8px;
}

.ops-nav button,
.ops-period button,
.ops-segment button {
  min-height: 40px;
  border: 1px solid transparent;
  border-radius: 8px;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.ops-nav button {
  padding: 0 12px;
  color: rgba(255, 255, 255, 0.74);
  background: transparent;
  text-align: left;
}

.ops-nav button.is-active,
.ops-nav button:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
}

.ops-admin-card {
  display: grid;
  gap: 7px;
  padding: 16px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
}

.ops-admin-card span,
.ops-admin-card small {
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
}

.ops-admin-card strong {
  color: #ffffff;
  font-size: 20px;
}

.ops-admin-card .button {
  margin-top: 8px;
}

.ops-main {
  display: grid;
  align-content: start;
  gap: 18px;
  min-width: 0;
  padding: 24px;
}

.ops-commandbar {
  display: grid;
  grid-template-columns: minmax(220px, 0.72fr) minmax(0, 1.28fr);
  gap: 20px;
  align-items: end;
  padding: 22px;
  border: 1px solid #d8e2bd;
  border-radius: 8px;
  background: #fffdf8;
  box-shadow: 0 12px 28px rgba(49, 80, 36, 0.08);
}

.ops-commandbar h1 {
  font-size: 34px;
}

.ops-controls {
  display: grid;
  grid-template-columns: auto minmax(220px, 1fr) auto auto;
  gap: 10px;
  align-items: end;
}

.ops-period,
.ops-segment {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.ops-period button,
.ops-segment button {
  padding: 0 13px;
  color: #4f6f1f;
  border-color: #d8e2bd;
  background: #ffffff;
}

.ops-period button.is-active,
.ops-segment button.is-active {
  color: #ffffff;
  border-color: #4f6f1f;
  background: #4f6f1f;
}

.ops-status {
  min-height: 42px;
  padding: 11px 14px;
  border: 1px solid #d8e2bd;
  border-radius: 8px;
  color: #4f6f1f;
  background: #eef5d8;
  font-weight: 900;
}

.ops-status[data-type="success"] {
  color: #243f25;
}

.ops-view {
  display: none;
  gap: 18px;
}

.ops-view.is-active {
  display: grid;
}

.ops-metrics {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}

.ops-metric,
.ops-panel {
  border: 1px solid #d8e2bd;
  border-radius: 8px;
  background: #fffdf8;
  box-shadow: 0 10px 28px rgba(49, 80, 36, 0.07);
}

.ops-metric {
  display: grid;
  gap: 6px;
  min-height: 124px;
  padding: 16px;
}

.ops-metric span {
  color: #687166;
  font-size: 13px;
  font-weight: 900;
}

.ops-metric strong {
  color: #243f25;
  font-size: 25px;
  font-weight: 900;
}

.ops-metric small {
  color: #687166;
  font-size: 12px;
  line-height: 1.45;
}

.ops-metric.green strong {
  color: #4f6f1f;
}

.ops-metric.blue strong {
  color: #2f6f87;
}

.ops-metric.gold strong {
  color: #b46a20;
}

.ops-metric.red strong {
  color: #b13d28;
}

.ops-grid {
  display: grid;
  gap: 18px;
}

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

.ops-panel {
  min-width: 0;
  padding: 18px;
}

.ops-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.ops-panel-head.wide {
  align-items: flex-start;
}

.ops-panel-head p {
  margin: 0 0 5px;
  color: #d8752f;
  font-size: 13px;
  font-weight: 900;
}

.ops-panel h2 {
  font-size: 24px;
}

.ops-alert-list {
  display: grid;
  gap: 10px;
}

.ops-alert {
  display: grid;
  gap: 5px;
  padding: 13px;
  border-left: 5px solid #8bab34;
  border-radius: 8px;
  background: #f8f9ee;
}

.ops-alert strong {
  color: #243f25;
}

.ops-alert span {
  color: #687166;
  line-height: 1.45;
}

.ops-alert.red {
  border-color: #b13d28;
  background: #fff3ef;
}

.ops-alert.gold {
  border-color: #d8752f;
  background: #fff7e8;
}

.ops-alert.green {
  border-color: #4f6f1f;
}

.ops-pipeline {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  align-items: end;
  min-height: 180px;
}

.ops-pipeline-step {
  display: grid;
  grid-template-rows: 1fr auto;
  min-height: 160px;
  padding: 12px;
  border-radius: 8px;
  background: #f7f9ed;
}

.ops-pipeline-step div {
  display: grid;
  gap: 5px;
  align-content: start;
}

.ops-pipeline-step span,
.ops-pipeline-step small {
  color: #687166;
  font-size: 12px;
  font-weight: 800;
}

.ops-pipeline-step strong {
  color: #243f25;
  font-size: 22px;
}

.ops-pipeline-step i {
  display: block;
  width: 100%;
  border-radius: 8px 8px 0 0;
  background: #8bab34;
}

.ops-pipeline-step.success i,
.ops-chip.success {
  background: #4f6f1f;
}

.ops-pipeline-step.warning i,
.ops-chip.warning {
  background: #d8752f;
}

.ops-pipeline-step.danger i,
.ops-chip.danger {
  background: #b13d28;
}

.ops-pipeline-step.muted i,
.ops-chip.muted {
  background: #8a8f86;
}

.ops-revenue-card {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 16px;
}

.ops-revenue-main {
  display: grid;
  gap: 8px;
  align-content: center;
  min-height: 190px;
  padding: 18px;
  border-radius: 8px;
  color: #ffffff;
  background: linear-gradient(135deg, #243f25, #68783c);
}

.ops-revenue-main span,
.ops-revenue-main small {
  color: rgba(255, 255, 255, 0.78);
}

.ops-revenue-main strong {
  color: #ffffff;
  font-size: 34px;
  font-weight: 900;
}

.ops-revenue-card dl {
  display: grid;
  gap: 8px;
  margin: 0;
}

.ops-revenue-card dl div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border-radius: 8px;
  background: #f8f9ee;
}

.ops-revenue-card dt {
  color: #687166;
  font-weight: 800;
}

.ops-revenue-card dd {
  margin: 0;
  color: #243f25;
  font-weight: 900;
}

.ops-chart {
  display: grid;
  gap: 8px;
  min-height: 260px;
}

.ops-bar-row {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 82px;
  gap: 10px;
  align-items: center;
  min-height: 28px;
}

.ops-bar-row span {
  color: #687166;
  font-size: 12px;
  font-weight: 800;
}

.ops-bar-track {
  height: 13px;
  overflow: hidden;
  border-radius: 8px;
  background: #eef5d8;
}

.ops-bar-track i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #8bab34, #d8752f);
}

.ops-bar-row strong {
  color: #243f25;
  font-size: 12px;
  text-align: right;
}

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

.ops-activity-row {
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr) auto;
  gap: 8px 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid #e6e8d8;
  border-radius: 8px;
  background: #ffffff;
}

.ops-activity-row span {
  grid-row: span 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  border-radius: 8px;
  color: #4f6f1f;
  background: #eef5d8;
  font-size: 12px;
  font-weight: 900;
}

.ops-activity-row strong {
  min-width: 0;
  overflow: hidden;
  color: #243f25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ops-activity-row small {
  min-width: 0;
  overflow: hidden;
  color: #687166;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ops-activity-row time {
  grid-row: span 2;
  color: #8a8f86;
  font-size: 12px;
  font-weight: 800;
}

.ops-table-wrap {
  overflow-x: auto;
  border: 1px solid #d8e2bd;
  border-radius: 8px;
}

.ops-table {
  width: 100%;
  min-width: 820px;
  border-collapse: collapse;
  background: #ffffff;
}

.ops-table.premium {
  min-width: 1180px;
}

.ops-danger-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 12px 0;
  padding: 12px;
  border: 1px solid #e7c3b7;
  border-radius: 8px;
  background: #fff7f3;
}

.ops-danger-toolbar span {
  color: #8f321f;
  font-size: 13px;
  font-weight: 900;
}

.ops-danger-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ops-check {
  width: 18px;
  height: 18px;
  accent-color: #4f6f1f;
}

.ops-table th,
.ops-table td {
  padding: 12px;
  border-bottom: 1px solid #eceedd;
  color: #333a32;
  text-align: left;
  white-space: nowrap;
  font-size: 14px;
}

.ops-table th {
  color: #243f25;
  background: #eef5d8;
  font-weight: 900;
}

.ops-chip {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 9px;
  border-radius: 8px;
  color: #ffffff;
  background: #8bab34;
  font-size: 12px;
  font-weight: 900;
}

.ops-kanban {
  display: grid;
  grid-template-columns: repeat(5, minmax(190px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
  overflow-x: auto;
}

.ops-kanban-column {
  display: grid;
  align-content: start;
  gap: 10px;
  min-height: 260px;
  padding: 12px;
  border-radius: 8px;
  background: #f8f9ee;
}

.ops-kanban-column header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: #243f25;
}

.ops-kanban-column header span {
  color: #4f6f1f;
  font-weight: 900;
}

.ops-kanban-column > div {
  display: grid;
  gap: 8px;
}

.ops-job-card {
  display: grid;
  gap: 4px;
  min-height: 86px;
  padding: 10px;
  border: 1px solid #e6e8d8;
  border-radius: 8px;
  background: #ffffff;
}

.ops-job-card strong {
  color: #243f25;
}

.ops-job-card span,
.ops-job-card small,
.ops-empty {
  color: #687166;
  line-height: 1.45;
}

.ops-empty {
  margin: 0;
  padding: 14px;
  border-radius: 8px;
  background: #f8f9ee;
  text-align: center;
}

@media (max-width: 1180px) {
  .ops-app {
    grid-template-columns: 1fr;
  }

  .ops-sidebar {
    position: static;
    grid-template-columns: auto 1fr auto;
    grid-template-rows: auto;
    align-items: center;
    height: auto;
  }

  .ops-nav {
    display: flex;
    flex-wrap: wrap;
  }

  .ops-commandbar,
  .ops-controls {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 820px) {
  .ops-main {
    padding: 16px;
  }

  .ops-sidebar {
    grid-template-columns: 1fr;
  }

  .ops-grid.two,
  .ops-revenue-card,
  .ops-activity {
    grid-template-columns: 1fr;
  }

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

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

  .ops-panel-head,
  .ops-panel-head.wide {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  .ops-login-screen {
    padding: 18px;
  }

  .ops-login-card,
  .ops-commandbar,
  .ops-panel {
    padding: 16px;
  }

  .ops-login-card h1,
  .ops-commandbar h1 {
    font-size: 30px;
  }

  .ops-metrics,
  .ops-pipeline {
    grid-template-columns: 1fr;
  }

  .ops-controls .button,
  .ops-search {
    width: 100%;
  }

  .ops-activity-row {
    grid-template-columns: 1fr;
  }

  .ops-activity-row span,
  .ops-activity-row time {
    grid-row: auto;
    justify-self: start;
  }
}


.ops-tax-head {
  display: grid;
}

.ops-tax-principle {
  background:
    linear-gradient(135deg, rgba(238, 245, 216, 0.92), rgba(255, 253, 248, 0.98)),
    #fffdf8;
}

.ops-tax-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.ops-tax-controls label {
  display: grid;
  gap: 6px;
  color: #4f6f1f;
  font-size: 12px;
  font-weight: 900;
}

.ops-tax-controls select,
.ops-tax-input,
.ops-expense-form input,
.ops-expense-form select {
  min-height: 40px;
  border: 1px solid #d8e2bd;
  border-radius: 8px;
  color: #1e241f;
  background: #ffffff;
  font: inherit;
  font-weight: 800;
}

.ops-tax-controls select {
  min-width: 170px;
  padding: 0 12px;
}

.ops-tax-note {
  margin: -2px 0 14px;
  color: #687166;
  line-height: 1.55;
}

.ops-tax-guide,
.ops-tax-checks {
  display: grid;
  gap: 10px;
}

.ops-tax-guide div {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 12px;
  padding: 12px;
  border: 1px solid #d8e2bd;
  border-radius: 8px;
  background: #ffffff;
}

.ops-tax-guide strong {
  color: #243f25;
  font-weight: 900;
}

.ops-tax-guide span {
  color: #687166;
  line-height: 1.55;
}

.ops-table.tax {
  min-width: 1280px;
}

.ops-table.expense {
  min-width: 1120px;
}

.ops-expense-manager {
  display: grid;
  gap: 14px;
  margin-bottom: 18px;
  padding: 16px;
  border: 1px solid #d8e2bd;
  border-radius: 8px;
  background: #fbfdf4;
}

.ops-expense-form {
  display: grid;
  grid-template-columns: 150px 190px 1fr 180px 150px 1.2fr auto;
  gap: 10px;
  align-items: end;
}

.ops-expense-form label {
  display: grid;
  gap: 6px;
  color: #4f6f1f;
  font-size: 12px;
  font-weight: 900;
}

.ops-expense-form input,
.ops-expense-form select {
  width: 100%;
  padding: 0 10px;
}

.ops-expense-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ops-expense-summary span {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  min-height: 32px;
  padding: 0 10px;
  border-radius: 999px;
  background: #eef5d8;
  color: #566e25;
  font-size: 12px;
  font-weight: 800;
}

.ops-expense-summary strong {
  color: #20251c;
}

.ops-expense-sync {
  margin: 0;
  color: #4f6f1f;
  font-size: 12px;
  font-weight: 900;
}

.ops-expense-sync.is-warning {
  color: #b13d28;
}

.ops-tax-expense-cell {
  display: grid;
  gap: 4px;
}

.ops-tax-expense-cell strong {
  color: #1e241f;
}

.ops-tax-expense-cell span {
  color: #687166;
  font-size: 12px;
  line-height: 1.4;
}

.ops-delete-button {
  min-height: 34px;
  padding: 0 12px;
  border: 0;
  border-radius: 8px;
  background: #f3e6dd;
  color: #a14625;
  font: inherit;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

.ops-tax-input {
  width: 122px;
  padding: 0 10px;
  text-align: right;
}

.ops-negative {
  color: #b13d28 !important;
  font-weight: 900;
}

@media (max-width: 720px) {
  .ops-tax-guide div {
    grid-template-columns: 1fr;
  }

  .ops-tax-controls,
  .ops-tax-controls label,
  .ops-tax-controls select {
    width: 100%;
  }

  .ops-expense-form {
    grid-template-columns: 1fr;
  }
}
