/* 산본고등부 — 앱 고유 모양. 디자인 표준(tokens·base·components) 뒤에 불러온다.
   학생 화면은 주보의 노을빛(따뜻한 갈색·주황)으로, 표준 토큰의 강조색을 그 색으로 바꿔 쓴다. 클래스는 표준과 겹치지 않게 y- 로 시작한다. */
:root {
  --accent: #b8562c; --accent-hover: #a64c26; --accent-soft: rgb(184 86 44 / 0.12); --accent-text: #a3481f; --ring: rgb(184 86 44 / 0.28);
  --win: #ffffff; --desk: #f7f1e8; --group: #f7f1e8; --side: #f7f1e8;
  --y-bg: #f7f1e8; --y-card: #ffffff; --y-ink: #2a1d15; --y-ink2: #6e6157; --y-ink3: #7d6e62; --y-line: rgb(42 29 21 / 0.1);
  --y-dark: #2a1d15; --y-gold: #f6c26b; --y-sand: #fce3b8; --y-sand-ink: #7a4a12; --y-peach: #fbe3d6; --y-bar: rgb(255 255 255 / 0.82); --y-fill: rgb(118 100 80 / 0.12);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --accent: #e0875c; --accent-hover: #e89872; --accent-soft: rgb(224 135 92 / 0.18); --accent-text: #f0a37d; --ring: rgb(224 135 92 / 0.4);
    --win: #241b15; --desk: #15100c; --group: #2e231b; --side: #1c1510; --raised: #2e231b;
    --y-bg: #15100c; --y-card: #241b15; --y-ink: #f5ede4; --y-ink2: #b9aa9c; --y-ink3: #a39587; --y-line: rgb(255 255 255 / 0.1);
    --y-dark: #33261d; --y-sand: #4a3620; --y-sand-ink: #f6c26b; --y-peach: #4a2a1c; --y-bar: rgb(28 21 16 / 0.86); --y-fill: rgb(255 240 220 / 0.1);
  }
}
html, body { background: var(--y-bg); color: var(--y-ink); overscroll-behavior: none; }
body { letter-spacing: -0.02em; }
#app { height: 100%; }
.ell { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.grow { flex: 1; min-width: 0; }

/* ───────── 틀: 휴대폰 한 화면 (넓은 화면에서도 가운데 휴대폰 폭) ───────── */
.y-app { max-width: 480px; margin: 0 auto; height: 100vh; height: 100dvh; display: flex; flex-direction: column; background: var(--y-bg); position: relative; overflow: hidden; }
.y-top { height: 56px; flex: none; display: flex; align-items: center; justify-content: space-between; padding: 0 12px 0 20px; padding-top: env(safe-area-inset-top); box-sizing: content-box; }
.y-brand { display: flex; align-items: baseline; gap: 8px; min-width: 0; }
.y-brand b { font-size: 22px; font-weight: 800; letter-spacing: -0.045em; }
.y-brand span { font-size: 13px; font-weight: 600; color: var(--y-ink2); }
.y-avatar { width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; color: var(--y-gold); flex: none; }
.y-avatar > * { width: 34px; height: 34px; border-radius: 50%; background: var(--y-dark); color: var(--y-gold); font-size: 12px; font-weight: 800; display: flex; align-items: center; justify-content: center; padding: 0; }
.y-avatar > svg { padding: 7px; }
.y-avatar.big { width: 48px; height: 48px; } .y-avatar.big > * { width: 48px; height: 48px; font-size: 15px; }
.y-scroll { flex: 1; min-height: 0; overflow-y: auto; padding: 4px 16px 14px; display: flex; flex-direction: column; gap: 10px; -webkit-overflow-scrolling: touch; }
.y-tabs { flex: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); height: 64px; padding-bottom: env(safe-area-inset-bottom); box-sizing: content-box; background: var(--y-bar); border-top: 1px solid var(--y-line); }
.y-tabs a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-size: 11px; font-weight: 600; color: var(--y-ink3); }
.y-tabs a[aria-current] { color: var(--y-ink); font-weight: 700; }
.y-empty { margin: auto 0; padding: 40px 20px; text-align: center; color: var(--y-ink2); display: flex; flex-direction: column; gap: 6px; align-items: center; }
.y-empty b { font-size: 18px; font-weight: 800; color: var(--y-ink); }
.y-retry { margin-top: 10px; height: 44px; padding: 0 20px; border-radius: 999px; background: var(--y-dark); color: #fff; font-weight: 700; display: inline-flex; align-items: center; }

/* ───────── 색 묶음 (주보 6장 · 표지) ───────── */
.th-0 { --sbg: radial-gradient(circle at 92% 0%, rgb(255 205 120 / 0.55), rgb(255 205 120 / 0) 52%), linear-gradient(165deg, #b8562c 0%, #7a3424 55%, #3b1c16 100%); --btnfg: #7a3424; }
.th-1 { --sbg: radial-gradient(circle at 8% 0%, rgb(246 194 107 / 0.28), rgb(246 194 107 / 0) 50%), linear-gradient(170deg, #3a2a1f, #1c130e); --btnfg: #2a1d15; }
.th-2 { --sbg: radial-gradient(circle at 88% 4%, rgb(255 170 205 / 0.45), rgb(255 170 205 / 0) 50%), linear-gradient(160deg, #4b3a8c, #7e3a70); --btnfg: #4b3a8c; }
.th-3 { --sbg: radial-gradient(circle at 90% 0%, rgb(255 255 255 / 0.75), rgb(255 255 255 / 0) 50%), linear-gradient(165deg, #fff1d6, #f5c47f); --btnfg: #ffffff; --sfg: #2a1d15; --glass: rgb(255 255 255 / 0.6); --btn: #2a1d15; --on: #2a1d15; --off: rgb(42 29 21 / 0.2); --hair: rgb(42 29 21 / 0.1); --soft: #5a4636; }
.th-4 { --sbg: radial-gradient(circle at 90% 0%, rgb(190 240 210 / 0.35), rgb(190 240 210 / 0) 50%), linear-gradient(165deg, #2f6b5d, #1a3d37); --btnfg: #1a3d37; }
.th-5 { --sbg: radial-gradient(circle at 90% 0%, rgb(255 210 150 / 0.5), rgb(255 210 150 / 0) 50%), linear-gradient(160deg, #c0503f, #6e2a3c); --btnfg: #6e2a3c; }
.th-0, .th-1, .th-2, .th-4, .th-5 { --sfg: #ffffff; --glass: rgb(255 255 255 / 0.15); --btn: #ffffff; --on: #ffffff; --off: rgb(255 255 255 / 0.3); --hair: rgb(255 255 255 / 0.12); --soft: rgb(255 255 255 / 0.84); }
.ph { position: absolute; inset: 0; background-size: cover; background-position: 50% 50%; }
.shade { position: absolute; inset: 0; }

/* ───────── 홈 ───────── */
.y-hero { flex: 1 0 232px; max-height: 320px; border-radius: 28px; padding: 20px; color: #fff; background: var(--sbg); position: relative; overflow: hidden; }
.y-hero .ph { background-position: 70% 55%; }
.y-hero .shade { background: linear-gradient(100deg, rgb(28 14 10 / 0.66) 0%, rgb(28 14 10 / 0.34) 55%, rgb(28 14 10 / 0.08) 100%), linear-gradient(180deg, rgb(28 14 10 / 0) 45%, rgb(28 14 10 / 0.55) 100%); }
.y-hero .in { position: relative; height: 100%; display: flex; flex-direction: column; justify-content: space-between; gap: 12px; }
.y-hero .yrow, .y-cover .yrow { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.y-hero .pill { height: 26px; padding: 0 10px; border-radius: 999px; background: rgb(255 255 255 / 0.2); font-size: 12.5px; font-weight: 700; display: inline-flex; align-items: center; }
.y-hero .no, .y-cover .no { font-size: 12.5px; font-weight: 600; opacity: 0.88; }
.y-hero .title { font-size: 31px; font-weight: 800; letter-spacing: -0.05em; line-height: 1.16; max-width: 86%; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.y-hero .ysub { font-size: 14px; font-weight: 500; opacity: 0.9; margin-top: 8px; }
.y-hero .go { height: 40px; padding: 0 16px 0 18px; border-radius: 999px; background: #fff; color: #2a1d15; font-size: 15px; font-weight: 700; display: inline-flex; align-items: center; gap: 6px; }
.dots { display: flex; gap: 4px; } .dots i { width: 6px; height: 4px; border-radius: 2px; background: rgb(255 255 255 / 0.45); } .dots i.on { width: 18px; background: #fff; }
.y-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; flex: none; }
.y-tile { height: 148px; border-radius: 24px; padding: 16px; display: flex; flex-direction: column; justify-content: space-between; position: relative; min-width: 0; color: var(--y-ink); }
.y-tile.white { background: var(--y-card); }
.y-tile.dark { background: var(--y-dark); color: #fff; }
.y-tile.violet { background: linear-gradient(155deg, #5a43a0, #8a3f78); color: #fff; }
.y-tile.sand { background: var(--y-sand); }
.y-tile .yrow { display: flex; align-items: center; justify-content: space-between; }
.y-tile .ylbl { font-size: 14px; font-weight: 700; }
.y-tile.sand .ylbl { color: var(--y-sand-ink); }
.y-tile .yic { width: 30px; height: 30px; border-radius: 50%; background: var(--y-peach); color: var(--accent); display: flex; align-items: center; justify-content: center; }
.y-tile .big { font-size: 36px; font-weight: 800; letter-spacing: -0.05em; line-height: 1; }
.y-tile .accent { color: var(--accent); } .y-tile .gold { color: var(--y-gold); }
.y-tile .cap { font-size: 13px; font-weight: 600; color: var(--y-ink2); margin-top: 6px; }
.y-tile .name { font-size: 14px; font-weight: 700; margin-top: 5px; }
.y-tile .cap2 { font-size: 12px; font-weight: 500; opacity: 0.8; margin-top: 2px; }
.y-tile .foot { padding-top: 9px; border-top: 1px solid rgb(255 255 255 / 0.14); font-size: 12.5px; font-weight: 600; } .y-tile .foot b { color: var(--y-gold); }
.y-tile .songs { display: flex; flex-direction: column; gap: 3px; font-size: 14.5px; font-weight: 700; padding-right: 44px; min-width: 0; }
.fab { width: 38px; height: 38px; border-radius: 50%; background: #fff; color: #5a43a0; display: flex; align-items: center; justify-content: center; flex: none; }
.y-tile .fab { position: absolute; right: 14px; bottom: 14px; }
.y-tile .q { font-size: 16px; font-weight: 800; letter-spacing: -0.04em; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.y-tile.wide { grid-column: span 2; height: 78px; flex-direction: row; align-items: center; gap: 12px; padding: 0 16px; }
.y-tile.wide .grow { display: flex; flex-direction: column; gap: 2px; } .y-tile.wide .cap { margin: 0; font-size: 12.5px; font-weight: 700; } .y-tile.wide .name { margin: 0; font-size: 14.5px; }
.births { flex: none; display: flex; align-items: center; gap: 8px; padding-left: 12px; border-left: 1px solid var(--y-line); }
.births .name { font-size: 12.5px; line-height: 1.25; }
.faces { display: flex; } .faces span { width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--y-card); font-size: 11px; font-weight: 800; color: #2a1d15; display: flex; align-items: center; justify-content: center; margin-left: -9px; } .faces span:first-child { margin-left: 0; }
.faces .f0 { background: #f6c26b; } .faces .f1 { background: #fbd3bf; } .faces .f2 { background: #e2dcf5; }

/* ───────── 주보 스토리 ───────── */
.y-story { background: var(--sbg); color: var(--sfg); }
.y-story > .shade { background: linear-gradient(180deg, rgb(28 14 10 / 0.58) 0%, rgb(28 14 10 / 0.26) 38%, rgb(28 14 10 / 0.16) 52%, rgb(28 14 10 / 0.76) 78%, rgb(28 14 10 / 0.92) 100%); }
.y-story > .ph { background-position: 28% 50%; }
.bars { position: relative; flex: none; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 4px; padding: 12px 12px 0; padding-top: calc(12px + env(safe-area-inset-top)); }
.bars i { height: 3px; border-radius: 2px; background: var(--off); } .bars i.on { background: var(--on); }
.st-top { position: relative; flex: none; height: 52px; display: flex; align-items: center; justify-content: space-between; padding: 0 6px 0 20px; }
.st-top > div { display: flex; align-items: baseline; gap: 6px; min-width: 0; } .st-top b { font-size: 15px; font-weight: 800; letter-spacing: -0.04em; } .st-top span { font-size: 13px; font-weight: 600; opacity: 0.82; }
.st-top .x { width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; color: inherit; }
.st-main { position: relative; flex: 1; min-height: 0; overflow-y: auto; padding: 4px 20px 8px; display: flex; flex-direction: column; }
.st-body { flex: 1; display: flex; flex-direction: column; gap: 14px; padding-top: 12px; }
.st-body.tight { gap: 12px; }
.st-body h1 { font-size: 32px; font-weight: 800; letter-spacing: -0.05em; line-height: 1.2; }
.st-body .ysub { font-size: 14px; font-weight: 500; opacity: 0.88; margin-top: 4px; }
.st-body .tiny { font-size: 12.5px; font-weight: 600; color: var(--soft); }
.st-body .hrow { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; } .st-body .hrow.start { justify-content: flex-start; align-items: center; }
.st-body .stack { display: flex; flex-direction: column; gap: 10px; }
.gl { background: var(--glass); border-radius: 22px; padding: 16px 18px; }
.gl.blur { -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
.gl.solid { background: #fff; color: #2a1d15; } .gl.solid .tiny { color: #6e6157; }
.st-body.cover { justify-content: space-between; gap: 16px; }
.cover .chead { display: flex; flex-direction: column; gap: 14px; padding-top: 12px; }
.cover .kicker { font-size: 14px; font-weight: 700; opacity: 0.88; }
.cover .huge { font-size: 44px; font-weight: 800; letter-spacing: -0.06em; line-height: 1.1; }
.cover .chead .ysub { font-size: 16px; margin: 0; }
.cover .key { font-size: 17px; font-weight: 600; line-height: 1.55; margin-top: 6px; white-space: pre-line; }
.cover .two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; } .gl.sm { border-radius: 18px; padding: 13px 16px; } .gl.sm b { display: block; font-size: 17px; font-weight: 800; margin-top: 2px; }
.cover .motto { font-size: 12.5px; font-weight: 600; opacity: 0.82; text-align: center; padding: 2px 0 4px; }
.gl.rows { padding: 4px 16px; }
.orow { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 45px; } .orow + .orow { border-top: 1px solid var(--hair); }
.orow b { font-size: 15.5px; font-weight: 700; flex: none; } .orow span { font-size: 14px; color: var(--soft); min-width: 0; }
.orow.hot b, .orow.hot span { color: var(--y-gold); font-weight: 800; }
.gl.song { min-height: 96px; display: flex; align-items: center; gap: 16px; color: inherit; border-radius: 24px; }
.song .n { font-size: 32px; font-weight: 800; letter-spacing: -0.05em; color: #ffd58a; } .song .grow b { display: block; font-size: 22px; font-weight: 800; letter-spacing: -0.04em; } .song .fab { width: 46px; height: 46px; color: #4b3a8c; }
.wide-btn { margin-top: auto; height: 52px; border-radius: 999px; background: rgb(255 255 255 / 0.2); color: inherit; font-size: 16px; font-weight: 700; display: flex; align-items: center; justify-content: center; flex: none; }
.count { height: 26px; min-width: 26px; padding: 0 8px; border-radius: 999px; background: var(--btn); color: var(--btnfg); font-size: 14px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; }
.gl.notice { display: flex; gap: 14px; align-items: flex-start; padding: 14px; }
.notice .day { flex: none; width: 56px; height: 60px; border-radius: 16px; background: #2a1d15; color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; } .notice .day b { font-size: 22px; font-weight: 800; line-height: 1.1; } .notice .day span { font-size: 11.5px; font-weight: 700; color: var(--y-gold); }
.notice .grow > b { display: block; font-size: 16.5px; font-weight: 800; letter-spacing: -0.035em; } .notice .txt { font-size: 13.5px; line-height: 1.45; margin-top: 3px; color: var(--soft); white-space: pre-line; }
.qcard .qhead { display: flex; align-items: center; gap: 8px; font-size: 13.5px; } .qcard .n { width: 24px; height: 24px; border-radius: 50%; background: #fff; color: #1a3d37; font-size: 13px; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.qcard.solid .n { background: #1a3d37; color: #fff; } .qcard.solid { color: #1a3d37; }
.qtext { font-size: 17px; font-weight: 700; line-height: 1.5; margin-top: 8px; white-space: pre-line; } .qtext + .qtext { padding-top: 8px; border-top: 1px solid var(--hair); }
.gl.serve { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: #6e2a3c; } .serve .grp { font-size: 28px; font-weight: 800; letter-spacing: -0.05em; line-height: 1.15; } .serve .who { text-align: right; font-size: 14px; font-weight: 700; line-height: 1.5; color: #2a1d15; }
.sched { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; } .gl.cell { border-radius: 14px; padding: 8px 10px; } .cell b { font-size: 15px; font-weight: 800; } .cell.past { opacity: 0.72; } .cell.now { background: var(--y-gold); color: #3b1c16; } .cell.now .tiny { color: #3b1c16; }
.gl.bdays b { font-size: 15px; font-weight: 800; } .chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; } .chips span { height: 32px; padding: 0 12px; border-radius: 999px; background: #fff; color: #2a1d15; font-size: 14px; font-weight: 700; display: inline-flex; align-items: center; gap: 5px; } .chips i { font-style: normal; font-weight: 500; color: #7d6e62; }
.st-nav { position: relative; flex: none; display: flex; align-items: center; gap: 12px; padding: 8px 20px calc(18px + env(safe-area-inset-bottom)); }
.st-nav button { flex: none; height: 52px; border-radius: 999px; font-size: 16px; font-weight: 800; }
.st-nav .prev { width: 52px; padding: 0; background: var(--glass); color: inherit; } .st-nav .prev:disabled { opacity: 0.35; }
.st-nav .nextb { padding: 0 20px 0 22px; background: var(--btn); color: var(--btnfg); gap: 6px; }
.st-nav .pos { flex: 1; min-width: 0; display: flex; flex-direction: column; } .pos span { font-size: 12px; font-weight: 600; opacity: 0.82; } .pos b { font-size: 15px; font-weight: 800; }

/* ───────── 지난 주보 ───────── */
.y-search { flex: none; display: flex; align-items: center; gap: 8px; height: 46px; padding: 0 14px; border-radius: 14px; background: var(--y-card); color: var(--y-ink2); }
.y-search input { flex: 1; min-width: 0; height: 100%; border: 0; background: transparent; box-shadow: none; padding: 0; font-size: 16px; color: var(--y-ink); } .y-search input:focus { box-shadow: none; }
.y-chips { flex: none; display: flex; gap: 6px; overflow-x: auto; } .y-chips button { flex: none; height: 36px; padding: 0 16px; border-radius: 999px; background: var(--y-card); color: var(--y-ink); font-size: 14px; font-weight: 600; } .y-chips button[aria-pressed=true] { background: var(--y-dark); color: #fff; font-weight: 700; }
.y-arch { display: flex; flex-direction: column; gap: 10px; flex: 1; }
.y-month { display: flex; align-items: baseline; justify-content: space-between; padding: 6px 4px 0; } .y-month b { font-size: 17px; font-weight: 800; letter-spacing: -0.04em; } .y-month span { font-size: 13px; font-weight: 600; color: var(--y-ink2); }
.y-covers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.y-cover { height: 220px; border-radius: 24px; padding: 14px; background: var(--sbg); color: var(--sfg); position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; min-width: 0; }
.y-cover:has(.ph) { color: #fff; }
.y-cover .shade { background: linear-gradient(180deg, rgb(28 14 10 / 0.36) 0%, rgb(28 14 10 / 0) 35%, rgb(28 14 10 / 0.2) 55%, rgb(28 14 10 / 0.86) 100%); }
.y-cover .yrow, .y-cover .in { position: relative; min-width: 0; }
.y-cover .pill { height: 22px; padding: 0 8px; border-radius: 999px; background: #fff; color: #7a3424; font-size: 11.5px; font-weight: 800; display: inline-flex; align-items: center; }
.y-cover .date { font-size: 30px; font-weight: 800; letter-spacing: -0.05em; line-height: 1; } .y-cover .title { font-size: 14px; font-weight: 700; line-height: 1.35; margin-top: 8px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; } .y-cover .ref { font-size: 12px; opacity: 0.88; margin-top: 2px; }

/* ───────── 일정 · 나 ───────── */
.y-list { display: flex; flex-direction: column; gap: 8px; }
.y-ev { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 20px; background: var(--y-card); }
.y-ev .day { flex: none; width: 54px; height: 56px; border-radius: 16px; background: var(--y-dark); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; } .y-ev .day b { font-size: 20px; font-weight: 800; line-height: 1.1; } .y-ev .day span { font-size: 11px; font-weight: 700; color: var(--y-gold); }
.y-ev .grow { display: flex; flex-direction: column; } .y-ev .grow b { font-size: 15.5px; font-weight: 700; } .y-ev .grow span { font-size: 13px; color: var(--y-ink2); } .y-ev .dd { font-size: 14px; font-weight: 800; color: var(--accent-text); flex: none; }
.y-card { flex: none; background: var(--y-card); border-radius: 22px; padding: 18px; display: flex; flex-direction: column; gap: 10px; color: var(--y-ink); } .y-card > b { font-size: 16px; font-weight: 800; }
.y-form { gap: 12px; }
.y-acct, .y-link { flex-direction: row; align-items: center; gap: 12px; } .y-acct .grow, .y-link .grow { display: flex; flex-direction: column; } .y-acct .grow b, .y-link .grow b { font-size: 16px; font-weight: 800; } .y-acct .grow span, .y-link .grow span { font-size: 13px; color: var(--y-ink2); } .y-link { color: var(--y-ink); }
.y-people { display: flex; flex-direction: column; gap: 10px; } .y-people span { font-size: 12.5px; font-weight: 700; color: var(--accent-text); } .y-people p { font-size: 14.5px; line-height: 1.55; }
.y-motto { font-size: 14.5px; line-height: 1.6; color: var(--y-ink2); } .y-foot { font-size: 12px; color: var(--y-ink3); text-align: center; padding: 6px 0; }

/* ───────── 관리 ───────── */
.y-admin { min-height: 100vh; min-height: 100dvh; max-width: 1180px; margin: 0 auto; padding: 18px 20px 60px; display: flex; flex-direction: column; gap: 16px; }
.y-ahead { display: flex; align-items: center; justify-content: space-between; gap: 12px 16px; flex-wrap: wrap; }
.y-ahead .l { display: flex; align-items: center; gap: 10px; min-width: 0; } .y-ahead .l > div { display: flex; flex-direction: column; }
.y-ahead h1 { font-size: 28px; font-weight: 800; letter-spacing: -0.05em; line-height: 1.15; }
.y-ahead .back { width: 40px; height: 40px; border-radius: 50%; background: var(--y-card); color: var(--y-ink); display: flex; align-items: center; justify-content: center; flex: none; }
.y-ahead .r { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; } .y-ahead select { width: auto; max-width: 240px; border-radius: 999px; height: 38px; background-color: var(--y-card); border-color: transparent; font-weight: 600; } .y-ahead .primary { height: 38px; }
.y-pub { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; height: 38px; padding: 0 8px 0 14px; border-radius: 999px; background: var(--y-card); }
.y-status { font-size: 13px; font-weight: 600; color: var(--y-ink2); display: inline-flex; align-items: center; gap: 6px; min-height: 18px; } .y-status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--y-ink3); } .y-status:empty::before { display: none; } .y-status.ok::before { background: var(--green); } .y-status.err::before { background: var(--err); } .y-status.err { color: var(--err); } .y-status.busy::before { background: var(--y-gold); }
.y-atabs { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; } .y-atabs::-webkit-scrollbar { display: none; }
.y-atabs button { flex: none; height: 38px; padding: 0 15px; border-radius: 999px; background: var(--y-card); color: var(--y-ink); font-size: 14px; font-weight: 600; } .y-atabs button[aria-selected=true] { background: var(--accent); color: #fff; font-weight: 700; } .y-atabs .site { margin-left: auto; }
.y-abody { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; align-items: start; }
.y-pane { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.y-group { background: var(--y-card); border-radius: 22px; padding: 20px; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.y-group .gh b, .ghrow b { font-size: 16px; font-weight: 800; } .ghrow { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.y-two { display: flex; flex-wrap: wrap; gap: 12px; } .y-two > * { flex: 1 1 180px; }
.field.big input { height: 48px; font-size: 18px; font-weight: 700; }
.y-fixed { height: var(--h-input); display: flex; align-items: center; padding: 0 12px; border-radius: var(--r); background: var(--y-fill); font-size: 15px; }
.y-switch { display: flex; align-items: center; justify-content: space-between; gap: 14px; } .y-switch b { font-size: 15px; font-weight: 700; }
.y-rows { display: flex; flex-direction: column; gap: 8px; }
.y-row { display: flex; gap: 6px; align-items: flex-start; padding: 8px; border-radius: 16px; background: var(--group); }
.y-row .cells { flex: 1; min-width: 0; display: flex; flex-wrap: wrap; gap: 6px; } .y-row .cell { min-width: 0; } .y-row textarea.cell { min-height: 60px; }
.y-row .acts { display: flex; flex: none; } .y-row .acts button { width: 30px; height: var(--h-input); }
.y-add { align-self: flex-start; height: 38px; padding: 0 14px 0 10px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-text); font-size: 14px; font-weight: 700; gap: 4px; }
.y-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 10px; }
.ph-opt { height: 112px; padding: 0; border-radius: 16px; position: relative; overflow: hidden; background: var(--y-dark); display: block; }
.ph-opt .img { position: absolute; inset: 0; background-size: cover; background-position: 50% 45%; } .ph-opt .img.none { background: linear-gradient(165deg, #b8562c, #3b1c16); }
.ph-opt .lb { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 8px 7px; background: linear-gradient(180deg, rgb(0 0 0 / 0), rgb(0 0 0 / 0.62)); color: #fff; font-size: 12.5px; font-weight: 700; text-align: left; }
.ph-opt.on { box-shadow: 0 0 0 3px var(--y-card), 0 0 0 5px var(--accent); } .ph-opt .ck { position: absolute; right: 6px; top: 6px; width: 22px; height: 22px; border-radius: 50%; background: var(--accent); color: #fff; display: flex; align-items: center; justify-content: center; }
.y-side { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.y-phone { display: none; }
.y-see { font-size: 14px; font-weight: 700; height: 44px; display: inline-flex; align-items: center; }
/* 표준의 빈 상태(.empty)가 빈 날짜 칸(.pfield.empty)에도 걸려 모양이 깨지는 것을 되돌린다 */
.pfield.empty { flex-direction: row; align-items: center; gap: 8px; padding: 0 12px; background: var(--input); border-radius: var(--r); text-align: left; font-size: 15px; line-height: 1.5; }
.y-del { background: var(--err) !important; }
@media (min-width: 1000px) {
  .y-abody { grid-template-columns: minmax(0, 1fr) 300px; }
  .y-side { position: sticky; top: 18px; }
  .y-phone { display: block; width: 300px; height: 620px; border-radius: 40px; padding: 10px; background: #2a1d15; }
  .y-scale { width: 280px; height: 600px; border-radius: 31px; overflow: hidden; }
  .y-phone-in { width: 390px; height: 836px; transform: scale(0.718); transform-origin: 0 0; position: relative; display: flex; flex-direction: column; overflow: hidden; pointer-events: none; }
  .y-phone-in .bars { padding-top: 12px; }
}
@media (max-width: 899px) { .y-row { flex-direction: column; gap: 2px; } .y-row .acts { align-self: flex-end; } .y-row .cells:has(.dpick) > input.cell { flex-basis: 100% !important; } .y-row .acts button { width: 40px; height: 34px; } .pfield.empty { font-size: 16px; border-radius: var(--r-md); } .y-admin { padding: 12px 14px 60px; } .y-ahead h1 { font-size: 24px; } .y-group { padding: 16px; } .y-atabs .site { margin-left: 0; } }
@media (max-height: 700px) { .cover .huge { font-size: 36px; } .cover .chead { padding-top: 0; gap: 10px; } }
