:root {
  --p: #2d5be3;
  --p2: #4f7bff;
  --pl: #e8eeff;
  --navy: #1a2f86;
  --mint: #1fb59a;
  --amber: #f5a623;
  --rose: #ef4e5c;
  --sky: #3ba4f5;
  --yel: #ffc21a;
  --bg: #f3f6fc;
  --card: #fff;
  --tx: #172240;
  --tx2: #66708c;
  --line: #e6eaf4;
  --r: 18px;
  --sh: 0 6px 24px rgba(30, 58, 138, 0.08);
  --sh2: 0 14px 40px rgba(30, 58, 138, 0.16);
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}
* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}
html,
body {
  margin: 0;
  height: 100%;
}
body {
  font-family: 'Noto Sans KR', system-ui, sans-serif;
  background: var(--bg);
  color: var(--tx);
  font-size: 15px;
  line-height: 1.5;
  overflow-x: hidden;
}
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}
button {
  cursor: pointer;
  border: 0;
  background: none;
}
input,
select,
textarea {
  width: 100%;
  border: 1.5px solid var(--line);
  background: #f9fbff;
  border-radius: 12px;
  padding: 11px 13px;
  outline: none;
  transition:
    border 0.2s,
    box-shadow 0.2s,
    background 0.2s;
}
input:focus,
select:focus,
textarea:focus {
  border-color: var(--p);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(45, 91, 227, 0.12);
}
textarea {
  resize: vertical;
  min-height: 84px;
}
label.f {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--tx2);
  margin: 0 0 6px;
}
.logo {
  font-weight: 900;
  letter-spacing: -0.6px;
}
.hidden {
  display: none !important;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 16px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 14px;
  transition:
    transform 0.15s var(--ease),
    box-shadow 0.2s,
    background 0.2s;
  white-space: nowrap;
}
.btn:active {
  transform: scale(0.95);
}
.btn.pri {
  background: linear-gradient(135deg, var(--p), var(--p2));
  color: #fff;
  box-shadow: 0 6px 16px rgba(45, 91, 227, 0.35);
}
.btn.pri:hover {
  box-shadow: 0 10px 22px rgba(45, 91, 227, 0.45);
}
.btn.ok {
  background: var(--mint);
  color: #fff;
  box-shadow: 0 6px 14px rgba(19, 194, 163, 0.3);
}
.btn.ghost {
  background: var(--pl);
  color: var(--p);
}
.btn.line {
  border: 1.5px solid var(--line);
  background: #fff;
}
.btn.danger {
  background: #ffecf0;
  color: var(--rose);
}
.btn.sm {
  padding: 7px 12px;
  font-size: 13px;
  border-radius: 10px;
}
.btn.block {
  width: 100%;
}
.btn[disabled] {
  opacity: 0.5;
  pointer-events: none;
}
.iconbtn {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 1.5px solid var(--line);
  font-size: 17px;
  transition: transform 0.15s;
}
.iconbtn:active {
  transform: scale(0.9);
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 99px;
  font-size: 12px;
  font-weight: 700;
  background: #eef1f7;
  color: var(--tx2);
  white-space: nowrap;
}
.chip.ok {
  background: #ddf8f2;
  color: #0a9a80;
}
.chip.late {
  background: #fff3dc;
  color: #c07e06;
}
.chip.early {
  background: #e2f1fe;
  color: #1c7fcb;
}
.chip.absent {
  background: #ffe5eb;
  color: #d33a60;
}
.chip.p {
  background: var(--pl);
  color: var(--p);
}
.tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  border-radius: 10px;
  font-size: 12.5px;
  background: #f3f6fc;
  color: var(--tx);
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.tag.yes {
  background: #e3f9f3;
  color: #0a8a72;
}
.tag.no {
  background: #ffeef2;
  color: #c93258;
}

#app {
  min-height: 100vh;
}
body.mobile #app {
  min-height: 0;
}
body.pc #app {
  display: grid;
  grid-template-columns: 256px 1fr;
}
#sidebar {
  display: none;
}
body.pc #sidebar {
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 26px 18px;
  background: #fff;
  border-right: 1px solid var(--line);
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 2px 6px 28px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}
.brand .mark {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  filter: drop-shadow(0 8px 14px rgba(26, 47, 134, 0.3));
}
.brand .mark svg,
.hero .mark svg {
  width: 100%;
  height: 100%;
  display: block;
}
.brand b {
  font-size: 23px;
  font-weight: 900;
  letter-spacing: -1px;
  line-height: 1.15;
  display: block;
  background: linear-gradient(95deg, #14246e 0%, #2d5be3 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.brand small {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 3px;
  color: #8a93ad;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: -0.1px;
}
.brand > div:last-child {
  min-width: 0;
}
.brand small {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.brand small .role {
  white-space: nowrap;
  flex-shrink: 0;
  background: #eef3ff;
  color: var(--p);
  font-weight: 700;
  font-size: 11px;
  padding: 1px 7px;
  border-radius: 6px;
}
.nav-cap {
  font-size: 11px;
  font-weight: 700;
  color: #a2aac2;
  letter-spacing: 1.2px;
  margin: 0 12px 10px;
}
.nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 12px;
  border-radius: 14px;
  color: #56607c;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.3px;
  cursor: pointer;
  margin-bottom: 4px;
  transition:
    background 0.2s,
    color 0.2s,
    transform 0.2s;
  position: relative;
}
.nav a:hover {
  background: #f5f7fc;
  color: var(--tx);
}
.nav a.on {
  background: linear-gradient(90deg, #e8eeff, #f4f7ff);
  color: #14246e;
  font-weight: 800;
}
.nav a.on::before {
  content: '';
  position: absolute;
  left: -18px;
  top: 10px;
  bottom: 10px;
  width: 4px;
  border-radius: 0 4px 4px 0;
  background: var(--p);
}
.nav .ic {
  width: 34px;
  height: 34px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f1f4fa;
  color: #7c88a8;
  flex-shrink: 0;
  transition:
    background 0.2s,
    color 0.2s;
}
.nav a:hover .ic {
  color: var(--p);
}
.nav a.on .ic {
  background: var(--p);
  color: #fff;
  box-shadow: 0 6px 12px rgba(45, 91, 227, 0.3);
}
.side-foot {
  margin-top: auto;
  padding: 6px 0 0;
}
.side-foot .btn {
  width: 100%;
  justify-content: center;
}
.side-foot b {
  display: block;
}
#content {
  min-width: 0;
  position: relative;
}
body.pc #main {
  padding: 8px 34px 60px;
  max-width: 1280px;
}
.pc-top {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 26px 34px 18px;
  flex-wrap: wrap;
}
.pc-top h1 {
  font-size: 26px;
  margin: 0;
  font-weight: 900;
  letter-spacing: -0.5px;
}
.pc-top .sub {
  color: var(--tx2);
  font-size: 14px;
}
.pc-top .sp {
  flex: 1;
}
.datenav {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: 14px;
  padding: 4px;
}
.datenav b {
  padding: 0 8px;
  min-width: 150px;
  text-align: center;
}
.datenav button {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  font-size: 16px;
}
.datenav button:hover {
  background: var(--pl);
}
.datenav input {
  width: 38px;
  padding: 4px;
  border: 0;
  background: transparent;
  color: transparent;
  cursor: pointer;
}
.viewsw {
  display: flex;
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  padding: 3px;
}
.viewsw button {
  padding: 6px 10px;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 700;
  color: var(--tx2);
}
.viewsw button.on {
  background: var(--p);
  color: #fff;
}

body.mobile #app {
  display: flex;
  flex-direction: column;
  height: 100vh;
  height: 100dvh;
  position: relative;
  overflow: hidden;
  background: var(--bg);
}
body.mobile.framed {
  background:
    radial-gradient(circle at 20% 20%, #dce6ff, transparent 50%),
    radial-gradient(circle at 80% 80%, #fff1c9, transparent 50%), #ecf0f9;
}
body.mobile.framed #app {
  max-width: 420px;
  margin: 20px auto;
  height: calc(100vh - 40px);
  border-radius: 36px;
  box-shadow:
    0 30px 80px rgba(20, 36, 110, 0.25),
    0 0 0 10px #172240;
}
body.mobile #content {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
}
body.mobile #main {
  padding: 14px 16px 30px;
}
.m-head {
  background: linear-gradient(140deg, #1a2f86 0%, #2d5be3 55%, #5b8cff 100%);
  color: #fff;
  padding: 18px 18px 22px;
  border-radius: 0 0 28px 28px;
  position: relative;
  overflow: hidden;
}
.m-head::after,
.m-head::before {
  content: '';
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  animation: float 7s ease-in-out infinite;
}
.m-head::after {
  width: 180px;
  height: 180px;
  right: -50px;
  top: -70px;
}
.m-head::before {
  width: 90px;
  height: 90px;
  left: -30px;
  bottom: -40px;
  animation-delay: -3s;
}
.m-row {
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
  z-index: 1;
}
.m-row .sp {
  flex: 1;
}
.m-head .logo {
  font-size: 20px;
  display: flex;
  align-items: center;
  gap: 9px;
}
.m-head .logo > .logo-svg {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
}
.m-head .hbtn {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  font-size: 19px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.m-date {
  margin-top: 14px;
  position: relative;
  z-index: 1;
}
.m-date small {
  opacity: 0.8;
  font-size: 13px;
}
.m-date h2 {
  margin: 2px 0 0;
  font-size: 24px;
  font-weight: 900;
  letter-spacing: -0.5px;
}
.week {
  display: flex;
  gap: 6px;
  margin: 14px -18px 0;
  padding: 18px 18px 12px;
  position: relative;
  z-index: 1;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
}
.week button {
  flex: 0 0 46px;
  scroll-snap-align: center;
  position: relative;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  border-radius: 14px;
  padding: 7px 0 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 12px;
  transition:
    background 0.25s,
    transform 0.25s var(--spring);
}
.week button b {
  font-size: 16px;
}
.week button.on {
  background: #fff;
  color: var(--p);
  transform: translateY(-3px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12);
}
.week button i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0;
  margin-top: 2px;
  font-style: normal;
}
.week button i.d {
  opacity: 0.8;
}
#tabbar {
  display: none;
}
body.mobile #tabbar {
  display: flex;
  background: #fff;
  border-top: 1px solid var(--line);
  padding: 6px 6px calc(6px + env(safe-area-inset-bottom));
  position: relative;
  z-index: 5;
}
#tabbar a {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  font-size: 11px;
  font-weight: 700;
  color: #a6a2bc;
  padding: 6px 0;
  border-radius: 14px;
  cursor: pointer;
  transition: color 0.2s;
}
#tabbar a .ic {
  font-size: 21px;
  transition: transform 0.3s var(--spring);
}
#tabbar a.on {
  color: var(--p);
}
#tabbar a.on .ic {
  transform: translateY(-3px) scale(1.15);
}

.card {
  background: var(--card);
  border-radius: var(--r);
  box-shadow: var(--sh);
  padding: 18px;
}
.sec-t {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 22px 0 12px;
  font-weight: 900;
  font-size: 17px;
}
.sec-t .sp {
  flex: 1;
}
.grid {
  display: grid;
  gap: 14px;
}
body.pc .grid.cards {
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 6px;
}
body.mobile .stats {
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: -34px;
  position: relative;
  z-index: 2;
}
.stat {
  background: #fff;
  border-radius: 18px;
  padding: 16px;
  box-shadow: var(--sh);
  position: relative;
  overflow: hidden;
}
.stat .n {
  font-size: 28px;
  font-weight: 900;
  letter-spacing: -1px;
}
.stat .l {
  font-size: 13px;
  color: var(--tx2);
  font-weight: 700;
}
.stat .e {
  position: absolute;
  right: 12px;
  top: 12px;
  font-size: 22px;
  opacity: 0.9;
}
body.mobile .stat {
  padding: 10px 6px;
  text-align: center;
  border-radius: 16px;
}
body.mobile .stat .n {
  font-size: 21px;
}
body.mobile .stat .l {
  font-size: 11px;
}
body.mobile .stat .e {
  display: none;
}
.stat::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 4px;
  background: var(--c, var(--p));
}

.filters {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 2px 0 4px;
  scrollbar-width: none;
}
.filters::-webkit-scrollbar {
  display: none;
}
.filters button {
  padding: 8px 14px;
  border-radius: 99px;
  background: #fff;
  border: 1.5px solid var(--line);
  font-weight: 700;
  font-size: 13px;
  color: var(--tx2);
  white-space: nowrap;
  transition: all 0.2s;
}
.filters button.on {
  background: var(--tx);
  border-color: var(--tx);
  color: #fff;
}

.scard {
  background: #fff;
  border-radius: 20px;
  box-shadow: var(--sh);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  overflow: hidden;
  transition:
    transform 0.25s var(--ease),
    box-shadow 0.25s;
}
body.pc .scard:hover {
  transform: translateY(-4px);
  box-shadow: var(--sh2);
}
.scard::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 5px;
  background: var(--sc, #ddd9ee);
}
.scard.st-ok {
  --sc: var(--mint);
}
.scard.st-late {
  --sc: var(--amber);
}
.scard.st-early {
  --sc: var(--sky);
}
.scard.st-absent {
  --sc: var(--rose);
}
.sc-top {
  display: flex;
  align-items: center;
  gap: 12px;
}
.ava {
  width: 46px;
  height: 46px;
  border-radius: 15px;
  background: var(--c, var(--p));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 19px;
  flex-shrink: 0;
  box-shadow: 0 6px 14px color-mix(in srgb, var(--c, var(--p)) 40%, transparent);
}
.ava.lg {
  width: 64px;
  height: 64px;
  font-size: 26px;
  border-radius: 20px;
}
.ava {
  overflow: hidden;
  position: relative;
}
.ava img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.ava-edit {
  position: relative;
  width: 96px;
  height: 96px;
  cursor: pointer;
  flex-shrink: 0;
}
.ava-edit .ava {
  width: 96px;
  height: 96px;
  border-radius: 30px;
  font-size: 38px;
}
.ava-edit .cam {
  position: absolute;
  right: -6px;
  bottom: -6px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--p);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  border: 3px solid #fff;
  box-shadow: 0 6px 14px rgba(45, 91, 227, 0.35);
  transition: transform 0.3s var(--spring);
}
.ava-edit:hover .cam {
  transform: scale(1.12) rotate(-8deg);
}
.pv-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  margin: 18px 34px -6px;
  border-radius: 16px;
  background: linear-gradient(95deg, #14246e, #2d5be3);
  color: #fff;
  font-size: 14px;
  box-shadow: 0 10px 24px rgba(26, 47, 134, 0.25);
  animation: up 0.45s var(--ease);
}
.pv-banner .i {
  font-size: 20px;
}
.pv-banner b {
  font-weight: 800;
}
.pv-banner .sp {
  flex: 1;
}
.pv-banner .btn {
  background: #fff;
  color: #14246e;
}
.pv-strip {
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
  z-index: 1;
  background: rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  padding: 7px 8px 7px 12px;
  margin-bottom: 12px;
  font-size: 12.5px;
  font-weight: 600;
}
.pv-strip .sp {
  flex: 1;
}
.pv-strip button {
  background: #fff;
  color: #14246e;
  font-weight: 800;
  font-size: 12px;
  padding: 5px 10px;
  border-radius: 9px;
}
.pick-grid {
  display: grid;
  gap: 12px;
}
body.pc .pick-grid {
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}
.pick {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  border-radius: 18px;
  padding: 14px;
  box-shadow: var(--sh);
  cursor: pointer;
  transition:
    transform 0.25s var(--ease),
    box-shadow 0.25s;
}
.pick:hover {
  transform: translateY(-3px);
  box-shadow: var(--sh2);
}
.pick .go {
  margin-left: auto;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: var(--pl);
  color: var(--p);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}
.sc-name {
  flex: 1;
  min-width: 0;
}
.sc-name b {
  font-size: 16.5px;
  display: block;
}
.sc-name span {
  font-size: 12.5px;
  color: var(--tx2);
}
.sc-body {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.sc-empty {
  font-size: 13px;
  color: #a9a5bf;
  padding: 4px 0;
}
.sc-act {
  display: flex;
  gap: 8px;
}
.sc-act .btn {
  flex: 1;
}
.today-pill {
  display: inline-block;
  background: #fff1d6;
  color: #b87500;
  font-size: 11px;
  font-weight: 800;
  padding: 1px 7px;
  border-radius: 6px;
  margin-left: 4px;
}

.list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.row {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  border-radius: 16px;
  padding: 12px 14px;
  box-shadow: var(--sh);
  cursor: pointer;
  transition:
    transform 0.2s var(--ease),
    box-shadow 0.2s;
}
.row:hover {
  transform: translateY(-2px);
  box-shadow: var(--sh2);
}
.row .mid {
  flex: 1;
  min-width: 0;
}
.row .mid b {
  display: block;
}
.row .mid small {
  color: var(--tx2);
  font-size: 12.5px;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rd-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.rd-date {
  flex: 1;
}
.rd-date b {
  font-size: 20px;
  font-weight: 900;
  letter-spacing: -0.4px;
  display: block;
}
.rd-date small {
  color: var(--tx2);
}
.rd-item {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px dashed var(--line);
}
.rd-item .ic {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 19px;
  flex-shrink: 0;
  background: var(--b, #eef3ff);
}
.rd-item .t {
  font-size: 12.5px;
  color: var(--tx2);
  font-weight: 700;
}
.rd-item .v {
  font-weight: 700;
  font-size: 15px;
  word-break: keep-all;
}
.rd-item .v small {
  font-weight: 500;
  color: var(--tx2);
}
.memo {
  background: linear-gradient(135deg, #fff8e6, #fff1f4);
  border-radius: 14px;
  padding: 14px;
  margin-top: 10px;
  white-space: pre-wrap;
  font-size: 14.5px;
}
.photos {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(92px, 1fr));
  gap: 8px;
  margin-top: 10px;
}
.photos .ph {
  aspect-ratio: 1;
  border-radius: 12px;
  overflow: hidden;
  background: linear-gradient(110deg, #efedf7 30%, #f8f7fc 50%, #efedf7 70%);
  background-size: 200% 100%;
  animation: shimmer 1.2s linear infinite;
  cursor: zoom-in;
  position: relative;
}
.photos .ph img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0;
  transition: opacity 0.4s;
}
.photos .ph img.ld {
  opacity: 1;
}
.photos .ph .x {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.ph-add {
  aspect-ratio: 1;
  border-radius: 12px;
  border: 2px dashed #cfcae6;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--p);
  font-weight: 700;
  font-size: 12px;
  cursor: pointer;
  transition: background 0.2s;
}
.ph-add:hover {
  background: var(--pl);
}
.ph-add span {
  font-size: 24px;
}

.cal-h {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}
.cal-h b {
  flex: 1;
  font-size: 17px;
  font-weight: 900;
}
.cal {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 5px;
  text-align: center;
}
.cal .dn {
  font-size: 12px;
  color: var(--tx2);
  font-weight: 700;
  padding-bottom: 4px;
}
.cal .dn:first-child {
  color: var(--rose);
}
.cal .dn:last-child {
  color: var(--sky);
}
.cal button {
  aspect-ratio: 1;
  border-radius: 12px;
  font-weight: 700;
  font-size: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  position: relative;
  transition:
    transform 0.2s var(--spring),
    background 0.2s;
}
.cal button:hover {
  background: #eef3ff;
}
.cal button.o {
  color: #cac6db;
}
.cal button.td {
  box-shadow: inset 0 0 0 2px var(--pl);
}
.cal button.on {
  background: var(--p);
  color: #fff;
  transform: scale(1.08);
  box-shadow: 0 8px 16px rgba(45, 91, 227, 0.35);
}
.cal button i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  font-style: normal;
}
.cal i.ok {
  background: var(--mint);
}
.cal i.late {
  background: var(--amber);
}
.cal i.early {
  background: var(--sky);
}
.cal i.absent {
  background: var(--rose);
}
.cal button.on i {
  background: #fff;
}
.legend {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--tx2);
  margin-top: 10px;
}
.legend i {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 4px;
}

.p-grid {
  display: grid;
  gap: 16px;
}
body.pc .p-grid {
  grid-template-columns: 380px 1fr;
  align-items: start;
}
.kid-sw {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 2px;
}
.kid-sw button {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px 6px 6px;
  border-radius: 99px;
  background: #fff;
  border: 1.5px solid var(--line);
  font-weight: 700;
  transition: all 0.25s;
}
.kid-sw button .ava {
  width: 30px;
  height: 30px;
  font-size: 13px;
  border-radius: 50%;
  box-shadow: none;
}
.kid-sw button.on {
  border-color: var(--p);
  background: var(--pl);
  color: var(--p);
}
body.mobile .m-head .kid-sw button {
  background: rgba(255, 255, 255, 0.16);
  border-color: transparent;
  color: #fff;
}
body.mobile .m-head .kid-sw button.on {
  background: #fff;
  color: var(--p);
}
.bar {
  height: 10px;
  background: #efedf7;
  border-radius: 99px;
  overflow: hidden;
  margin-top: 6px;
}
.bar i {
  display: block;
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--mint), #5be0c6);
  width: 0;
  transition: width 1.1s var(--ease);
}

#sheet {
  position: fixed;
  inset: 0;
  z-index: 50;
  pointer-events: none;
}
body.mobile #sheet,
body.mobile #modal,
body.mobile #toasts {
  position: absolute;
}
#sheet .bd,
#modal .bd {
  position: absolute;
  inset: 0;
  background: rgba(15, 25, 70, 0.42);
  opacity: 0;
  transition: opacity 0.3s;
}
#sheet .pane {
  position: absolute;
  background: #fff;
  display: flex;
  flex-direction: column;
  transition: transform 0.45s var(--ease);
  box-shadow: var(--sh2);
}
body.pc #sheet .pane {
  right: 0;
  top: 0;
  bottom: 0;
  width: min(560px, 100%);
  transform: translateX(105%);
  border-radius: 26px 0 0 26px;
}
body.mobile #sheet .pane {
  left: 0;
  right: 0;
  bottom: 0;
  max-height: 94%;
  transform: translateY(105%);
  border-radius: 26px 26px 0 0;
}
#sheet.open {
  pointer-events: auto;
}
#sheet.open .bd {
  opacity: 1;
}
body.pc #sheet.open .pane,
body.mobile #sheet.open .pane {
  transform: none;
}
.grab {
  width: 42px;
  height: 5px;
  border-radius: 9px;
  background: #dcd8ec;
  margin: 10px auto 0;
  display: none;
}
body.mobile .grab {
  display: block;
}
.pane-h {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
}
.pane-h .ttl {
  flex: 1;
  min-width: 0;
}
.pane-h .ttl b {
  display: block;
  font-size: 18px;
  font-weight: 900;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
body.mobile #fDate {
  max-width: 128px;
}
.pane-h .ttl small {
  color: var(--tx2);
}
.pane-b {
  flex: 1;
  overflow-y: auto;
  padding: 6px 20px 20px;
}
.pane-f {
  display: flex;
  gap: 8px;
  padding: 12px 20px calc(12px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  background: #fff;
}
.pane-f .btn {
  flex: 1;
}
.fsec {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.fsec:last-child {
  border-bottom: 0;
}
.fsec-h {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  font-weight: 900;
}
.fsec-h .ic {
  width: 34px;
  height: 34px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  background: var(--b, #eef3ff);
}
.fsec-h .sp {
  flex: 1;
}
.two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.three {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 10px;
}
.fl {
  margin-bottom: 10px;
}
.seg {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.seg button {
  flex: 1;
  min-width: 64px;
  padding: 10px 8px;
  border-radius: 12px;
  background: #f3f6fc;
  border: 1.5px solid transparent;
  font-weight: 700;
  font-size: 14px;
  color: var(--tx2);
  transition: all 0.2s var(--ease);
}
.seg button.on {
  background: var(--pl);
  border-color: var(--p);
  color: var(--p);
  box-shadow: 0 3px 10px rgba(45, 91, 227, 0.14);
}
.seg.st button[data-v='출석'].on {
  background: #ddf8f2;
  border-color: var(--mint);
  color: #0a9a80;
}
.seg.st button[data-v='지각'].on {
  background: #fff3dc;
  border-color: var(--amber);
  color: #b87500;
}
.seg.st button[data-v='조퇴'].on {
  background: #e2f1fe;
  border-color: var(--sky);
  color: #1c7fcb;
}
.seg.st button[data-v='결석'].on {
  background: #ffe5eb;
  border-color: var(--rose);
  color: #d33a60;
}
.seg.yn button[data-v='1'].on {
  background: #ddf8f2;
  border-color: var(--mint);
  color: #0a9a80;
}
.seg.yn button[data-v='0'].on {
  background: #ffe5eb;
  border-color: var(--rose);
  color: #d33a60;
}
.switch {
  position: relative;
  width: 48px;
  height: 28px;
  flex-shrink: 0;
}
.switch input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}
.switch span {
  position: absolute;
  inset: 0;
  border-radius: 99px;
  background: #dcd8ec;
  transition: background 0.25s;
  cursor: pointer;
}
.switch span::after {
  content: '';
  position: absolute;
  left: 3px;
  top: 3px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s var(--spring);
}
.switch input:checked + span {
  background: var(--p);
}
.switch input:checked + span::after {
  transform: translateX(20px);
}
.coll {
  display: grid;
  grid-template-rows: 0fr;
  transition:
    grid-template-rows 0.35s var(--ease),
    opacity 0.3s;
  opacity: 0;
}
.coll > div {
  overflow: hidden;
  padding: 5px;
  margin: -5px;
}
.coll:not(.open) {
  pointer-events: none;
}
.coll.open {
  grid-template-rows: 1fr;
  opacity: 1;
}
.days {
  display: flex;
  gap: 6px;
}
.days button {
  flex: 1;
  padding: 9px 0;
  border-radius: 11px;
  background: #f3f6fc;
  font-weight: 700;
  color: var(--tx2);
  transition: all 0.2s var(--spring);
}
.days button.on {
  background: var(--p);
  color: #fff;
  transform: translateY(-2px);
}
.colors {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.colors button {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--c);
  transition: transform 0.2s var(--spring);
}
.colors button.on {
  transform: scale(1.2);
  box-shadow:
    0 0 0 3px #fff,
    0 0 0 5px var(--c);
}
.emails {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}
.emails .chip {
  background: var(--pl);
  color: var(--p);
  font-size: 12.5px;
  padding: 5px 6px 5px 11px;
}
.emails .chip button {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(45, 91, 227, 0.18);
  color: var(--p);
  font-size: 12px;
  line-height: 1;
}
.hint {
  font-size: 12.5px;
  color: var(--tx2);
  margin-top: 6px;
}

#modal {
  position: fixed;
  inset: 0;
  z-index: 70;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
#modal.open {
  pointer-events: auto;
}
#modal.open .bd {
  opacity: 1;
}
#modal .box {
  position: relative;
  background: #fff;
  border-radius: 24px;
  padding: 24px;
  width: min(420px, 100%);
  box-shadow: var(--sh2);
  transform: scale(0.85) translateY(20px);
  opacity: 0;
  transition:
    transform 0.4s var(--spring),
    opacity 0.25s;
  max-height: 90%;
  overflow: auto;
}
#modal.open .box {
  transform: none;
  opacity: 1;
}
#modal .box h3 {
  margin: 0 0 6px;
  font-size: 19px;
}
#modal .box p {
  margin: 0 0 18px;
  color: var(--tx2);
}
#modal .acts {
  display: flex;
  gap: 8px;
}
#modal .acts .btn {
  flex: 1;
}
#modal.lb .box {
  background: transparent;
  box-shadow: none;
  padding: 0;
  width: auto;
  max-width: 94%;
}
#modal.lb img {
  max-width: 100%;
  max-height: 82vh;
  border-radius: 16px;
  display: block;
}
.lb-stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: min(260px, 80vw);
  min-height: 180px;
}
.lb-img {
  min-height: 60px;
  background: rgba(255, 255, 255, 0.06);
  touch-action: pan-y;
  user-select: none;
  -webkit-user-drag: none;
}
.lb-img.in-r {
  animation: lbR 0.28s var(--ease);
}
.lb-img.in-l {
  animation: lbL 0.28s var(--ease);
}
@keyframes lbR {
  from {
    opacity: 0;
    transform: translateX(36px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes lbL {
  from {
    opacity: 0;
    transform: translateX(-36px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.lb-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  color: var(--tx);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
  cursor: pointer;
  font-size: 20px;
  transition: transform 0.2s var(--spring);
}
.lb-nav:hover {
  transform: translateY(-50%) scale(1.08);
}
.lb-nav:active {
  transform: translateY(-50%) scale(0.94);
}
.lb-nav.l {
  left: 8px;
}
.lb-nav.r {
  right: 8px;
}
.lb-cnt {
  position: absolute;
  left: 50%;
  bottom: 12px;
  transform: translateX(-50%);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  background: rgba(0, 0, 0, 0.45);
  padding: 4px 12px;
  border-radius: 99px;
  white-space: nowrap;
}

#toasts {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 24px;
  z-index: 90;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  pointer-events: none;
}
body.mobile #toasts {
  bottom: 84px;
}
.toast {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #172240;
  color: #fff;
  padding: 12px 18px;
  border-radius: 14px;
  font-weight: 700;
  font-size: 14px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  animation: toastIn 0.45s var(--spring) both;
  max-width: 90%;
}
.toast.err {
  background: var(--rose);
}
.toast.out {
  animation: toastOut 0.3s ease forwards;
}

.auth {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(150deg, #14246e 0%, #2d5be3 50%, #5b8cff 100%);
}
.auth .blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(2px);
  opacity: 0.35;
  animation: float 9s ease-in-out infinite;
}
.auth-box {
  position: relative;
  z-index: 2;
  background: rgba(255, 255, 255, 0.96);
  border-radius: 28px;
  padding: 30px 26px;
  width: min(420px, 100%);
  box-shadow: 0 30px 80px rgba(30, 10, 90, 0.35);
  animation: pop 0.7s var(--spring) both;
}
.auth-box .hero {
  text-align: center;
  margin-bottom: 20px;
}
.auth-box .hero .mark {
  width: 82px;
  height: 82px;
  margin: 0 auto 12px;
  filter: drop-shadow(0 14px 22px rgba(26, 47, 134, 0.4));
  animation: float 4s ease-in-out infinite;
}
.hero-ic {
  width: 100%;
  height: 100%;
  border-radius: 24px;
  background: #eef3ff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 44px;
  color: var(--p);
}
.auth-box h1 {
  font-weight: 900;
  font-size: 30px;
  letter-spacing: -1.2px;
  margin: 0;
  background: linear-gradient(95deg, #14246e, #2d5be3);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.auth-box .hero p {
  margin: 4px 0 0;
  color: var(--tx2);
  font-size: 14px;
}
.tabs2 {
  display: flex;
  background: #edf1fa;
  border-radius: 14px;
  padding: 4px;
  margin-bottom: 18px;
  position: relative;
}
.tabs2 button {
  flex: 1;
  padding: 10px;
  border-radius: 11px;
  font-weight: 700;
  color: var(--tx2);
  position: relative;
  z-index: 1;
  transition: color 0.3s;
}
.tabs2 button.on {
  color: var(--p);
}
.tabs2 .ind {
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 4px;
  width: calc(50% - 4px);
  background: #fff;
  border-radius: 11px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
  transition: transform 0.35s var(--spring);
}
.tabs2.r .ind {
  transform: translateX(100%);
}
.err-msg {
  color: var(--rose);
  font-size: 13px;
  font-weight: 700;
  min-height: 18px;
  margin: 4px 0 8px;
}

.empty {
  text-align: center;
  padding: 46px 20px;
  color: var(--tx2);
}
.empty .em {
  width: 96px;
  height: 96px;
  border-radius: 30px;
  background: #eef3ff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 50px;
  animation: bob 2.4s ease-in-out infinite;
}
.empty b {
  display: block;
  color: var(--tx);
  font-size: 17px;
  margin: 8px 0 4px;
}
.skel {
  height: 130px;
  border-radius: 20px;
  background: linear-gradient(110deg, #eceaf5 30%, #f7f6fc 50%, #eceaf5 70%);
  background-size: 200% 100%;
  animation: shimmer 1.2s linear infinite;
}
.banner {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 12px 16px;
  border-radius: 14px;
  background: #fff6e0;
  color: #8a5b00;
  font-size: 13.5px;
  font-weight: 600;
  margin-bottom: 14px;
}
.parent-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.parent-card .kids {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.parent-card .kids .chip {
  padding: 5px 6px 5px 10px;
  font-size: 13px;
}
.parent-card .kids .chip button {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.08);
  font-size: 12px;
}
.add-link {
  display: flex;
  gap: 8px;
}
.add-link select {
  flex: 1;
  padding: 8px 10px;
  border-radius: 10px;
}

.i {
  width: 1em;
  height: 1em;
  display: inline-block;
  vertical-align: -0.16em;
  flex-shrink: 0;
  overflow: visible;
}
.btn .i {
  font-size: 17px;
  transition: transform 0.3s var(--spring);
}
.btn:hover .i {
  transform: scale(1.15) rotate(-6deg);
}
.tag .i {
  font-size: 15px;
}
.chip .i {
  font-size: 14px;
}
.nav .ic .i {
  font-size: 19px;
}

#sidebar .i,
#sidebar .i *,
#sidebar .logo-svg *,
.m-head .logo-svg * {
  animation: none !important;
  transition: none !important;
  transform: none !important;
}
#tabbar a .ic .i {
  font-size: 24px;
}
.side-foot b .i {
  font-size: 16px;
  margin-right: 2px;
}
.fsec-h .ic,
.rd-item .ic {
  font-size: 21px;
  transition: transform 0.35s var(--spring);
}
.fsec:hover .fsec-h .ic,
.rd-item:hover .ic {
  transform: rotate(-8deg) scale(1.1);
}
.stat .e {
  color: var(--c);
}
.stat .e .i {
  font-size: 28px;
}
body.mobile .stat .e {
  display: block;
  position: static;
  font-size: 16px;
  margin-bottom: 2px;
}
body.mobile .stat .e .i {
  font-size: 20px;
}
.anim .stat .e {
  animation: pop 0.6s var(--spring) both;
  animation-delay: calc(var(--i, 0) * 70ms + 0.15s);
}
.datenav button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--tx2);
}
.iconbtn .i,
.datenav .i {
  font-size: 18px;
}
.viewsw button {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.seg button .i {
  font-size: 16px;
}
.toast .i {
  font-size: 18px;
}
.ph .x .i {
  font-size: 12px;
}
.ph-add span .i {
  font-size: 22px;
}
.kids .chip button,
.emails .chip button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.kids .chip button .i,
.emails .chip button .i {
  font-size: 11px;
}
.search {
  position: relative;
  flex: 1;
}
.search > .i {
  position: absolute;
  left: 13px;
  top: 50%;
  transform: translateY(-50%);
  color: #9aa3bf;
  font-size: 18px;
}
.search input {
  padding-left: 40px;
}
.memo .i {
  font-size: 18px;
  vertical-align: -0.25em;
}
.rd-item .v .i {
  font-size: 16px;
}
.waving {
  display: inline-block;
  transform-origin: 70% 80%;
  animation: wave 2.2s ease-in-out infinite;
  font-size: 16px;
}

.anim .i .draw,
#sheet .i .draw,
.stamped .i .draw,
.toast .i .draw,
.btn .i .draw {
  stroke-dasharray: 24;
  stroke-dashoffset: 24;
  animation: draw 0.55s 0.2s var(--ease) forwards;
}
.i .tassel {
  transform-box: fill-box;
  transform-origin: 50% 0;
  animation: swing 1.8s ease-in-out infinite;
}
.i .typing circle {
  animation: blink 1.3s infinite;
}
.i .typing circle:nth-child(2) {
  animation-delay: 0.18s;
}
.i .typing circle:nth-child(3) {
  animation-delay: 0.36s;
}
.stat .i .hand,
.fsec-h .i .hand {
  transform-origin: 12px 12px;
  animation: spin 5s linear infinite;
}
.i .dot {
  animation: pulse 1.6s ease-in-out infinite;
  transform-box: fill-box;
  transform-origin: center;
}
.i-star path,
.i-trophy path:first-child {
  transform-box: fill-box;
  transform-origin: center;
}
.tag:hover .i-star path,
.rd-item:hover .i-trophy {
  animation: jelly 0.7s var(--spring);
}

.logo-svg .cap {
  transform-origin: 32px 28px;
  animation: capbob 3.2s ease-in-out infinite;
}
.logo-svg .tassel2 {
  transform-box: fill-box;
  transform-origin: 50% 0;
  animation: swing 1.8s ease-in-out infinite;
}
.logo-svg .pg1 {
  stroke-dasharray: 60;
  animation: pageflow 3.2s ease-in-out infinite;
}
.logo-svg .shine {
  animation: shine 4s ease-in-out infinite;
}
@keyframes draw {
  to {
    stroke-dashoffset: 0;
  }
}
@keyframes swing {
  0%,
  100% {
    transform: rotate(-14deg);
  }
  50% {
    transform: rotate(14deg);
  }
}
@keyframes blink {
  0%,
  60%,
  100% {
    opacity: 1;
  }
  30% {
    opacity: 0.25;
  }
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.25);
  }
}
@keyframes jelly {
  0% {
    transform: scale(1);
  }
  30% {
    transform: scale(1.25, 0.85);
  }
  50% {
    transform: scale(0.9, 1.12);
  }
  70% {
    transform: scale(1.06, 0.95);
  }
  100% {
    transform: scale(1);
  }
}
@keyframes capbob {
  0%,
  100% {
    transform: translateY(0) rotate(0);
  }
  50% {
    transform: translateY(-2.5px) rotate(-4deg);
  }
}
@keyframes pageflow {
  0%,
  100% {
    stroke-dashoffset: 0;
  }
  50% {
    stroke-dashoffset: 6;
  }
}
@keyframes shine {
  0%,
  100% {
    opacity: 0.06;
  }
  50% {
    opacity: 0.16;
  }
}
@keyframes wave {
  0%,
  60%,
  100% {
    transform: rotate(0);
  }
  10%,
  30% {
    transform: rotate(16deg);
  }
  20%,
  40% {
    transform: rotate(-8deg);
  }
}

#sheet .pane {
  will-change: transform;
  backface-visibility: hidden;
  contain: layout paint;
}
body.pc #sheet .pane {
  transition: transform 0.38s cubic-bezier(0.22, 0.9, 0.3, 1);
}
body.mobile #sheet .pane {
  transition: transform 0.38s cubic-bezier(0.22, 0.9, 0.3, 1);
}
body.sheet-open #content *,
body.sheet-open #sidebar * {
  animation-play-state: paused !important;
}
.datebtn {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  flex-shrink: 0;
}
.datebtn input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  padding: 0;
  border: 0;
}
.lbl-now {
  display: flex;
  align-items: center;
  gap: 6px;
}
.now {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--p);
  background: var(--pl);
  padding: 2px 8px;
  border-radius: 7px;
}
.now:active {
  transform: scale(0.92);
}
#fDur {
  margin-top: 8px;
  color: var(--p);
  font-weight: 700;
}

.toolbar {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 12px;
}
.toolbar .search {
  flex: 1;
  max-width: 520px;
}
.search .clr {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #eef1f7;
  color: #7c88a8;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}
.search input {
  padding-right: 40px;
}
.filters button small {
  font-weight: 600;
  opacity: 0.6;
  margin-left: 2px;
}
.count {
  font-size: 13px;
  color: var(--tx2);
  font-weight: 700;
  margin: 0 4px 10px;
}
mark {
  background: #ffe58a;
  color: inherit;
  border-radius: 4px;
  padding: 0 1px;
}
.tbl {
  background: #fff;
  border-radius: 18px;
  box-shadow: var(--sh);
  overflow: hidden;
}
.tbl-h,
.tbl-r {
  display: grid;
  align-items: center;
  gap: 14px;
  padding: 12px 20px;
}
.st-cols {
  grid-template-columns: minmax(150px, 1.5fr) 64px minmax(150px, 1.3fr) minmax(
      160px,
      1.8fr
    ) 90px 24px;
}
.sched {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 13px;
}
.sched b {
  color: var(--p);
  margin-right: 2px;
}
.pa-cols {
  grid-template-columns: minmax(200px, 2fr) 130px 90px minmax(150px, 1.8fr) minmax(
      180px,
      1.4fr
    ) 40px;
}
.tbl-h {
  background: #f6f8fd;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--tx2);
  border-bottom: 1px solid var(--line);
  padding-top: 10px;
  padding-bottom: 10px;
}
.tbl-r {
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  transition: background 0.15s;
  font-size: 14.5px;
}
.tbl-r:last-child {
  border-bottom: 0;
}
.tbl-r:hover {
  background: #f8faff;
}
.tbl-r .nm {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.tbl-r .ava,
.list .row .ava,
.parent-card .ava {
  width: 40px;
  height: 40px;
  font-size: 16px;
  border-radius: 13px;
  box-shadow: none;
}
.tbl-r .go {
  color: #a2aac2;
  font-size: 18px;
  display: flex;
}
.tbl-r .chips,
.tbl-r .kids {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  min-width: 0;
}
.cell-sub {
  font-size: 12.5px;
  color: var(--tx2);
}
.ell {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tbl-r .add-link select {
  padding: 7px 9px;
  font-size: 13px;
}
.list .row .mid small + small {
  margin-top: 1px;
}
.linkbox {
  margin-bottom: 16px;
  padding: 14px 18px;
}
.linkbox summary {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  list-style: none;
}
.linkbox summary::-webkit-details-marker {
  display: none;
}
.linkbox summary .ic {
  width: 34px;
  height: 34px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--b);
  font-size: 18px;
}
.linkbox summary .sp {
  flex: 1;
}
.linkbox .chev {
  transition: transform 0.25s;
}
.linkbox[open] .chev {
  transform: rotate(90deg);
}

.btn.out {
  background: #fff4d6;
  color: #a86a00;
}

.kid-sw button .ava {
  width: 26px;
  height: 26px;
  font-size: 12px;
  border-radius: 50% !important;
  box-shadow: none !important;
  border: 2px solid #fff;
  flex-shrink: 0;
}
body.mobile .m-head .kid-sw {
  background: rgba(255, 255, 255, 0.14);
  border-radius: 16px;
  padding: 4px;
  gap: 4px;
}
body.mobile .m-head .kid-sw button {
  flex: 1;
  justify-content: center;
  gap: 7px;
  padding: 6px 10px;
  border-radius: 12px;
  background: transparent;
  border: 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 14px;
  white-space: nowrap;
}
body.mobile .m-head .kid-sw button.on {
  background: #fff;
  color: #14246e;
  box-shadow: 0 4px 12px rgba(10, 20, 80, 0.18);
}
body.mobile .m-head .kid-sw button .ava {
  border-color: rgba(255, 255, 255, 0.6);
}
body.mobile .m-head .kid-sw button.on .ava {
  border-color: #e8eeff;
}

* {
  scrollbar-width: none;
  -ms-overflow-style: none;
}
*::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

label.f i {
  color: var(--rose);
  font-style: normal;
}
.ferr {
  font-size: 12.5px;
  color: var(--rose);
  font-weight: 600;
  min-height: 0;
  margin-top: 5px;
}
.ferr:empty {
  display: none;
}
.ferr .ok-msg {
  color: #0a8a72;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
input.bad {
  border-color: var(--rose) !important;
  background: #fff7f8;
}
input.bad:focus {
  box-shadow: 0 0 0 4px rgba(239, 78, 92, 0.12);
}
input.good {
  border-color: #9adbc9;
}
.chk-row {
  display: flex;
  gap: 18px;
  margin: 2px 2px 4px;
}
.chk {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 14px;
  font-weight: 600;
  color: var(--tx);
  cursor: pointer;
  user-select: none;
}
.chk input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}
.chk span {
  width: 20px;
  height: 20px;
  border-radius: 7px;
  border: 1.8px solid #c9d1e4;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 13px;
  transition: all 0.2s var(--spring);
  background: #fff;
}
.chk span .i {
  opacity: 0;
  transform: scale(0.4);
  transition: all 0.25s var(--spring);
}
.chk input:checked + span {
  background: var(--p);
  border-color: var(--p);
}
.chk input:checked + span .i {
  opacity: 1;
  transform: none;
}
.pend-info {
  background: #f4f6fc;
  border-radius: 16px;
  padding: 6px 16px;
  margin-bottom: 16px;
}
.pend-info div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 14px;
}
.pend-info div:last-child {
  border-bottom: 0;
}
.pend-info span {
  color: var(--tx2);
}
.hero-ic .i-clock .hand {
  transform-origin: 12px 12px;
  animation: spin 6s linear infinite;
}

.pend-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 16px;
  border-radius: 16px;
  background: linear-gradient(95deg, #fff4d6, #fff9ec);
  color: #7a5200;
  margin-bottom: 14px;
  font-size: 14px;
  border: 1px solid #ffe6a6;
}
.pend-banner .i {
  font-size: 20px;
  color: #e08a00;
}
.pend-banner .sp {
  flex: 1;
}
.pend-banner .btn {
  background: #fff;
  color: #7a5200;
  border: 1px solid #ffd98a;
}
.pa-cols {
  grid-template-columns: minmax(200px, 1.8fr) 130px 90px minmax(160px, 1.6fr) minmax(200px, 1.3fr);
}
.tbl-r.pend,
.parent-card.pend {
  background: #fffcf3;
}
.acts {
  display: flex;
  gap: 6px;
  align-items: center;
  flex-wrap: wrap;
}
.parent-card .acts {
  margin-top: 4px;
}
.parent-card .acts .btn {
  flex: 1;
}
.tag .ava.xs,
.ava.xs {
  width: 18px !important;
  height: 18px !important;
  font-size: 10px !important;
  border-radius: 6px !important;
  box-shadow: none !important;
}
.nbadge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 19px;
  height: 19px;
  padding: 0 5px;
  border-radius: 99px;
  background: var(--rose);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  margin-left: auto;
}
#tabbar .ic {
  position: relative;
}
#tabbar .nbadge {
  position: absolute;
  top: -4px;
  right: -10px;
  min-width: 16px;
  height: 16px;
  font-size: 10px;
  margin: 0;
}
.klist {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.krow {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1.5px solid var(--line);
  cursor: pointer;
  transition: all 0.2s;
  background: #fff;
}
.krow:hover {
  border-color: #c9d6fa;
}
.krow input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}
.krow .ava {
  width: 40px;
  height: 40px;
  font-size: 16px;
  border-radius: 13px;
  box-shadow: none;
}
.krow .mid {
  flex: 1;
  min-width: 0;
}
.krow .mid b {
  display: block;
}
.krow .mid small {
  display: block;
  color: var(--tx2);
  font-size: 12.5px;
}
.krow .kchk {
  width: 26px;
  height: 26px;
  border-radius: 9px;
  border: 1.8px solid #c9d1e4;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 15px;
  transition: all 0.25s var(--spring);
}
.krow .kchk .i {
  opacity: 0;
  transform: scale(0.3);
  transition: all 0.25s var(--spring);
}
.krow.on {
  border-color: var(--p);
  background: #f4f7ff;
}
.krow.on .kchk {
  background: var(--p);
  border-color: var(--p);
}
.krow.on .kchk .i {
  opacity: 1;
  transform: none;
}
.kcount {
  align-self: center;
  font-size: 13.5px;
  color: var(--tx2);
  flex: 0 0 auto !important;
  padding: 0 4px;
}
.kcount b {
  color: var(--p);
}

.trow {
  display: grid;
  grid-template-columns: 34px 1fr 16px 1fr;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.trow b {
  width: 34px;
  height: 34px;
  border-radius: 11px;
  background: var(--pl);
  color: var(--p);
  display: flex;
  align-items: center;
  justify-content: center;
}
.trow span {
  text-align: center;
  color: var(--tx2);
}
.trow input {
  padding: 9px 10px;
}
.today-pill .i {
  font-size: 11px;
  vertical-align: -0.1em;
}
.sched-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border-radius: 16px;
  box-shadow: var(--sh);
  padding: 12px 16px;
  margin-bottom: 12px;
  font-size: 13.5px;
}
.sched-bar .i {
  font-size: 20px;
  flex-shrink: 0;
}
.sched-bar b {
  display: block;
  font-size: 12.5px;
  color: var(--tx2);
  font-weight: 700;
}
.kid-line {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
}
.kid-line .ava {
  width: 40px;
  height: 40px;
  font-size: 16px;
  border-radius: 13px;
  box-shadow: none;
}
.kid-line .cell-sub .i {
  font-size: 13px;
}
#pdetail.flash {
  animation: fadeIn 0.35s var(--ease);
}
@keyframes fadeIn {
  from {
    opacity: 0.3;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
body.mobile .p-grid > div:first-child {
  order: 0;
}

.tblock {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 12.5px;
  color: var(--tx2);
  margin-top: 3px;
  line-height: 1.35;
  white-space: nowrap;
}
.tblock .dur {
  color: var(--p);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.tblock .dur .i {
  font-size: 12px;
}
.pane-h .ttl small,
.rd-date small {
  display: block;
}
.pane-h,
.rd-head {
  align-items: flex-start;
}
.pane-h > .iconbtn,
.pane-h > .chip,
.rd-head > .chip {
  margin-top: 4px;
}

.week button.td:not(.on) {
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.7);
}
.week button.sun:not(.on) {
  color: #ffd3da;
}
.week button em {
  position: absolute;
  top: -16px;
  left: 0;
  right: 0;
  font-style: normal;
  font-size: 10.5px;
  font-weight: 800;
  color: #ffe08a;
  white-space: nowrap;
}
.week button.m1 {
  margin-left: 10px;
}
.today-btn {
  font-size: 12px;
  font-weight: 800;
  color: #14246e;
  background: #fff;
  border-radius: 9px;
  padding: 3px 9px;
  vertical-align: middle;
  margin-left: 4px;
}

.nlist {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 860px;
}
.ncard {
  background: #fff;
  border-radius: 18px;
  box-shadow: var(--sh);
  padding: 16px 18px;
  cursor: pointer;
  transition:
    transform 0.2s var(--ease),
    box-shadow 0.2s;
  position: relative;
  border: 1.5px solid transparent;
}
.ncard:hover {
  transform: translateY(-2px);
  box-shadow: var(--sh2);
}
.ncard.pin {
  border-color: #ffd3df;
  background: linear-gradient(180deg, #fff8fa, #fff 60%);
}
.ncard.unread::after {
  content: '';
  position: absolute;
  top: 18px;
  right: 16px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--rose);
}
.nc-top {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.nc-top b {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.3px;
}
.nc-pin {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 11.5px;
  font-weight: 800;
  color: #e03e6b;
  background: #ffe6ed;
  padding: 2px 8px;
  border-radius: 7px;
}
.nc-pin .i {
  font-size: 12px;
}
.nc-new {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 6px;
  background: var(--rose);
  color: #fff;
  font-size: 10.5px;
  font-weight: 900;
}
.ncard p {
  margin: 6px 0 10px;
  color: #4a5573;
  font-size: 14px;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  white-space: pre-line;
}
.nc-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12.5px;
  color: var(--tx2);
}
.nc-meta span {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}
.nc-meta .sp {
  flex: 1;
}
.nb-ic {
  width: 40px;
  height: 40px;
  border-radius: 13px;
  background: #ffe6ed;
  color: #f0507a;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}
.n-body {
  white-space: pre-wrap;
  font-size: 15.5px;
  line-height: 1.75;
  padding: 18px 2px 8px;
  color: var(--tx);
  word-break: keep-all;
}
.n-photos {
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
}
.n-photos .ph {
  animation: none;
  background: #eef1f7;
}
.notice-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  border-radius: 16px;
  box-shadow: var(--sh);
  padding: 12px 14px;
  margin: 14px 0 2px;
  cursor: pointer;
  transition: transform 0.2s var(--ease);
}
.notice-bar:hover {
  transform: translateY(-2px);
}
.notice-bar .nb-t {
  flex: 1;
  min-width: 0;
}
.notice-bar small {
  font-size: 12px;
  color: #e03e6b;
  font-weight: 700;
}
.notice-bar b {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.notice-bar .nb-ic {
  animation: ring 2.6s ease-in-out infinite;
  transform-origin: 50% 20%;
}
@keyframes ring {
  0%,
  80%,
  100% {
    transform: rotate(0);
  }
  84% {
    transform: rotate(-10deg);
  }
  88% {
    transform: rotate(9deg);
  }
  92% {
    transform: rotate(-6deg);
  }
  96% {
    transform: rotate(3deg);
  }
}
.more-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding: 16px 0 6px;
}
.more-grid a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 16px 6px;
  border-radius: 16px;
  background: #f4f6fc;
  font-weight: 700;
  font-size: 13.5px;
  cursor: pointer;
  color: var(--tx);
}
.more-grid a .ic {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: #fff;
  color: var(--p);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  box-shadow: 0 4px 10px rgba(30, 58, 138, 0.08);
}
.more-grid a.on {
  background: var(--pl);
  color: var(--p);
}

input,
select,
textarea {
  min-width: 0;
  max-width: 100%;
}
.two > *,
.three > *,
.trow > *,
.fl,
.fsec {
  min-width: 0;
}
input[type='date'],
input[type='time'] {
  -webkit-appearance: none;
  appearance: none;
  min-height: 44px;
  display: block;
  line-height: 1.2;
}
input::-webkit-date-and-time-value {
  text-align: left;
}
::placeholder {
  color: #aeb6cb;
  opacity: 1;
  font-size: 13.5px;
}
.hint {
  font-size: 12px;
}
textarea {
  min-height: 64px;
}
#sheet .pane-b {
  overflow-x: hidden;
}
body.mobile input,
body.mobile select,
body.mobile textarea {
  font-size: 16px;
  padding: 10px 12px;
}
body.mobile ::placeholder {
  font-size: 14px;
}
body.mobile .three {
  grid-template-columns: 1fr 1fr;
}
body.mobile .three > :first-child {
  grid-column: 1/-1;
}
body.mobile label.f {
  font-size: 12.5px;
  margin-bottom: 5px;
}
body.mobile .fsec {
  padding: 13px 0;
}
body.mobile .pane-b {
  padding: 4px 16px 16px;
}

.grid.cards > .scard,
.list > .row,
.nlist > .ncard,
.ablist > .abcard {
  content-visibility: auto;
  contain-intrinsic-size: auto 160px;
}

.fb-wrap {
  margin-top: 16px;
  border: 1.5px solid var(--line);
  border-radius: 18px;
  background: #fff;
  overflow: hidden;
}
.fb-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  background: #fafbfe;
}
.fb-hic {
  width: 34px;
  height: 34px;
  border-radius: 11px;
  background: #e6f6ec;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}
.fb-head b {
  display: block;
  font-size: 14.5px;
  font-weight: 800;
}
.fb-head small {
  display: block;
  font-size: 12px;
  color: var(--tx2);
  line-height: 1.4;
}
.fb-count {
  margin-left: auto;
  background: var(--p);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  border-radius: 99px;
  padding: 2px 9px;
  flex-shrink: 0;
}
.msgs {
  padding: 14px 12px 10px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: #f6f8fc;
}
.msg {
  display: flex;
  gap: 8px;
  align-items: flex-start;
}
.msg.me {
  justify-content: flex-end;
}
.msg-ava {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 800;
  color: #fff;
  background: #7c93d9;
  margin-top: 2px;
}
.msg-ava.admin {
  background: #22a35a;
  font-size: 16px;
}
.msg-col {
  display: flex;
  flex-direction: column;
  max-width: 80%;
  min-width: 0;
}
.msg.me .msg-col {
  align-items: flex-end;
}
.msg-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  color: #8c95ae;
  margin: 0 4px 4px;
}
.msg-meta b {
  color: var(--tx);
  font-size: 12.5px;
  font-weight: 700;
}
.msg-del {
  font-size: 11.5px;
  color: #a9b1c7;
  padding: 0 2px;
}
.msg-del:hover {
  color: var(--rose);
}
.bubble {
  padding: 10px 14px;
  border-radius: 18px;
  font-size: 14.5px;
  line-height: 1.6;
  white-space: pre-wrap;
  word-break: break-word;
  letter-spacing: -0.1px;
}
.msg.them .bubble {
  background: #fff;
  border: 1px solid #e1e7f2;
  border-top-left-radius: 6px;
  color: var(--tx);
}
.msg.them.admin .bubble {
  background: #effaf3;
  border-color: #cdebd8;
}
.msg.me .bubble {
  background: linear-gradient(135deg, #2d5be3, #4a78f5);
  color: #fff;
  border-top-right-radius: 6px;
  box-shadow: 0 4px 12px rgba(45, 91, 227, 0.2);
}
.msg.me.admin .bubble {
  background: linear-gradient(135deg, #1e9a55, #2bb868);
  box-shadow: 0 4px 12px rgba(34, 163, 90, 0.2);
}
.fb-empty {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
  color: #9aa3bf;
  font-size: 13px;
  padding: 8px 0 12px;
}
.fb-empty .i {
  font-size: 16px;
  opacity: 0.6;
}
.fb-input {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  padding: 10px 12px;
  border-top: 1px solid var(--line);
  background: #fff;
}
body .fb-input textarea {
  flex: 1;
  min-height: 42px;
  max-height: 120px;
  resize: none;
  border-radius: 21px;
  padding: 10px 16px;
  line-height: 1.4;
  background: #f4f6fc;
  border: 1.5px solid transparent;
}
body .fb-input textarea:focus {
  background: #fff;
  border-color: var(--p);
}
.fb-input .send {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--p);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
  box-shadow: 0 6px 14px rgba(45, 91, 227, 0.3);
  transition: transform 0.2s var(--spring);
}
.fb-input .send:active {
  transform: scale(0.9);
}
.fb-input .send[disabled] {
  opacity: 0.5;
}
.fsec .fb-wrap {
  margin-top: 0;
}
.tag.fbtag {
  background: #e9f7ee;
  color: #1e8a4c;
}
.tag.fbtag.new {
  background: #22a35a;
  color: #fff;
}
.fbcount {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 12px;
  font-weight: 700;
  color: #1e8a4c;
  background: #e9f7ee;
  border-radius: 8px;
  padding: 3px 7px;
  margin-right: 6px;
}
.fbcount.new {
  background: #22a35a;
  color: #fff;
}

.ablist {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 860px;
}
.abcard {
  background: #fff;
  border-radius: 18px;
  box-shadow: var(--sh);
  padding: 14px 16px;
  border-left: 5px solid #f5a623;
}
.abcard.ab-confirmed {
  border-left-color: var(--mint);
}
.abcard.ab-rejected {
  border-left-color: #c9cfdf;
  opacity: 0.85;
}
.abcard .ava {
  width: 40px;
  height: 40px;
  font-size: 16px;
  border-radius: 13px;
  box-shadow: none;
}
.ab-body {
  margin: 10px 0 6px;
}
.ab-r {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-weight: 800;
  font-size: 13.5px;
  background: #eef3ff;
  color: #14246e;
  padding: 4px 10px;
  border-radius: 9px;
}
.ab-r .i {
  font-size: 15px;
  color: var(--p);
}
.ab-body p {
  margin: 8px 0 0;
  font-size: 14px;
  color: #4a5573;
  white-space: pre-wrap;
}
.ab-note {
  display: flex;
  gap: 6px;
  align-items: flex-start;
  background: #fff6f7;
  border-radius: 10px;
  padding: 8px 10px;
  font-size: 13px;
  margin: 6px 0;
}
.ab-note .i {
  color: var(--rose);
  flex-shrink: 0;
  margin-top: 2px;
}
.ab-foot {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--tx2);
  margin-top: 8px;
}
.ab-foot .sp {
  flex: 1;
}
.ab-hero {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  border-radius: 18px;
  box-shadow: var(--sh);
  padding: 14px 16px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.ab-hero > div:nth-child(2) {
  flex: 1;
  min-width: 150px;
}
.ab-hero b {
  display: block;
  font-size: 15.5px;
}
.ab-hero small {
  color: var(--tx2);
  font-size: 12.5px;
}
.ab-kid {
  display: flex;
  align-items: center;
  gap: 10px;
}
.ab-kid .ava {
  width: 36px;
  height: 36px;
  font-size: 15px;
  border-radius: 12px;
  box-shadow: none;
}
.ab-seg button {
  min-width: 30%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.ab-info {
  margin-top: 8px;
  font-size: 12.5px;
  color: var(--p);
  display: flex;
  gap: 4px;
  align-items: center;
  flex-wrap: wrap;
}
.ab-info:empty {
  display: none;
}
.tag.abtag {
  background: #fff1d6;
  color: #9a6200;
}
.tag.abtag.ab-confirmed {
  background: #ffe5eb;
  color: #c2334f;
}
.more-grid a .ic {
  position: relative;
}
.more-grid .nbadge {
  position: absolute;
  top: -5px;
  right: -8px;
  margin: 0;
}

@keyframes up {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes pop {
  from {
    opacity: 0;
    transform: scale(0.85) translateY(30px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}
@keyframes bob {
  0%,
  100% {
    transform: translateY(0) rotate(-4deg);
  }
  50% {
    transform: translateY(-10px) rotate(4deg);
  }
}
@keyframes shimmer {
  to {
    background-position: -200% 0;
  }
}
@keyframes toastIn {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.9);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes toastOut {
  to {
    opacity: 0;
    transform: translateY(10px) scale(0.95);
  }
}
@keyframes stamp {
  0% {
    transform: scale(2.4) rotate(-20deg);
    opacity: 0;
  }
  60% {
    transform: scale(0.9) rotate(4deg);
    opacity: 1;
  }
  100% {
    transform: scale(1) rotate(0);
  }
}
@keyframes conf {
  to {
    transform: translate(var(--x), var(--y)) rotate(var(--r));
    opacity: 0;
  }
}
.anim .a {
  animation: up 0.5s var(--ease) both;
  animation-delay: calc(var(--i, 0) * 45ms);
}
.stamped .chip {
  animation: stamp 0.6s var(--spring);
}
.confetti {
  position: fixed;
  width: 8px;
  height: 12px;
  border-radius: 2px;
  z-index: 99;
  pointer-events: none;
  animation: conf 0.9s cubic-bezier(0.2, 0.7, 0.4, 1) forwards;
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

.brand {
  align-items: flex-start;
  margin-bottom: 10px;
  padding-bottom: 0;
  border-bottom: 0;
}
.brand .bt {
  min-width: 0;
  flex: 1;
  padding-top: 2px;
}
.brand .mark {
  width: 42px;
  height: 42px;
}
.brand {
  gap: 10px;
}
.brand .bt b {
  font-size: 16.5px;
  letter-spacing: -0.7px;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.who {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 6px 24px;
  padding: 0 0 18px;
  border-bottom: 1px solid var(--line);
  color: #8a93ad;
  font-size: 12.5px;
  font-weight: 600;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.who .role {
  flex-shrink: 0;
  background: #eef3ff;
  color: var(--p);
  font-weight: 700;
  font-size: 11px;
  padding: 1px 7px;
  border-radius: 6px;
}
.br-sw {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 5px;
  padding: 3px 9px 3px 10px;
  border-radius: 99px;
  background: #eef3ff;
  color: var(--p);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: -0.2px;
  cursor: pointer;
  white-space: nowrap;
  max-width: 100%;
  transition:
    background 0.2s,
    transform 0.2s var(--spring);
}
.br-sw .i {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
}
.br-sw:hover {
  background: #dfe8ff;
}
.br-sw:active {
  transform: scale(0.95);
}
.br-sw.static {
  cursor: default;
}
.m-head .logo {
  min-width: 0;
  align-items: center;
}
.m-head .mt {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
  line-height: 1.15;
}
.m-head .mt b {
  font-size: 17px;
  font-weight: 900;
  letter-spacing: -0.6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}
.m-head .br-sw {
  margin-top: 3px;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 11.5px;
  padding: 2px 8px;
}
.m-head .br-sw:hover {
  background: rgba(255, 255, 255, 0.3);
}
.auth-box h1 {
  font-size: 27px;
  line-height: 1.2;
  word-break: keep-all;
}
.auth-box .hero p {
  font-weight: 700;
  color: var(--p);
  font-size: 15px;
  margin-top: 6px;
}
.br-pick {
  margin: 0 0 16px;
  border-radius: 16px;
  transition: box-shadow 0.2s;
}
.br-pick.need {
  animation: shake 0.35s;
  box-shadow: 0 0 0 2px var(--rose);
}
.br-lbl {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--tx2);
  margin: 0 2px 7px;
}
.br-opts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.br-opts button {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 12px 6px;
  border-radius: 14px;
  border: 2px solid var(--line);
  background: #fff;
  cursor: pointer;
  transition:
    border-color 0.2s,
    background 0.2s,
    transform 0.2s var(--spring);
  min-width: 0;
}
.br-opts button .br-n {
  font-size: 17px;
  font-weight: 900;
  color: var(--tx);
  letter-spacing: -0.5px;
}
.br-opts button small {
  font-size: 11.5px;
  color: var(--tx2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}
.br-opts button.on {
  border-color: var(--p);
  background: #eef3ff;
  box-shadow: 0 6px 16px rgba(45, 91, 227, 0.18);
}
.br-opts button.on .br-n {
  color: var(--p);
}
.br-opts button:active {
  transform: scale(0.97);
}
.br-opts button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
@keyframes shake {
  0%,
  100% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-6px);
  }
  75% {
    transform: translateX(6px);
  }
}

.lvbar {
  display: inline-flex;
  gap: 4px;
  background: #edf1fa;
  border-radius: 14px;
  padding: 4px;
  margin: 0 0 12px;
  max-width: 100%;
  overflow-x: auto;
  scrollbar-width: none;
}
.lvbar::-webkit-scrollbar {
  display: none;
}
.lvbar button {
  padding: 7px 16px;
  border-radius: 11px;
  font-weight: 800;
  font-size: 13px;
  color: var(--tx2);
  white-space: nowrap;
  transition:
    background 0.2s,
    color 0.2s,
    box-shadow 0.2s;
}
.lvbar button small {
  font-weight: 700;
  opacity: 0.7;
  margin-left: 2px;
}
.lvbar button.on {
  background: #fff;
  color: var(--p);
  box-shadow: 0 3px 10px rgba(30, 58, 138, 0.12);
}
.lv-tag {
  display: inline-block;
  vertical-align: 1px;
  font-size: 10.5px;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 6px;
  margin-right: 5px;
  letter-spacing: 0;
  line-height: 1.5;
}
.lv-초등 {
  background: #e6f7ee;
  color: #1b8a4c;
}
.lv-중등 {
  background: #ede8ff;
  color: #5b3fd0;
}
.lv-고등 {
  background: #fff0e0;
  color: #c46a00;
}

.evgrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 16px;
}
body.mobile .evgrid {
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.evcard {
  background: #fff;
  border-radius: 20px;
  box-shadow: var(--sh);
  overflow: hidden;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  transition:
    transform 0.25s var(--ease),
    box-shadow 0.25s;
  min-width: 0;
}
body.pc .evcard:hover {
  transform: translateY(-4px);
  box-shadow: var(--sh2);
}
.ev-cover {
  position: relative;
  aspect-ratio: 4/3;
  background: linear-gradient(110deg, #efedf7 30%, #f8f7fc 50%, #efedf7 70%);
  background-size: 200% 100%;
  overflow: hidden;
}
.ev-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s var(--ease);
}
body.pc .evcard:hover .ev-cover img {
  transform: scale(1.05);
}
.ev-noimg {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(140deg, #fff4d6, #ffe1ea);
  color: #e08a00;
}
.ev-noimg .i {
  width: 44px;
  height: 44px;
}
.ev-cnt,
.ev-date,
.ev-new {
  position: absolute;
  font-size: 11px;
  font-weight: 800;
  border-radius: 8px;
  padding: 3px 7px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}
.ev-cnt {
  right: 8px;
  bottom: 8px;
  background: rgba(10, 20, 60, 0.6);
  color: #fff;
  backdrop-filter: blur(4px);
}
.ev-cnt .i {
  width: 12px;
  height: 12px;
}
.ev-date {
  left: 8px;
  bottom: 8px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--tx);
}
.ev-new {
  left: 8px;
  top: 8px;
  background: #f0507a;
  color: #fff;
  animation: pop 0.5s var(--spring) both;
}
.ev-b {
  padding: 12px 14px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  flex: 1;
}
.ev-b b {
  font-size: 15.5px;
  letter-spacing: -0.4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ev-b p {
  margin: 0;
  font-size: 13px;
  color: var(--tx2);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: keep-all;
  overflow-wrap: anywhere;
  min-height: 39px;
}
.ev-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #8a93ad;
  margin-top: 4px;
}
.ev-meta .sp {
  flex: 1;
}
.ev-meta .i {
  width: 13px;
  height: 13px;
}
body.mobile .ev-b {
  padding: 10px 11px;
}
body.mobile .ev-b b {
  font-size: 14px;
}
body.mobile .ev-b p {
  font-size: 12px;
  min-height: 36px;
}
body.mobile .ev-date {
  font-size: 10px;
  padding: 2px 5px;
}
.ev-gal-wrap {
  position: relative;
  margin: -2px 0 6px;
  border-radius: 18px;
  overflow: hidden;
  background: #0e1630;
}
.ev-gal {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.ev-gal::-webkit-scrollbar {
  display: none;
}
.ev-slide {
  flex: 0 0 100%;
  scroll-snap-align: center;
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: zoom-in;
}
.ev-slide img {
  max-width: 100%;
  max-height: 100%;
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.ev-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
  color: var(--tx);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  cursor: pointer;
}
.ev-nav.l {
  left: 10px;
}
.ev-nav.r {
  right: 10px;
}
body.mobile .ev-nav {
  display: none;
}
.ev-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 10px;
  display: flex;
  justify-content: center;
  gap: 5px;
  pointer-events: none;
}
.ev-dots i {
  width: 6px;
  height: 6px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.5);
  transition:
    width 0.25s,
    background 0.25s;
}
.ev-dots i.on {
  width: 18px;
  background: #fff;
}
.event-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  border-radius: 16px;
  box-shadow: var(--sh);
  padding: 10px 14px 10px 10px;
  margin: 10px 0 2px;
  cursor: pointer;
  transition: transform 0.2s var(--ease);
  min-width: 0;
}
.event-bar:hover {
  transform: translateY(-2px);
}
.event-bar .nb-t {
  flex: 1;
  min-width: 0;
}
.event-bar small {
  font-size: 12px;
  color: #e08a00;
  font-weight: 700;
}
.event-bar b {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.event-bar span {
  font-size: 12px;
  color: #8a93ad;
}
.eb-img {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  overflow: hidden;
  flex-shrink: 0;
  background: linear-gradient(140deg, #fff4d6, #ffe1ea);
  color: #e08a00;
  display: flex;
  align-items: center;
  justify-content: center;
}
.eb-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.ev-main {
  position: absolute;
  left: 5px;
  top: 5px;
  z-index: 2;
  background: var(--p);
  color: #fff;
  font-size: 10.5px;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 6px;
}
body.mobile .search input,
body.pc .search input {
  padding-left: 40px;
  padding-right: 40px;
}

.ab-tabs {
  display: flex;
  gap: 4px;
  background: #edf1fa;
  border-radius: 14px;
  padding: 4px;
  margin: 0 0 14px;
  max-width: 420px;
}
.ab-tabs button {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 8px;
  border-radius: 11px;
  font-weight: 800;
  font-size: 14px;
  color: var(--tx2);
  white-space: nowrap;
  transition:
    background 0.2s,
    color 0.2s,
    box-shadow 0.2s;
}
.ab-tabs button .i {
  width: 16px;
  height: 16px;
}
.ab-tabs button.on {
  background: #fff;
  color: var(--p);
  box-shadow: 0 3px 10px rgba(30, 58, 138, 0.12);
}
.ab-tabs .tcnt {
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 99px;
  background: #f0507a;
  color: #fff;
  font-size: 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.ab-hero.mk {
  background: linear-gradient(120deg, #f0fbf5, #fff);
}
.ab-r.mk {
  background: #e6f7ee;
  color: #1b8a4c;
}
.ab-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 700;
  color: var(--tx2);
  background: #f2f4fa;
  border-radius: 8px;
  padding: 3px 8px;
  margin-left: 6px;
}
.ab-link.ok {
  color: #1b8a4c;
  background: #e6f7ee;
}
.ab-link .i {
  width: 13px;
  height: 13px;
}
.today-pill.mk {
  background: #e6f7ee;
  color: #1b8a4c;
}
.mk-time {
  grid-template-columns: 1fr 1fr;
}
.ab-r.mk .i {
  color: #22a35a;
}
.schs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 5px;
  margin-top: 3px;
  white-space: normal;
}
.sch {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  white-space: nowrap;
  background: #eef3ff;
  color: var(--tx);
  border-radius: 8px;
  padding: 2px 7px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.5;
}
.sch b {
  color: var(--p);
  font-weight: 800;
  margin: 0;
}
.sch.none {
  background: #f1f3f8;
  color: var(--tx2);
  font-weight: 500;
}
.sched-bar > span {
  min-width: 0;
  flex: 1;
}
.sched-bar .sch {
  font-size: 13px;
  padding: 3px 9px;
}
.pane-h .ttl .schs {
  margin-top: 4px;
}
.row .mid small .schs {
  margin: 2px 0;
}
.ev-wrap .msg-ava,
.ev-wrap .msg-meta b {
  pointer-events: none;
  cursor: default;
  user-select: none;
}
.d-sched {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 0 0 14px;
}
.d-sched > .i {
  margin-top: 5px;
  flex-shrink: 0;
}
.d-sched .schs {
  margin: 0;
}
.d-sched .sch {
  font-size: 13px;
  padding: 3px 9px;
}
.lv-tag {
  white-space: nowrap;
}
body.mobile .pane-h > .btn.sm {
  font-size: 0;
  gap: 0;
  width: 38px;
  height: 38px;
  padding: 0;
  justify-content: center;
  flex-shrink: 0;
}
body.mobile .pane-h > .btn.sm .i {
  font-size: 17px;
}
body.mobile .pane-h .ttl {
  min-width: 0;
  flex: 1;
}
.brand .bt b {
  white-space: normal;
  word-break: keep-all;
  overflow: visible;
  text-overflow: clip;
  display: block;
}
.who {
  white-space: normal;
  overflow: visible;
  flex-wrap: wrap;
  row-gap: 3px;
  word-break: keep-all;
  overflow-wrap: anywhere;
  line-height: 1.35;
}
.m-head .mt b {
  white-space: normal;
  word-break: keep-all;
  overflow: visible;
  text-overflow: clip;
  font-size: clamp(14.5px, 4.3vw, 17px);
  line-height: 1.2;
}
.m-head .logo {
  flex: 1;
  min-width: 0;
}
.cbx {
  position: relative;
}
.cbx input {
  padding-right: 42px;
}
.cbx-tg {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%) rotate(90deg);
  width: 32px;
  height: 32px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--tx2);
  transition:
    transform 0.2s var(--ease),
    background 0.2s;
}
.cbx-tg:hover {
  background: #eef2fa;
}
.cbx.open .cbx-tg {
  transform: translateY(-50%) rotate(-90deg);
  color: var(--p);
}
.cbx-list {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  z-index: 30;
  background: #fff;
  border-radius: 14px;
  box-shadow:
    0 14px 34px rgba(20, 40, 100, 0.18),
    0 0 0 1px rgba(30, 58, 138, 0.08);
  max-height: min(300px, 45vh);
  overflow-y: auto;
  padding: 6px;
  scrollbar-width: none;
  animation: cbxIn 0.16s var(--ease);
}
.cbx-list::-webkit-scrollbar {
  display: none;
}
@keyframes cbxIn {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.cbx-it,
.cbx-new {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 11px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 14.5px;
  min-width: 0;
}
.cbx-it span {
  flex: 1;
  min-width: 0;
  word-break: keep-all;
  overflow-wrap: anywhere;
}
.cbx-it small {
  flex-shrink: 0;
  color: #8a93ad;
  font-size: 11.5px;
  font-weight: 700;
  background: #f3f5fa;
  border-radius: 6px;
  padding: 1px 6px;
}
.cbx-it.on,
.cbx-it:hover {
  background: #f1edff;
}
.cbx-it .i,
.cbx-new .i {
  flex-shrink: 0;
}
.cbx-new {
  cursor: default;
  color: var(--tx2);
  font-size: 13px;
  background: #f4fbf6;
  margin-top: 2px;
}
.cbx-new b {
  color: #1b8a4c;
}
.lvseg {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 6px;
}
.lvseg button {
  min-width: 0;
  padding: 9px 0;
  font-size: 12.5px;
  letter-spacing: -0.3px;
}
body.mobile .lvseg {
  grid-template-columns: repeat(5, 1fr);
}
.lv-badge {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 8px;
  border-radius: 7px;
  background: linear-gradient(135deg, #7b5cf0, #2d5be3);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  vertical-align: 1px;
}
.bk-add {
  display: flex;
  gap: 8px;
}
.bk-add input {
  flex: 1;
  min-width: 0;
}
.bk-add .btn {
  flex-shrink: 0;
}
.bk-q {
  margin: 10px 0 0;
}
.bk-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 10px;
  max-height: 360px;
  overflow-y: auto;
  scrollbar-width: none;
  padding: 2px;
}
.bk-list::-webkit-scrollbar {
  display: none;
}
.bk-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 8px 9px 12px;
  border-radius: 12px;
  background: #f7f8fc;
  min-width: 0;
  transition:
    opacity 0.2s,
    transform 0.2s;
}
#main.anim .bk-row {
  animation: pop 0.3s var(--ease) both;
}
.bk-row.gone {
  opacity: 0;
  transform: scale(0.97);
  pointer-events: none;
}
.bk-t {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}
.bk-t b {
  font-size: 14.5px;
  word-break: keep-all;
  overflow-wrap: anywhere;
  font-weight: 700;
}
.bk-t .i {
  flex-shrink: 0;
}
.bk-row small {
  flex-shrink: 0;
  color: #8a93ad;
  font-size: 12px;
  font-weight: 600;
}
.bk-del {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9aa6c2;
  transition:
    background 0.2s,
    color 0.2s;
}
.bk-del:hover {
  background: #ffe8ee;
  color: var(--rose);
}
.bk-empty {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px;
  border-radius: 12px;
  background: #f7f8fc;
  color: var(--tx2);
  font-size: 13.5px;
  line-height: 1.5;
}
.bk-empty .i {
  flex-shrink: 0;
}
.coseg {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}
.coseg button {
  min-width: 0;
  padding: 9px 0;
  font-size: 13px;
}
.lv-badge.co {
  background: linear-gradient(135deg, #22a35a, #14b8a6);
}
.gseg {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
}
.gseg button {
  min-width: 0;
  padding: 9px 0;
  font-size: 13px;
}
body.mobile .gseg {
  grid-template-columns: repeat(4, 1fr);
}
.lv-badge.gn {
  background: linear-gradient(135deg, #f5a623, #f0507a);
}
.cbx-list {
  min-width: min(320px, calc(100vw - 48px));
}
.sc-chips {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  flex-shrink: 0;
}
.chip.draft {
  background: #fff3dc;
  color: #c46a00;
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  50% {
    opacity: 0.6;
  }
}
.draft-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff7e6;
  border: 1px solid #ffe2ae;
  border-radius: 14px;
  padding: 10px 12px;
  margin: 0 0 14px;
}
.draft-bar > span {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.draft-bar b {
  font-size: 14px;
  color: #8a5200;
}
.draft-bar small {
  font-size: 12px;
  color: #a6762a;
}
.draft-bar .i {
  flex-shrink: 0;
}
.draft-bar .btn {
  flex-shrink: 0;
}
.per-mode {
  max-width: 360px;
}
.per-card {
  padding: 18px;
}
.per-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 14px;
}
.per-nav b {
  font-size: 18px;
  letter-spacing: -0.4px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1.25;
}
.per-nav b small {
  font-size: 12.5px;
  color: var(--tx2);
  font-weight: 600;
}
.per-sum {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
  margin-bottom: 14px;
}
body.mobile .per-sum,
#sheet .per-sum {
  grid-template-columns: repeat(3, 1fr);
}
.per-sum > div {
  background: #f4f7fd;
  border-radius: 14px;
  padding: 10px 10px 9px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.per-sum small {
  font-size: 11.5px;
  color: var(--tx2);
  font-weight: 700;
  white-space: nowrap;
}
.per-sum b {
  font-size: 21px;
  font-weight: 900;
  letter-spacing: -0.5px;
  color: var(--tx);
  line-height: 1.2;
}
.per-sum b.sm {
  font-size: 15px;
  line-height: 1.6;
  word-break: keep-all;
}
.per-sum b.bad {
  color: var(--rose);
}
.per-sum em {
  font-style: normal;
  font-size: 12px;
  font-weight: 700;
  color: var(--tx2);
  margin-left: 1px;
}
.per-sum i {
  font-style: normal;
  font-size: 11px;
  color: #c46a00;
  font-weight: 700;
}
.per-books {
  background: #faf9ff;
  border: 1px solid #eee9ff;
  border-radius: 14px;
  padding: 12px 14px;
  margin-bottom: 14px;
}
.pb-h {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 800;
  font-size: 13.5px;
  margin-bottom: 6px;
}
.pb-h small {
  color: var(--tx2);
  font-weight: 600;
}
.pb-it {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 2px;
  padding: 5px 0;
  border-top: 1px dashed #e9e4fb;
  font-size: 14px;
  min-width: 0;
}
.pb-h + .pb-it {
  border-top: 0;
}
.pb-it b {
  font-weight: 700;
  word-break: keep-all;
  overflow-wrap: anywhere;
  margin-right: 2px;
}
.pb-it small {
  margin-left: auto;
  color: #8a93ad;
  font-size: 12px;
  font-weight: 700;
  padding-left: 8px;
}
.pb-p {
  font-size: 12.5px;
  color: var(--p);
  font-weight: 700;
  margin-left: 4px;
}
.per-rows {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.per-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 11px 12px;
  border-radius: 14px;
  background: #f6f8fd;
  cursor: pointer;
  transition:
    background 0.2s,
    transform 0.2s var(--ease);
  min-width: 0;
}
.per-row:hover {
  background: #eef3ff;
}
.per-row:active {
  transform: scale(0.99);
}
.per-row > .i {
  flex-shrink: 0;
  color: #b4bdd3;
  margin-top: 8px;
}
.per-row.none {
  cursor: default;
  background: transparent;
  border: 1px dashed var(--line);
  padding: 8px 12px;
}
.per-row.none:hover {
  background: transparent;
}
.pr-d {
  flex-shrink: 0;
  width: 42px;
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1.2;
  padding-top: 2px;
}
.pr-d b {
  font-size: 15px;
  font-weight: 800;
}
.pr-d small {
  font-size: 11.5px;
  color: var(--tx2);
  font-weight: 700;
}
.pr-d.sun small,
.pr-d.sun b {
  color: var(--rose);
}
.pr-d.sat small,
.pr-d.sat b {
  color: var(--p);
}
.pr-d.td {
  background: var(--p);
  border-radius: 10px;
  padding: 3px 0;
}
.pr-d.td b,
.pr-d.td small {
  color: #fff;
}
.pr-b {
  flex: 1;
  min-width: 0;
}
.pr-top {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 8px;
}
.pr-t {
  font-size: 12.5px;
  color: var(--tx2);
  font-weight: 600;
}
.pr-t b {
  color: var(--tx);
  font-weight: 800;
}
.pr-none {
  font-size: 13px;
  color: #9aa6c2;
  line-height: 28px;
}
.pr-items {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 7px;
}
.pi {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #fff;
  border-radius: 8px;
  padding: 3px 8px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--tx);
  max-width: 100%;
  word-break: keep-all;
  overflow-wrap: anywhere;
  line-height: 1.45;
}
.pi .i {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
  color: var(--p);
}
.pi.ok .i {
  color: #0a9a80;
}
.pi.no {
  color: #d33a60;
}
.pi.no .i {
  color: #d33a60;
}
.pi.bk .i {
  color: #7b5cf0;
}
.pi .lv-badge {
  margin-left: 3px;
  font-size: 10.5px;
  padding: 0 6px;
}
.memo-pi {
  color: var(--tx2);
  font-weight: 500;
}
.per-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 10px;
}
.per-links button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: #fff;
  border-radius: 14px;
  box-shadow: var(--sh);
  padding: 12px 8px;
  font-weight: 800;
  font-size: 14px;
  color: var(--tx);
  transition: transform 0.2s var(--ease);
}
.per-links button:hover {
  transform: translateY(-2px);
}
#dRecs .per-mode {
  margin-bottom: 12px;
}
.lv-badge {
  white-space: nowrap;
}
.pi.bk {
  flex-wrap: wrap;
  row-gap: 3px;
}
.pi .lv-badge {
  flex-shrink: 0;
}
.logo-img {
  display: block;
  background: #fff;
  border-radius: 24%;
  padding: 7%;
  box-sizing: border-box;
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
}
.brand .mark img,
.hero .mark img {
  width: 100%;
  height: 100%;
}
.brand .mark {
  filter: drop-shadow(0 6px 12px rgba(26, 47, 134, 0.18));
}
.brand .mark .logo-img {
  box-shadow: 0 0 0 1px #e6eaf4 inset;
}
.m-head .logo > .logo-svg {
  width: 38px;
  height: 38px;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.18));
}
.auth-box .hero .mark {
  width: 88px;
  height: 88px;
}
.hero.full {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 6px;
}
.hero-logo {
  width: min(220px, 62vw);
  height: auto;
  display: block;
  margin: -6px auto 2px;
  animation: float 4s ease-in-out infinite;
  user-select: none;
  -webkit-user-drag: none;
}
.hero.full p {
  margin-top: 2px;
}
.sr {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.m-head .mt {
  flex: 1;
  min-width: 0;
}
.m-head .br-sw {
  max-width: none;
  width: max-content;
  flex-shrink: 0;
  white-space: nowrap;
}
.br-sw {
  width: max-content;
  max-width: none;
}
.mi-wrap {
  display: flex;
  flex-direction: column;
  gap: 12px;
  counter-reset: mi;
}
.mi {
  counter-increment: mi;
  position: relative;
}
.mi-h {
  display: none;
  align-items: center;
  justify-content: space-between;
  margin: 0 0 8px;
}
.mi-wrap .mi:not(:only-child) {
  background: #fafbfe;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 12px 12px 14px;
}
.mi-wrap .mi:not(:only-child) .mi-h {
  display: flex;
}
.bk-item .mi-n::before {
  content: '책 ' counter(mi);
}
.tx-item .mi-n::before {
  content: '교재 ' counter(mi);
}
.mi-n {
  font-size: 13px;
  font-weight: 800;
  color: var(--p);
  background: var(--pl);
  padding: 3px 10px;
  border-radius: 99px;
}
.mi-x {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9aa6c2;
  transition:
    background 0.2s,
    color 0.2s;
}
.mi-x:hover {
  background: #ffe8ee;
  color: var(--rose);
}
.mi-new {
  animation: miIn 0.3s var(--ease);
}
.mi-out {
  animation: miOut 0.18s ease forwards;
}
@keyframes miIn {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes miOut {
  to {
    opacity: 0;
    transform: scale(0.97);
  }
}
.mi-add {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px;
  width: 100%;
  margin-top: 12px;
  padding: 11px 12px;
  border-radius: 14px;
  border: 1.5px dashed #c7d3f2;
  background: #f7f9ff;
  color: var(--p);
  font-weight: 800;
  font-size: 14px;
  transition:
    background 0.2s,
    border-color 0.2s;
}
.mi-add:hover {
  background: #eef3ff;
  border-color: var(--p);
}
.mi-add small {
  font-weight: 600;
  color: var(--tx2);
  font-size: 12px;
}
.mi-add .i {
  flex-shrink: 0;
}
.m-head::after,
.m-head::before {
  animation-delay: calc(var(--ft, 0s) * -1);
}
.yn button[data-v='p'].on {
  background: #fff3dc;
  border-color: #f5a623;
  color: #b86a00;
}
.tag.mid {
  background: #fff3dc;
  color: #b86a00;
}
.pi.mid {
  color: #b86a00;
}
.pi.mid .i {
  color: #f5a623;
}
.yn {
  flex-wrap: wrap;
}
.yn button {
  white-space: nowrap;
}
@media (max-width: 420px) {
  .yn button {
    min-width: 0;
    padding: 10px 4px;
    font-size: 13.5px;
    gap: 3px;
    letter-spacing: -0.3px;
  }
  .yn button .i {
    font-size: 14px;
  }
}
@media (max-width: 340px) {
  .yn button .i {
    display: none;
  }
}
