:root {
    --bg: #f7f7f5;
    --panel: #ffffff;
    --line: #deded8;
    --text: #242421;
    --muted: #74746d;
    --accent: #256f5b;
    --accent-soft: #e5f1ec;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 14px;
    line-height: 1.45;
}

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

button, input, select {
    font: inherit;
}

button, .button {
    min-height: 34px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #fff;
    color: var(--text);
    padding: 6px 10px;
    cursor: pointer;
}

button:hover, .button:hover { background: #f0f0ec; }

.button.secondary {
    border-color: #8a8a82;
    background: #fff;
    color: #55554f;
    font-weight: 700;
}

.button.secondary:hover {
    border-color: #6d6d66;
    background: #f0f0ec;
    color: #3f3f3a;
}

button.primary,
.button.primary {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

button.primary:hover,
.button.primary:hover {
    background: #1f5d4d;
    border-color: #1f5d4d;
    color: #fff;
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 20px;
    min-height: 52px;
    padding: 0 24px;
    border-bottom: 1px solid var(--line);
    background: #fff;
}

.brand {
    flex: 0 0 auto;
    font-weight: 700;
}

.nav-scroll-wrap {
    position: relative;
    flex: 1 1 auto;
    min-width: 0;
}

.nav-scroll-wrap::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 26px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0), #fff 82%);
    opacity: 0;
    pointer-events: none;
    transition: opacity .16s ease;
}

.nav-scroll-wrap.has-more-right::after {
    opacity: 1;
}

.nav {
    display: flex;
    align-items: center;
    gap: 4px;
    min-width: 0;
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    white-space: nowrap;
}

.nav::-webkit-scrollbar {
    display: none;
}

.nav a {
    flex: 0 0 auto;
    border-radius: 6px;
    color: var(--muted);
    padding: 6px 9px;
}

.nav a.is-active,
.nav a:hover {
    background: #ecece7;
    color: var(--text);
}


@media (max-width: 760px) {
    .topbar {
        gap: 10px;
        padding-right: 0;
    }

    .nav {
        padding-right: 14px;
        scroll-padding-inline: 8px 14px;
    }
}
.decor-divider {
    --decor-divider-line-top: 3px;
    --decor-divider-dot-top: 1px;
    position: relative;
}

.decor-divider::before {
    content: "";
    position: absolute;
    top: var(--decor-divider-line-top);
    left: 50%;
    width: 80%;
    min-width: 180px;
    height: 1px;
    background: linear-gradient(90deg, transparent 0, var(--line) 8%, var(--line) calc(50% - 18px), transparent calc(50% - 18px), transparent calc(50% + 18px), var(--line) calc(50% + 18px), var(--line) 92%, transparent 100%);
    transform: translateX(-50%);
}

.decor-divider::after {
    content: "";
    position: absolute;
    top: var(--decor-divider-dot-top);
    left: 50%;
    width: 7px;
    height: 7px;
    border: 1px solid #b7d5ca;
    border-radius: 50%;
    background: #fff;
    transform: translateX(-50%);
}

.page {
    width: min(960px, 100%);
    margin: 0;
    padding: 28px 20px 0;
}

h1 {
    margin: 0 0 18px;
    font-size: 20px;
    letter-spacing: 0;
}


.page > h1,
.page > .section-head:first-child {
    border-bottom: 1px solid var(--line);
    padding-bottom: 5px;
    margin-bottom: 18px;
}
.page > .section-head:first-child h1 {
    margin-bottom: 0;
}
h2 {
    margin: 0;
    font-size: 15px;
    letter-spacing: 0;
}

p { margin: 6px 0; }

.intro {
    max-width: 620px;
    padding: 44px 0 24px;
}

.intro h1 {
    font-size: 28px;
    line-height: 1.25;
    margin-bottom: 12px;
}

.eyebrow {
    color: var(--accent);
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 8px;
}

.actions, .inline-actions, .section-head, .filters, .tabs {
    display: flex;
    align-items: center;
    gap: 8px;
}

.actions { margin-top: 18px; }

.section {
    margin: 0 0 24px;
}

.section-head {
    justify-content: space-between;
    margin-bottom: 10px;
}

.narrow { max-width: 560px; }

.list {
    display: grid;
    gap: 10px;
}

.list.compact { gap: 6px; }

.panel,
.member-row,
.routine-row,
.plan-button,
.quick-input,
.calendar-placeholder {
    border: 1px solid var(--line);
    border-radius: 7px;
    background: var(--panel);
}

.panel { padding: 12px; }

.row,
.member-row,
.routine-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.heading-row { margin-bottom: 8px; }

.muted, small, .member-row p { color: var(--muted); }

.check-row {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 34px;
}

.check-row input[type="checkbox"] {
    flex: 0 0 18px;
    width: 18px;
    min-width: 18px;
    height: 18px;
    min-height: 18px;
    margin: 1px 0 0;
    appearance: none;
    -webkit-appearance: none;
    border: 1.5px solid #b8c3ba;
    border-radius: 5px;
    background: #fff;
    box-shadow: inset 0 0 0 2px #fff;
    cursor: pointer;
    transition: background-color .14s ease, border-color .14s ease, box-shadow .14s ease;
}

.check-row input[type="checkbox"]:hover {
    border-color: #7fa18f;
    background: #f8fbf9;
}

.check-row input[type="checkbox"]:focus-visible {
    outline: 2px solid rgba(45, 106, 85, .24);
    outline-offset: 2px;
}

.check-row input[type="checkbox"]:checked {
    border-color: var(--accent);
    background: var(--accent);
    box-shadow: 0 0 0 2px rgba(37, 111, 91, .12);
}

.check-row input[type="checkbox"]:checked::after {
    content: "";
    display: block;
    width: 5px;
    height: 9px;
    margin: 1px auto 0;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.check-row input[type="checkbox"]:disabled {
    border-color: #cfcfc7;
    background: #f2f2ed;
    cursor: not-allowed;
}

.inline-actions {
    justify-content: flex-end;
    margin-top: 8px;
    color: var(--muted);
}

.member-row,
.routine-row {
    min-height: 50px;
    padding: 9px 12px;
}

.plan-button {
    display: block;
    width: 100%;
    text-align: left;
}

.plan-button.is-active,
.tabs .is-active {
    background: var(--accent-soft);
    border-color: #b7d5ca;
}

.page-tabs {
    margin: -6px 0 18px;
}

.page-tabs a {
    min-height: 34px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #fff;
    color: var(--muted);
    padding: 6px 12px;
}

.page-tabs a.is-active {
    color: var(--text);
}

.coach-title-row {
    position: relative;
    display: block;
}

.coach-title-row h1 {
    margin: 0;
    padding-right: 190px;
}

.coach-title-row .page-tabs {
    position: absolute;
    top: -3px;
    right: 0;
    margin: 0;
}

.coach-tabs a {
    min-height: 30px;
    padding: 4px 9px;
    font-size: 13px;
}

.split {
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 18px;
    align-items: start;
}

.quick-input,
.filters input,
.filters select {
    width: 100%;
    min-height: 34px;
    padding: 6px 10px;
    margin-bottom: 10px;
}

.filters {
    align-items: stretch;
    margin-bottom: 12px;
}

.calendar-placeholder {
    display: grid;
    min-height: 180px;
    margin-bottom: 12px;
    place-items: center;
    color: var(--muted);
}

@media (max-width: 640px) {
    .topbar {
        align-items: center;
        flex-direction: row;
        gap: 10px;
        padding: 0 0 0 14px;
    }

    .nav-scroll-wrap {
        flex: 1 1 auto;
    }

    .nav {
        padding: 9px 14px 9px 0;
        scroll-padding-inline: 8px 14px;
    }

    .nav a {
        min-height: 34px;
        display: inline-flex;
        align-items: center;
        padding: 6px 10px;
    }


    .page { padding: 22px 14px 0; }

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

    .intro { padding-top: 24px; }

    .intro h1 { font-size: 24px; }

    .member-row,
    .routine-row {
        align-items: flex-start;
        flex-direction: column;
        gap: 2px;
    }
}


@media (max-width: 359px) {
    .topbar {
        gap: 8px;
        padding-left: 12px;
    }

    .nav {
        padding-right: 12px;
        scroll-padding-inline: 8px 12px;
    }

    .nav-scroll-wrap::after {
        width: 22px;
    }
}
.notice {
    border: 1px solid var(--line);
    border-radius: 7px;
    margin: 0 0 14px;
    padding: 9px 11px;
}

.notice p { margin: 0; }

.notice.is-success {
    background: var(--accent-soft);
    border-color: #b7d5ca;
}

.notice.is-error {
    background: #fff0ed;
    border-color: #e5c2bc;
}

.auth-shell {
    width: min(420px, calc(100% - 48px));
    max-width: 420px;
    margin: 24px auto 0;
}

.auth-form {
    display: grid;
    gap: 12px;
}

.auth-form .field {
    position: relative;
}

.auth-form .field label,
.auth-form label span,
.auth-links,
.auth-divider,
.manual-auth-title {
    color: var(--muted);
    font-size: 12px;
}

.auth-form .field label {
    position: absolute;
    top: 15px;
    left: 12px;
    z-index: 1;
    max-width: calc(100% - 24px);
    padding: 0 4px;
    overflow: hidden;
    background: #fff;
    line-height: 1.2;
    pointer-events: none;
    text-overflow: ellipsis;
    transform-origin: left top;
    transition: transform .14s ease, color .14s ease, top .14s ease;
    white-space: nowrap;
}

.auth-form .field:focus-within label,
.auth-form .field input:focus + label,
.auth-form .field input:not(:placeholder-shown) + label,
.auth-form .field:has(input:not(:placeholder-shown)) label {
    top: 6px;
    color: var(--accent);
    transform: scale(.84);
}

.auth-form label:not(.check-row):not(.auth-check) {
    display: grid;
    gap: 5px;
}

.auth-form input[type="text"],
.auth-form input[type="email"],
.auth-form input[type="password"] {
    width: 100%;
    min-height: 48px;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 18px 12px 7px;
    background: #fff;
}

.auth-form input[type="text"]:focus,
.auth-form input[type="email"]:focus,
.auth-form input[type="password"]:focus {
    border-color: #9fc7b8;
    box-shadow: 0 0 0 2px rgba(37, 111, 91, .12);
    outline: none;
}

@media (max-width: 480px) {
    .auth-shell {
        width: calc(100% - 56px);
        margin-top: 18px;
    }
}

.compact-check {
    min-height: 28px;
}

.auth-social-actions {
    display: grid;
    gap: 10px;
    margin-bottom: 12px;
}

.social-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    font-weight: 600;
}


.social-button-kakao {
    border-color: #f2d94c;
    background: #fee500;
    color: #191600;
}

.social-button-kakao:hover,
.social-button-kakao:focus-visible {
    border-color: #e2c900;
    background: #f5dc00;
}

.social-icon-kakao {
    border-color: rgba(25, 22, 0, .22);
    background: rgba(255, 255, 255, .42);
    color: #191600;
}
.social-icon {
    display: inline-grid;
    width: 20px;
    height: 20px;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 50%;
    font-size: 12px;
    font-weight: 700;
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 12px 0;
}

.auth-divider::before,
.auth-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--line);
}

.auth-form > button[type="submit"] {
    min-height: 48px;
    border-radius: 8px;
    font-weight: 700;
}

.auth-links {
    margin-top: 14px;
    color: var(--muted);
    font-size: 13px;
    text-align: center;
}

.auth-links a {
    color: var(--accent);
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.auth-links a:hover,
.auth-links a:focus-visible {
    color: #1f5d4d;
    outline: none;
}

.admin-table-wrap {
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: 7px;
    background: var(--panel);
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 760px;
}

.admin-table th,
.admin-table td {
    border-bottom: 1px solid var(--line);
    padding: 9px 10px;
    text-align: left;
    vertical-align: top;
}

.admin-table th {
    color: var(--muted);
    font-size: 12px;
    font-weight: 600;
}

.admin-table tr:last-child td {
    border-bottom: 0;
}

.admin-table td strong,
.admin-table td small {
    display: block;
}

.role-pill {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 2px 8px;
    font-size: 12px;
}

.role-superadmin {
    border-color: #b7d5ca;
    background: var(--accent-soft);
}

.role-admin {
    border-color: #d7c89b;
    background: #fbf6e6;
}

.admin-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.admin-actions form {
    display: inline-flex;
    gap: 6px;
    margin: 0;
}

.admin-actions select {
    min-height: 34px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #fff;
    padding: 5px 8px;
}

.plans-workspace {
    grid-template-columns: 240px minmax(0, 1fr);
}

.plan-routine-divider {
    display: none;
}

@media (max-width: 640px) {
    .plans-workspace {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .plan-routine-divider {
        --decor-divider-line-top: 10px;
        --decor-divider-dot-top: 7px;
        display: block;
        height: 20px;
        min-height: 20px;
    }
}

.plans-workspace .section {
    min-width: 0;
}

.plans-workspace [hidden] {
    display: none !important;
}

.plans-workspace button {
    min-height: 24px;
    padding: 3px 6px;
    font-size: 12px;
    line-height: 1.15;
}

.inline-create,
.plan-title-form,
.plan-rename-form,
.routine-edit-form {
    display: grid;
    gap: 8px;
}

.inline-create {
    grid-template-columns: minmax(0, 1fr) auto;
    margin-bottom: 10px;
}

.inline-create input,
.plan-title-form input,
.plan-rename-form input,
.routine-edit-form input,
.routine-edit-form select {
    min-height: 34px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #fff;
    padding: 6px 9px;
    width: 100%;
}

.plan-title-form {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    margin-bottom: 12px;
}

.plan-title-form label,
.routine-edit-form label {
    display: grid;
    gap: 4px;
}

.plan-title-form label span,
.routine-edit-form label span,
.day-options legend {
    color: var(--muted);
    font-size: 12px;
}

.plan-list-row {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 6px;
    border: 1px solid var(--line);
    border-radius: 7px;
    background: var(--panel);
    min-height: 40px;
    padding: 4px 5px;
}

.plan-list-row.is-active {
    background: var(--accent-soft);
    border-color: #b7d5ca;
}

.plan-name-slot {
    min-width: 0;
}

.plan-rename-form {
    grid-template-columns: minmax(0, 1fr);
    margin: 0;
}

.plan-row-actions,
.plan-default-actions,
.plan-edit-actions,
.routine-actions {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.move-actions {
    display: inline-grid;
    grid-template-rows: repeat(2, auto);
    gap: 2px;
}


.plan-setting-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.plan-setting-actions .plan-move-actions {
    display: inline-flex;
    gap: 4px;
}

.routine-actions .move-actions {
    display: inline-flex;
    gap: 4px;
}

.routine-actions {
    flex-wrap: nowrap;
    flex-shrink: 0;
}
.plan-row-actions form,
.plan-default-actions form,
.plan-edit-actions form,
.move-actions form,
.routine-actions form {
    margin: 0;
}


.plan-list-row.is-editing {
    grid-template-columns: minmax(0, 1fr) auto;
}

.plan-list-row.is-editing .plan-name-slot {
    min-width: 0;
    width: 100%;
}

.plan-list-row.is-editing .plan-drag-handle {
    display: none;
}

.plan-list-row.is-editing .plan-setting-actions {
    grid-column: 1 / -1;
    min-width: 0;
    width: 100%;
}

.plan-list-row.is-editing .plan-link {
    display: none;
}

.plan-list-row.is-editing .plan-rename-form {
    display: grid;
}

.plan-list-row.is-editing .plan-edit-actions {
    display: inline-flex;
    justify-content: flex-end;
    margin-left: auto;
}
.plan-edit-actions > button[form] {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

.plan-edit-actions > button[form]:hover {
    background: #1f5d4d;
    border-color: #1f5d4d;
}

.plan-edit-actions button[data-confirm] {
    background: #dc2626;
    border-color: #dc2626;
    color: #fff;
}

.plan-edit-actions button[data-confirm]:hover {
    background: #b91c1c;
    border-color: #b91c1c;
}

.plan-link {
    display: block;
    min-width: 0;
    padding: 5px 6px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.row-actions {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
}

.row-actions form {
    margin: 0;
}

.move-button {
    width: 22px;
    min-width: 22px;
    height: 18px;
    min-height: 18px !important;
    padding: 0 !important;
    font-size: 10px !important;
    line-height: 1;
}
.plan-setting-actions .move-button,
.routine-actions .move-button {
    height: 24px;
    min-height: 24px !important;
}


[data-routine-settings].is-active {
    background: var(--accent-soft);
    border-color: #aeb7b3;
}

[data-routine-settings].is-active:hover,
[data-routine-settings].is-active:focus-visible {
    border-color: #8f9a95;
}

.danger-link {
    color: #8a2f22;
}

.plan-list-row.is-busy,
.routine-edit-row.is-busy {
    pointer-events: none;
    position: relative;
}

.plan-list-row.is-busy::before,
.routine-edit-row.is-busy::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 10;
    border-radius: inherit;
    background: rgba(36, 36, 33, .16);
}

.plan-list-row.is-busy::after,
.routine-edit-row.is-busy::after {
    content: "";
    position: absolute;
    z-index: 11;
    top: 50%;
    left: 50%;
    width: 18px;
    height: 18px;
    margin: -9px 0 0 -9px;
    border: 2px solid rgba(31, 122, 90, .22);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: daycheck-spin .75s linear infinite;
}


.daycheck-page-busy-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: grid;
    place-items: center;
    background: rgba(16, 24, 20, .42);
    backdrop-filter: blur(1px);
}

.daycheck-page-busy-overlay[hidden] {
    display: none !important;
}

.daycheck-page-spinner {
    width: 44px;
    height: 44px;
    border: 4px solid rgba(255, 255, 255, .42);
    border-top-color: #fff;
    border-radius: 50%;
    animation: daycheck-spin .75s linear infinite;
}

html.is-page-busy,
body.is-page-busy {
    cursor: wait;
}
@keyframes daycheck-spin {
    to { transform: rotate(360deg); }
}

.routine-list {
    margin-top: 10px;
}

.routine-edit-row {
    position: relative;
    border: 1px solid var(--line);
    border-radius: 7px;
    background: var(--panel);
    padding: 9px;
}

.routine-main-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.routine-title-block {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.routine-main-line strong {
    min-width: 0;
    overflow-wrap: anywhere;
}

.routine-main-line .routine-actions {
    align-self: flex-start;
}

.routine-edit-row.is-paused,
.routine-edit-row.is-ended {
    opacity: .72;
}

.routine-edit-row.is-ended {
    background: #f7f7f3;
}

.routine-meta-line {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 7px;
    color: var(--muted);
}

.routine-meta-item::before {
    content: "·";
    margin-right: 7px;
    color: #a7a79d;
}

.routine-ended-note {
    margin: 2px 0 0;
    color: #746f65;
    font-size: 12px;
    line-height: 1.35;
}

.routine-status-badge {
    display: inline-flex;
    align-items: center;
    min-height: 18px;
    border: 1px solid #bdbdb6;
    border-radius: 999px;
    padding: 1px 6px;
    color: #3f3f3a;
    font-size: 11px;
    line-height: 1;
    background: #d9d9d2;
}

.routine-status-badge.is-ended {
    border-color: #cfc6b8;
    color: #5b5145;
    background: #e9e2d8;
}

.routine-state-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 10px 0 0;
}

.routine-state-filter a {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 4px 10px;
    color: var(--muted);
    font-size: 13px;
    text-decoration: none;
    background: #fff;
}

.routine-state-filter a.is-active {
    border-color: var(--accent);
    color: #12362c;
    background: #e8f5f0;
    font-weight: 700;
}
.routine-board-workspace {
    display: grid;
    gap: 14px;
}

.routine-board-filter-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px 12px;
}

.routine-board-filter-row .routine-state-filter {
    margin: 0;
}
.routine-board-view-actions {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.routine-board-view-actions button {
    min-height: 30px;
    border-color: #d7ddd8;
    border-radius: 6px;
    background: #f8faf8;
    color: #52615b;
    padding: 4px 9px;
    font-size: 12px;
    font-weight: 500;
}

.routine-board-view-actions button:hover,
.routine-board-view-actions button:focus-visible {
    border-color: #bdc9c2;
    background: #fff;
    color: #24332d;
}

.routine-board-plan-create-form {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    border: 1px solid #e1e6de;
    border-radius: 8px;
    background: #fbfcfa;
    margin: 0;
    padding: 8px;
}

.routine-board-plan-create-form input {
    background: #fff;
}

.routine-board-filter-row > .routine-state-filter {
    margin: 0;
}

.routine-board-filter-row > .routine-state-filter a {
    border-radius: 6px;
    background: #fff;
    padding-inline: 9px;
}

.routine-board-list {
    display: grid;
    gap: 12px;
}

.routine-board-plan {
    overflow: hidden;
    border: 1px solid #dfe5df;
    border-radius: 7px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(15, 23, 42, .025);
    padding-top: 0;
}

.routine-board-plan:first-child {
    border-top: 1px solid #dfe5df;
    padding-top: 0;
}

.routine-board-plan-head {
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid #e8ede7;
    background: #f7f9f6;
    margin-bottom: 0;
    padding: 9px 10px;
}

.routine-board-plan-title {
    display: grid;
    flex: 1 1 auto;
    gap: 5px;
    min-width: 0;
}

.routine-board-plan-toggle {
    appearance: none;
    display: inline-flex;
    align-items: center;
    width: fit-content;
    max-width: 100%;
    border: 0;
    background: transparent;
    color: #17221d;
    cursor: pointer;
    font-size: 16px;
    font-weight: 750;
    line-height: 1.25;
    min-height: 26px;
    padding: 0;
    text-align: left;
}

.routine-board-plan-toggle:hover,
.routine-board-plan-toggle:focus-visible {
    color: var(--accent-strong);
}
.routine-board-plan-mark {
    position: relative;
    display: inline-block;
    flex: 0 0 auto;
    width: 14px;
    height: 13px;
    border: 1px solid #7aa795;
    border-radius: 3px;
    background: linear-gradient(180deg, #f7fffb 0%, #ddefe8 100%);
    box-shadow: -2px -2px 0 -1px #f3faf6, -2px -2px 0 0 #a9c8ba;
    margin: 1px 7px 0 1px;
}

.routine-board-plan-mark::before {
    content: "";
    position: absolute;
    left: 3px;
    right: 3px;
    top: 3px;
    height: 1px;
    border-radius: 999px;
    background: #3f7f68;
    box-shadow: 0 3px 0 #72a18e, 0 6px 0 #a6c4b8;
}

.routine-board-plan-create-form button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.routine-board-plan-toggle strong {
    overflow-wrap: anywhere;
}

.routine-board-plan-toggle::before {
    content: '';
    display: inline-block;
    width: 7px;
    height: 7px;
    border-right: 2px solid #5f6f67;
    border-bottom: 2px solid #5f6f67;
    margin-right: 9px;
    transform: rotate(45deg) translateY(-2px);
    transition: transform .15s ease;
}

.routine-board-plan.is-collapsed .routine-board-plan-toggle::before {
    transform: rotate(-45deg) translateY(0);
}

.routine-board-plan-tools {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 6px;
    justify-self: end;
}

.routine-board-plan-tools button,
.routine-board-plan-setting-actions button {
    min-height: 26px;
    border-color: #e5e5de;
    background: transparent;
    color: #6f756f;
    padding: 3px 7px;
    font-size: 12px;
}

.routine-board-plan-tools [data-plan-settings] {
    background: transparent;
}

.routine-board-plan:hover .routine-board-plan-tools button,
.routine-board-plan:focus-within .routine-board-plan-tools button,
.routine-board-plan.is-editing .routine-board-plan-tools button {
    background: #fff;
    color: var(--text);
}

.routine-board-plan.is-editing .routine-board-plan-tools [data-plan-settings] {
    border-color: #cfd9d4;
    background: #fff;
    color: #41504a;
}

.routine-board-plan-drag-handle {
    background: #d8d3c5;
    border-color: #8f8675;
    color: #2f2b24;
    font-weight: 800;
}

.routine-board-plan-setting-actions {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: flex-end;
    padding-top: 0;
}

.routine-board-plan-setting-actions[hidden] {
    display: none;
}
.plan-rename-form[hidden],
.plan-setting-actions[hidden] {
    display: none;
}

.routine-board-plan.is-editing .routine-board-plan-toggle {
    display: none;
}

.routine-board-plan.is-editing .routine-board-plan-drag-handle {
    display: none;
}

.routine-board-plan.is-editing .routine-board-plan-rename-form {
    display: grid;
}

.routine-board-plan-body {
    display: grid;
    padding: 0;
}

.routine-board-plan-body[hidden] {
    display: none;
}


.routine-board-child-content {
    display: grid;
    gap: 0;
    min-width: 0;
}

.routine-board-routine-list {
    display: grid;
    gap: 0;
    margin-top: 0;
    padding: 2px 10px;
}

.routine-board-routine-list .routine-edit-row {
    border: 0;
    border-top: 1px solid #ecece6;
    border-radius: 0;
    background: #fff;
    box-shadow: none;
    margin-inline: -10px;
    padding: 9px 10px;
}

.routine-board-routine-list .routine-edit-row:first-child {
    border-top: 0;
}

.routine-board-routine-list .routine-edit-row.is-ended {
    background: #fafaf7;
}
.routine-board-routine-list .routine-edit-row.is-editing {
    border: 1px dashed #9aaaa2;
    border-radius: 7px;
    background: #fdfefd;
    margin: 4px 0;
    padding: 8px 9px;
}

.routine-board-routine-list .routine-main-line {
    min-height: 28px;
}

.routine-board-routine-list .routine-meta-line {
    margin-top: 2px;
}

.routine-board-routine-list .routine-actions button {
    min-height: 24px;
    border-color: #e5e5de;
    background: transparent;
    color: #6f756f;
    padding: 2px 7px;
    font-size: 12px;
}

.routine-board-routine-list .routine-edit-row:hover .routine-actions button,
.routine-board-routine-list .routine-edit-row:focus-within .routine-actions button,
.routine-board-routine-list .routine-edit-row.is-editing .routine-actions button {
    background: #fff;
    color: var(--text);
}
.routine-board-routine-list [data-routine-settings].is-active + .routine-drag-handle {
    display: none;
}

.routine-board-routine-list .routine-settings-panel {
    border: 0;
    border-top: 1px dashed #d9dfd8;
    border-radius: 0;
    background: transparent;
    margin-top: 8px;
    padding: 9px 0 0;
}

.routine-board-routine-list .routine-edit-form {
    gap: 8px;
}
.routine-board-routine-list .routine-form-actions {
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    border-top: 1px dashed #d9dfd8;
    background: transparent;
    margin: 8px 0 0;
    padding: 8px 0 0;
}

.routine-board-routine-list .routine-secondary-actions {
    gap: 4px;
    margin-left: 0;
}

.routine-board-routine-list .routine-form-actions button {
    min-height: 24px;
    padding: 2px 7px;
    font-size: 12px;
    line-height: 1.2;
}

.routine-board-create-form {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
    border: 0;
    border-top: 1px solid #e7ece6;
    border-radius: 0 0 7px 7px;
    background: linear-gradient(180deg, #fbfcfa 0%, #f7faf7 100%);
    margin: 0;
    padding: 10px 8px 11px;
}

.routine-board-create-form input {
    min-height: 32px;
    height: 32px;
    border: 1px solid #dfe5df;
    border-radius: 5px;
    background: #fff;
    padding: 5px 10px;
}

.routine-board-create-form input:focus {
    border-color: #9fb8ad;
    box-shadow: 0 0 0 2px rgba(63, 127, 104, .1);
}

.routine-board-create-form button {
    min-height: 32px;
    height: 32px;
    border-color: #bfd1c7;
    border-radius: 5px;
    background: #fff;
    color: #2f6f58;
    font-size: 12px;
    font-weight: 650;
    line-height: 1;
    padding: 5px 10px;
}

.routine-board-create-form button:hover,
.routine-board-create-form button:focus-visible {
    border-color: #8fb2a2;
    background: #f1f8f4;
    color: #1f5d48;
}

.routine-board-create-form::after {
    content: none;
    display: none;
}

@media (max-width: 640px) {

    .routine-board-view-actions {
        justify-content: flex-start;
    }

    .routine-board-plan-create-form,
    .routine-board-create-form {
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .routine-board-create-form {
        gap: 6px;
        padding: 10px 8px 10px;
    }

    .routine-board-plan-head {
        grid-template-columns: minmax(0, 1fr) auto;
        padding: 9px;
    }

    .routine-board-plan-tools {
        justify-self: end;
        justify-content: flex-end;
    }

    .routine-board-plan-body {
        padding: 0;
    }

    .routine-board-routine-list .routine-edit-row.is-editing {
        margin-top: 8px;
    }
}
.routine-settings-panel {
    border: 1px solid #b7d5ca;
    border-left: 4px solid var(--accent);
    border-radius: 7px;
    background: #f4fbf8;
    margin-top: 10px;
    padding: 10px;
}

.routine-edit-form {
    margin-top: 0;
}

.day-options {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 10px;
    border: 1px solid var(--line);
    border-radius: 6px;
    margin: 0;
    padding: 8px 10px 10px;
}

.day-options label {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.form-actions,
.routine-actions,
.routine-form-actions {
    justify-content: flex-end;
}

.danger-form {
    display: flex;
    justify-content: flex-end;
    margin-top: 14px;
}

.danger-form button {
    color: #8a2f22;
}

.empty-note {
    color: var(--muted);
    margin: 8px 2px;
}

.empty-panel p {
    margin-bottom: 0;
}

@media (max-width: 640px) {
    .inline-create,
    .plan-title-form {
        grid-template-columns: 1fr;
    }

    .plan-create-form,
    .routine-create-form,
    .coach-request-form {
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .row-actions,
    .plan-row-actions {
        justify-content: flex-end;
    }

    .routine-main-line {
        align-items: center;
        flex-direction: row;
        gap: 8px;
    }
}
.today-head {
    align-items: center;
}

.today-title-line {
    display: inline-flex;
    align-items: baseline;
    gap: 10px;
}

.today-title-line h1 {
    margin-bottom: 0;
}

.today-title-line .muted {
    font-size: 14px;
}
.today-section-title {
    position: relative;
    padding-left: 12px;
    font-size: 17px;
}

.today-section-title::before {
    content: "";
    position: absolute;
    top: 3px;
    bottom: 3px;
    left: 0;
    width: 4px;
    border-radius: 999px;
    background: var(--accent);
}

.today-plan-list,
.today-member-list {
    margin-top: 10px;
}
.today-follow-section {
    position: relative;
    margin-top: -4px;
    padding-top: 22px;
}

.today-plan-card {
    position: relative;
    border: 0;
    border-radius: 0;
    background: transparent;
    padding: 2px 0 18px;
}

.today-plan-card + .today-plan-card {
    margin-top: 12px;
}

.today-plan-card.is-loading {
    pointer-events: none;
}

.today-plan-card.is-loading::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
    border-radius: inherit;
    background: rgba(255, 255, 255, .68);
}

.today-plan-card.is-loading::after {
    content: "";
    position: absolute;
    z-index: 3;
    top: 50%;
    left: 50%;
    width: 22px;
    height: 22px;
    margin: -11px 0 0 -11px;
    border: 2px solid rgba(31, 122, 90, .22);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: daycheck-spin .75s linear infinite;
}

.today-plan-card .heading-row {
    position: relative;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    border: 1px solid #dfe7e2;
    border-radius: 7px;
    background: #f4f8f5;
    box-shadow: 0 1px 2px rgba(15, 23, 42, .03);
    margin-bottom: 8px;
    padding: 8px 10px;
    text-align: left;
}

.today-plan-card .heading-row::before {
    content: "";
    flex: 0 0 auto;
    width: 12px;
    height: 11px;
    border: 1px solid #7aa795;
    border-radius: 3px;
    background:
        linear-gradient(#3f7f68, #3f7f68) 3px 3px / 6px 1px no-repeat,
        linear-gradient(#72a18e, #72a18e) 3px 5px / 6px 1px no-repeat,
        linear-gradient(#a6c4b8, #a6c4b8) 3px 7px / 6px 1px no-repeat,
        linear-gradient(180deg, #f7fffb 0%, #ddefe8 100%);
    box-shadow: -1px -1px 0 0 #a9c8ba;
    margin: 1px 2px 0 1px;
}


.today-plan-card .heading-row strong {
    min-width: 0;
    overflow-wrap: anywhere;
}

.today-plan-card .heading-row .muted {
    flex-shrink: 0;
    margin-left: auto;
    white-space: nowrap;
}


.today-routines {
    display: grid;
    gap: 5px;
}


.today-routine-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    gap: 4px;
    border: 1px dashed #d8d8cf;
    border-radius: 6px;
    transition: background-color .12s ease;
}

.today-routine-main {
    display: contents;
}

.today-plan-drag-handle {
    border-color: #9bb9aa;
    background: #edf6f0;
    color: #275d49;
}

.today-routine-drag-handle {
    margin: 5px 10px 0 0;
    border-color: #d5ccb6;
    background: #fffaf0;
    color: #6f6245;
}

.today-plan-card.is-busy,
.today-routine-item.is-busy {
    opacity: .72;
    pointer-events: none;
}

.today-check-row {
    align-items: flex-start;
    border-radius: 6px;
    gap: 8px;
    min-height: 34px;
    padding: 5px 6px;
    transition: background-color .12s ease;
}

.today-routine-item:hover,
.today-routine-item:focus-within {
    background: #f7f7f2;
}

.today-check-row span {
    min-width: 0;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.today-routine-item.is-not-due {
    background: #fafaf7;
}

.today-routine-item.is-not-due:hover,
.today-routine-item.is-not-due:focus-within {
    background: #f6f6f1;
}

.today-check-row.is-disabled {
    color: #77776f;
    cursor: default;
    font-size: 13px;
}

.today-check-row.is-disabled input {
    cursor: not-allowed;
}

.today-routine-skip-note {
    display: inline-flex;
    align-items: center;
    min-height: 18px;
    margin-left: 6px;
    border: 1px solid #e1e1da;
    border-radius: 999px;
    background: #fff;
    color: #8a8a82;
    font-size: 10.5px;
    line-height: 1;
    padding: 2px 6px;
    vertical-align: text-bottom;
}

.today-check-row:active {
    background: var(--accent-soft);
}

.today-routine-item.is-done {
    align-items: center;
    background: #f7f7f2;
}

.today-check-row input:disabled {
    cursor: wait;
    opacity: 0.6;
}

.today-check-row.is-done span {
    color: var(--muted);
    text-decoration: line-through;
}


.today-memo-form {
    grid-column: 1 / -1;
    min-width: 0;
    padding: 0 10px 5px 30px;
}

.today-memo-input-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 6px;
}

.today-memo-input-row input {
    min-width: 0;
    height: 32px;
    padding: 4px 10px;
    border: 1px solid #ddddd4;
    border-radius: 6px;
    background: #fff;
    color: var(--text);
    box-shadow: none;
}

.today-memo-input-row input:focus {
    border-color: #b9c9bf;
    background: #fff;
    outline: none;
}

.today-memo-input-row .button.secondary,
.todo-memo-input-row .button.secondary {
    min-height: 26px;
    height: 26px;
    border-color: #d8ddd6;
    border-radius: 6px;
    background: #f7f8f5;
    color: #66736b;
    padding: 2px 8px;
    font-size: 12px;
    font-weight: 500;
    line-height: 1;
    white-space: nowrap;
}

.today-memo-input-row .button.secondary:hover,
.today-memo-input-row .button.secondary:focus-visible,
.todo-memo-input-row .button.secondary:hover,
.todo-memo-input-row .button.secondary:focus-visible {
    border-color: #bdcbbf;
    background: #eef4ef;
    color: #365b4b;
}

.today-memo-status {
    display: block;
    max-height: 18px;
    margin-top: 3px;
    overflow: hidden;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.2;
    opacity: 1;
    transition: max-height .18s ease, margin-top .18s ease, opacity .18s ease;
}

.today-memo-status:empty,
.today-memo-status.is-hiding {
    max-height: 0;
    margin-top: 0;
    opacity: 0;
}

.today-memo-status.is-success {
    color: var(--accent);
}

.today-memo-status.is-error {
    color: #b42318;
}


.today-routine-item.is-saving-memo {
    opacity: .72;
}
.empty-actions {
    justify-content: flex-start;
}

@media (max-width: 640px) {
    .today-head {
        align-items: center;
        flex-direction: row;
    }

    .today-plan-card .heading-row {
        align-items: center;
        flex-direction: row;
        gap: 8px;
    }

    .today-routine-item {
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 2px 4px;
    }

    .today-memo-form {
        padding: 0 10px 5px 30px;
    }

    .today-routine-drag-handle {
        margin-top: 4px;
        margin-right: 10px;
    }
}

.today-check-row input {
    cursor: pointer;
}
.record-filters {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 160px auto;
}

.record-filters select,
.record-filters input {
    min-height: 34px;
    height: 34px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #fff;
    padding: 6px 9px;
    width: 100%;
}

.record-filters button {
    align-self: stretch;
    min-height: 34px;
    height: 34px;
    padding: 6px 9px;
    line-height: 1;
}


.record-calendar {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 4px;
    margin-bottom: 12px;
}

.calendar-weekday {
    color: var(--muted);
    font-size: 12px;
    text-align: center;
}

.calendar-day {
    display: grid;
    align-content: space-between;
    min-height: 64px;
    border: 1px solid var(--line);
    border-radius: 7px;
    background: var(--panel);
    padding: 7px;
}

.calendar-day small {
    justify-self: end;
}

.calendar-day.is-muted {
    opacity: 0.45;
}


.calendar-day.has-progress-fill,
.record-week-day.has-progress-fill {
    position: relative;
    overflow: hidden;
    background: var(--panel);
}

.calendar-day.has-progress-fill::before,
.record-week-day.has-progress-fill::before {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: var(--record-fill, 0%);
    background: linear-gradient(180deg, #e6f1e8 0%, var(--accent-soft) 100%);
    pointer-events: none;
}

.calendar-day.has-progress-fill > *,
.record-week-day.has-progress-fill > * {
    position: relative;
    z-index: 2;
}

.calendar-day.has-progress-fill.is-selected:not(.is-complete)::before,
.record-week-day.has-progress-fill.is-selected:not(.is-complete)::before {
    animation: record-fill-wave 3.2s linear infinite;
}

.calendar-day.has-progress-fill.is-selected:not(.is-complete)::after,
.record-week-day.has-progress-fill.is-selected:not(.is-complete)::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1;
    height: var(--record-fill, 0%);
    background: rgba(22, 101, 52, .62);
    clip-path: polygon(0 3px, 8% 1px, 16% 0, 25% 1px, 34% 3px, 42% 5px, 50% 6px, 58% 5px, 66% 3px, 75% 1px, 84% 0, 92% 1px, 100% 3px, 100% 4px, 92% 2px, 84% 1px, 75% 2px, 66% 4px, 58% 6px, 50% 7px, 42% 6px, 34% 4px, 25% 2px, 16% 1px, 8% 2px, 0 4px);
    pointer-events: none;
    animation: record-fill-wave-line 3.2s linear infinite;
}

@keyframes record-fill-wave {
    0%, 100% {
        clip-path: polygon(0 3px, 8% 1px, 16% 0, 25% 1px, 34% 3px, 42% 5px, 50% 6px, 58% 5px, 66% 3px, 75% 1px, 84% 0, 92% 1px, 100% 3px, 100% 100%, 0 100%);
    }
    25% {
        clip-path: polygon(0 1px, 8% 0, 16% 1px, 25% 3px, 34% 5px, 42% 6px, 50% 5px, 58% 3px, 66% 1px, 75% 0, 84% 1px, 92% 3px, 100% 5px, 100% 100%, 0 100%);
    }
    50% {
        clip-path: polygon(0 0, 8% 1px, 16% 3px, 25% 5px, 34% 6px, 42% 5px, 50% 3px, 58% 1px, 66% 0, 75% 1px, 84% 3px, 92% 5px, 100% 6px, 100% 100%, 0 100%);
    }
    75% {
        clip-path: polygon(0 5px, 8% 6px, 16% 5px, 25% 3px, 34% 1px, 42% 0, 50% 1px, 58% 3px, 66% 5px, 75% 6px, 84% 5px, 92% 3px, 100% 1px, 100% 100%, 0 100%);
    }
}

@keyframes record-fill-wave-line {
    0%, 100% {
        clip-path: polygon(0 3px, 8% 1px, 16% 0, 25% 1px, 34% 3px, 42% 5px, 50% 6px, 58% 5px, 66% 3px, 75% 1px, 84% 0, 92% 1px, 100% 3px, 100% 4px, 92% 2px, 84% 1px, 75% 2px, 66% 4px, 58% 6px, 50% 7px, 42% 6px, 34% 4px, 25% 2px, 16% 1px, 8% 2px, 0 4px);
    }
    25% {
        clip-path: polygon(0 1px, 8% 0, 16% 1px, 25% 3px, 34% 5px, 42% 6px, 50% 5px, 58% 3px, 66% 1px, 75% 0, 84% 1px, 92% 3px, 100% 5px, 100% 6px, 92% 4px, 84% 2px, 75% 1px, 66% 2px, 58% 4px, 50% 6px, 42% 7px, 34% 6px, 25% 4px, 16% 2px, 8% 1px, 0 2px);
    }
    50% {
        clip-path: polygon(0 0, 8% 1px, 16% 3px, 25% 5px, 34% 6px, 42% 5px, 50% 3px, 58% 1px, 66% 0, 75% 1px, 84% 3px, 92% 5px, 100% 6px, 100% 7px, 92% 6px, 84% 4px, 75% 2px, 66% 1px, 58% 2px, 50% 4px, 42% 6px, 34% 7px, 25% 6px, 16% 4px, 8% 2px, 0 1px);
    }
    75% {
        clip-path: polygon(0 5px, 8% 6px, 16% 5px, 25% 3px, 34% 1px, 42% 0, 50% 1px, 58% 3px, 66% 5px, 75% 6px, 84% 5px, 92% 3px, 100% 1px, 100% 2px, 92% 4px, 84% 6px, 75% 7px, 66% 6px, 58% 4px, 50% 2px, 42% 1px, 34% 2px, 25% 4px, 16% 6px, 8% 7px, 0 6px);
    }
}
@media (max-width: 640px) {
    .calendar-day.has-progress-fill.is-selected:not(.is-complete)::before,
    .record-week-day.has-progress-fill.is-selected:not(.is-complete)::before {
        animation-name: record-fill-wave-mobile;
    }

    .calendar-day.has-progress-fill.is-selected:not(.is-complete)::after,
    .record-week-day.has-progress-fill.is-selected:not(.is-complete)::after {
        animation-name: record-fill-wave-line-mobile;
    }
}

@keyframes record-fill-wave-mobile {
    0%, 100% {
        clip-path: polygon(0 6px, 8% 2px, 16% 0, 25% 2px, 34% 6px, 42% 10px, 50% 12px, 58% 10px, 66% 6px, 75% 2px, 84% 0, 92% 2px, 100% 6px, 100% 100%, 0 100%);
    }
    25% {
        clip-path: polygon(0 2px, 8% 0, 16% 2px, 25% 6px, 34% 10px, 42% 12px, 50% 10px, 58% 6px, 66% 2px, 75% 0, 84% 2px, 92% 6px, 100% 10px, 100% 100%, 0 100%);
    }
    50% {
        clip-path: polygon(0 0, 8% 2px, 16% 6px, 25% 10px, 34% 12px, 42% 10px, 50% 6px, 58% 2px, 66% 0, 75% 2px, 84% 6px, 92% 10px, 100% 12px, 100% 100%, 0 100%);
    }
    75% {
        clip-path: polygon(0 10px, 8% 12px, 16% 10px, 25% 6px, 34% 2px, 42% 0, 50% 2px, 58% 6px, 66% 10px, 75% 12px, 84% 10px, 92% 6px, 100% 2px, 100% 100%, 0 100%);
    }
}

@keyframes record-fill-wave-line-mobile {
    0%, 100% {
        clip-path: polygon(0 6px, 8% 2px, 16% 0, 25% 2px, 34% 6px, 42% 10px, 50% 12px, 58% 10px, 66% 6px, 75% 2px, 84% 0, 92% 2px, 100% 6px, 100% 7px, 92% 3px, 84% 1px, 75% 3px, 66% 7px, 58% 11px, 50% 13px, 42% 11px, 34% 7px, 25% 3px, 16% 1px, 8% 3px, 0 7px);
    }
    25% {
        clip-path: polygon(0 2px, 8% 0, 16% 2px, 25% 6px, 34% 10px, 42% 12px, 50% 10px, 58% 6px, 66% 2px, 75% 0, 84% 2px, 92% 6px, 100% 10px, 100% 11px, 92% 7px, 84% 3px, 75% 1px, 66% 3px, 58% 7px, 50% 11px, 42% 13px, 34% 11px, 25% 7px, 16% 3px, 8% 1px, 0 3px);
    }
    50% {
        clip-path: polygon(0 0, 8% 2px, 16% 6px, 25% 10px, 34% 12px, 42% 10px, 50% 6px, 58% 2px, 66% 0, 75% 2px, 84% 6px, 92% 10px, 100% 12px, 100% 13px, 92% 11px, 84% 7px, 75% 3px, 66% 1px, 58% 3px, 50% 7px, 42% 11px, 34% 13px, 25% 11px, 16% 7px, 8% 3px, 0 1px);
    }
    75% {
        clip-path: polygon(0 10px, 8% 12px, 16% 10px, 25% 6px, 34% 2px, 42% 0, 50% 2px, 58% 6px, 66% 10px, 75% 12px, 84% 10px, 92% 6px, 100% 2px, 100% 3px, 92% 7px, 84% 11px, 75% 13px, 66% 11px, 58% 7px, 50% 3px, 42% 1px, 34% 3px, 25% 7px, 16% 11px, 8% 13px, 0 11px);
    }
}
@media (prefers-reduced-motion: reduce) {
    .calendar-day.has-progress-fill.is-selected::before,
    .record-week-day.has-progress-fill.is-selected::before,
    .calendar-day.has-progress-fill.is-selected::after,
    .record-week-day.has-progress-fill.is-selected::after {
        animation: none;
    }
}
.calendar-day.is-selected {
    border-color: var(--accent);
}

.calendar-day.is-complete {
    border-color: #93c0aa;
}

.calendar-day.is-complete::before,
.record-week-day.is-complete::before {
    clip-path: none;
}

.record-detail {
    margin-top: 12px;
}

.record-routine-list {
    gap: 8px;
}

.record-routine-row {
    display: grid;
    gap: 5px;
    border: 1px solid var(--line);
    border-left: 4px solid #c7c7bf;
    border-radius: 7px;
    background: #fbfbfa;
    padding: 9px 11px;
}

.record-routine-row.is-done {
    border-left-color: var(--accent);
    background: var(--accent-soft);
}

.record-routine-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-width: 0;
}

.record-plan-name {
    min-width: 0;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.record-status {
    flex: 0 0 auto;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.record-routine-row.is-done .record-status {
    color: var(--accent);
}

.record-routine-name {
    display: block;
    line-height: 1.4;
}

.record-routine-memo {
    display: flex;
    gap: 8px;
    align-items: flex-start;
    border-top: 1px solid rgba(145, 145, 132, .24);
    color: #555c56;
    margin: 1px 0 0;
    padding-top: 7px;
    font-size: 13px;
    line-height: 1.5;
}

.record-routine-memo span {
    flex: 0 0 auto;
    border: 1px solid #cbd8d0;
    border-radius: 999px;
    background: #f6faf7;
    color: var(--accent);
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    padding: 4px 7px;
}

@media (max-width: 640px) {
    .record-filters {
        grid-template-columns: minmax(0, 1fr) 120px auto;
        gap: 6px;
    }

    .calendar-day {
        min-height: 48px;
        padding: 5px;
    }
}
.coach-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
}

.coach-content-title {
    position: relative;
    padding-left: 12px;
    font-size: 17px;
}

.coach-content-title::before {
    content: "";
    position: absolute;
    top: 3px;
    bottom: 3px;
    left: 0;
    width: 4px;
    border-radius: 999px;
    background: var(--accent);
}

.coach-section-divider {
    position: relative;
    height: 8px;
    margin: 0 0 14px;
}

.invite-panel {
    display: grid;
    gap: 4px;
}

.invite-code {
    font-size: 24px;
    letter-spacing: 0;
}

.coach-request-row .row-actions,
.coach-row-actions {
    justify-content: flex-end;
}

.coach-row-actions {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.coach-row-actions form {
    margin: 0;
}

.coach-request-form button {
    border-color: var(--accent);
    background: #fff;
    color: var(--accent);
    font-weight: 700;
}

.coach-request-form button:hover {
    border-color: #1f5d4d;
    background: var(--accent-soft);
    color: #1f5d4d;
}

@media (max-width: 640px) {
    .coach-row-actions {
        align-items: flex-start;
        flex-direction: column;
        width: 100%;
    }
}

.account-stack {
    display: grid;
    gap: 12px;
}

.account-info-row {
    display: grid;
    grid-template-columns: 88px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    border: 0;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    min-height: 40px;
    padding: 7px 0;
}

.account-info-row > span,
.account-profile-row label span {
    color: var(--muted);
    font-size: 12px;
}

.account-info-row small {
    min-width: 0;
    overflow-wrap: anywhere;
}

.account-form {
    display: grid;
    gap: 10px;
}

.account-form label {
    display: grid;
    gap: 10px;
}

.account-form label span {
    color: var(--muted);
    font-size: 12px;
}

.account-form input,
.account-profile-row input {
    min-height: 34px;
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 6px 9px;
}

.account-profile-row {
    grid-template-columns: 88px minmax(0, 1fr) auto;
}

.account-profile-row label {
    display: contents;
}

.account-profile-row input {
    width: 100%;
}

.account-profile-row button {
    min-height: 34px;
}

.account-panel button,
.account-panel .button {
    border-color: var(--accent);
    background: #fff;
    color: var(--accent);
    font-weight: 700;
}

.account-panel button:hover,
.account-panel .button:hover {
    border-color: #1f5d4d;
    background: var(--accent-soft);
    color: #1f5d4d;
}



.account-social-panel {
    display: grid;
    gap: 12px;
}

.account-social-provider {
    display: grid;
    gap: 8px;
    border-left: 4px solid var(--line);
    border-radius: 0 8px 8px 0;
    padding: 10px 0 10px 12px;
}

.account-social-provider .account-info-row {
    border-bottom: 0;
    min-height: 28px;
    padding: 0;
}

.account-social-provider-google {
    border-left-color: #d9dee7;
    background: linear-gradient(90deg, #f8fafc 0%, rgba(248, 250, 252, 0) 100%);
}

.account-social-provider-kakao {
    border-left-color: #fee500;
    background: linear-gradient(90deg, #fff9c9 0%, rgba(255, 249, 201, 0) 100%);
}

.account-panel .account-oauth-button {
    min-height: 40px;
    border-radius: 8px;
    padding: 8px 14px;
}

.account-panel .account-oauth-button-google {
    border-color: #d9dee7;
    background: #fff;
    color: #1f2937;
}

.account-panel .account-oauth-button-google:hover,
.account-panel .account-oauth-button-google:focus-visible {
    border-color: #b9c1cf;
    background: #f7f8fb;
    color: #111827;
}

.account-panel .account-oauth-button-kakao {
    border-color: #f2d94c;
    background: #fee500;
    color: #191600;
}

.account-panel .account-oauth-button-kakao:hover,
.account-panel .account-oauth-button-kakao:focus-visible {
    border-color: #e2c900;
    background: #f5dc00;
    color: #191600;
}

.account-panel .form-actions button {
    min-width: 72px;
}

.account-panel.danger-zone button {
    border-color: #b64a38;
    background: #fff;
    color: #8a2f22;
}

.account-panel.danger-zone button:hover {
    border-color: #963728;
    background: #fff1ee;
    color: #7b281d;
}


.account-panel.account-delete-panel button {
    border-color: #b64a38;
    background: #fff;
    color: #8a2f22;
}

.account-panel.account-delete-panel button:hover,
.account-panel.account-delete-panel button:focus-visible {
    border-color: #963728;
    background: #fff1ee;
    color: #7b281d;
}

.account-menu-form {
    gap: 6px;
}

.account-menu-option {
    display: grid;
    grid-template-columns: 18px minmax(0, 1fr);
    align-items: start;
    column-gap: 14px;
    row-gap: 2px;
    border-bottom: 1px solid var(--line);
    padding: 6px 0;
}

.account-menu-option span {
    display: grid;
    gap: 1px;
    min-width: 0;
}

.account-menu-option strong {
    font-size: 14px;
    line-height: 1.25;
}

.account-menu-option small {
    line-height: 1.35;
}

.account-menu-option input {
    width: 16px;
    min-width: 16px;
    height: 16px;
    min-height: 16px;
    margin-top: 1px;
}

.account-menu-guide {
    margin: 2px 0 0;
    font-size: 12px;
}

.account-menu-guide.is-warning {
    color: #8a2f22;
    font-weight: 700;
}

.account-password-form label {
    grid-template-columns: 88px minmax(0, 1fr);
    align-items: center;
}
.admin-filters {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 150px auto;
}

.admin-filters input,
.admin-filters select,
.confirm-input {
    min-height: 34px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #fff;
    padding: 5px 8px;
}

.confirm-input {
    width: 96px;
}

@media (max-width: 359px) {
    .account-info-row,
    .account-profile-row,
    .account-password-form label {
        grid-template-columns: 1fr;
    }

    .account-profile-row label {
        display: grid;
    }
}

@media (max-width: 760px) {
    .admin-filters {
        grid-template-columns: 1fr;
    }

    .admin-actions form {
        width: 100%;
    }

    .confirm-input,
    .admin-actions select,
    .admin-actions button {
        width: 100%;
    }
}
.today-member-row {
    align-items: stretch;
}

.today-member-content {
    width: 100%;
    min-width: 0;
}

.today-member-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-width: 0;
}

.today-member-actions {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    gap: 8px;
}

.today-member-actions .button {
    min-height: 28px;
    padding: 3px 8px;
    font-size: 12px;
}

@media (max-width: 640px) {
    .today-member-head {
        align-items: flex-start;
        flex-direction: column;
        gap: 4px;
    }

    .today-member-actions {
        width: 100%;
        justify-content: space-between;
    }
}

.page-admin {
    width: min(1200px, 100%);
    margin-left: 0;
    margin-right: auto;
}

.page-admin .admin-table {
    min-width: 1100px;
}

.page-admin .section.narrow {
    max-width: 800px;
}
.routine-form-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    border-top: 1px solid var(--line);
    border-radius: 0 0 3px 3px;
    background: #fff;
    margin: 10px -10px -10px;
    padding: 10px;
}

.routine-secondary-actions {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 4px;
    margin-left: 0;
}

.routine-save-button {
    background: var(--accent);
    border-color: #8fc4b0;
    color: #fff;
}

.routine-save-button:hover {
    background: #1f5d4d;
    border-color: #1f5d4d;
}

.routine-delete-button {
    background: #dc2626;
    border-color: #dc2626;
    color: #fff;
}

.routine-delete-button:hover {
    background: #b91c1c;
    border-color: #b91c1c;
}

.routine-pause-button {
    background: #e5e7eb;
    border-color: #cbd5e1;
    color: #374151;
}

.routine-pause-button:hover {
    background: #d1d5db;
    border-color: #9ca3af;
}

.record-tabs {
    margin-top: -2px;
}

.record-tab-panel {
    min-height: 0;
}

.record-filters.is-todo-record {
    grid-template-columns: repeat(2, 160px);
    justify-content: start;
}

.record-filters.is-todo-record button {
    width: 100%;
}

.record-todo-row.is-archived {
    border-left-color: #b7aaa4;
    background: #f5f2ef;
    opacity: 0.78;
}

.record-todo-row.is-archived .record-status {
    color: #8a5a44;
}

.record-todo-name-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-width: 0;
}

.record-todo-name-row .record-routine-name {
    min-width: 0;
    overflow-wrap: anywhere;
    white-space: pre-line;
}

.record-todo-delete-form {
    flex: 0 0 auto;
    margin: 0;
}

.record-todo-delete-form button {
    min-height: 24px;
    padding: 2px 6px;
    font-size: 12px;
}
.record-filters {
    grid-template-columns: minmax(0, 1fr) 160px auto;
}

.record-week-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
}

.record-week-head strong {
    min-width: 0;
    text-align: center;
}

.record-week {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 4px;
    margin-bottom: 12px;
}

.record-week-day {
    display: grid;
    grid-template-rows: auto 1fr;
    gap: 8px;
    min-height: 58px;
    border: 1px solid var(--line);
    border-radius: 7px;
    background: var(--panel);
    padding: 8px;
}

.record-week-top {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
    min-width: 0;
}

.record-week-top strong {
    font-size: 15px;
    line-height: 1.1;
}

.record-week-top span {
    color: var(--muted);
    font-size: 12px;
    line-height: 1.1;
}

.record-week-count {
    align-self: end;
    justify-self: end;
    color: var(--muted);
    font-size: 12px;
}

.record-week-day.is-selected {
    border-color: var(--accent);
}

.record-week-day.is-complete {
    border-color: #93c0aa;
}

.record-plan-divider {
    height: 1px;
    background: var(--line);
    margin: 4px 0;
}

@media (max-width: 640px) {

    .record-filters {
        grid-template-columns: minmax(0, 1fr) 120px auto;
        gap: 6px;
    }

    .record-filters.is-todo-record {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .record-week-head {
        gap: 6px;
    }

    .record-week-head .button {
        padding-left: 7px;
        padding-right: 7px;
        white-space: nowrap;
    }

    .record-week {
        grid-template-columns: repeat(7, minmax(0, 1fr));
        gap: 3px;
    }

    .record-week-day {
        gap: 5px;
        min-height: 50px;
        padding: 5px 4px;
    }

    .record-week-top {
        gap: 3px;
    }

    .record-week-top strong {
        font-size: 13px;
    }

    .record-week-top span,
    .record-week-count {
        font-size: 11px;
    }
}
.plans-routine-panel {
    position: relative;
    margin-top: 0;
    scroll-margin-top: 12px;
}

.plan-section-head,
.routine-section-head {
    align-items: center;
    margin-bottom: 10px;
    padding: 0;
}

.plan-section-head h2,
.routine-section-head h2 {
    position: relative;
    margin: 0;
    padding-left: 12px;
    font-size: 17px;
    line-height: 1.25;
    font-weight: 400;
}

.plan-section-head h2 strong,
.routine-section-head h2 strong {
    font-weight: 700;
}

.routine-section-head h2 em {
    font-size: 14px;
    font-style: italic;
    font-weight: 400;
}

.plan-section-head h2::before,
.routine-section-head h2::before {
    content: "";
    position: absolute;
    top: 3px;
    bottom: 3px;
    left: 0;
    width: 4px;
    border-radius: 999px;
    background: var(--accent);
}

.routine-create-form,
.routine-list {
    background: #fff;
}

.routine-create-form {
    position: relative;
    border-radius: 0 0 7px 7px;
    margin-bottom: 0;
    padding: 14px 12px 12px;
}

.routine-create-form:not(.routine-board-create-form) button {
    min-height: 30px;
    height: 30px;
    padding: 4px 9px;
    font-size: 13px;
}

.routine-create-form::after {
    content: "";
    position: absolute;
    right: 14px;
    bottom: 0;
    left: 14px;
    height: 1px;
    background: var(--line);
}

.routine-create-form.routine-board-create-form::after {
    content: none;
    display: none;
}

.plans-routine-panel .routine-list {
    margin-top: 0;
    border-radius: 0 0 7px 7px;
    padding: 10px 14px 14px;
}

@media (max-width: 640px) {
    .plans-routine-panel {
        margin-top: 10px;
    }

    .plan-section-head,
    .routine-section-head {
        margin-bottom: 10px;
    }

    .plan-section-head h2,
    .routine-section-head h2 {
        font-size: 17px;
    }
    .routine-create-form {
        padding: 11px 12px;
    }

    .routine-create-form::after {
        right: 12px;
        left: 12px;
    }

    .plans-routine-panel .routine-list {
        padding: 9px 12px 12px;
    }
}
.plans-routine-panel.is-fresh {
    animation: routine-panel-fresh .7s ease-out;
}

@keyframes routine-panel-fresh {
    0% {
        box-shadow: 0 0 0 2px rgba(37, 111, 91, .26);
        background: rgba(229, 241, 236, .85);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 111, 91, 0);
        background: transparent;
    }
}

.plans-routine-panel.is-busy {
    pointer-events: none;
    min-height: 120px;
}

.plans-routine-panel.is-busy::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 20;
    border-radius: 7px;
    background: rgba(36, 36, 33, .14);
}

.plans-routine-panel.is-busy::after {
    content: "";
    position: absolute;
    z-index: 21;
    top: 50%;
    left: 50%;
    width: 26px;
    height: 26px;
    margin: -13px 0 0 -13px;
    border: 3px solid rgba(31, 122, 90, .22);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: daycheck-spin .75s linear infinite;
}
.plan-drag-handle,
.routine-drag-handle {
    width: 24px;
    min-width: 24px;
    height: 24px;
    min-height: 24px !important;
    padding: 0 !important;
    line-height: 1;
    cursor: grab;
    touch-action: none;
}

.plan-drag-handle:active,
.routine-drag-handle:active {
    cursor: grabbing;
}

body.is-plan-dragging,
body.is-routine-dragging {
    user-select: none;
}

.plan-drag-placeholder,
.routine-drag-placeholder {
    border: 1px dashed #86b7a7;
    border-radius: 7px;
    background: rgba(31, 122, 90, .08);
    margin: 0;
}

.plan-list-row.is-dragging,
.routine-edit-row.is-dragging,
.today-plan-card.is-dragging,
.today-routine-item.is-dragging {
    opacity: .94;
    border-color: var(--accent);
    box-shadow: 0 10px 26px rgba(15, 23, 42, .16), 0 0 0 1px var(--accent) inset;
    transform-origin: center;
}

.todo-head,
.routine-head {
    position: relative;
    align-items: center;
}

.title-record-button {
    position: absolute;
    top: -3px;
    right: 0;
    min-height: 30px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #fff;
    color: var(--muted);
    padding: 4px 9px;
    font-size: 13px;
    line-height: 1.45;
}

.title-record-button:hover,
.title-record-button:focus-visible {
    background: #f0f0ec;
}

.todo-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: end;
    gap: 0;
    margin: -4px 0 -1px;
}


.routine-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.todo-tabs.routine-tabs a {
    padding-inline: 4px;
    font-size: 15px;
    white-space: nowrap;
}

.todo-tabs a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 54px;
    border: 1px solid transparent;
    border-bottom-color: var(--line);
    border-radius: 12px 12px 0 0;
    color: var(--muted);
    font-size: 16px;
    font-weight: 700;
    background: transparent;
}

.todo-tabs a.is-active {
    position: relative;
    z-index: 2;
    border-color: var(--line);
    border-bottom-color: var(--panel);
    color: var(--accent);
    background: var(--panel);
}

.todo-tab-panel {
    position: relative;
    z-index: 1;
    min-height: 240px;
    border: 1px solid var(--line);
    border-radius: 0 0 7px 7px;
    background: var(--panel);
    margin-top: 0;
    padding: 16px;
}

.todo-tab-panel > .todo-manage-workspace,
.todo-tab-panel > .todo-list {
    margin: 0;
}

.todo-empty-state {
    display: grid;
    min-height: 180px;
    place-content: center;
    gap: 4px;
    text-align: center;
}

.todo-empty-state p {
    margin: 0;
}

.todo-manage-create input,
.todo-manage-create textarea,
.todo-edit-form input,
.todo-edit-form textarea {
    width: 100%;
    min-height: 34px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #fff;
    color: var(--text);
    padding: 6px 9px;
}

.todo-manage-create textarea,
.todo-edit-form textarea {
    resize: vertical;
}

.todo-list {
    margin-top: 0;
}

.todo-row {
    position: relative;
    display: grid;
    gap: 3px;
    border: 1px solid var(--line);
    border-radius: 7px;
    background: var(--panel);
    padding: 8px 10px;
}

.todo-row[data-todo-row] {
    padding: 8px 42px 8px 10px;
}

.todo-row.is-busy {
    opacity: .7;
    pointer-events: none;
}

.todo-check-row span {
    min-width: 0;
    overflow-wrap: anywhere;
    white-space: pre-line;
}

.todo-row.is-done .todo-check-row span,
.todo-edit-row.is-done .todo-edit-head strong {
    color: var(--muted);
    text-decoration: line-through;
}

.todo-memo {
    border-top: 1px solid rgba(145, 145, 132, .24);
    color: #555c56;
    margin: 0 0 0 24px;
    padding-top: 6px;
    overflow-wrap: anywhere;
}

.todo-memo-form {
    padding: 0 10px 5px 30px;
}

.todo-memo-input-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 6px;
}

.todo-memo-input-row input {
    min-width: 0;
    height: 32px;
    padding: 4px 10px;
    border: 1px solid #ddddd4;
    border-radius: 6px;
    background: #fff;
    color: var(--text);
    box-shadow: none;
}

.todo-memo-status {
    display: block;
    max-height: 18px;
    margin-top: 3px;
    overflow: hidden;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.2;
    opacity: 1;
    transition: max-height .18s ease, margin-top .18s ease, opacity .18s ease;
}

.todo-memo-status:empty,
.todo-memo-status.is-hiding {
    max-height: 0;
    margin-top: 0;
    opacity: 0;
}

.todo-memo-status.is-success {
    color: var(--accent);
}

.todo-memo-status.is-stacked {
    max-height: 68px;
    line-height: 1.35;
}

[data-todo-save-line],
[data-todo-warning-line] {
    display: block;
    max-height: 18px;
    overflow: hidden;
    transition: max-height .18s ease, margin-top .18s ease, opacity .18s ease;
}


.todo-memo-status.is-stacked [data-todo-warning-line] {
    max-height: 48px;
    overflow: visible;
    white-space: normal;
}
[data-todo-save-line].is-hiding,
[data-todo-warning-line].is-hiding {
    max-height: 0;
    margin-top: 0;
    opacity: 0;
}

.todo-memo-warning {
    display: block;
    margin-top: 2px;
    color: #b42318;
}
.todo-memo-status.is-error {
    color: #b42318;
}

.todo-row.is-saving-memo {
    opacity: .72;
}
.todo-manage-workspace {
    grid-template-columns: 280px minmax(0, 1fr);
}

.todo-manage-create,
.todo-edit-form {
    display: grid;
    gap: 10px;
}

.todo-manage-create label,
.todo-edit-form label {
    display: grid;
    gap: 4px;
}

.todo-manage-create label span,
.todo-edit-form label span {
    color: var(--muted);
    font-size: 12px;
}

.todo-edit-row {
    border: 1px solid var(--line);
    border-radius: 7px;
    background: var(--panel);
    padding: 10px;
}

.todo-edit-head {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid var(--line);
    margin-bottom: 10px;
    padding-bottom: 8px;
}

.todo-edit-head strong {
    min-width: 0;
    overflow-wrap: anywhere;
}

.todo-toggle-form {
    margin: 0;
}

.todo-toggle-form button {
    min-height: 28px;
    padding: 4px 8px;
    font-size: 12px;
}

@media (max-width: 640px) {
    .todo-tabs a {
        min-height: 48px;
        border-radius: 10px 10px 0 0;
        font-size: 15px;
    }

    .todo-tab-panel {
        padding: 12px;
    }

    .todo-manage-workspace {
        grid-template-columns: 1fr;
    }

    .todo-edit-head {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .todo-edit-head .muted {
        grid-column: 2;
    }
}
.todo-row {
    border: 1px dashed #d8d8cf;
    border-radius: 6px;
    background: transparent;
    padding: 0;
    gap: 4px;
    transition: background-color .12s ease;
}

.todo-row:hover,
.todo-row:focus-within {
    background: #f7f7f2;
}

.todo-row.is-done {
    background: #f7f7f2;
}

.todo-check-row {
    align-items: flex-start;
    border-radius: 6px;
    gap: 8px;
    min-height: 34px;
    padding: 5px 6px;
    transition: background-color .12s ease;
}

.todo-check-row:active {
    background: var(--accent-soft);
}

.todo-check-row input {
    cursor: pointer;
}

.todo-check-row input:disabled {
    cursor: wait;
    opacity: 0.6;
}

.todo-check-row span {
    display: block;
    line-height: 1.45;
}

.todo-row-main {
    display: block;
}

.todo-completed-date {
    display: grid;
    grid-template-columns: 18px minmax(0, 1fr);
    align-items: center;
    gap: 8px;
    min-height: 24px;
    margin: 0 0 1px;
    padding: 0 6px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.2;
}

.todo-completed-date[hidden] {
    display: none;
}

[data-todo-date-trigger] {
    cursor: pointer;
}

.todo-date-text-wrap {
    display: inline-flex;
    align-items: baseline;
    gap: 6px;
    min-width: 0;
    font-size: 13px;
}

.todo-row-actions {
    position: absolute;
    top: 8px;
    right: 10px;
    display: flex;
    align-items: center;
}

.todo-date-button,
.todo-drag-handle {
    flex: 0 0 auto;
    width: 24px;
    min-width: 24px;
    height: 24px;
    min-height: 24px !important;
    margin: 0;
    padding: 0 !important;
    color: var(--muted);
    line-height: 1;
}

.todo-date-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    justify-self: center;
    width: 20px;
    min-width: 20px;
    height: 20px;
    min-height: 20px !important;
    border: 1.5px solid #b8c3ba;
    border-radius: 5px;
    background: #fff;
    box-shadow: inset 0 0 0 2px #fff;
}

.todo-date-button:hover,
.todo-date-button:focus-visible {
    border-color: var(--accent);
}

.todo-date-button svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.todo-done-date-input {
    position: absolute;
    width: 1px;
    height: 1px;
    min-height: 1px;
    opacity: 0;
    pointer-events: none;
}

.todo-drag-handle {
    cursor: grab;
    touch-action: none;
}

.todo-drag-handle:active {
    cursor: grabbing;
}

body.is-todo-dragging {
    user-select: none;
}

.todo-drag-placeholder {
    border: 1px dashed #86b7a7;
    border-radius: 6px;
    background: rgba(31, 122, 90, .08);
    margin: 0;
}

.todo-row.is-dragging {
    opacity: .94;
    border-color: var(--accent);
    background: #fff;
    box-shadow: 0 10px 26px rgba(15, 23, 42, .16), 0 0 0 1px var(--accent) inset;
    transform-origin: center;
}

.plan-drag-handle,
.routine-drag-handle {
    color: var(--muted);
}

.todo-tab-panel {
    min-height: max(240px, calc(100dvh - 176px));
}

@supports not (height: 100dvh) {
    .todo-tab-panel {
        min-height: max(240px, calc(100vh - 176px));
    }
}

@media (max-width: 640px) {
    .todo-row[data-todo-row] {
        padding-right: 40px;
    }

    .todo-tab-panel {
        min-height: max(220px, calc(100dvh - 162px));
    }

    @supports not (height: 100dvh) {
        .todo-tab-panel {
            min-height: max(220px, calc(100vh - 162px));
        }
    }
}

.todo-tab-panel {
    margin-bottom: 0;
}

.page-todos,
.page-routines {
    min-height: calc(100dvh - 53px);
    display: flex;
    flex-direction: column;
}

.page.page-home {
    width: 100%;
    max-width: 800px;
    padding-bottom: 20px;
}

.page-todos .todo-tabs,
.page-routines .routine-tabs {
    flex: 0 0 auto;
}

.page-todos .todo-tab-panel,
.page-routines .routine-tab-panel {
    flex: 1 1 auto;
    min-height: 0;
    margin-bottom: 15px;
}

@supports not (height: 100dvh) {
    .page-todos,
    .page-routines {
        min-height: calc(100vh - 53px);
    }
}

.todo-manage-simple {
    display: grid;
    gap: 12px;
}

.todo-manage-create-form {
    grid-template-columns: minmax(0, 1fr) auto;
    margin-bottom: 0;
}

.todo-manage-create-form input,
.todo-manage-title-form input {
    width: 100%;
    min-width: 0;
    min-height: 34px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #fff;
    color: var(--text);
    padding: 6px 9px;
}

.todo-manage-row {
    padding: 0;
}

.todo-manage-row-main {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto auto;
    align-items: start;
    gap: 6px;
    padding: 5px 6px;
}

.todo-manage-check {
    min-height: 34px;
    padding: 0;
}

.todo-manage-check input {
    flex: 0 0 16px;
    width: 16px;
    min-width: 16px;
    height: 16px;
    min-height: 16px;
    margin: 9px 0 0;
    cursor: pointer;
}

.todo-manage-title-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 6px;
    margin: 0;
}

.todo-manage-delete-form {
    margin: 0;
}

.todo-manage-row .todo-drag-handle {
    margin: 5px 0 0;
}

.todo-manage-row.is-done .todo-manage-title-form input {
    color: var(--muted);
    text-decoration: line-through;
}

.todo-manage-empty {
    min-height: 160px;
}

@media (max-width: 640px) {
    .todo-manage-row-main {
        grid-template-columns: auto minmax(0, 1fr) auto;
    }

    .todo-manage-delete-form {
        grid-column: 2 / -1;
        justify-self: end;
    }
}

.todo-manage-row-main {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
}

.todo-manage-delete-form {
    align-self: center;
}

@media (max-width: 640px) {
    .todo-manage-row-main {
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .todo-manage-delete-form {
        grid-column: auto;
        justify-self: auto;
    }
}

.todo-manage-create-form {
    border-bottom: 1px solid var(--line);
    padding-bottom: 12px;
}

.todo-manage-create-form button {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
    font-weight: 700;
}

.todo-manage-create-form button:hover {
    background: #1f5d4d;
    border-color: #1f5d4d;
    color: #fff;
}

.todo-manage-title-form button {
    background: #fff;
    border-color: #c9d8d2;
    color: var(--accent);
    font-weight: 600;
}

.todo-manage-title-form button:hover {
    background: var(--accent-soft);
    border-color: #9fc7b8;
    color: #1f5d4d;
}

.todo-manage-delete-form button {
    background: #fff;
    border-color: #efb8b2;
    color: #b42318;
    font-weight: 600;
}

.todo-manage-delete-form button:hover {
    background: #fff0ed;
    border-color: #dc2626;
    color: #8a1f15;
}

.todo-manage-list {
    gap: 0;
}

.todo-manage-row {
    border: 0;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    background: transparent;
}

.todo-manage-row:last-child {
    border-bottom: 0;
}

.todo-manage-row:hover,
.todo-manage-row:focus-within {
    background: transparent;
}

.todo-manage-row-main {
    padding: 7px 0;
}

.todo-manage-create-form {
    border-bottom: 0;
    padding-bottom: 0;
}

.todo-manage-row {
    border-bottom: 0;
}

.todo-manage-create-form {
    border-bottom: 1px solid var(--line);
    padding-bottom: 12px;
}

.todo-manage-list {
    gap: 0;
}

.todo-manage-row {
    border: 0;
}

.todo-manage-row + .todo-manage-row {
    border-top: 1px dashed #d9dedb;
    margin-top: 10px;
    padding-top: 10px;
}

.todo-manage-row-main {
    padding: 0;
}

.todo-manage-list.list.compact {
    gap: 0;
}

.todo-manage-create-form input {
    background: #fff;
    border-color: #b8d8cc;
}

.todo-manage-create-form input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 2px rgba(42, 112, 92, 0.12);
    outline: none;
}

.todo-manage-title-form input {
    background: #f7f8f6;
    border-color: transparent;
}

.todo-manage-title-form input:focus {
    background: #fff;
    border-color: #b8d8cc;
    box-shadow: 0 0 0 2px rgba(42, 112, 92, 0.08);
    outline: none;
}

.todo-manage-create-form textarea,
.todo-manage-title-form textarea {
    width: 100%;
    min-width: 0;
    min-height: 34px;
    border: 1px solid var(--line);
    border-radius: 6px;
    color: var(--text);
    padding: 7px 9px;
    line-height: 1.45;
    resize: none;
    overflow: hidden;
    font: inherit;
}

.todo-manage-create-form textarea {
    background: #fff;
    border-color: #b8d8cc;
}

.todo-manage-create-form textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 2px rgba(42, 112, 92, 0.12);
    outline: none;
}

.todo-manage-title-form textarea {
    background: #f7f8f6;
    border-color: transparent;
}

.todo-manage-title-form textarea:focus {
    background: #fff;
    border-color: #b8d8cc;
    box-shadow: 0 0 0 2px rgba(42, 112, 92, 0.08);
    outline: none;
}

.todo-manage-create-form,
.todo-manage-title-form {
    align-items: center;
}

.todo-manage-create-form button,
.todo-manage-title-form button,
.todo-manage-delete-form button {
    align-self: center;
    min-height: 34px;
    height: 34px;
}

.todo-manage-title-form button,
.todo-manage-delete-form button {
    min-height: 30px;
    height: 30px;
    padding: 4px 9px;
    font-size: 13px;
}

.todo-manage-create-form button {
    min-height: 30px;
    height: 30px;
    padding: 4px 9px;
    font-size: 13px;
}

.todo-manage-create-form,
.todo-manage-title-form,
.todo-manage-delete-form {
    position: relative;
}

.todo-manage-create-form.is-busy,
.todo-manage-title-form.is-busy,
.todo-manage-delete-form.is-busy {
    pointer-events: none;
}

.todo-manage-create-form.is-busy::before,
.todo-manage-title-form.is-busy::before,
.todo-manage-delete-form.is-busy::before {
    content: "";
    position: absolute;
    inset: -2px;
    z-index: 10;
    border-radius: 7px;
    background: rgba(36, 36, 33, .12);
}

.todo-manage-create-form.is-busy::after,
.todo-manage-title-form.is-busy::after,
.todo-manage-delete-form.is-busy::after {
    content: "";
    position: absolute;
    z-index: 11;
    top: 50%;
    left: 50%;
    width: 16px;
    height: 16px;
    margin: -8px 0 0 -8px;
    border: 2px solid rgba(31, 122, 90, .22);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: daycheck-spin .75s linear infinite;
}

.routine-tab-panel .plans-workspace {
    margin: 0;
}

.routine-tab-panel > .plans-workspace,
.routine-tab-panel > .routine-today-list {
    margin-top: 0;
}

.coaching-tabs {
    margin: 0 0 12px;
}

.coaching-member-section {
    margin-top: 0;
}

.coaching-member-row .today-member-actions {
    flex-shrink: 0;
}

.coaching-manage-grid {
    margin-top: 0;
}

.landing-hero {
    max-width: 720px;
    padding: 0 0 22px;
}

.landing-hero h1 {
    max-width: 680px;
    margin-bottom: 12px;
    font-size: 30px;
    line-height: 1.25;
}

.landing-lead {
    max-width: 640px;
    color: var(--muted);
    font-size: 15px;
}

.landing-actions {
    flex-wrap: wrap;
    margin-top: 20px;
}

.landing-guide {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: 8px 0 18px;
}

.landing-guide-item {
    min-height: 132px;
    border: 1px solid var(--line);
    border-radius: 7px;
    background: var(--panel);
    padding: 14px;
}

.landing-guide-item strong {
    display: block;
    margin-bottom: 8px;
    color: var(--accent);
    font-size: 15px;
}

.landing-guide-item p {
    color: var(--muted);
    margin: 0;
}

.landing-start-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    max-width: 760px;
    border: 1px solid #b7d5ca;
    border-radius: 7px;
    background: var(--accent-soft);
    padding: 16px;
}

.landing-start-panel h2 {
    margin-bottom: 4px;
    font-size: 16px;
}

.landing-start-panel .button {
    flex: 0 0 auto;
}

.landing-ad {
    width: 100%;
    max-width: 760px;
    min-height: 90px;
    margin-top: 18px;
}

.landing-ad .adsbygoogle {
    min-height: 90px;
}

@media (max-width: 640px) {
    .landing-hero {
        padding-top: 0;
    }

    .landing-hero h1 {
        font-size: 24px;
    }

    .landing-guide {
        grid-template-columns: 1fr;
    }

    .landing-guide-item {
        min-height: auto;
    }

    .landing-start-panel {
        align-items: stretch;
        flex-direction: column;
    }

    .landing-start-panel .button {
        width: 100%;
        text-align: center;
    }

    .landing-ad,
    .landing-ad .adsbygoogle {
        min-height: 100px;
    }
}

.routine-header-save-button {
    min-height: 24px;
    padding: 2px 9px;
}

.routine-actions .routine-header-save-button,
.routine-board-routine-list .routine-actions .routine-header-save-button {
    background: var(--accent);
    border-color: #8fc4b0;
    color: #fff;
}

.routine-actions .routine-header-save-button:hover,
.routine-actions .routine-header-save-button:focus-visible,
.routine-board-routine-list .routine-actions .routine-header-save-button:hover,
.routine-board-routine-list .routine-actions .routine-header-save-button:focus-visible {
    background: #1f5d4d;
    border-color: #1f5d4d;
    color: #fff;
}

.attachment-list {
    display: grid;
    gap: 0.75rem;
    list-style: none;
    margin: 1rem 0 0;
    padding: 0;
}

.attachment-item {
    align-items: center;
    display: flex;
    gap: 0.75rem;
}

.attachment-thumb {
    border: 1px solid var(--border);
    border-radius: 8px;
    display: inline-flex;
    flex: 0 0 auto;
    height: 72px;
    overflow: hidden;
    width: 108px;
}

.attachment-thumb img {
    display: block;
    height: 100%;
    object-fit: cover;
    width: 100%;
}
.board-head {
    align-items: flex-start;
    gap: 16px;
}

.board-section,
.board-detail-section,
.board-form-section {
    max-width: 760px;
}

.board-search {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 8px;
}

.board-search .button,
.board-search button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
}

.board-post-list {
    display: grid;
    gap: 8px;
}

.board-post-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    min-height: 74px;
    border: 1px solid var(--line);
    border-radius: 7px;
    background: var(--panel);
    padding: 13px 14px;
}

.board-post-row.is-notice {
    border-color: #b7d5ca;
    background: #f8fcfa;
}

.board-post-main {
    min-width: 0;
}

.board-post-title-line {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.board-post-title {
    overflow: hidden;
    font-size: 15px;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.board-post-title:hover,
.board-post-title:focus-visible {
    color: var(--accent);
    outline: none;
}

.board-badge {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    min-height: 22px;
    border: 1px solid #b7d5ca;
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--accent);
    padding: 2px 8px;
    font-size: 12px;
    font-weight: 700;
}

.board-post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 12px;
    margin: 6px 0 0;
    color: var(--muted);
    font-size: 12px;
}

.board-post-arrow {
    display: inline-grid;
    flex: 0 0 32px;
    width: 32px;
    height: 32px;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 50%;
    color: var(--muted);
    font-size: 22px;
    line-height: 1;
}

.board-post-arrow:hover,
.board-post-arrow:focus-visible {
    border-color: #b7d5ca;
    background: var(--accent-soft);
    color: var(--accent);
    outline: none;
}

.board-empty {
    display: grid;
    gap: 8px;
    min-height: 180px;
    align-content: center;
    justify-items: center;
    text-align: center;
}

.board-empty h2 {
    font-size: 17px;
}

.board-detail-head h1 {
    margin: 4px 0 0;
}

.board-article-panel,
.board-form-panel {
    padding: 18px;
}

.board-article-panel .post-content {
    min-height: 180px;
    font-size: 15px;
    line-height: 1.7;
}

.board-article-panel .post-content p:first-child {
    margin-top: 0;
}

.board-attachments {
    border-top: 1px solid var(--line);
    margin-top: 22px;
    padding-top: 18px;
}

.attachment-list {
    gap: 10px;
}

.attachment-item {
    min-height: 58px;
    border: 1px solid var(--line);
    border-radius: 7px;
    background: #fff;
    padding: 8px;
}

.attachment-thumb {
    border-color: var(--line);
}

.attachment-info {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.attachment-info a {
    overflow-wrap: anywhere;
    font-weight: 700;
}

.attachment-info small {
    color: var(--muted);
}

.board-detail-actions {
    border-top: 1px solid var(--line);
    margin-top: 22px;
    padding-top: 14px;
}

.board-detail-actions form {
    margin: 0;
}

.danger-button {
    color: #8a2f22;
}

.board-form {
    display: grid;
    gap: 14px;
}

.board-form label {
    display: grid;
    gap: 6px;
}

.board-form label span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}

.board-form input[type="text"],
.board-form input[type="file"] {
    width: 100%;
    min-height: 40px;
    border: 1px solid var(--line);
    border-radius: 7px;
    background: #fff;
    padding: 8px 10px;
}

.board-form input:focus-visible {
    border-color: #9fc7b8;
    box-shadow: 0 0 0 2px rgba(37, 111, 91, .12);
    outline: none;
}

.board-upload-panel {
    display: grid;
    gap: 10px;
    border: 1px solid var(--line);
    border-radius: 7px;
    background: #fafafa;
    padding: 12px;
}

.board-upload-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 10px;
}

.board-upload-actions p {
    margin: 0;
}

.board-uploaded-files {
    display: grid;
    gap: 6px;
    margin: 0;
    padding-left: 18px;
}

@media (max-width: 640px) {
    .board-head {
        align-items: stretch;
        flex-direction: column;
    }

    .board-head .button {
        align-self: flex-start;
    }

    .board-search {
        grid-template-columns: 1fr;
    }

    .board-search button,
    .board-search .button {
        width: 100%;
    }

    .board-post-row {
        align-items: flex-start;
        padding: 12px;
    }

    .board-post-title {
        white-space: normal;
    }

    .board-post-arrow {
        margin-top: 2px;
    }

    .board-article-panel,
    .board-form-panel {
        padding: 14px;
    }

    .attachment-item {
        align-items: flex-start;
    }

    .attachment-thumb {
        width: 84px;
        height: 62px;
    }

    .board-detail-actions {
        justify-content: flex-start;
    }
}

.admin-page-head {
    align-items: flex-start;
}

.admin-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: -6px 0 18px;
}

.admin-nav a {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #fff;
    color: var(--muted);
    padding: 6px 11px;
    font-weight: 700;
}

.admin-nav a:hover,
.admin-nav a:focus-visible,
.admin-nav a.is-active {
    border-color: #b7d5ca;
    background: var(--accent-soft);
    color: var(--accent);
    outline: none;
}

.admin-hub-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.admin-hub-card {
    display: grid;
    gap: 7px;
    min-height: 146px;
    align-content: start;
    color: inherit;
}

.admin-hub-card:hover,
.admin-hub-card:focus-visible {
    border-color: #b7d5ca;
    box-shadow: 0 2px 12px rgba(37, 111, 91, .08);
    outline: none;
}

.admin-hub-card strong {
    font-size: 28px;
    line-height: 1;
}

.admin-hub-label {
    color: var(--accent);
    font-size: 13px;
    font-weight: 800;
}

.admin-hub-card small {
    color: var(--muted);
    line-height: 1.5;
}

.admin-shortcuts {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

@media (max-width: 760px) {
    .admin-hub-grid {
        grid-template-columns: 1fr;
    }

    .admin-nav {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 2px;
        scrollbar-width: none;
    }

    .admin-nav::-webkit-scrollbar {
        display: none;
    }

    .admin-nav a {
        flex: 0 0 auto;
    }
}

.admin-category-row {
    display: grid;
    grid-template-columns: minmax(120px, 1.2fr) minmax(110px, 1fr) 110px 78px auto 96px auto;
    gap: 6px;
    align-items: center;
}

.admin-category-row input,
.admin-category-row select,
.board-category-form input,
.board-category-form select,
.board-form select {
    width: 100%;
    min-height: 34px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #fff;
    padding: 5px 8px;
}

.board-badge.secondary {
    border-color: #d7c89b;
    background: #fbf6e6;
    color: #6a5420;
}

@media (max-width: 760px) {
    .admin-category-row {
        grid-template-columns: 1fr;
    }

    .admin-category-row button,
    .admin-category-row .confirm-input {
        width: 100%;
    }
}
