:root {
  --blue: #0866e8;
  --blue-dark: #0559cf;
  --ink: #0f1117;
  --muted: #5f6673;
  --border: #cfd5dd;
  --line: #d9dde3;
  --wash: #f7f8fa;
  --white: #ffffff;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: var(--white);
  font-family: "Segoe UI", Helvetica, Arial, sans-serif;
}

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

.mobile-app-banner,
.mobile-language,
.mobile-auth-shell {
  display: none;
}

.shell {
  min-height: calc(100vh - 94px);
  display: grid;
  grid-template-columns: minmax(0, 1.88fr) minmax(380px, 1fr);
  border-bottom: 1px solid var(--line);
}

.showcase {
  position: relative;
  min-height: 760px;
  overflow: hidden;
}

.logo {
  position: absolute;
  top: 48px;
  left: 46px;
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--blue);
  font-size: 48px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0;
}

.hero-copy {
  position: absolute;
  left: 40px;
  bottom: 54px;
  z-index: 4;
}

h1 {
  margin: 0;
  font-size: clamp(4rem, 4.2vw, 5.2rem);
  line-height: 0.98;
  letter-spacing: 0;
  font-weight: 760;
}

h1 span {
  color: #1a73e8;
}

.visual-stack {
  position: absolute;
  inset: 0 0 0 360px;
  min-width: 610px;
}

.reference-art {
  position: absolute;
  top: 76px;
  left: 48px;
  width: 770px;
  max-width: none;
  display: block;
}

.story-card,
.post-card {
  position: absolute;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 6px 22px rgba(25, 32, 44, 0.2);
}

.story-card img,
.post-card img,
.avatar {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.story-main {
  top: 86px;
  left: 388px;
  width: 322px;
  height: 568px;
  border-radius: 22px;
  z-index: 3;
}

.story-back {
  top: 214px;
  left: 152px;
  width: 370px;
  height: 286px;
  border-radius: 18px;
  z-index: 1;
  filter: saturate(0.92);
}

.post-card {
  top: 438px;
  left: 218px;
  width: 238px;
  height: 348px;
  padding: 58px 18px 18px;
  border-radius: 18px;
  z-index: 4;
}

.post-card img {
  height: 202px;
  border-radius: 10px;
}

.post-card span {
  display: block;
  height: 17px;
  margin-top: 16px;
  border-radius: 999px;
  background: #e9ecef;
}

.post-card span + span {
  width: 68%;
  margin-top: 12px;
}

.mini-icon {
  position: absolute;
  top: 17px;
  left: 18px;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: #fff;
  background: var(--blue);
  font-size: 15px;
  font-weight: 800;
}

.story-back .mini-icon {
  background: rgba(255, 255, 255, 0.8);
  color: #9aa2af;
}

.progress-line {
  position: absolute;
  top: 24px;
  left: 24px;
  right: 24px;
  height: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.5);
  z-index: 2;
}

.progress-line::before {
  content: "";
  display: block;
  width: 45%;
  height: 100%;
  border-radius: inherit;
  background: white;
}

.time-pill {
  position: absolute;
  top: 66px;
  right: -31px;
  min-width: 108px;
  height: 44px;
  display: flex;
  align-items: center;
  gap: 7px;
  justify-content: center;
  border-radius: 12px;
  color: white;
  background: #6f61f4;
  font-size: 19px;
  font-weight: 650;
  z-index: 5;
}

.time-pill span {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: white;
  position: relative;
}

.time-pill span::before,
.time-pill span::after {
  content: "";
  position: absolute;
  left: 12px;
  top: 7px;
  width: 2px;
  height: 8px;
  border-radius: 2px;
  background: #6f61f4;
}

.time-pill span::after {
  top: 13px;
  transform: rotate(-45deg);
  transform-origin: top center;
}

.story-dots {
  position: absolute;
  left: 55px;
  bottom: 25px;
  display: flex;
  gap: 12px;
}

.story-dots i {
  width: 34px;
  height: 34px;
  border: 4px solid white;
  border-radius: 50%;
}

.avatar {
  position: absolute;
  top: 642px;
  left: 402px;
  width: 180px;
  height: 180px;
  border: 7px solid var(--blue);
  border-radius: 50%;
  box-shadow:
    0 0 0 6px white,
    0 6px 18px rgba(20, 32, 50, 0.18);
  z-index: 5;
}

.heart-badge {
  position: absolute;
  top: 508px;
  left: 686px;
  width: 92px;
  height: 92px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff4aa2, #ff092f);
  box-shadow: 0 8px 20px rgba(255, 9, 47, 0.28);
  z-index: 6;
}

.heart-badge::before,
.heart-badge::after {
  content: "";
  position: absolute;
  width: 31px;
  height: 50px;
  top: 25px;
  left: 29px;
  border-radius: 31px 31px 0 0;
  background: white;
  transform: rotate(-45deg);
  transform-origin: 0 100%;
}

.heart-badge::after {
  left: 28px;
  transform: rotate(45deg);
  transform-origin: 100% 100%;
}

.emoji-badge {
  position: absolute;
  top: 133px;
  left: 102px;
  width: 70px;
  height: 70px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #141414;
  background: radial-gradient(circle at 34% 28%, #ffe96b 0 18%, #ffc832 48%, #ff9b21 100%);
  font-size: 22px;
  font-weight: 850;
  transform: rotate(-17deg);
  box-shadow: 0 9px 20px rgba(20, 20, 20, 0.12);
  z-index: 5;
}

.login-area {
  min-height: 760px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-left: 1px solid var(--line);
  padding: 48px 52px;
}

.login-form {
  width: min(100%, 545px);
  display: grid;
  gap: 14px;
}

h2 {
  margin: 0 0 14px;
  font-size: 17px;
  line-height: 1.2941;
  font-weight: 700;
  letter-spacing: 0;
}

.school-tag {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.field {
  display: block;
  position: relative;
}

input {
  width: 100%;
  height: 60px;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px 16px 7px;
  color: #1d2733;
  background: #fff;
  font: inherit;
  font-size: 16px;
  outline: none;
}

input::placeholder {
  color: transparent;
}

input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 2px rgba(8, 102, 232, 0.14);
}

.field span {
  position: absolute;
  left: 16px;
  top: 20px;
  max-width: calc(100% - 32px);
  color: #586274;
  font-size: 16px;
  line-height: 1.15;
  pointer-events: none;
  transform-origin: left top;
  transition:
    top 140ms ease,
    transform 140ms ease,
    color 140ms ease;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

input:focus + span,
input:not(:placeholder-shown) + span {
  top: 7px;
  transform: scale(0.82);
}

input:focus + span {
  color: #2c5f9f;
}

button {
  width: 100%;
  height: 44px;
  border-radius: 999px;
  border: 0;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.primary-button {
  margin-top: 12px;
  color: white;
  background: var(--blue);
}

.primary-button:hover {
  background: var(--blue-dark);
}

.outline-button {
  margin-top: 48px;
  color: #075fd6;
  background: white;
  border: 1px solid #075fd6;
}

.forgot-link {
  justify-self: center;
  margin-top: 3px;
  color: #0a0b0f;
  font-weight: 650;
  font-size: 15px;
}

.forgot-link:hover,
.footer a:hover {
  text-decoration: underline;
}

.status {
  min-height: 18px;
  margin: 0;
  text-align: center;
  color: #147b29;
  font-size: 13px;
}

.parent-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin-top: 12px;
  color: #17202d;
  font-size: 16px;
}

.parent-mark span {
  width: 21px;
  height: 12px;
  border: 3px solid var(--blue);
  border-radius: 999px;
  transform: rotate(-12deg);
}

.footer {
  min-height: 92px;
  padding: 17px 28px 14px;
  color: #566174;
  background: white;
  font-size: 12px;
}

.footer-inner {
  width: min(1070px, 100%);
  margin: 0 auto;
  display: grid;
  gap: 8px;
}

.footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 8px 16px;
  line-height: 1.35;
}

.copyright {
  margin: 3px 0 0;
  line-height: 1.35;
}

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

  .showcase {
    min-height: 660px;
  }

  .login-area {
    min-height: auto;
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .visual-stack {
    left: 260px;
    transform: scale(0.82);
    transform-origin: top left;
  }
}

@media (max-width: 760px) {
  body:not(.dashboard-page) {
    min-height: 100vh;
    background: #fff;
  }

  .mobile-app-banner {
    min-height: 71px;
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 15px 18px;
    border-bottom: 1px solid #cfd5dd;
    color: #0064e0;
    font-family: Helvetica, Arial, sans-serif;
    font-size: 14px;
    line-height: 1.2;
  }

  .mobile-app-banner a {
    max-width: 290px;
  }

  .mobile-download-icon {
    position: relative;
    width: 19px;
    height: 19px;
    flex: 0 0 auto;
  }

  .mobile-download-icon::before {
    content: "";
    position: absolute;
    left: 8px;
    top: 2px;
    width: 3px;
    height: 11px;
    border-radius: 2px;
    background: #0064e0;
  }

  .mobile-download-icon::after {
    content: "";
    position: absolute;
    left: 3px;
    top: 7px;
    width: 11px;
    height: 11px;
    border-left: 3px solid #0064e0;
    border-bottom: 3px solid #0064e0;
    transform: rotate(-45deg);
  }

  .mobile-language {
    height: 38px;
    display: grid;
    place-items: center;
    color: #4b5563;
    font-family: Helvetica, Arial, sans-serif;
    font-size: 14px;
  }

  .shell {
    min-height: calc(100vh - 109px);
    display: grid;
    grid-template-columns: 1fr;
    border-bottom: 0;
  }

  .showcase {
    min-height: 266px;
    overflow: visible;
  }

  .logo {
    top: 91px;
    left: 50%;
    width: 59px;
    height: 59px;
    transform: translateX(-50%);
    font-size: 48px;
  }

  .hero-copy {
    display: none;
  }

  .visual-stack {
    display: none;
  }

  .login-area {
    min-height: auto;
    align-items: stretch;
    border: 0;
    padding: 0 12px 12px;
  }

  .login-form {
    width: 100%;
    min-height: calc(100vh - 375px);
    display: flex;
    flex-direction: column;
    gap: 13px;
  }

  .login-form h2 {
    display: none;
  }

  input {
    height: 64px;
    border-radius: 16px;
    padding: 22px 16px 8px;
    font-size: 16px;
  }

  .field span {
    top: 23px;
    font-size: 16px;
  }

  input:focus + span,
  input:not(:placeholder-shown) + span {
    top: 9px;
    transform: scale(0.8);
  }

  button {
    height: 43px;
  }

  .primary-button {
    margin-top: 1px;
  }

  .status {
    min-height: 0;
    font-size: 12px;
  }

  .forgot-link {
    margin-top: 4px;
    color: #0a0b0f;
    font-size: 16px;
    font-weight: 700;
    margin-top: -10px;
        text-align: center;
        color: #0a0b0f;
        font-size: 14px;
        margin-bottom: 60px;
        font-weight: 600;
        display: inline;
        font-size: 15.2px;
        /* font-family: "Optimistic 95"; */
        white-space: pre-wrap;
        overflow-wrap: break-word;
  }

  .outline-button {
    margin-top: auto;
    height: 44px;
    border-radius: 999px;
    font-size: 15px;
    text-align: center;
    justify-content: center;
    align-items: center;
    padding: 10px 0px;
  }

  .parent-mark {
    margin-top: 7px;
    padding-bottom: 0;
    font-size: 17px;
  }

  .parent-mark span {
    width: 20px;
    height: 12px;
  }

  .footer {
    display: none;
  }

  .auth2-page .group-topbar,
  .auth2-page .group-stage {
    display: none;
  }

  .auth2-page .mobile-auth-shell {
    min-height: calc(100vh - 109px);
    display: grid;
    grid-template-columns: 1fr;
    border-bottom: 0;
  }

  .mobile-logo-wrap {
    position: relative;
    min-height: 146px;
  }

  .mobile-auth-logo {
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
  }

  .mobile-auth-area {
    min-height: auto;
    align-items: stretch;
    border: 0;
    padding: 0 12px 12px;
  }
}

.auth2-page {
  min-height: 100vh;
  overflow-y: auto;
  background: #f0f2f5;
  color: #1c1e21;
  font-family: Helvetica, Arial, sans-serif;
}

.group-topbar {
  position: fixed;
  inset: 0 0 auto;
  z-index: 4;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 32px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}

.group-wordmark {
  color: rgba(24, 119, 242, 0.22);
  font-size: 28px;
  line-height: 1;
  font-weight: 800;
}

.group-login {
  display: flex;
  align-items: center;
  gap: 8px;
}

.scan-icon {
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 6px;
  background:
    linear-gradient(#b8d2fa, #b8d2fa) 5px 5px / 7px 2px no-repeat,
    linear-gradient(#b8d2fa, #b8d2fa) 5px 5px / 2px 7px no-repeat,
    linear-gradient(#b8d2fa, #b8d2fa) 16px 5px / 7px 2px no-repeat,
    linear-gradient(#b8d2fa, #b8d2fa) 21px 5px / 2px 7px no-repeat,
    linear-gradient(#b8d2fa, #b8d2fa) 5px 21px / 7px 2px no-repeat,
    linear-gradient(#b8d2fa, #b8d2fa) 5px 16px / 2px 7px no-repeat,
    linear-gradient(#b8d2fa, #b8d2fa) 16px 21px / 7px 2px no-repeat,
    linear-gradient(#b8d2fa, #b8d2fa) 21px 16px / 2px 7px no-repeat;
}

.group-login input {
  width: 188px;
  height: 40px;
  border-radius: 5px;
  border: 1px solid #dddfe2;
  padding: 0 12px;
  color: #606770;
  background: rgba(255, 255, 255, 0.75);
  font-size: 15px;
}

.group-login input::placeholder {
  color: rgba(96, 103, 112, 0.36);
}

.group-login button:not(.scan-icon) {
  width: auto;
  height: 40px;
  padding: 0 14px;
  border-radius: 6px;
  color: white;
  background: rgba(24, 119, 242, 0.27);
  font-size: 14px;
  font-weight: 700;
}

.group-login a {
  color: rgba(24, 119, 242, 0.32);
  font-size: 14px;
  font-weight: 600;
}

.group-stage {
  position: relative;
  min-height: 995px;
  padding-top: 56px;
}

.group-stage::before {
  content: "";
  position: fixed;
  inset: 56px 0 0;
  z-index: 2;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(0.5px);
}

.group-shell {
  width: 908px;
  margin: 0 auto;
  opacity: 0.28;
  filter: grayscale(0.25);
}

.group-cover {
  height: 350px;
  overflow: hidden;
  border-radius: 0 0 6px 6px;
  background: #dbe4ed;
}

.group-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 28%;
  filter: blur(1px) saturate(0.7);
  transform: scale(1.03);
}

.group-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  padding: 26px 32px 22px;
  background: white;
}

.group-header h1 {
  margin: 0 0 4px;
  font-size: 28px;
  line-height: 1.12;
  font-weight: 800;
}

.group-header p,
.post-head p,
.group-sidebar p {
  margin: 0;
  color: #65676b;
  font-size: 15px;
}

.group-header button {
  width: auto;
  height: 36px;
  padding: 0 18px;
  border-radius: 6px;
  background: #e4e6eb;
  color: #1c1e21;
  font-size: 14px;
}

.group-tabs {
  display: flex;
  gap: 34px;
  padding: 0 32px;
  height: 58px;
  align-items: center;
  border-top: 1px solid #e4e6eb;
  background: white;
  color: #65676b;
  font-size: 15px;
  font-weight: 700;
}

.group-content {
  display: grid;
  grid-template-columns: 500px 1fr;
  gap: 14px;
  padding: 14px 12px;
}

.group-post,
.group-sidebar {
  border-radius: 8px;
  background: white;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.group-post {
  overflow: hidden;
}

.post-head {
  display: flex;
  gap: 10px;
  padding: 14px;
}

.post-head span {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #d8dce2;
}

.post-head strong {
  display: block;
  margin-top: 2px;
}

.video-tile {
  position: relative;
  height: 330px;
  overflow: hidden;
  background: #ccd0d5;
}

.video-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-tile i {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 72px;
  height: 72px;
  transform: translate(-50%, -50%);
  border: 3px solid white;
  border-radius: 50%;
}

.video-tile i::before {
  content: "";
  position: absolute;
  left: 28px;
  top: 21px;
  border-left: 22px solid white;
  border-top: 14px solid transparent;
  border-bottom: 14px solid transparent;
}

.group-sidebar {
  padding: 18px;
}

.group-sidebar h2 {
  margin: 0 0 16px;
  font-size: 20px;
}

.group-sidebar p + p {
  margin-top: 18px;
}

.group-sidebar div {
  height: 92px;
  margin-top: 24px;
  border-radius: 8px;
  background: #f0f2f5;
}

.gate-modal {
  position: fixed;
  left: 50%;
  top: 246px;
  z-index: 3;
  width: 800px;
  min-height: 499px;
  display: grid;
  grid-template-columns: 1fr 1px 1fr;
  column-gap: 0;
  padding: 66px 32px 68px;
  transform: translateX(-50%);
  border-radius: 7px;
  background: white;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.2), 0 2px 4px rgba(0, 0, 0, 0.12);
}

.gate-modal::before {
  content: "";
  grid-column: 2;
  grid-row: 1;
  width: 1px;
  min-height: 363px;
  background: #ccd0d5;
}

.modal-close {
  position: absolute;
  right: 16px;
  top: 12px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: #e4e6eb;
}

.modal-close::before,
.modal-close::after {
  content: "";
  position: absolute;
  left: 10px;
  top: 17px;
  width: 16px;
  height: 2px;
  border-radius: 999px;
  background: #6b7280;
}

.modal-close::before {
  transform: rotate(45deg);
}

.modal-close::after {
  transform: rotate(-45deg);
}

.gate-form {
  grid-column: 1;
  width: 328px;
  justify-self: center;
  display: grid;
  align-content: start;
}

.gate-form h2 {
  margin: 0 0 19px;
  text-align: center;
  font-size: 28px;
  line-height: 1.15;
  font-weight: 800;
}

.gate-form label {
  position: relative;
  display: block;
}

.gate-form label + label {
  margin-top: 12px;
}

.gate-form label span {
  position: absolute;
  left: 0;
  top: 19px;
  width: 100%;
  color: #606770;
  font-size: 16px;
  line-height: 1.2;
  text-align: center;
  pointer-events: none;
  transform-origin: left top;
  transition:
    left 140ms ease,
    top 140ms ease,
    transform 140ms ease,
    color 140ms ease,
    text-align 140ms ease;
}

.gate-form input {
  height: 58px;
  border-radius: 5px;
  border-color: #ccd0d5;
  padding: 18px 16px 6px;
  text-align: left;
  font-size: 16px;
}

.gate-form input::placeholder {
  color: transparent;
}

.gate-form input:focus + span,
.gate-form input:not(:placeholder-shown) + span {
  left: 16px;
  top: 9px;
  width: calc(100% - 32px);
  color: #1877f2;
  text-align: left;
  transform: scale(0.75);
}

.gate-primary {
  height: 40px;
  margin-top: 18px;
  border-radius: 5px;
  color: white;
  background: #1877f2;
  font-size: 17px;
}

.gate-status {
  min-height: 14px;
  margin: 6px 0 4px;
  color: #147b29;
  text-align: center;
  font-size: 12px;
}

.gate-form > a {
  justify-self: center;
  color: #1877f2;
  font-size: 16px;
  font-weight: 700;
}

.gate-divider {
  position: relative;
  height: 42px;
  display: grid;
  place-items: center;
  color: #606770;
  font-size: 15px;
}

.gate-divider::before {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  top: 21px;
  height: 1px;
  background: #ccd0d5;
}

.gate-divider span {
  position: relative;
  z-index: 1;
  padding: 0 12px;
  background: white;
}

.gate-create {
  justify-self: center;
  width: 228px;
  height: 40px;
  border-radius: 5px;
  color: white;
  background: #31a24c;
  font-size: 16px;
}

.gate-qr {
  grid-column: 3;
  width: 260px;
  justify-self: center;
  display: grid;
  justify-items: center;
  align-content: center;
  text-align: center;
}

.qr-image {
  width: 194px;
  height: 194px;
  display: block;
  object-fit: contain;
  border-radius: 18px;
}

.gate-qr p {
  width: 210px;
  margin: 28px 0 6px;
  color: #1c1e21;
  font-size: 13px;
  line-height: 1.2;
}

.gate-qr strong {
  font-size: 17px;
}

@media (max-width: 900px) {
  .group-topbar {
    padding: 8px 16px;
  }

  .group-login input,
  .group-login a,
  .scan-icon {
    display: none;
  }

  .group-shell {
    width: 100%;
  }

  .gate-modal {
    top: 88px;
    width: calc(100% - 32px);
    min-height: 0;
    grid-template-columns: 1fr;
    padding: 56px 20px 30px;
  }

  .gate-modal::before,
  .gate-qr {
    display: none;
  }

  .gate-form {
    width: min(328px, 100%);
  }
}

.dashboard-page {
  min-height: 100vh;
  background: #f0f2f5;
  color: #1c1e21;
  font-family: Helvetica, Arial, sans-serif;
}

.dashboard-shell {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 36px 0 48px;
}

.dashboard-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.dashboard-header p {
  margin: 0 0 6px;
  color: #1877f2;
  font-size: 14px;
  font-weight: 700;
}

.dashboard-header h1 {
  margin: 0;
  font-size: 32px;
  line-height: 1.1;
}

.dashboard-header a,
.table-title button {
  display: inline-grid;
  place-items: center;
  min-height: 40px;
  padding: 0 16px;
  border: 0;
  border-radius: 6px;
  color: white;
  background: #1877f2;
  font-size: 14px;
  font-weight: 700;
}

.table-actions {
  display: flex;
  gap: 10px;
}

.table-title .danger-button {
  border-color: #d31130;
  color: #d31130;
  background: #fff;
}

.table-title .danger-button:hover {
  background: #fff0f2;
}

.table-title button:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 14px;
}

.stats-grid article,
.settings-card,
.table-card {
  border-radius: 8px;
  background: white;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.stats-grid article {
  padding: 18px;
}

.stats-grid span {
  display: block;
  margin-bottom: 8px;
  color: #65676b;
  font-size: 13px;
  font-weight: 700;
}

.stats-grid strong {
  font-size: 24px;
}

.settings-card {
  display: grid;
  grid-template-columns: minmax(220px, 0.7fr) minmax(320px, 1.3fr);
  gap: 18px;
  align-items: end;
  margin-bottom: 14px;
  padding: 18px;
}

.settings-card h2 {
  margin: 0 0 6px;
  font-size: 18px;
}

.settings-card p {
  margin: 0;
  color: #65676b;
  font-size: 13px;
}

.settings-card form {
  display: flex;
  gap: 10px;
}

.settings-card input {
  height: 40px;
  min-width: 0;
  border-radius: 6px;
  padding: 0 12px;
  font-size: 14px;
}

.settings-card button {
  width: auto;
  height: 40px;
  padding: 0 16px;
  border-radius: 6px;
  color: white;
  background: #1877f2;
  font-size: 14px;
}

.route-card {
  align-items: start;
}

.route-card form {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
  align-items: end;
}

.route-card label {
  display: grid;
  gap: 6px;
  color: #65676b;
  font-size: 12px;
  font-weight: 700;
}

.settings-status {
  grid-column: 2;
  color: #147b29;
}

.table-card {
  overflow: hidden;
}

.table-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px;
  border-bottom: 1px solid #e4e6eb;
}

.table-title h2 {
  margin: 0;
  font-size: 18px;
}

.reset-status {
  min-height: 18px;
  margin: -8px 18px 12px;
  color: #65676b;
  font-size: 13px;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 860px;
}

th,
td {
  padding: 13px 16px;
  border-bottom: 1px solid #e4e6eb;
  text-align: left;
  vertical-align: top;
  font-size: 13px;
}

th {
  color: #65676b;
  background: #f7f8fa;
  font-weight: 700;
}

td code {
  display: inline-block;
  max-width: 320px;
  overflow: hidden;
  color: #344054;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 720px) {
  .dashboard-header,
  .table-title,
  .settings-card,
  .settings-card form {
    align-items: flex-start;
    flex-direction: column;
  }

  .settings-card {
    display: flex;
  }

  .settings-card form,
  .settings-card input {
    width: 100%;
  }

  .route-card form {
    grid-template-columns: 1fr;
  }

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