/* 축소하지 못했습니다. 축소되지 않은 콘텐츠를 반환합니다.
(10,5): run-time error CSS1062: Expected semicolon or closing curly-brace, found '-'
(11,5): run-time error CSS1062: Expected semicolon or closing curly-brace, found '-'
(12,5): run-time error CSS1062: Expected semicolon or closing curly-brace, found '-'
(13,5): run-time error CSS1062: Expected semicolon or closing curly-brace, found '-'
(14,5): run-time error CSS1062: Expected semicolon or closing curly-brace, found '-'
(16,5): run-time error CSS1062: Expected semicolon or closing curly-brace, found '-'
(17,5): run-time error CSS1062: Expected semicolon or closing curly-brace, found '-'
(18,5): run-time error CSS1062: Expected semicolon or closing curly-brace, found '-'
(19,5): run-time error CSS1062: Expected semicolon or closing curly-brace, found '-'
(20,5): run-time error CSS1062: Expected semicolon or closing curly-brace, found '-'
(21,5): run-time error CSS1062: Expected semicolon or closing curly-brace, found '-'
(22,5): run-time error CSS1062: Expected semicolon or closing curly-brace, found '-'
(23,5): run-time error CSS1062: Expected semicolon or closing curly-brace, found '-'
(26,5): run-time error CSS1062: Expected semicolon or closing curly-brace, found '-'
(27,5): run-time error CSS1062: Expected semicolon or closing curly-brace, found '-'
(28,5): run-time error CSS1062: Expected semicolon or closing curly-brace, found '-'
(30,5): run-time error CSS1062: Expected semicolon or closing curly-brace, found '-'
(31,5): run-time error CSS1062: Expected semicolon or closing curly-brace, found '-'
(33,5): run-time error CSS1062: Expected semicolon or closing curly-brace, found '-'
(34,5): run-time error CSS1062: Expected semicolon or closing curly-brace, found '-'
(37,5): run-time error CSS1062: Expected semicolon or closing curly-brace, found '-'
(38,5): run-time error CSS1062: Expected semicolon or closing curly-brace, found '-'
(39,5): run-time error CSS1062: Expected semicolon or closing curly-brace, found '-'
(40,5): run-time error CSS1062: Expected semicolon or closing curly-brace, found '-'
(42,5): run-time error CSS1062: Expected semicolon or closing curly-brace, found '-'
(43,5): run-time error CSS1062: Expected semicolon or closing curly-brace, found '-'
(48,9): run-time error CSS1062: Expected semicolon or closing curly-brace, found '-'
(49,9): run-time error CSS1062: Expected semicolon or closing curly-brace, found '-'
(50,9): run-time error CSS1062: Expected semicolon or closing curly-brace, found '-'
(51,9): run-time error CSS1062: Expected semicolon or closing curly-brace, found '-'
(52,9): run-time error CSS1062: Expected semicolon or closing curly-brace, found '-'
(54,9): run-time error CSS1062: Expected semicolon or closing curly-brace, found '-'
(55,9): run-time error CSS1062: Expected semicolon or closing curly-brace, found '-'
(56,9): run-time error CSS1062: Expected semicolon or closing curly-brace, found '-'
(57,9): run-time error CSS1062: Expected semicolon or closing curly-brace, found '-'
(58,9): run-time error CSS1062: Expected semicolon or closing curly-brace, found '-'
(59,9): run-time error CSS1062: Expected semicolon or closing curly-brace, found '-'
(60,9): run-time error CSS1062: Expected semicolon or closing curly-brace, found '-'
(61,9): run-time error CSS1062: Expected semicolon or closing curly-brace, found '-'
(63,9): run-time error CSS1062: Expected semicolon or closing curly-brace, found '-'
(64,9): run-time error CSS1062: Expected semicolon or closing curly-brace, found '-'
(65,9): run-time error CSS1062: Expected semicolon or closing curly-brace, found '-'
(67,9): run-time error CSS1062: Expected semicolon or closing curly-brace, found '-'
(68,9): run-time error CSS1062: Expected semicolon or closing curly-brace, found '-'
(70,9): run-time error CSS1062: Expected semicolon or closing curly-brace, found '-'
(71,9): run-time error CSS1062: Expected semicolon or closing curly-brace, found '-'
(84,22): run-time error CSS1039: Token not allowed after unary operator: '-bg'
(85,17): run-time error CSS1039: Token not allowed after unary operator: '-ink'
(93,43): run-time error CSS1039: Token not allowed after unary operator: '-hand'
(95,26): run-time error CSS1039: Token not allowed after unary operator: '-shell'
(98,42): run-time error CSS1039: Token not allowed after unary operator: '-cover'
(110,22): run-time error CSS1039: Token not allowed after unary operator: '-cover-band'
(111,17): run-time error CSS1039: Token not allowed after unary operator: '-cover-ink'
(123,93): run-time error CSS1039: Token not allowed after unary operator: '-hand'
(136,40): run-time error CSS1039: Token not allowed after unary operator: '-cover-ink'
(157,28): run-time error CSS1039: Token not allowed after unary operator: '-line'
(159,22): run-time error CSS1039: Token not allowed after unary operator: '-surface'
(160,17): run-time error CSS1039: Token not allowed after unary operator: '-ink'
(169,33): run-time error CSS1039: Token not allowed after unary operator: '-cover'
(170,34): run-time error CSS1039: Token not allowed after unary operator: '-cover'
(170,62): run-time error CSS1039: Token not allowed after unary operator: '-cover'
(170,83): run-time error CSS1039: Token not allowed after unary operator: '-cover-ink'
(171,40): run-time error CSS1039: Token not allowed after unary operator: '-cover-deep'
(171,73): run-time error CSS1039: Token not allowed after unary operator: '-cover-deep'
(173,79): run-time error CSS1039: Token not allowed after unary operator: '-ink-soft'
(174,65): run-time error CSS1039: Token not allowed after unary operator: '-surface-2'
(175,28): run-time error CSS1039: Token not allowed after unary operator: '-danger'
(182,50): run-time error CSS1039: Token not allowed after unary operator: '-stamp'
(185,17): run-time error CSS1039: Token not allowed after unary operator: '-stamp'
(192,36): run-time error CSS1039: Token not allowed after unary operator: '-stamp-soft'
(192,90): run-time error CSS1039: Token not allowed after unary operator: '-stamp'
(200,28): run-time error CSS1039: Token not allowed after unary operator: '-stamp'
(202,38): run-time error CSS1039: Token not allowed after unary operator: '-surface'
(202,70): run-time error CSS1039: Token not allowed after unary operator: '-stamp'
(203,17): run-time error CSS1039: Token not allowed after unary operator: '-stamp'
(226,22): run-time error CSS1039: Token not allowed after unary operator: '-surface'
(227,28): run-time error CSS1039: Token not allowed after unary operator: '-line'
(238,35): run-time error CSS1039: Token not allowed after unary operator: '-cover'
(240,35): run-time error CSS1039: Token not allowed after unary operator: '-hand'
(240,75): run-time error CSS1039: Token not allowed after unary operator: '-ink'
(241,47): run-time error CSS1039: Token not allowed after unary operator: '-cover'
(246,101): run-time error CSS1039: Token not allowed after unary operator: '-ink-soft'
(258,99): run-time error CSS1039: Token not allowed after unary operator: '-rule'
(264,44): run-time error CSS1039: Token not allowed after unary operator: '-ink-soft'
(268,29): run-time error CSS1039: Token not allowed after unary operator: '-cover-soft'
(269,82): run-time error CSS1039: Token not allowed after unary operator: '-cover'
(275,22): run-time error CSS1039: Token not allowed after unary operator: '-surface-2'
(280,22): run-time error CSS1039: Token not allowed after unary operator: '-surface-2'
(286,22): run-time error CSS1039: Token not allowed after unary operator: '-cover-soft'
(288,32): run-time error CSS1039: Token not allowed after unary operator: '-line'
(297,68): run-time error CSS1039: Token not allowed after unary operator: '-ink-soft'
(306,34): run-time error CSS1039: Token not allowed after unary operator: '-rule'
(308,54): run-time error CSS1039: Token not allowed after unary operator: '-ink'
(311,63): run-time error CSS1039: Token not allowed after unary operator: '-ink-faint'
(312,61): run-time error CSS1039: Token not allowed after unary operator: '-apricot-ink'
(339,32): run-time error CSS1039: Token not allowed after unary operator: '-apricot'
(340,33): run-time error CSS1039: Token not allowed after unary operator: '-apricot-soft'
(340,61): run-time error CSS1039: Token not allowed after unary operator: '-apricot-ink'
(341,50): run-time error CSS1039: Token not allowed after unary operator: '-ink-soft'
(341,95): run-time error CSS1039: Token not allowed after unary operator: '-line'
(342,32): run-time error CSS1039: Token not allowed after unary operator: '-surface-2'
(342,57): run-time error CSS1039: Token not allowed after unary operator: '-ink-soft'
(349,70): run-time error CSS1039: Token not allowed after unary operator: '-ink-soft'
(350,64): run-time error CSS1039: Token not allowed after unary operator: '-ink-soft'
(351,32): run-time error CSS1039: Token not allowed after unary operator: '-apricot-ink'
(352,34): run-time error CSS1039: Token not allowed after unary operator: '-cover'
(355,106): run-time error CSS1039: Token not allowed after unary operator: '-ink-faint'
(362,38): run-time error CSS1039: Token not allowed after unary operator: '-hand'
(363,48): run-time error CSS1039: Token not allowed after unary operator: '-ink-soft'
(368,28): run-time error CSS1039: Token not allowed after unary operator: '-line'
(368,53): run-time error CSS1039: Token not allowed after unary operator: '-surface'
(368,76): run-time error CSS1039: Token not allowed after unary operator: '-ink-soft'
(370,45): run-time error CSS1039: Token not allowed after unary operator: '-cover'
(370,66): run-time error CSS1039: Token not allowed after unary operator: '-cover'
(371,66): run-time error CSS1039: Token not allowed after unary operator: '-line'
(371,93): run-time error CSS1039: Token not allowed after unary operator: '-rule'
(375,75): run-time error CSS1039: Token not allowed after unary operator: '-ink-faint'
(384,92): run-time error CSS1039: Token not allowed after unary operator: '-ink-soft'
(392,56): run-time error CSS1039: Token not allowed after unary operator: '-cover'
(394,32): run-time error CSS1039: Token not allowed after unary operator: '-hand'
(395,131): run-time error CSS1039: Token not allowed after unary operator: '-ink-faint'
(403,65): run-time error CSS1039: Token not allowed after unary operator: '-cover'
(404,68): run-time error CSS1039: Token not allowed after unary operator: '-ink-faint'
(409,98): run-time error CSS1039: Token not allowed after unary operator: '-rule'
(411,87): run-time error CSS1039: Token not allowed after unary operator: '-ink-soft'
(412,78): run-time error CSS1039: Token not allowed after unary operator: '-ink-faint'
(414,43): run-time error CSS1039: Token not allowed after unary operator: '-ink-soft'
(418,77): run-time error CSS1039: Token not allowed after unary operator: '-cover'
(419,54): run-time error CSS1039: Token not allowed after unary operator: '-ink-faint'
(434,68): run-time error CSS1039: Token not allowed after unary operator: '-surface-2'
(437,35): run-time error CSS1039: Token not allowed after unary operator: '-cover-soft'
(442,42): run-time error CSS1039: Token not allowed after unary operator: '-cover'
(442,63): run-time error CSS1039: Token not allowed after unary operator: '-cover-ink'
(443,23): run-time error CSS1039: Token not allowed after unary operator: '-hand'
(446,86): run-time error CSS1039: Token not allowed after unary operator: '-ink-soft'
(448,57): run-time error CSS1039: Token not allowed after unary operator: '-ink-soft'
(458,22): run-time error CSS1039: Token not allowed after unary operator: '-cover-band'
(459,17): run-time error CSS1039: Token not allowed after unary operator: '-cover-ink'
(478,66): run-time error CSS1039: Token not allowed after unary operator: '-ink'
(480,47): run-time error CSS1039: Token not allowed after unary operator: '-ink-faint'
(486,28): run-time error CSS1039: Token not allowed after unary operator: '-line'
(488,22): run-time error CSS1039: Token not allowed after unary operator: '-surface'
(489,17): run-time error CSS1039: Token not allowed after unary operator: '-ink'
(496,69): run-time error CSS1039: Token not allowed after unary operator: '-cover'
(502,54): run-time error CSS1039: Token not allowed after unary operator: '-ink-faint'
(511,28): run-time error CSS1039: Token not allowed after unary operator: '-line'
(516,22): run-time error CSS1039: Token not allowed after unary operator: '-surface'
(518,39): run-time error CSS1039: Token not allowed after unary operator: '-cover'
(520,68): run-time error CSS1039: Token not allowed after unary operator: '-cover'
(520,96): run-time error CSS1039: Token not allowed after unary operator: '-cover'
(520,117): run-time error CSS1039: Token not allowed after unary operator: '-cover-ink'
(521,60): run-time error CSS1039: Token not allowed after unary operator: '-cover'
(536,79): run-time error CSS1039: Token not allowed after unary operator: '-rule'
(537,84): run-time error CSS1039: Token not allowed after unary operator: '-cover'
(545,22): run-time error CSS1039: Token not allowed after unary operator: '-surface'
(546,32): run-time error CSS1039: Token not allowed after unary operator: '-line'
(561,17): run-time error CSS1039: Token not allowed after unary operator: '-ink-faint'
(566,24): run-time error CSS1039: Token not allowed after unary operator: '-cover'
(567,33): run-time error CSS1039: Token not allowed after unary operator: '-cover-soft'
(569,28): run-time error CSS1039: Token not allowed after unary operator: '-danger'
(577,22): run-time error CSS1039: Token not allowed after unary operator: '-danger-soft'
(578,17): run-time error CSS1039: Token not allowed after unary operator: '-danger'
(583,32): run-time error CSS1039: Token not allowed after unary operator: '-cover-soft'
(583,58): run-time error CSS1039: Token not allowed after unary operator: '-cover'
(589,52): run-time error CSS1039: Token not allowed after unary operator: '-hand'
(590,45): run-time error CSS1039: Token not allowed after unary operator: '-ink-soft'
(592,58): run-time error CSS1039: Token not allowed after unary operator: '-ink-soft'
(601,22): run-time error CSS1039: Token not allowed after unary operator: '-cover-band'
(601,48): run-time error CSS1039: Token not allowed after unary operator: '-cover-ink'
(612,42): run-time error CSS1039: Token not allowed after unary operator: '-cover-soft'
(621,43): run-time error CSS1039: Token not allowed after unary operator: '-line'
(621,85): run-time error CSS1039: Token not allowed after unary operator: '-ink-faint'
 */
/* 우리 아이 수첩 - 동물병원 건강수첩.
   아이마다 수첩이 한 권씩 있고, 돌본 일은 그 수첩에 찍힌 기록 한 줄이다. 머리띠와 주된 버튼은
   수첩 표지의 초록, 바탕은 속지, 늦은 일과 오늘 할 일만 살구색으로 부른다. 끝낸 일에는 파란
   "완료" 도장이 찍힌다. 대담한 것은 기록 줄과 도장 하나뿐이고, 나머지는 조용히 둔다.
   화면은 폰이 기준이고, PC(1024px 이상)에서는 넓이를 써서 본문과 옆 칸 둘로 나눈다. */

:root {
    color-scheme: light dark;

    --cover: #2F6B5B;
    --cover-deep: #255647;
    --cover-band: #2F6B5B;
    --cover-ink: #ffffff;
    --cover-soft: #E3EFE9;

    --bg: #F7FAF8;
    --surface: #ffffff;
    --surface-2: #F0F5F2;
    --line: #D5E1DB;
    --rule: #E3ECE7;
    --ink: #1F2D29;
    --ink-soft: #52635C;
    --ink-faint: #7F908A;

    /* 살구색은 "지금 봐야 할 것"에만. 글자로 쓸 때는 바탕 위에서 읽히도록 짙게 내린 값을 쓴다. */
    --apricot: #F4A259;
    --apricot-ink: #93500F;
    --apricot-soft: #FDEEDC;

    --stamp: #3D6FB6;
    --stamp-soft: #E8EFF9;

    --danger: #B4483A;
    --danger-soft: #F8E7E4;

    /* 옛 이름. 뷰 안의 그래프가 아직 이 이름을 부를 수 있어 표지색으로 이어둔다. */
    --accent: var(--cover);
    --accent-ink: var(--cover-ink);
    --accent-soft: var(--cover-soft);
    --line-soft: var(--rule);

    --hand: "Gowun Dodum", "Pretendard Variable", "Pretendard", "Malgun Gothic", sans-serif;
    --shell: 1120px;
}

@media (prefers-color-scheme: dark) {
    :root {
        --cover: #3F8A74;
        --cover-deep: #357A66;
        --cover-band: #1F4A3F;
        --cover-ink: #ffffff;
        --cover-soft: #1C2E28;

        --bg: #111916;
        --surface: #17211D;
        --surface-2: #1C2824;
        --line: #2C3B35;
        --rule: #23302B;
        --ink: #E4ECE8;
        --ink-soft: #A5B5AE;
        --ink-faint: #75877F;

        --apricot: #F4A259;
        --apricot-ink: #F5B87C;
        --apricot-soft: #382A1C;

        --stamp: #82A6DE;
        --stamp-soft: #1D2738;

        --danger: #E8897B;
        --danger-soft: #34211E;
    }
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

/* hidden 속성은 .btn 의 display 보다 앞서야 한다 - 알림 켜기/끄기 중 하나만 보이게. */
[hidden] { display: none !important; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: "Pretendard Variable", "Pretendard", -apple-system, BlinkMacSystemFont, "Malgun Gothic", "맑은 고딕", system-ui, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; font-family: var(--hand); font-weight: 400; letter-spacing: -.01em; text-wrap: balance; }

.shell { width: min(var(--shell), 100% - 28px); margin-inline: auto; }
.narrow { max-width: 640px; margin-inline: auto; }

:focus-visible { outline: 2px solid var(--cover); outline-offset: 2px; border-radius: 8px; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ---------- 머리띠 (수첩 표지) ---------- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: var(--cover-band);
    color: var(--cover-ink);
}

.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 56px;
}

/* 머리글은 어떤 이름이 와도 한 줄이다. 제목과 로그아웃은 줄지 않고, 이름만 줄어 말줄임표가 된다. */
.brand { display: inline-flex; flex: none; align-items: center; gap: 9px; font-family: var(--hand); font-size: 1.18rem; white-space: nowrap; }
.brand__mark { width: 22px; height: 22px; flex: none; }

.topnav { display: none; }

.header-actions { display: flex; flex: 0 1 auto; min-width: 0; align-items: center; justify-content: flex-end; gap: 6px; }
.header-actions form { flex: none; }
.header-actions .btn { white-space: nowrap; }

.who { display: inline-flex; min-width: 0; font-size: .84rem; color: rgba(255, 255, 255, .88); font-weight: 600; white-space: nowrap; }
.who__name { min-width: 0; max-width: 12em; overflow: hidden; text-overflow: ellipsis; }
.who__tail { flex: none; color: rgba(255, 255, 255, .62); font-weight: 500; }

.site-header .btn--quiet { color: var(--cover-ink); min-height: 36px; }
.site-header .btn--quiet:hover { background: rgba(255, 255, 255, .1); }
.site-header .btn:not(.btn--quiet) { background: #fff; border-color: #fff; color: #2F6B5B; min-height: 36px; }

@media (max-width: 400px) {
    .site-header__inner { gap: 8px; }
    .header-actions { gap: 2px; }
    .header-actions .btn--quiet { padding: 0 8px; }
}

main { padding: 20px 0 48px; }

/* ---------- 버튼 ---------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 42px;
    padding: 0 16px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--surface);
    color: var(--ink);
    font: inherit;
    font-weight: 650;
    font-size: .9rem;
    white-space: nowrap;
    cursor: pointer;
    transition: border-color .15s ease, background-color .15s ease;
}

.btn:hover { border-color: var(--cover); }
.btn--primary { background: var(--cover); border-color: var(--cover); color: var(--cover-ink); }
.btn--primary:hover { background: var(--cover-deep); border-color: var(--cover-deep); }
.btn--wide { width: 100%; min-height: 50px; font-size: .98rem; }
.btn--quiet { background: transparent; border-color: transparent; color: var(--ink-soft); padding: 0 10px; }
.btn--quiet:hover { border-color: transparent; background: var(--surface-2); }
.btn--danger { color: var(--danger); }

/* 완료를 누르기 전의 자리. 아직 찍히지 않은 도장 칸처럼 점선 동그라미로 둔다. */
.stampbtn {
    flex: none;
    width: 48px; height: 48px;
    display: grid; place-items: center;
    border: 1.5px dashed color-mix(in srgb, var(--stamp) 60%, transparent);
    border-radius: 50%;
    background: transparent;
    color: var(--stamp);
    font: inherit;
    font-size: .78rem;
    font-weight: 750;
    cursor: pointer;
    transition: background-color .15s ease, border-color .15s ease, transform .15s ease;
}
.stampbtn:hover { background: var(--stamp-soft); border-style: solid; border-color: var(--stamp); }
.stampbtn:active { transform: rotate(-10deg) scale(.94); }

/* 끝낸 일에 찍히는 도장. 겹테 동그라미에 "완료"와 날짜, 살짝 기울여 손으로 찍은 티를 낸다. */
.stamp {
    flex: none;
    width: 54px; height: 54px;
    display: grid; place-content: center; text-align: center;
    border: 2px solid var(--stamp);
    border-radius: 50%;
    box-shadow: inset 0 0 0 2px var(--surface), inset 0 0 0 3px var(--stamp);
    color: var(--stamp);
    line-height: 1.1;
    transform: rotate(-9deg);
    font-variant-numeric: tabular-nums;
}
.stamp__word { font-size: .62rem; font-weight: 800; }
.stamp__day { font-size: .76rem; font-weight: 750; }
.stamp__year { font-size: .56rem; font-weight: 700; opacity: .8; }

.stamp--mini {
    width: auto; height: auto;
    padding: 1px 7px;
    border-width: 1.5px;
    border-radius: 999px;
    box-shadow: none;
    font-size: .7rem;
    font-weight: 800;
    transform: rotate(-6deg);
}

/* ---------- 속지 ---------- */

.panel {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 18px;
}

.panels { display: flex; flex-direction: column; gap: 14px; }

/* 기록 표의 머리. 제목 아래 표지색 줄 하나가 "여기서부터 기록"을 말한다. */
.panel__head {
    display: flex; align-items: center; justify-content: space-between; gap: 8px;
    margin-bottom: 4px; padding-bottom: 9px;
    border-bottom: 2px solid var(--cover);
}
.panel__title { font-family: var(--hand); font-size: 1.16rem; color: var(--ink); white-space: nowrap; }
.panel__more { font-size: .85rem; color: var(--cover); font-weight: 650; white-space: nowrap; }

/* 고르는 칸(누구·종류·기간)은 기록이 아니다. 머리 줄 없이 작게. */
.panel--tool { padding: 14px 16px; }
.panel--tool .panel__head { border-bottom: 0; padding-bottom: 0; margin-bottom: 9px; }
.panel--tool .panel__title { font-family: inherit; font-size: .84rem; font-weight: 700; color: var(--ink-soft); }

.page-title { font-size: 1.65rem; margin-bottom: 16px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }

/* 폰에서는 한 줄로 쌓고(순서는 ord-*), PC에서는 본문과 옆 칸 둘로 나눈다. */
.board { display: flex; flex-direction: column; gap: 14px; }
.board__main, .board__side { display: contents; }
.ord-1 { order: 1; } .ord-2 { order: 2; } .ord-3 { order: 3; }
.ord-4 { order: 4; } .ord-5 { order: 5; } .ord-6 { order: 6; }

/* ---------- 목록 행 ---------- */

.row { display: flex; align-items: center; gap: 11px; padding: 12px 0; border-top: 1px solid var(--rule); }
.panel__head + .row, .panel__head + .rec, .row:first-child { border-top: 0; }
.row:first-child { padding-top: 0; }
.row:last-child { padding-bottom: 0; }
.row__body { flex: 1; min-width: 0; }
.row__name { font-size: .95rem; font-weight: 650; line-height: 1.4; }
.row__meta { font-size: .8rem; color: var(--ink-soft); }
.row__name, .row__meta, .tl__what, .tl__note { word-break: keep-all; overflow-wrap: anywhere; }

.row__link { display: block; }
.row--on { background: var(--cover-soft); border-radius: 10px; padding-inline: 10px; }
.row__share { margin-left: 5px; font-size: .76rem; font-weight: 750; color: var(--cover); font-variant-numeric: tabular-nums; }

/* 분류 글리프(이모지)는 언제나 같은 작은 칸 안에. */
.icon-tile {
    width: 34px; height: 34px; flex: none; border-radius: 10px;
    display: grid; place-items: center; font-size: .98rem;
    background: var(--surface-2);
}
.glyph {
    display: inline-grid; place-items: center; vertical-align: -3px;
    width: 22px; height: 22px; margin-right: 6px; border-radius: 6px;
    background: var(--surface-2); font-size: .74rem;
}

/* 사진 스티커. 흰 테두리에 바깥 가는 선 하나 - 수첩에 붙인 동그란 스티커처럼. */
.face, .sticker {
    flex: none; border-radius: 50%;
    background: var(--cover-soft);
    border: 3px solid #fff;
    box-shadow: 0 0 0 1px var(--line), 0 2px 6px rgba(31, 45, 41, .08);
    display: grid; place-items: center; overflow: hidden;
}
.face { width: 44px; height: 44px; font-size: 1.2rem; border-width: 2px; }
.face img, .sticker img { width: 100%; height: 100%; object-fit: cover; }
.sticker { width: 76px; height: 76px; font-size: 2.1rem; }
.sticker--lg { width: 72px; height: 72px; font-size: 2rem; }

.trailing { margin-left: auto; font-size: .9rem; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.trailing small { font-size: .74rem; font-weight: 600; color: var(--ink-soft); }

/* ---------- 기록 줄 ---------- */

/* 날짜 칸 | 무엇 | 도장 칸. 날짜 칸 오른쪽의 세로줄이 수첩 표의 칸막이다. */
.rec { gap: 12px; align-items: center; }
.rec__date {
    flex: none; align-self: stretch;
    width: 50px; padding: 2px 10px 2px 0;
    border-right: 1px solid var(--rule);
    display: flex; flex-direction: column; justify-content: center;
    font-size: .92rem; font-weight: 700; color: var(--ink);
    font-variant-numeric: tabular-nums; line-height: 1.2;
}
.rec__year { font-size: .66rem; font-weight: 600; color: var(--ink-faint); }
.rec--late .rec__date, .rec--today .rec__date { color: var(--apricot-ink); }
.rec__line { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 7px; margin-top: 3px; }

/* 잰 기록 한 줄: 날짜 · 몸무게 · 고치기 · 지우기가 360px 에서도 한 줄. */
.row--weight { gap: 8px; }
.row--weight .row__name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums; }
.row--weight .row__meta { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row--weight > form, .row--weight > .btn { flex: none; }
.row--weight .btn--quiet { padding: 0 7px; min-height: 36px; }
@media (max-width: 400px) {
    .row--weight { gap: 4px; }
    .row--weight .btn--quiet { padding: 0 5px; font-size: .85rem; }
}

/* ---------- 상태 표 ---------- */

.pill {
    flex: none;
    display: inline-block;
    font-size: .72rem;
    font-weight: 700;
    line-height: 1.5;
    padding: 1px 8px;
    border-radius: 6px;
    white-space: nowrap;
}

.pill--late { background: var(--apricot); color: #3A1F05; }
.pill--today { background: var(--apricot-soft); color: var(--apricot-ink); }
.pill--ok { background: transparent; color: var(--ink-soft); box-shadow: inset 0 0 0 1px var(--line); }
.pill--done { background: var(--surface-2); color: var(--ink-soft); }
.pill--none { display: none; }

/* ---------- 몸무게 ---------- */

.figure-head { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 4px 12px; margin: 12px 0 6px; }
.figure-num { font-size: 2.2rem; font-weight: 700; letter-spacing: -.03em; font-variant-numeric: tabular-nums; line-height: 1.1; white-space: nowrap; }
.figure-num small { font-size: .95rem; font-weight: 600; color: var(--ink-soft); margin-left: 3px; letter-spacing: 0; }
.figure-note { font-size: .8rem; font-weight: 650; color: var(--ink-soft); }
.figure-note--up { color: var(--apricot-ink); }
.figure-note--down { color: var(--cover); }

.chart { width: 100%; height: auto; display: block; overflow: visible; margin-top: 6px; }
.chart-x { display: flex; justify-content: space-between; margin-top: 5px; font-size: .7rem; color: var(--ink-faint); font-variant-numeric: tabular-nums; }
.sub-head { margin-top: 20px; }

/* ---------- 달과 하루 ---------- */

.monthbar { display: flex; align-items: center; gap: 8px; }
.monthbar__now { flex: 1; text-align: center; min-width: 0; }
.monthbar__label { font-family: var(--hand); font-size: 1.35rem; }
.monthbar__sub { font-size: .8rem; color: var(--ink-soft); }

.monthbar__arrow {
    flex: none; width: 44px; height: 44px; border-radius: 10px;
    display: grid; place-items: center; font-size: 1.35rem; line-height: 1;
    border: 1px solid var(--line); background: var(--surface); color: var(--ink-soft);
}
.monthbar__arrow:hover { border-color: var(--cover); color: var(--cover); }
.monthbar__arrow--off, .monthbar__arrow--off:hover { color: var(--line); border-color: var(--rule); }

.monthpick > summary { list-style: none; cursor: pointer; }
.monthpick > summary::-webkit-details-marker { display: none; }
.monthpick > summary::after { content: " ▾"; font-size: .7em; color: var(--ink-faint); }
.monthpick[open] > summary::after { content: " ▴"; }
.monthpick__form { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-top: 8px; }
.monthpick__form input { width: auto; flex: 0 0 auto; min-width: 9.5em; }
.monthpick__form .btn { flex: none; }

/* 지출의 년월 두 칸은 한 줄에 하나씩. 크롬의 년월 칸은 150px 아래로 줄지 않고 끝을 잘라낸다. */
.rangebar { display: flex; flex-direction: column; gap: 8px; margin-top: 11px; }
.rangebar__row { display: flex; align-items: center; gap: 10px; }
.rangebar__tag { flex: none; width: 2.2em; font-size: .8rem; font-weight: 700; color: var(--ink-soft); }
.rangebar input { width: 100%; min-width: 0; }
.rangebar .btn { min-height: 46px; }

/* 한 달치 기록은 한 장의 속지. 하루가 그 안의 한 묶음이다. */
.day + .day { margin-top: 20px; }
.day__head {
    display: flex; align-items: baseline; justify-content: space-between; gap: 8px;
    padding-bottom: 7px; border-bottom: 2px solid var(--cover);
}
.day__when { font-family: var(--hand); font-size: 1.08rem; white-space: nowrap; }
.day__when small { font-family: "Pretendard Variable", "Pretendard", sans-serif; font-size: .78rem; font-weight: 600; color: var(--ink-faint); margin-left: 3px; }
.day__when .pill { margin-left: 6px; font-family: "Pretendard Variable", "Pretendard", sans-serif; vertical-align: 2px; }
.day__sum { font-size: .88rem; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.day__head + .row { border-top: 0; padding-top: 12px; }
.day .row:last-child { padding-bottom: 4px; }

.filter__head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; cursor: pointer; list-style: none; }
.filter__head::-webkit-details-marker { display: none; }
.filter__now { font-size: .84rem; font-weight: 650; color: var(--cover); }
.filter__now::after { content: " ▾"; font-size: .75em; color: var(--ink-faint); }
.filter[open] .filter__now::after { content: " ▴"; }

/* ---------- 지나온 일 (기록 표) ---------- */

.tl { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--rule); }
.panel__head + .tl { border-top: 0; }
.tl__date { flex: none; width: 46px; font-size: .78rem; font-weight: 650; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.tl__year { display: block; font-size: .66rem; font-weight: 600; color: var(--ink-faint); }
.tl__what { font-size: .93rem; font-weight: 650; line-height: 1.4; }
.tl__note { font-size: .8rem; color: var(--ink-soft); }
.num { font-variant-numeric: tabular-nums; }
.nowrap { white-space: nowrap; }

.tl--link:hover .tl__what, .row:hover > .row__body .row__name { color: var(--cover); }
.tl__go { flex: none; padding-left: 2px; color: var(--ink-faint); font-size: 1.15rem; }
.rec .stamp { margin: 2px 2px 2px 0; }

/* 소모품 한 줄: 이름과 남은 날을 위에, 손이 가는 버튼은 그 아래 한 줄로. */
.supply { align-items: flex-start; }
.supply__top { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.supply__acts { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 9px; }
.supply__acts .btn { min-height: 36px; padding: 0 12px; font-size: .84rem; }
.supply__acts .btn--quiet { padding: 0 8px; }

/* ---------- 우리 아이들 ---------- */

.pets { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; margin-top: 12px; }
.petcard {
    display: flex; flex-direction: column; align-items: center; text-align: center;
    padding: 16px 10px 14px; border-radius: 14px; background: var(--surface-2);
    transition: background-color .15s ease;
}
.petcard:hover { background: var(--cover-soft); }
/* 이름표. 스티커 아래에 겹쳐 붙인 작은 표. */
.petcard__name {
    position: relative; z-index: 1;
    margin-top: -12px; padding: 1px 12px 2px;
    border-radius: 6px; background: var(--cover); color: var(--cover-ink);
    font-family: var(--hand); font-size: 1.05rem; white-space: nowrap;
    max-width: 100%; overflow: hidden; text-overflow: ellipsis;
}
.petcard__meta { text-wrap: balance; margin-top: 8px; font-size: .78rem; color: var(--ink-soft); line-height: 1.45; word-break: keep-all; overflow-wrap: anywhere; }
.petcard__weight { margin-top: 6px; font-size: .95rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.petcard__weight small { font-size: .74rem; color: var(--ink-soft); font-weight: 600; }
.petcard .pill { margin-top: 6px; }

/* ---------- 아이 수첩 표지 ---------- */

.cover {
    position: relative;
    display: flex; align-items: center; gap: 16px;
    margin-bottom: 16px; padding: 22px 20px;
    border-radius: 16px;
    background: var(--cover-band);
    color: var(--cover-ink);
}
/* 표지 안쪽의 눌린 테두리. */
.cover::after {
    content: ""; position: absolute; inset: 7px;
    border: 1px solid rgba(255, 255, 255, .22); border-radius: 11px;
    pointer-events: none;
}
.cover .sticker { box-shadow: 0 2px 8px rgba(0, 0, 0, .18); }
.cover__text { flex: 1; min-width: 0; }
.cover__name { font-size: 1.85rem; line-height: 1.2; }
.cover__meta { margin: 4px 0 0; font-size: .84rem; color: rgba(255, 255, 255, .85); word-break: keep-all; }
.cover .btn { position: relative; z-index: 1; align-self: flex-start; background: transparent; border-color: rgba(255, 255, 255, .5); color: #fff; min-height: 36px; padding: 0 13px; }
.cover .btn:hover { background: rgba(255, 255, 255, .12); border-color: #fff; }

/* ---------- 입력 ---------- */

.form { display: flex; flex-direction: column; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field__label { font-size: .84rem; font-weight: 700; color: var(--ink); }
.field__label .field__hint { font-weight: 500; margin-left: 3px; }
.field__hint { font-size: .76rem; color: var(--ink-faint); }

input[type=text], input[type=number], input[type=date], input[type=month], input[type=url], input[type=email], select, textarea {
    width: 100%;
    min-height: 46px;
    padding: 0 13px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--surface);
    color: var(--ink);
    font: inherit;
    font-size: 1rem;
    font-variant-numeric: tabular-nums;
}

textarea { min-height: 96px; padding: 11px 13px; resize: vertical; line-height: 1.55; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--cover); outline-offset: 1px; border-color: transparent; }

.chips { display: flex; flex-wrap: wrap; gap: 7px; }

.chips__cap {
    flex-basis: 100%; margin: 6px 0 -1px;
    font-size: .76rem; font-weight: 700; color: var(--ink-faint);
}
.chips__cap:first-child { margin-top: 0; }

.chip { position: relative; display: inline-flex; flex: none; cursor: pointer; }
.chip input { position: absolute; opacity: 0; width: 0; height: 0; }

.chip span {
    white-space: nowrap;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 7px 13px;
    font-size: .87rem;
    font-weight: 600;
    background: var(--surface);
}
.chip:hover span { border-color: var(--cover); }

.chip input:checked + span, .chip span.chip--on { background: var(--cover); border-color: var(--cover); color: var(--cover-ink); }
.chip input:focus-visible + span { outline: 2px solid var(--cover); outline-offset: 2px; }

/* ---------- 갈래 ---------- */

.switch__pick { margin-bottom: 12px; }

@supports selector(:has(*)) {
    .switch > .pane { display: none; }
    .switch:has(.switch__pick input[value="care"]:checked) > .pane[data-mode="care"],
    .switch:has(.switch__pick input[value="weight"]:checked) > .pane[data-mode="weight"] { display: block; }
    .switch:not(:has(.switch__pick)) > .pane { display: block; }
}

/* ---------- 비율 막대 ---------- */

.meter { margin-top: 7px; height: 5px; border-radius: 999px; background: var(--rule); overflow: hidden; }
.meter span { display: block; height: 100%; border-radius: 999px; background: var(--cover); opacity: .6; }

/* ---------- 아래 길잡이 (폰) ---------- */

.tabbar {
    position: sticky;
    bottom: 0;
    z-index: 20;
    background: var(--surface);
    border-top: 1px solid var(--line);
    padding-bottom: env(safe-area-inset-bottom);
}

.tabbar__inner { display: flex; }

.tab {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    padding: 8px 2px 7px;
    font-size: .72rem;
    font-weight: 650;
    color: var(--ink-faint);
    white-space: nowrap;
}

.tab svg { width: 40px; height: 26px; padding: 2px 9px; border-radius: 999px; }
.tab--on { color: var(--cover); }
.tab--on svg { background: var(--cover-soft); }

.field-error { color: var(--danger); font-size: .82rem; font-weight: 700; }

.link-actions { display: flex; gap: 8px; margin-top: 12px; }
.link-actions .btn { flex: 1; min-height: 46px; }
#inviteLink { font-size: .88rem; }

.notice {
    border-radius: 10px;
    background: var(--danger-soft);
    color: var(--danger);
    padding: 11px 14px;
    font-size: .88rem;
    font-weight: 650;
}
.notice--ok { background: var(--cover-soft); color: var(--cover); }

/* ---------- 아무것도 없을 때 ---------- */

.empty { text-align: center; padding: 26px 12px; }
.empty__mark { font-size: 2rem; }
.empty__title { margin: 8px 0 0; font-family: var(--hand); font-size: 1.2rem; }
.empty__text { margin: 4px 0 0; color: var(--ink-soft); font-size: .9rem; }
.empty .btn { margin-top: 16px; }
.lead { margin: 12px 0 0; font-size: .86rem; color: var(--ink-soft); }

/* ---------- 로그인 (수첩 표지) ---------- */

.signin {
    position: relative;
    max-width: 400px; margin: 6vh auto 0;
    padding: 38px 26px 28px;
    border-radius: 18px;
    background: var(--cover-band); color: var(--cover-ink);
    text-align: center;
}
.signin::after {
    content: ""; position: absolute; inset: 8px;
    border: 1px solid rgba(255, 255, 255, .22); border-radius: 12px; pointer-events: none;
}
.signin > * { position: relative; z-index: 1; }
.signin__mark {
    width: 72px; height: 72px; margin: 0 auto;
    display: grid; place-items: center; font-size: 2rem;
    border-radius: 50%; background: var(--cover-soft); border: 3px solid #fff;
}
.signin h1 { margin-top: 14px; font-size: 1.8rem; }
.signin p { margin: 10px 0 24px; color: rgba(255, 255, 255, .86); font-size: .93rem; word-break: keep-all; }
.signin .btn--primary, .signin .btn { background: #fff; border-color: #fff; color: #2F6B5B; }
.signin .notice { text-align: left; margin-bottom: 16px; }

/* ---------- 바닥글 ---------- */

.site-footer { border-top: 1px solid var(--line); padding: 20px 0 30px; color: var(--ink-faint); font-size: .82rem; }
.site-footer__inner { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }

/* ---------- PC ---------- */

@media (min-width: 1024px) {
    main { padding: 28px 0 56px; }

    .topnav { display: flex; gap: 2px; margin-right: auto; margin-left: 28px; }
    .topnav a {
        display: inline-flex; align-items: center; min-height: 56px; padding: 0 14px;
        font-size: .92rem; font-weight: 600; color: rgba(255, 255, 255, .78);
        box-shadow: inset 0 -3px 0 transparent;
    }
    .topnav a:hover { color: #fff; }
    .topnav a.on { color: #fff; box-shadow: inset 0 -3px 0 #fff; }

    .tabbar { display: none; }

    .board { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 20px; align-items: start; }
    .board__main, .board__side { display: flex; flex-direction: column; gap: 20px; min-width: 0; grid-row: 1; }
    .board__main { grid-column: 1; }
    .board__side { grid-column: 2; }
    .board--wide-side { grid-template-columns: minmax(0, 1fr) 400px; }

    .panel { padding: 22px 24px; }
    .panel--tool { padding: 16px 18px; }
    .page-title { font-size: 1.9rem; margin-bottom: 20px; }
    .cover { padding: 28px 30px; margin-bottom: 20px; }
    .cover__name { font-size: 2.2rem; }
    .sticker--lg { width: 88px; height: 88px; font-size: 2.5rem; }
}

