:root {
  --bg: #f6fbfe;
  --bg-soft: #edf6fb;
  --card-white: #ffffff;
  --card-white-soft: #f7fbfd;
  --panel: rgba(255, 255, 255, 0.92);
  --panel-solid: #ffffff;
  --text: #16344a;
  --text-strong: #0f2637;
  --text-soft: #5f7e92;
  --line: rgba(18, 86, 124, 0.12);
  --line-strong: rgba(18, 86, 124, 0.2);
  --primary: #1577b7;
  --primary-soft: #dceffc;
  --accent: #ffd24d;
  --danger: #d9485f;
  --success: #1d8f63;
  --warning: #e38d1c;
  --shadow: 0 8px 22px rgba(15, 54, 82, 0.08);
  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --content-width: 460px;
  --font-title: "Avenir Next Condensed", "Arial Narrow", "Apple SD Gothic Neo", sans-serif;
  --font-body: "SUIT Variable", "Pretendard Variable", "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
}

body[data-theme="night"] {
  --bg: #0b2234;
  --bg-soft: #0f2a3f;
  --panel: rgba(11, 33, 50, 0.9);
  --panel-solid: #12314a;
  --text: #f1f8fd;
  --text-strong: #ffffff;
  --text-soft: #a5c0d1;
  --line: rgba(160, 212, 244, 0.11);
  --line-strong: rgba(160, 212, 244, 0.2);
  --primary: #72c9ff;
  --primary-soft: rgba(101, 171, 221, 0.16);
  --accent: #ffd966;
  --shadow: 0 10px 26px rgba(0, 0, 0, 0.2);
}

* { box-sizing: border-box; }
html, body {
  margin: 0;
  min-height: 100%;
  background:
    linear-gradient(180deg, rgba(14, 86, 126, 0.16), rgba(14, 86, 126, 0.08)),
    url("assets/background-v2.png") center top / cover no-repeat,
    var(--bg);
  background-attachment: fixed, fixed, fixed;
  color: var(--text);
  font-family: var(--font-body);
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: transparent;
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg width='220' height='220' viewBox='0 0 220 220' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M-5 112C27 91 48 91 80 112C112 133 133 133 165 112C197 91 218 91 250 112' stroke='%23ffffff' stroke-opacity='0.08' stroke-width='2'/%3E%3C/svg%3E") repeat;
  opacity: 0.08;
}
button, input, textarea, select { font: inherit; }
button { border: 0; cursor: pointer; }

.app-shell {
  max-width: var(--content-width);
  margin: 0 auto;
  min-height: 100vh;
  padding-bottom: calc(94px + env(safe-area-inset-bottom));
}

.login-screen { min-height: 100vh; padding: 18px; display: grid; place-items: center; position: relative; }
.login-screen.romance-mode::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at top, rgba(33, 57, 95, 0.42), transparent 42%),
    linear-gradient(180deg, rgba(5, 20, 36, 0.52), rgba(4, 15, 29, 0.74));
  pointer-events: none;
  z-index: 0;
}
.login-screen > * {
  position: relative;
  z-index: 1;
}
.login-card {
  width: 100%;
  max-width: 380px;
  background: rgba(33, 47, 59, 0.92);
  border: 1px solid rgba(132, 208, 235, 0.26);
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 22px 40px rgba(10, 31, 47, 0.22);
  backdrop-filter: blur(14px);
}
.login-hero {
  min-height: 210px;
  padding: 18px 18px 16px;
  color: #fff;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 6px;
}
.login-hero > * {
  position: relative;
  z-index: 2;
}
.media-backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
.media-backdrop video,
.media-backdrop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  filter: saturate(0.92) brightness(0.72);
}
.login-hero .media-backdrop video,
.login-hero .media-backdrop img {
  object-position: center 78%;
}
.hero-mini .media-backdrop video,
.hero-mini .media-backdrop img {
  object-position: center 72%;
}
.hero-mini-compact .media-backdrop video,
.hero-mini-compact .media-backdrop img {
  object-position: center center;
  transform: scale(1.08);
  filter: saturate(0.94) brightness(0.74);
}
.media-backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(7, 34, 54, 0.5), rgba(7, 34, 54, 0.78)),
    linear-gradient(90deg, rgba(5, 26, 43, 0.42), rgba(5, 26, 43, 0.16));
}
.hero-brandline {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}
.hero-title-image-top {
  width: min(100%, 250px);
  max-width: 80%;
  object-fit: contain;
  filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.18));
}
.hero-title-image-main {
  width: min(100%, 330px);
  object-fit: contain;
  filter: drop-shadow(0 4px 14px rgba(0, 0, 0, 0.34));
}
.hero-sub {
  margin: 4px 0 0;
  font-size: 19px;
  font-weight: 700;
  color: rgba(255,255,255,0.96);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.28);
  letter-spacing: -0.01em;
}
.login-body { padding: 18px; }
.page-title { margin: 0 0 4px; font-size: 22px; font-weight: 800; color: #f4fbff; }
.page-desc { margin: 0 0 14px; font-size: 13px; color: rgba(219, 235, 244, 0.82); line-height: 1.5; }
.form-grid { display: grid; gap: 10px; }
.field { display: grid; gap: 6px; }
.field label { font-size: 12px; color: var(--text-soft); font-weight: 700; }
.login-body .field label { color: rgba(222, 236, 244, 0.82); }
.input, .textarea, .select {
  width: 100%;
  border: 1px solid rgba(132, 208, 235, 0.18);
  border-radius: 12px;
  background: rgba(245, 251, 255, 0.96);
  color: #16344a;
  outline: none;
  padding: 12px 13px;
}
.input:focus, .textarea:focus, .select:focus {
  border-color: rgba(21, 119, 183, 0.44);
  box-shadow: 0 0 0 3px rgba(21, 119, 183, 0.08);
}
.textarea { resize: vertical; min-height: 90px; }
.checkbox-row, .meta-row, .chip-row, .toolbar, .inline-list { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.checkbox-row { justify-content: space-between; }
.checkbox { display: inline-flex; gap: 7px; align-items: center; font-size: 12px; color: var(--text-soft); }

.cta, .secondary, .ghost, .tab-button, .seg-button, .link-button, .tiny-button {
  border-radius: 12px;
  padding: 11px 13px;
  font-weight: 800;
}
.cta { background: var(--primary); color: #fff; }
.secondary { background: var(--primary-soft); color: var(--primary); }
.ghost { background: #f4faff; color: #1a5f83; border: 1px solid rgba(95, 176, 214, 0.34); }
.link-button { background: transparent; color: var(--text-soft); padding: 0; font-size: 12px; }
.tiny-button { background: var(--bg-soft); color: var(--text); padding: 8px 10px; font-size: 12px; }
.helper, .error-box, .flash {
  margin-top: 12px;
  border-radius: 14px;
  padding: 12px 13px;
  font-size: 12px;
  line-height: 1.5;
}
.helper {
  background: #f4faff;
  color: #21465d;
  border: 1px solid rgba(95, 176, 214, 0.18);
}
.helper strong {
  color: #17405a;
  background: #e6f3fb;
  border-radius: 999px;
  padding: 2px 8px;
  font-weight: 800;
}
.login-body .helper { background: rgba(105, 118, 95, 0.6); color: #f3f8f6; }
.login-body .helper strong {
  background: transparent;
  color: inherit;
  padding: 0;
}
.error-box { background: rgba(217, 72, 95, 0.12); color: #a62d40; }
.flash { background: rgba(29, 143, 99, 0.14); color: var(--success); }

.main-screen {
  padding: 14px 14px 0;
  min-height: 100vh;
  position: relative;
}
.main-screen::before {
  content: "";
  position: fixed;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 29, 44, 0.16), rgba(8, 29, 44, 0.26));
  z-index: 0;
  pointer-events: none;
}
.main-screen.romance-mode::before {
  background:
    radial-gradient(circle at top, rgba(34, 60, 97, 0.28), transparent 38%),
    linear-gradient(180deg, rgba(4, 18, 34, 0.4), rgba(4, 15, 29, 0.62));
}
.main-screen > * {
  position: relative;
  z-index: 1;
}
.romance-hearts {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}
.romance-heart {
  position: absolute;
  bottom: -12vh;
  color: rgba(255, 182, 203, 0.92);
  text-shadow: 0 6px 18px rgba(255, 155, 190, 0.16);
  animation: romanceFloat linear infinite;
  opacity: 0.72;
}
.romance-heart:nth-child(odd) { color: rgba(255, 194, 214, 0.8); }
.romance-heart:nth-child(3n) { color: rgba(255, 171, 202, 0.72); }
.romance-heart-1 { left: 4%; font-size: 18px; animation-duration: 10s; animation-delay: -2s; }
.romance-heart-2 { left: 9%; font-size: 26px; animation-duration: 13s; animation-delay: -7s; }
.romance-heart-3 { left: 14%; font-size: 20px; animation-duration: 12s; animation-delay: -3s; }
.romance-heart-4 { left: 19%; font-size: 30px; animation-duration: 14s; animation-delay: -11s; }
.romance-heart-5 { left: 24%; font-size: 22px; animation-duration: 11s; animation-delay: -1s; }
.romance-heart-6 { left: 29%; font-size: 28px; animation-duration: 15s; animation-delay: -8s; }
.romance-heart-7 { left: 34%; font-size: 19px; animation-duration: 12s; animation-delay: -4s; }
.romance-heart-8 { left: 39%; font-size: 27px; animation-duration: 16s; animation-delay: -10s; }
.romance-heart-9 { left: 44%; font-size: 18px; animation-duration: 10s; animation-delay: -6s; }
.romance-heart-10 { left: 49%; font-size: 32px; animation-duration: 14s; animation-delay: -9s; }
.romance-heart-11 { left: 54%; font-size: 21px; animation-duration: 13s; animation-delay: -5s; }
.romance-heart-12 { left: 59%; font-size: 29px; animation-duration: 17s; animation-delay: -13s; }
.romance-heart-13 { left: 64%; font-size: 17px; animation-duration: 11s; animation-delay: -2s; }
.romance-heart-14 { left: 69%; font-size: 25px; animation-duration: 12s; animation-delay: -7s; }
.romance-heart-15 { left: 74%; font-size: 20px; animation-duration: 15s; animation-delay: -12s; }
.romance-heart-16 { left: 79%; font-size: 31px; animation-duration: 16s; animation-delay: -3s; }
.romance-heart-17 { left: 83%; font-size: 19px; animation-duration: 12s; animation-delay: -8s; }
.romance-heart-18 { left: 87%; font-size: 26px; animation-duration: 14s; animation-delay: -11s; }
.romance-heart-19 { left: 90%; font-size: 18px; animation-duration: 10s; animation-delay: -4s; }
.romance-heart-20 { left: 93%; font-size: 24px; animation-duration: 13s; animation-delay: -6s; }
.romance-heart-21 { left: 96%; font-size: 20px; animation-duration: 11s; animation-delay: -9s; }
.romance-heart-22 { left: 98%; font-size: 28px; animation-duration: 15s; animation-delay: -14s; }
@keyframes romanceFloat {
  0% { transform: translate3d(0, 0, 0) rotate(0deg); opacity: 0; }
  10% { opacity: 0.7; }
  50% { transform: translate3d(10px, -52vh, 0) rotate(10deg); }
  100% { transform: translate3d(-8px, -116vh, 0) rotate(-12deg); opacity: 0; }
}
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  padding: 6px 0 10px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  backdrop-filter: blur(12px);
}
.brand-stack {
  display: flex;
  align-items: center;
  padding: 4px 0;
}
.brand-copy { display: grid; gap: 2px; }
.brand-title-logo {
  display: block;
  width: min(40vw, 154px);
  max-width: 100%;
  height: auto;
  object-fit: contain;
}
.brand-title-logo-romance {
  width: min(42vw, 172px);
}
.brand-sub {
  margin: 0;
  font-size: 12px;
  line-height: 1.35;
  color: rgba(233, 244, 251, 0.82);
}
.top-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.notify-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 10px;
  min-height: 42px;
  border-radius: 12px;
  background: rgba(20, 62, 84, 0.52);
  border: 1px solid rgba(185, 236, 252, 0.16);
  color: #f5fbff;
  box-shadow: var(--shadow);
}
.notify-button strong {
  font-size: 12px;
}
.user-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  min-height: 42px;
  background: rgba(20, 62, 84, 0.52);
  border: 1px solid rgba(185, 236, 252, 0.16);
  border-radius: 12px;
  box-shadow: var(--shadow);
  font-size: 12px;
  color: #f5fbff;
}
.section { margin-top: 12px; }
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}
.section-title { margin: 0; font-size: 17px; font-weight: 900; color: #ffffff; text-shadow: 0 2px 10px rgba(6, 27, 40, 0.12); }
.section-note { font-size: 11px; color: #ffffff; text-shadow: 0 2px 8px rgba(6, 27, 40, 0.1); }
.panel > .section-head,
.settings-box > .section-head,
.admin-box > .section-head {
  margin-bottom: 10px;
}
.panel > .section-head .section-title,
.settings-box > .section-head .section-title,
.admin-box > .section-head .section-title {
  color: #143549;
  text-shadow: none;
}
.panel > .section-head .section-note,
.settings-box > .section-head .section-note,
.admin-box > .section-head .section-note {
  color: #6f8898;
  text-shadow: none;
}
.home-surface {
  background: #ffffff !important;
  background-color: #ffffff !important;
  background-image: none !important;
  border-color: rgba(18, 86, 124, 0.06) !important;
  backdrop-filter: none !important;
  filter: none !important;
  opacity: 1 !important;
}
.panel, .row-card, .summary-card, .notice-bar, .list-row, .timeline-row, .settings-box, .admin-box {
  background: #ffffff;
  background-color: #ffffff;
  background-image: none;
  border: 1px solid rgba(18, 86, 124, 0.06);
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 24px rgba(12, 64, 90, 0.08);
  backdrop-filter: none;
}
.panel, .summary-card, .notice-bar, .settings-box, .admin-box { padding: 14px; }
.notice-bar.compact {
  padding: 12px 14px;
  background: #ffffff;
  background-color: #ffffff;
  background-image: none;
  border-color: rgba(18, 86, 124, 0.06);
}
.notice-bar.urgent {
  border-color: rgba(18, 86, 124, 0.06);
  background: #ffffff;
  background-color: #ffffff;
  background-image: none;
}
.notice-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}
.notice-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(101, 189, 228, 0.16);
  color: #2f708f;
  font-size: 11px;
  font-weight: 800;
}
.notice-title { margin: 0; font-size: 19px; font-weight: 900; color: #143549; }
.body-text { margin: 0; font-size: 13px; line-height: 1.5; color: #24465b; }
.muted { margin: 0; font-size: 12px; line-height: 1.4; color: #547082; }
.meta { font-size: 11px; color: #648295; }
.ranking-lock-card {
  background: #ffffff;
  border-color: rgba(33, 111, 156, 0.18);
  box-shadow: 0 14px 30px rgba(10, 60, 88, 0.12);
}
.ranking-lock-card .body-text {
  color: #0d3347;
  font-size: 17px;
  font-weight: 900;
}
.ranking-lock-card .muted {
  margin-top: 6px;
  color: #355a70;
  font-size: 13px;
  font-weight: 700;
}
.duty-member-title {
  margin-top: 4px;
  color: #11384d;
  font-size: 18px;
  font-weight: 900;
  line-height: 1.35;
}
.empty-notice-card {
  background: #ffffff;
  border-color: rgba(44, 118, 160, 0.12);
  box-shadow: 0 12px 28px rgba(10, 60, 88, 0.08);
}
.empty-notice-card .body-text {
  color: #11384d;
  font-size: 15px;
  font-weight: 900;
}
.notice-bar .body-text {
  line-height: 1.55;
  color: #2d5267;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.notice-bar .meta { color: #6d899a; }
.badge, .status-badge, .role-badge, .tag-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
}
.badge, .tag-badge { background: var(--primary-soft); color: var(--primary); }
.role-badge.participant { background: rgba(29,143,99,0.12); color: var(--success); }
.role-badge.leader { background: rgba(227,141,28,0.14); color: var(--warning); }
.role-badge.admin { background: rgba(217,72,95,0.12); color: var(--danger); }
.status-badge.normal { background: rgba(29,143,99,0.12); color: var(--success); }
.status-badge.late { background: rgba(227,141,28,0.14); color: var(--warning); }
.status-badge.rest { background: rgba(21,119,183,0.12); color: var(--primary); }
.status-badge.sleep { background: rgba(91,91,168,0.16); color: #5e5ec8; }
.status-badge.check { background: rgba(217,72,95,0.12); color: var(--danger); }

.hero-mini {
  min-height: 118px;
  padding: 12px 14px;
  color: #fff;
  position: relative;
  overflow: hidden;
  background: rgba(22, 71, 95, 0.52);
  border-color: rgba(176, 226, 243, 0.14);
  display: flex;
  align-items: flex-end;
}
.hero-mini > * {
  position: relative;
  z-index: 2;
}
.hero-mini h2 { margin: 0; font-family: var(--font-title); font-size: 28px; line-height: 0.96; }
.hero-mini p { margin: 6px 0 0; font-size: 12px; color: rgba(255,255,255,0.88); }
.hero-mini-copy {
  display: grid;
  gap: 4px;
  max-width: 180px;
  position: relative;
  z-index: 2;
}
.hero-mini-top {
  display: flex;
  align-items: center;
  gap: 8px;
}
.hero-mini-title-top {
  width: 138px;
  max-width: 100%;
  object-fit: contain;
  filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.18));
}
.hero-mini-title-main {
  width: min(100%, 168px);
  object-fit: contain;
  filter: drop-shadow(0 4px 14px rgba(0, 0, 0, 0.3));
}
.hero-mini-date {
  margin: 2px 0 0;
  font-size: 12px;
  font-weight: 700;
  color: rgba(255,255,255,0.96);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.28);
}
.hero-mini-banner {
  min-height: 146px;
  padding: 12px;
}
.hero-mini-banner .media-backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-mini-banner .media-backdrop video,
.hero-mini-banner .media-backdrop img {
  object-position: center center;
  transform: scale(1.08);
  filter: saturate(0.98) brightness(0.9);
}
.hero-mini-banner .media-backdrop::after {
  background:
    linear-gradient(180deg, rgba(7, 34, 54, 0.06), rgba(7, 34, 54, 0.16) 52%, rgba(7, 34, 54, 0.38)),
    linear-gradient(90deg, rgba(5, 26, 43, 0.06), rgba(5, 26, 43, 0.02));
}
.hero-mini-banner .hero-mini-copy {
  position: absolute;
  left: 12px;
  bottom: 12px;
  width: auto;
  max-width: 190px;
  gap: 4px;
}
.hero-mini-banner .hero-mini-title-top {
  width: 146px;
}
.hero-mini-banner .hero-mini-title-main {
  width: min(100%, 174px);
}
.hero-mini-banner .hero-mini-date {
  margin-top: 3px;
  font-size: 13px;
  font-weight: 800;
}
.summary-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.summary-grid-mobility .summary-card { min-height: 92px; }
.mobility-action-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.mobility-action-card {
  text-align: left;
  min-height: 96px;
  padding: 14px;
  border: 1px solid rgba(18, 86, 124, 0.06);
  border-radius: 16px;
  box-shadow: 0 10px 24px rgba(12, 64, 90, 0.08);
}
.mobility-action-card strong {
  display: block;
  font-size: 15px;
  color: #17374a;
}
.mobility-action-card span {
  display: block;
  margin-top: 10px;
  font-size: 18px;
  font-weight: 900;
  color: #15384c;
}
.summary-card strong { display: block; font-size: 12px; color: #557387; }
.summary-card span { display: block; margin-top: 5px; font-size: 18px; font-weight: 900; color: #17374a; }
.summary-card-primary,
.summary-card-secondary {
  background: #ffffff;
  background-color: #ffffff;
  background-image: none;
  border-color: rgba(18, 86, 124, 0.06);
  backdrop-filter: none;
}
.summary-card-secondary span { font-size: 16px; }
.action-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.action-grid-shortcuts { margin-top: -2px; }
.action-button-wide {
  grid-column: 1 / -1;
}
.action-button {
  text-align: left;
  background: #ffffff;
  background-color: #ffffff;
  background-image: none;
  border: 1px solid rgba(18, 86, 124, 0.06);
  border-radius: 14px;
  padding: 10px 12px;
  box-shadow: 0 10px 24px rgba(12, 64, 90, 0.08);
}
.action-button strong { display: block; font-size: 15px; color: #17374a; }
.action-button span { display: block; margin-top: 3px; font-size: 11px; color: #7a93a2; }
.romance-home-entry {
  display: grid;
  gap: 8px;
}
.romance-home-button {
  width: 100%;
  background: linear-gradient(180deg, rgba(255, 244, 248, 0.98), rgba(255, 236, 244, 0.98)) !important;
  border-color: rgba(236, 154, 183, 0.24) !important;
  box-shadow: 0 10px 24px rgba(181, 96, 129, 0.14) !important;
}
.romance-home-button strong { color: #a94f72; }
.romance-home-button span { color: #b1748f; }
.romance-log-button {
  background: linear-gradient(180deg, rgba(246, 250, 255, 0.98), rgba(237, 244, 252, 0.98)) !important;
  border-color: rgba(128, 175, 216, 0.24) !important;
  box-shadow: 0 10px 24px rgba(86, 126, 170, 0.12) !important;
}
.romance-log-button strong { color: #466c91; }
.romance-log-button span { color: #6986a2; }
.page { display: none; animation: fadeUp .18s ease; }
.page.active { display: block; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }

.current-box { display: grid; gap: 10px; }
.current-box-primary {
  padding: 18px;
  background: #ffffff;
  background-color: #ffffff;
  background-image: none;
  border-color: rgba(18, 86, 124, 0.06);
  backdrop-filter: none;
}
.current-topline { display: flex; justify-content: space-between; gap: 8px; align-items: center; }
.current-label {
  font-size: 11px;
  font-weight: 800;
  color: #7b92a0;
}
.current-main { display: grid; gap: 6px; }
.current-title { margin: 0; font-size: 24px; font-weight: 900; color: #15384c; line-height: 1.18; }
.countdown {
  font-size: 12px;
  font-weight: 900;
  color: #10384d;
  background: rgba(215, 235, 245, 0.9);
  padding: 6px 10px;
  border-radius: 999px;
}
.current-box .body-text { color: #36586b; font-size: 14px; line-height: 1.6; }
.current-box .muted { color: #7b93a1; }
.current-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.compact-list { display: grid; gap: 8px; }
.timeline-day-block {
  display: grid;
  gap: 8px;
}
.timeline-day-block + .timeline-day-block {
  margin-top: 6px;
}
.timeline-day-header {
  display: flex;
  align-items: center;
}
.timeline-day-chip {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(17, 66, 91, 0.9);
  color: #ffffff;
  font-size: 12px;
  font-weight: 900;
  box-shadow: 0 10px 20px rgba(12, 64, 90, 0.12);
}
.timeline-day-list {
  display: grid;
  gap: 8px;
}
.list-row, .timeline-row { padding: 11px 12px; }
.row-main { display: flex; align-items: center; gap: 10px; justify-content: space-between; }
.row-title { font-size: 14px; font-weight: 800; color: #12354a; }
.row-sub { font-size: 12px; color: #567181; }
.timeline-row { display: grid; grid-template-columns: 108px 1fr auto; gap: 10px; align-items: center; }
.timeline-row.current { border-color: rgba(125, 193, 226, 0.36); background: #ffffff; }
.timeline-time {
  font-size: 12px;
  font-weight: 800;
  color: var(--primary);
  white-space: nowrap;
  word-break: keep-all;
}
.rank-row { display: grid; grid-template-columns: 40px 1fr auto; gap: 8px; align-items: center; }
.rank-no { font-size: 14px; font-weight: 900; color: var(--primary); }
.score-value { font-size: 14px; font-weight: 900; color: #12384d; }
.key-value-list { display: grid; gap: 8px; }
.kv-row { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px dashed var(--line); }
.kv-row:last-child { border-bottom: 0; }
.kv-key { font-size: 12px; color: #6f8898; }
.kv-value { font-size: 13px; font-weight: 800; color: #17384b; text-align: right; }
.people-list { display: grid; gap: 6px; }
.person-row { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: center; padding: 10px 12px; border: 1px solid rgba(18, 86, 124, 0.06); border-radius: 12px; background: #ffffff; background-color: #ffffff; background-image: none; }
.person-main { display: grid; gap: 2px; }
.person-actions {
  display: grid;
  gap: 6px;
  justify-items: end;
}
.person-locate-button {
  background: #eef7ff;
  color: #1c5f97;
  border: 1px solid rgba(28, 95, 151, 0.12);
}

.bottom-nav {
  position: fixed;
  left: 50%;
  bottom: 10px;
  transform: translateX(-50%);
  z-index: 30;
  width: min(calc(100vw - 16px), calc(var(--content-width) - 8px));
  padding: 6px;
  border-radius: 16px;
  background: rgba(15, 49, 67, 0.9);
  border: 1px solid rgba(180, 228, 245, 0.12);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}
body[data-theme="night"] .bottom-nav { background: rgba(11,33,50,0.9); }
.bottom-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.tab-button {
  background: transparent;
  color: rgba(219, 237, 246, 0.78);
  padding: 7px 4px;
  min-height: 42px;
  display: grid;
  place-items: center;
  gap: 2px;
  font-size: 10px;
}
.tab-button.active { background: rgba(114, 201, 255, 0.12); color: #f5fbff; }
.tab-button strong { font-size: 13px; }
.tab-button > span { display: none; }
.team-status-card { display: grid; gap: 12px; }
.team-status-card {
  background: #ffffff;
  background-color: #ffffff;
  background-image: none;
  border-color: rgba(18, 86, 124, 0.06);
  backdrop-filter: none;
}
.team-status-head { align-items: center; }
.team-rank-pill {
  display: inline-flex;
  align-items: center;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(243, 249, 253, 0.92);
  color: #12384d;
  font-size: 12px;
  font-weight: 900;
}
.team-status-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.team-status-metrics div {
  padding: 12px 13px;
  border-radius: 14px;
  background: #ffffff;
  background-color: #ffffff;
  background-image: none;
  border: 1px solid rgba(18, 86, 124, 0.06);
}
.team-status-metrics strong {
  display: block;
  font-size: 11px;
  color: #7a93a2;
}
.team-status-metrics span {
  display: block;
  margin-top: 4px;
  font-size: 19px;
  font-weight: 900;
  color: #15384c;
}
.team-status-actions { margin-top: -2px; }

.mode-toggle, .admin-subtabs { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 2px; flex-wrap: wrap; }
.seg-button {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--text-soft);
  white-space: nowrap;
  padding: 9px 11px;
}
.seg-button.active { background: var(--primary-soft); border-color: transparent; color: var(--primary); }
.romance-toggle-button {
  background: rgba(255, 236, 244, 0.94);
  border-color: rgba(255, 173, 201, 0.52);
  color: #c85d86;
  font-weight: 900;
}
.romance-toggle-button.active {
  background: #ffd9e8;
  border-color: rgba(255, 128, 173, 0.56);
  color: #b44472;
  box-shadow: 0 10px 18px rgba(243, 145, 181, 0.18);
}
.admin-layout { display: grid; gap: 10px; }
.admin-box {
  background: #ffffff;
  border: 1px solid rgba(18, 86, 124, 0.08);
  border-radius: 18px;
  box-shadow: 0 10px 24px rgba(12, 64, 90, 0.08);
}
.admin-box h4 {
  margin: 0 0 8px;
  font-size: 15px;
  color: #143549;
}
.admin-box-notice-write h4,
.admin-box-notice-list h4,
.admin-box-score-write h4,
.admin-box-score-list h4,
.admin-box-participant-search h4,
.admin-box-participant-list h4,
.admin-box-attendance-intro h4,
.admin-box-assignment-team h4,
.admin-box-assignment-room h4,
.admin-box-assignment-bus h4 {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
}
.admin-box-notice-write h4,
.admin-box-notice-list h4 {
  background: #eaf6ff;
  color: #165a80;
}
.admin-box-score-write h4,
.admin-box-score-list h4 {
  background: #fff3df;
  color: #8b5a09;
}
.admin-box-participant-search h4,
.admin-box-participant-list h4 {
  background: #edf7ee;
  color: #246344;
}
.admin-box-attendance-intro h4 {
  background: #fff1f2;
  color: #a43c4d;
}
.admin-box-attendance-list h4 {
  background: #fff1f2;
  color: #a43c4d;
}
.admin-box-assignment-team h4,
.admin-box-assignment-room h4,
.admin-box-assignment-bus h4 {
  background: #f0f3ff;
  color: #4055a8;
}
.input-table { display: grid; gap: 8px; }
.input-row { display: grid; grid-template-columns: 44px 1fr 76px; gap: 8px; align-items: center; }
.input-row > strong {
  color: #2f5ea8;
  font-size: 13px;
  font-weight: 900;
}
.search-toolbar { display: grid; gap: 8px; }
.filter-row { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 2px; }
.filter-chip {
  white-space: nowrap;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #f4faff;
  color: #5a7586;
  font-size: 12px;
  font-weight: 700;
}
.filter-chip.active { background: var(--primary-soft); border-color: transparent; color: var(--primary); }
.attendance-filter-chip[data-attendance-filter="checked"].active {
  background: #e8f8ef;
  color: #167347;
  border-color: rgba(22, 115, 71, 0.16);
}
.attendance-filter-chip[data-attendance-filter="missing"].active {
  background: #fff1f1;
  color: #b4364b;
  border-color: rgba(180, 54, 75, 0.16);
}
.attendance-badge-checked {
  background: #e8f8ef;
  color: #167347;
}
.attendance-badge-missing {
  background: #fff1f1;
  color: #b4364b;
}
.mark-attendance.is-active {
  background: #167347;
  color: #ffffff;
  border: 1px solid #167347;
}
.mark-attendance.is-inactive {
  background: #eef7ff;
  color: #1c5f97;
  border: 1px solid rgba(28, 95, 151, 0.14);
}
.admin-list { display: grid; gap: 8px; }
.admin-row { padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: #ffffff; }
.participant-focus-row {
  border-color: rgba(92, 176, 227, 0.58);
  box-shadow: 0 0 0 3px rgba(114, 201, 255, 0.18), 0 12px 28px rgba(12, 64, 90, 0.1);
}
.assignment-member-list {
  line-height: 1.7;
}
.assignment-member-checked {
  font-weight: 900;
  color: #12384d;
}
.row-actions { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.state-buttons { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; margin-top: 8px; }
.state-buttons button {
  padding: 9px 4px;
  border-radius: 10px;
  background: #eef6fb;
  color: #18394c;
  border: 1px solid rgba(18, 86, 124, 0.08);
  font-size: 11px;
  font-weight: 800;
}
.state-buttons-personal {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.state-buttons button[data-status="normal"] {
  background: #ecf9f1;
  color: #167347;
  border-color: rgba(22, 115, 71, 0.12);
}
.state-buttons button[data-status="rest"] {
  background: #eef7ff;
  color: #1c5f97;
  border-color: rgba(28, 95, 151, 0.12);
}
.state-buttons button[data-status="sleep"] {
  background: #f3efff;
  color: #5a49a9;
  border-color: rgba(90, 73, 169, 0.14);
}
.state-buttons button[data-status="check"] {
  background: #fff0f1;
  color: #b4364b;
  border-color: rgba(180, 54, 75, 0.14);
}
.state-buttons button.active {
  background: #18394c;
  color: #ffffff;
  font-weight: 800;
  border-color: #18394c;
}
.state-buttons button[data-status="normal"].active {
  background: #167347;
  border-color: #167347;
}
.state-buttons button[data-status="rest"].active {
  background: #1c5f97;
  border-color: #1c5f97;
}
.state-buttons button[data-status="sleep"].active {
  background: #5a49a9;
  border-color: #5a49a9;
}
.state-buttons button[data-status="check"].active {
  background: #b4364b;
  border-color: #b4364b;
}
.columns-2 { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; }
.footer-space { height: 18px; }
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(7, 24, 36, 0.42);
  padding: 18px 14px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}
.modal-panel {
  width: min(100%, 420px);
  max-height: calc(100vh - 36px);
  overflow: auto;
  background: var(--panel-solid);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  padding: 14px;
}
.modal-panel > .section-head {
  margin-bottom: 10px;
}
.modal-panel > .section-head .section-title {
  color: #143549;
  text-shadow: none;
}
.modal-panel > .section-head .section-note {
  color: #6f8898;
  text-shadow: none;
}
.mobility-modal-placeholder {
  padding: 14px;
  background: #fdfefe;
  border: 1px solid rgba(18, 86, 124, 0.08);
  border-radius: 18px;
}
.modal-panel .row-title {
  color: #12354a;
}
.modal-panel .row-sub,
.modal-panel .muted,
.modal-panel .body-text {
  color: #4f6b7d;
}
.notice-popup-panel {
  width: min(100%, 520px);
}
.romance-modal-panel,
.romance-log-panel,
.romance-request-panel,
.romance-response-panel,
.romance-accepted-panel {
  border-color: rgba(220, 119, 161, 0.18);
  box-shadow: 0 20px 40px rgba(125, 47, 79, 0.16);
}
.romance-modal-panel .section-title,
.romance-log-panel .section-title,
.romance-request-panel .section-title,
.romance-response-panel .section-title,
.romance-accepted-panel .section-title {
  color: #b14e74 !important;
}
.romance-log-panel {
  display: grid;
  gap: 12px;
}
.romance-log-row {
  border: 1px solid rgba(220, 154, 180, 0.12);
  background: linear-gradient(180deg, #fff9fb 0%, #ffffff 100%);
}
.romance-log-badge-pending {
  background: rgba(255, 217, 145, 0.22);
  color: #b17717;
}
.romance-log-badge-accepted {
  background: rgba(137, 220, 176, 0.18);
  color: #238254;
}
.romance-log-badge-rejected {
  background: rgba(241, 171, 182, 0.22);
  color: #b14862;
}
.romance-anonymous-note {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  border-radius: 16px;
  background: linear-gradient(180deg, #fff3f7 0%, #fff9fb 100%);
  border: 1px solid rgba(224, 154, 184, 0.18);
  color: #815265;
}
.romance-anonymous-note strong {
  color: #aa4f71;
  font-size: 14px;
}
.romance-anonymous-note-strong { margin-bottom: 8px; }
.romance-message-options {
  display: grid;
  gap: 8px;
}
.romance-message-chip {
  justify-content: flex-start;
  text-align: left;
  padding: 10px 12px;
  background: #ffffff;
  color: #8a5a6d;
  border-color: rgba(220, 154, 180, 0.18);
  font-weight: 700;
}
.romance-message-chip.active {
  background: #ffe8f0;
  color: #ae4e73;
  border-color: rgba(208, 111, 150, 0.28);
  box-shadow: 0 8px 18px rgba(191, 111, 146, 0.12);
}
.romance-candidate-list {
  display: grid;
  gap: 8px;
  max-height: 46vh;
  overflow: auto;
}
.romance-candidate-row {
  width: 100%;
  text-align: left;
  border: 1px solid rgba(220, 154, 180, 0.14);
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 8px 20px rgba(126, 65, 90, 0.08);
}
.romance-candidate-row .row-title { color: #17384b; }
.romance-candidate-row .row-sub { color: #876274; }
.romance-confirm-panel {
  border-color: rgba(220, 154, 180, 0.18);
  background: linear-gradient(180deg, #fff8fb 0%, #ffffff 100%);
}
.romance-selected-message {
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255, 235, 243, 0.78);
  border: 1px solid rgba(225, 160, 186, 0.18);
  color: #9a486a;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.45;
}
.leader-locate-panel {
  border-color: rgba(28, 95, 151, 0.18);
  box-shadow: 0 18px 38px rgba(19, 70, 112, 0.16);
}
.leader-locate-panel .section-title {
  color: #1c5f97 !important;
}
.leader-locate-panel .mobility-modal-placeholder {
  background: linear-gradient(180deg, #f2f9ff 0%, #ffffff 100%);
  border: 1px solid rgba(28, 95, 151, 0.14);
}
.leader-locate-panel .row-title {
  color: #174a75;
  font-size: 19px;
  font-weight: 900;
}
.leader-locate-panel .row-sub {
  color: #446980;
  font-size: 14px;
  font-weight: 700;
}
.admin-call-panel {
  width: min(100%, 460px);
  border-color: rgba(207, 74, 60, 0.16);
  box-shadow: 0 18px 38px rgba(110, 26, 18, 0.18);
}
.admin-call-panel .section-title {
  color: #b52e22 !important;
}
.admin-call-panel .mobility-modal-placeholder {
  background: linear-gradient(180deg, #fff7f6 0%, #ffffff 100%);
  border: 1px solid rgba(207, 74, 60, 0.14);
  border-radius: 18px;
}
.admin-call-panel .row-title {
  color: #9f2419;
  font-size: 19px;
  font-weight: 900;
}
.admin-call-panel .row-sub {
  color: #6f4039;
  font-size: 13px;
  font-weight: 700;
}
#noticePopupBackdrop {
  align-items: center;
}
.modal-panel-wide {
  width: min(100%, 880px);
}
.room-modal-panel {
  display: grid;
  gap: 12px;
}
.bus-modal-panel {
  display: grid;
  gap: 12px;
}
.floor-guide-panel {
  display: grid;
  gap: 14px;
  border-color: rgba(190, 66, 52, 0.18);
  box-shadow: 0 20px 42px rgba(112, 35, 25, 0.16);
}
.floor-guide-panel .section-title {
  color: #b03728 !important;
}
.floor-guide-list {
  display: grid;
  gap: 16px;
}
.floor-guide-card {
  padding: 14px;
  border-radius: 18px;
  background: linear-gradient(180deg, #f9fcff 0%, #eef7fb 100%);
  border: 1px solid rgba(18, 86, 124, 0.08);
  box-shadow: 0 12px 24px rgba(12, 64, 90, 0.06);
}
.floor-guide-head h4 {
  margin: 0 0 10px;
  color: #12384d;
  font-size: 18px;
  font-weight: 900;
}
.floor-guide-image {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 14px;
  background: #ffffff;
  border: 1px solid rgba(18, 86, 124, 0.08);
}
.bus-switcher {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.bus-switch-tab {
  min-width: 92px;
  padding: 9px 14px;
  border-radius: 999px;
  background: #eef6fb;
  border: 1px solid rgba(18, 86, 124, 0.1);
  color: #17435b;
  font-size: 13px;
  font-weight: 900;
}
.bus-switch-tab.active {
  background: #163a4d;
  border-color: #163a4d;
  color: #ffffff;
}
.bus-seat-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}
.bus-layout-card {
  border: 1px solid rgba(18, 86, 124, 0.08);
  border-radius: 20px;
  background: linear-gradient(180deg, #f8fcff, #eef7fb);
  padding: 14px;
}
.bus-layout-top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 12px;
}
.bus-driver-box,
.bus-entry-box {
  border-radius: 14px;
  padding: 10px 12px;
  font-size: 13px;
  font-weight: 900;
  color: #16374a;
  text-align: center;
}
.bus-driver-box {
  background: #ffe5cf;
}
.bus-entry-box {
  background: #dff2ff;
}
.bus-layout-body {
  display: grid;
  gap: 8px;
}
.bus-seat-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 34px minmax(0, 1fr);
  gap: 8px;
  align-items: stretch;
}
.bus-seat-row.rear {
  margin-top: 4px;
  grid-template-columns: minmax(0, 1fr);
}
.bus-seat-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.bus-seat-pair.rear-full {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}
.bus-seat-aisle {
  border-radius: 12px;
  background: rgba(215, 232, 241, 0.72);
  display: grid;
  place-items: center;
  color: #7d97a7;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.02em;
  writing-mode: vertical-rl;
  text-orientation: mixed;
}
.bus-seat {
  min-height: 74px;
  border-radius: 14px;
  border: 1px solid rgba(18, 86, 124, 0.08);
  background: #ffffff;
  padding: 10px 10px 9px;
  display: grid;
  align-content: space-between;
  gap: 5px;
  text-align: left;
  box-shadow: 0 10px 22px rgba(12, 64, 90, 0.05);
}
.bus-seat-code {
  font-size: 11px;
  font-weight: 900;
  color: #5a7a8c;
}
.bus-seat strong {
  font-size: 14px;
  line-height: 1.2;
  color: #12384d;
}
.bus-seat small {
  font-size: 11px;
  color: #7891a0;
}
.bus-seat.filled {
  background: #f8fbfe;
}
.bus-seat.current {
  background: #fff4b8;
  border-color: #f0da58;
  box-shadow: 0 12px 24px rgba(192, 157, 29, 0.18);
}
.bus-seat.current .bus-seat-code,
.bus-seat.current strong,
.bus-seat.current small {
  color: #5b4900;
}
.bus-seat-empty {
  visibility: hidden;
}
.room-summary-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 16px;
  border-radius: 18px;
  background: linear-gradient(180deg, #f8fcff, #eef7fb);
  border: 1px solid rgba(18, 86, 124, 0.08);
}
.room-occupant-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.room-occupant-card {
  padding: 14px;
  border-radius: 16px;
  background: #ffffff;
  border: 1px solid rgba(18, 86, 124, 0.08);
  box-shadow: 0 10px 22px rgba(12, 64, 90, 0.05);
}
.room-occupant-card.current {
  background: #fff4b8;
  border-color: #f0da58;
  box-shadow: 0 12px 24px rgba(192, 157, 29, 0.18);
}
.room-occupant-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.room-occupant-top strong {
  font-size: 16px;
  color: #12384d;
}
.room-occupant-meta {
  margin-top: 6px;
  font-size: 12px;
  color: #738b9a;
}
.room-occupant-card.current .room-occupant-top strong,
.room-occupant-card.current .room-occupant-meta {
  color: #5b4900;
}

@media (max-width: 640px) {
  .room-occupant-list {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (min-width: 760px) {
  .app-shell { max-width: 1100px; padding-bottom: 36px; }
  .main-screen { padding: 20px 20px 28px; }
  .layout { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 16px; }
  .bottom-nav { position: sticky; left: auto; transform: none; width: 100%; bottom: auto; margin-top: 16px; }
  .login-screen { padding: 28px; }
  .login-card { max-width: 880px; display: grid; grid-template-columns: 1fr 0.86fr; }
  .login-hero { min-height: 100%; padding: 28px 28px 22px; }
  .hero-title-image-top { width: min(100%, 300px); }
  .hero-title-image-main { width: min(100%, 420px); }
  .hero-sub { font-size: 24px; }
  .hero-mini-copy { max-width: 320px; }
  .hero-mini-title-top { width: 188px; }
  .hero-mini-title-main { width: min(100%, 252px); }
  .brand-title-logo { width: min(34vw, 176px); }
  .hero-mini-banner {
    min-height: 168px;
  }
  .hero-mini-banner .hero-mini-copy {
    left: 16px;
    bottom: 16px;
    max-width: 220px;
  }
  .hero-mini-banner .hero-mini-title-top { width: 164px; }
  .hero-mini-banner .hero-mini-title-main { width: min(100%, 196px); }
  .columns-2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
