:root {
    color-scheme: light;
    --bg: #f4f7f5;
    --surface: #ffffff;
    --ink: #17201b;
    --muted: #6d7771;
    --line: #dce5df;
    --green: #26734d;
    --green-dark: #155a39;
    --blue: #285a8f;
    --gold: #c28a22;
    --red: #a64040;
    --shadow: 0 12px 30px rgba(23, 32, 27, 0.08);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    background: var(--bg);
    color: var(--ink);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

html.is-layer-open,
body.is-layer-open {
    overflow: hidden;
    overscroll-behavior: none;
}

body.is-layer-open {
    position: fixed;
    right: 0;
    left: 0;
    width: 100%;
}

button,
input,
select,
textarea,
a {
    font: inherit;
    -webkit-tap-highlight-color: transparent;
}

input,
select,
textarea {
    font-size: 16px;
}

button {
    cursor: pointer;
}

a {
    color: inherit;
}

.app-view {
    display: none;
}

.app-view.is-active {
    display: block;
}

.app-shell {
    width: min(100%, 480px);
    min-height: 100vh;
    margin: 0 auto;
    padding: calc(env(safe-area-inset-top) + 18px) 18px 96px;
}

.top-bar,
.board-header,
.detail-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
}

.eyebrow {
    margin: 0 0 4px;
    color: var(--green);
    font-size: 13px;
    font-weight: 700;
}

h1,
h2,
h3,
p {
    margin: 0;
}

h1 {
    font-size: 30px;
    line-height: 1;
}

.logout-button {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    color: var(--green-dark);
    padding: 10px 13px;
    font-size: 13px;
    font-weight: 900;
    box-shadow: var(--shadow);
}

.request-school-button {
    height: 38px;
    border: 1px solid var(--green);
    border-radius: 999px;
    background: var(--surface);
    color: var(--green-dark);
    padding: 0 12px;
    font-size: 13px;
    font-weight: 900;
    box-shadow: var(--shadow);
}

.login-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 42px;
    border-radius: 8px;
    background: var(--green);
    color: #fff;
    padding: 0 16px;
    font-size: 14px;
    font-weight: 900;
    text-decoration: none;
    box-shadow: var(--shadow);
}

.welcome-banner {
    position: relative;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 5px 12px;
    margin-bottom: 12px;
    padding: 14px 42px 14px 15px;
    border: 1px solid #cfe0d6;
    border-radius: 10px;
    background: #f8fcf9;
    box-shadow: 0 8px 20px rgba(23, 32, 27, 0.05);
}

.welcome-banner[hidden] {
    display: none;
}

.welcome-banner strong,
.welcome-banner p {
    grid-column: 1 / -1;
}

.welcome-banner strong {
    color: var(--green-dark);
    font-size: 15px;
}

.welcome-banner p {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.45;
}

.welcome-close {
    position: absolute;
    top: 7px;
    right: 8px;
    width: 28px;
    height: 28px;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--muted);
    font-size: 20px;
}

.welcome-share {
    grid-column: 1 / -1;
    justify-self: start;
    height: 34px;
    margin-top: 4px;
    border: 1px solid var(--green);
    border-radius: 8px;
    background: var(--surface);
    color: var(--green-dark);
    padding: 0 11px;
    font-size: 12px;
    font-weight: 900;
}

.hero-panel {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    min-height: 178px;
    padding: 20px;
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(38, 115, 77, 0.92), rgba(40, 90, 143, 0.88)),
        url("https://images.unsplash.com/photo-1523050854058-8df90110c9f1?auto=format&fit=crop&w=900&q=80") center/cover;
    color: #fff;
    box-shadow: var(--shadow);
}

.hero-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 18px;
    min-width: 0;
}

.hero-copy h2 {
    font-size: 27px;
    line-height: 1.12;
}

.hero-copy p {
    color: rgba(255, 255, 255, 0.86);
    font-size: 14px;
    line-height: 1.45;
}

.summary-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-top: 14px;
}

.summary-grid article {
    min-height: 74px;
    padding: 13px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
}

.summary-grid article > span,
.summary-grid article > strong {
    display: block;
}

.summary-grid article > span {
    color: var(--muted);
    font-size: 12px;
}

.summary-grid article > strong {
    margin-top: 8px;
    font-size: 22px;
}

.trust-panel {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 14px;
    align-items: center;
    margin-top: 14px;
    padding: 15px;
    border: 1px solid #d4e0eb;
    border-radius: 8px;
    background: linear-gradient(135deg, #ffffff, #edf6ff);
}

.trust-panel span {
    display: inline-block;
    margin-bottom: 6px;
    padding: 3px 6px;
    border-radius: 4px;
    background: #dbe9ff;
    color: var(--blue);
    font-size: 11px;
    font-weight: 900;
}

.trust-panel strong,
.trust-panel p {
    display: block;
}

.trust-panel strong {
    font-size: 16px;
}

.trust-panel p {
    margin-top: 5px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.4;
}

.trust-panel a {
    display: inline-grid;
    place-items: center;
    min-width: 72px;
    height: 36px;
    border: 0;
    border-radius: 8px;
    background: var(--blue);
    color: #fff;
    font-size: 13px;
    font-weight: 900;
    text-decoration: none;
}

.content-section,
.join-panel,
.composer-panel {
    margin-top: 26px;
}

.section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.section-heading h2 {
    font-size: 19px;
}

.section-heading a,
.section-heading button {
    border: 0;
    background: transparent;
    color: var(--green);
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
}

.section-heading .text-action {
    max-width: 190px;
    padding: 0;
    line-height: 1.25;
    text-align: right;
}

.section-heading .text-action[hidden] {
    display: none;
}

.join-panel {
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
}

.panel-guide {
    margin: -2px 0 12px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.45;
}

.panel-guide-spacer {
    height: 8px;
}

.school-form {
    display: grid;
    grid-template-columns: 104px 1fr 92px;
    gap: 8px;
}

.school-form label {
    position: relative;
    display: grid;
    gap: 6px;
    min-width: 0;
}

.school-form label span {
    display: none;
}

.school-form input,
.school-form select,
.year-select-button,
.select-layer-button {
    width: 100%;
    height: 42px;
    min-width: 0;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fbfdfb;
    color: var(--ink);
    padding: 0 10px;
    font-size: 16px;
}

.school-form input::placeholder,
.school-request-form input::placeholder,
.school-catalog-search input::placeholder,
.profile-name-form input::placeholder,
.compose-box input::placeholder,
.compose-box textarea::placeholder {
    color: #aeb8b2;
}

.school-form input:disabled {
    background: #f1f4f2;
    color: #a0aaa4;
    cursor: not-allowed;
}

.year-select-button,
.select-layer-button {
    color: #a4afa9;
    text-align: left;
}

.year-select-button.has-value,
.select-layer-button.has-value {
    color: var(--ink);
}

.school-form > button {
    grid-column: 1 / -1;
    height: 44px;
    border: 0;
    border-radius: 8px;
    background: var(--green);
    color: #fff;
    font-weight: 900;
}

.school-request-form {
    display: grid;
    grid-template-columns: 104px 1fr;
    gap: 8px;
}

.school-request-form .request-location-field {
    grid-column: 1 / -1;
}

.school-request-form label {
    display: grid;
    gap: 6px;
    min-width: 0;
}

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

.school-request-form input,
.school-request-form select {
    width: 100%;
    height: 42px;
    min-width: 0;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fbfdfb;
    color: var(--ink);
    padding: 0 10px;
    font-size: 16px;
}

.school-request-form > button {
    grid-column: 1 / -1;
    height: 44px;
    border: 0;
    border-radius: 8px;
    background: var(--green);
    color: #fff;
    font-weight: 900;
}

.school-request-form > button:disabled {
    background: #c8d2cc;
    cursor: not-allowed;
    box-shadow: none;
}

.school-suggestions {
    position: absolute;
    right: 0;
    left: 0;
    top: calc(100% + 6px);
    z-index: 8;
    display: none;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    box-shadow: var(--shadow);
}

.school-suggestions.is-open {
    display: grid;
}

.school-suggestions button {
    grid-column: auto;
    height: auto;
    min-height: 44px;
    border: 0;
    border-radius: 0;
    background: var(--surface);
    color: var(--ink);
    padding: 10px 12px;
    text-align: left;
    font-weight: 800;
}

.school-suggestions button + button {
    border-top: 1px solid var(--line);
}

.school-suggestions small {
    display: block;
    margin-top: 3px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}

.board-tabs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    margin-bottom: 10px;
    scrollbar-width: none;
}

.board-tabs::-webkit-scrollbar {
    display: none;
}

.board-tabs button,
.board-tabs a {
    flex: 0 0 min(42vw, 148px);
    display: grid;
    gap: 3px;
    min-height: 56px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    color: var(--muted);
    text-align: left;
    padding: 10px;
    text-decoration: none;
}

.board-tabs button span,
.board-tabs a span {
    overflow: hidden;
    font-size: 12px;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.board-tabs button strong,
.board-tabs a strong {
    color: var(--ink);
    font-size: 16px;
}

.board-tabs a small {
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
}

.board-tabs button.is-active,
.board-tabs a.is-active {
    border-color: var(--green);
    background: #eef5f1;
    color: var(--green-dark);
    box-shadow: inset 0 0 0 1px var(--green);
}

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

.graduated-school-list {
    display: grid;
    gap: 8px;
}

.graduated-school-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 15px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    color: inherit;
    text-decoration: none;
}

.graduated-school-card h3 {
    font-size: 16px;
}

.graduated-school-card p {
    margin-top: 4px;
    color: var(--muted);
    font-size: 12px;
}

.graduated-school-card > strong {
    color: var(--green-dark);
    font-size: 13px;
    white-space: nowrap;
}

.guest-guide {
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--surface);
}

.guest-guide ol {
    display: grid;
    gap: 9px;
    margin: 0;
    padding-left: 20px;
    color: #3f4944;
    font-size: 14px;
    line-height: 1.45;
}

.app-footer {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
    margin-top: 28px;
    margin-bottom: 24px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.45;
}

.app-footer a {
    color: var(--green-dark);
    font-weight: 900;
    text-decoration: none;
}

.school-catalog-search {
    display: grid;
    gap: 6px;
    margin-bottom: 10px;
}

.school-catalog-search span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

.school-catalog-search input {
    width: 100%;
    height: 42px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    padding: 0 12px;
}

.school-level-tabs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 10px;
}

.school-level-tabs button {
    height: 42px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    color: var(--muted);
    font-weight: 900;
}

.school-level-tabs button.is-active {
    border-color: var(--green);
    background: #eef5f1;
    color: var(--green-dark);
    box-shadow: inset 0 0 0 1px var(--green);
}

.school-catalog-list {
    display: grid;
    gap: 10px;
}

.school-catalog-empty {
    padding: 24px 12px;
    color: var(--muted);
    font-size: 14px;
    text-align: center;
}

.school-catalog-guide {
    padding: 18px 12px;
    border: 1px dashed var(--line);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.62);
    color: var(--muted);
    font-size: 14px;
    line-height: 1.45;
    text-align: center;
}

.school-catalog-guide[hidden] {
    display: none;
}

.school-catalog-card {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 15px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
}

.school-catalog-card > div {
    min-width: 0;
}

.school-catalog-card span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

.school-catalog-card h3 {
    margin-top: 5px;
    font-size: 17px;
}

.school-catalog-card p {
    margin-top: 5px;
    color: var(--muted);
    font-size: 13px;
}

.catalog-join-form {
    display: grid;
    grid-template-columns: 1fr 72px;
    gap: 8px;
}

.catalog-join-form .year-select-button {
    width: 100%;
    height: 40px;
    min-width: 0;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fbfdfb;
    color: var(--ink);
    padding: 0 10px;
    font-size: 16px;
    font-weight: 400;
}

.catalog-join-form button {
    height: 40px;
    border: 0;
    border-radius: 8px;
    background: var(--green);
    color: #fff;
    font-weight: 900;
}

.board-card {
    display: grid;
    grid-template-columns: 1fr 74px;
    gap: 12px;
    align-items: center;
    padding: 15px;
    border: 1px solid var(--line);
    border-left: 5px solid var(--green);
    border-radius: 8px;
    background: var(--surface);
    color: inherit;
    text-align: left;
    width: 100%;
    text-decoration: none;
}

.board-card.blue {
    border-left-color: var(--blue);
}

.board-card.gold {
    border-left-color: var(--gold);
}

.board-card > div {
    min-width: 0;
}

.board-card span,
.post-meta span,
.post-meta time {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

.board-card h3 {
    margin-top: 5px;
    overflow: hidden;
    font-size: 17px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.board-card p {
    margin-top: 5px;
    color: var(--muted);
    font-size: 13px;
}

.board-card > div:last-child {
    display: grid;
    justify-items: end;
}

.board-card > div:last-child strong {
    font-size: 26px;
}

.board-card:active,
.post-item.is-clickable:active {
    transform: translateY(1px);
}

.board-tabs-sticky {
    position: sticky;
    top: 0;
    z-index: 3;
    margin: 0 -18px 6px;
    padding: 0 18px 6px;
    background: linear-gradient(var(--bg) 78%, rgba(244, 247, 245, 0));
}

.board-tabs-sticky a {
    min-height: 50px;
    padding: 8px 9px;
}

.board-tabs-sticky a strong {
    overflow: hidden;
    font-size: 13px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.board-scope-tabs {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin-top: 10px;
}

.board-scope-tabs button {
    display: grid;
    gap: 4px;
    min-height: 76px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--surface);
    color: var(--muted);
    padding: 11px 12px;
    text-align: left;
}

.board-scope-tabs button strong {
    color: var(--ink);
    font-size: 14px;
}

.board-scope-tabs button span {
    font-size: 11px;
    line-height: 1.35;
}

.board-scope-tabs button small {
    color: #97a39c;
    font-size: 10px;
    font-weight: 800;
    line-height: 1.35;
}

.board-scope-tabs button.is-active {
    border-color: var(--green);
    background: #eef5f1;
    box-shadow: inset 0 0 0 1px var(--green);
}

.board-scope-tabs button.is-active strong {
    color: var(--green-dark);
}

.composer-panel {
    display: grid;
    grid-template-columns: 42px 1fr;
    gap: 10px;
    align-items: center;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
}

.composer-avatar {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #dbe9ff;
    color: var(--blue);
    font-weight: 900;
}

.composer-button {
    height: 42px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fbfdfb;
    color: var(--muted);
    text-align: left;
    padding: 0 13px;
    font-weight: 700;
}

.inline-composer {
    margin-top: 12px;
}

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

.post-empty-state {
    display: grid;
    justify-items: center;
    gap: 7px;
    padding: 34px 18px;
    border: 1px dashed var(--line);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.62);
    color: var(--muted);
    text-align: center;
}

.post-empty-state[hidden] {
    display: none;
}

.post-empty-state p {
    color: var(--ink);
    font-size: 14px;
    font-weight: 800;
}

.post-empty-state button,
.post-load-more {
    height: 40px;
    border: 1px solid var(--green);
    border-radius: 8px;
    background: var(--surface);
    color: var(--green-dark);
    padding: 0 14px;
    font-size: 13px;
    font-weight: 900;
}

.post-empty-state button {
    margin-top: 6px;
}

.post-load-more {
    width: 100%;
    margin-top: 12px;
}

.post-item {
    padding: 15px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
}

.post-item.is-clickable {
    cursor: pointer;
}

.post-meta,
.post-footer {
    display: flex;
    align-items: center;
    gap: 8px;
}

.notice-badge {
    padding: 4px 7px;
    border-radius: 999px;
    background: #fff2f2;
    color: var(--red) !important;
}

.post-item h3 {
    margin-top: 9px;
    overflow: hidden;
    font-size: 16px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.post-item p {
    display: -webkit-box;
    margin-top: 7px;
    overflow: hidden;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.45;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.post-footer {
    justify-content: space-between;
    margin-top: 12px;
}

.post-footer span {
    color: var(--ink);
    font-size: 13px;
    font-weight: 800;
}

.author-line {
    display: inline-flex;
    align-items: baseline;
    gap: 5px;
    min-width: 0;
}

.author-line strong {
    color: var(--ink);
    font-size: 13px;
}

.author-line small,
.comment-list small {
    color: var(--muted);
    font-size: 11px;
    font-weight: 600;
}

.edited-mark {
    color: var(--muted);
    font-size: 10px;
    font-weight: 600;
    white-space: nowrap;
}

.post-footer button {
    height: 32px;
    border: 0;
    border-radius: 999px;
    background: #eef5f1;
    color: var(--green-dark);
    padding: 0 10px;
    font-size: 12px;
    font-weight: 900;
}

.write-fab {
    height: 38px;
    border: 0;
    border-radius: 999px;
    background: var(--green);
    color: #fff;
    padding: 0 14px;
    font-size: 14px;
    font-weight: 900;
}

.board-actions {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
}

.more-button {
    height: 38px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--surface);
    color: var(--green-dark);
    padding: 0 12px;
    font-size: 14px;
    font-weight: 900;
}

.board-more-menu {
    position: absolute;
    top: calc(100% + 7px);
    right: 0;
    z-index: 12;
    display: none;
    width: 132px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--surface);
    box-shadow: 0 12px 28px rgba(23, 32, 27, 0.16);
}

.board-more-menu.is-open {
    display: grid;
}

.board-more-menu .leave-school-button {
    width: 100%;
    height: 42px;
    border: 0;
    border-radius: 0;
    background: var(--surface);
    color: var(--red);
    padding: 0 13px;
    text-align: left;
    font-size: 13px;
    font-weight: 900;
}

.board-more-menu .leave-school-button:hover {
    background: #fff7f7;
}

.hashtag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 10px;
}

.hashtag-list span {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    border-radius: 999px;
    background: #edf6ff;
    color: var(--blue);
    padding: 0 9px;
    font-size: 12px;
    font-weight: 900;
}

.detail-tags {
    margin-top: 14px;
}

.back-button {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    color: var(--green-dark);
    font-size: 30px;
    line-height: 1;
}

.detail-header {
    justify-content: flex-start;
    gap: 12px;
}

.detail-time,
.comment-meta {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--muted);
    font-size: 12px;
}

.inline-edit-button {
    border: 0;
    background: transparent;
    color: var(--green-dark);
    padding: 2px 4px;
    font-size: 11px;
    font-weight: 900;
}

.inline-report-button {
    border: 0;
    background: transparent;
    color: var(--muted);
    padding: 2px 4px;
    font-size: 11px;
    font-weight: 800;
}

.detail-post,
.comment-section {
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
}

.detail-post h2 {
    margin-top: 12px;
    font-size: 22px;
    line-height: 1.25;
}

.detail-post p {
    margin-top: 14px;
    color: #2f3833;
    font-size: 16px;
    line-height: 1.65;
    white-space: pre-line;
}

.detail-actions {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-top: 18px;
}

.detail-actions button {
    height: 42px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fbfdfb;
    color: var(--ink);
    font-weight: 900;
}

.detail-actions button.is-liked {
    border-color: var(--green);
    background: #eef5f1;
    color: var(--green-dark);
}

.detail-actions .report-button {
    color: var(--red);
}

.comment-section {
    margin-top: 12px;
}

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

.comment-list article {
    padding: 12px;
    border-radius: 8px;
    background: #f6f9f7;
}

.comment-list strong {
    font-size: 13px;
}

.comment-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
}

.comment-list p {
    margin-top: 6px;
    color: #3f4944;
    font-size: 14px;
    line-height: 1.45;
}

.comment-edit-form {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 6px;
    margin-top: 8px;
}

.comment-edit-form input {
    min-width: 0;
    height: 38px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    padding: 0 10px;
}

.comment-edit-form button {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    color: var(--green-dark);
    padding: 0 10px;
    font-size: 12px;
    font-weight: 900;
}

.comment-form {
    display: grid;
    grid-template-columns: 1fr auto 62px;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
}

.comment-form input {
    min-width: 0;
    height: 42px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fbfdfb;
    padding: 0 12px;
}

.profile-card {
    display: grid;
    grid-template-columns: 52px 1fr;
    gap: 12px;
    align-items: center;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
}

.profile-card h2 {
    font-size: 20px;
}

.profile-card p {
    margin-top: 5px;
    color: var(--muted);
    font-size: 14px;
}

.profile-name-form {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 96px;
    gap: 8px;
    margin-top: 4px;
}

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

.profile-name-form span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

.profile-name-form input {
    width: 100%;
    height: 42px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fbfdfb;
    color: var(--ink);
    padding: 0 12px;
    font-size: 16px;
}

.profile-name-form button {
    align-self: end;
    height: 42px;
    border: 0;
    border-radius: 8px;
    background: var(--green);
    color: #fff;
    font-weight: 900;
}

.summary-grid.compact {
    margin-top: 0;
}

.login-page {
    background:
        radial-gradient(circle at 12% 10%, rgba(255, 209, 102, 0.32), transparent 28%),
        radial-gradient(circle at 90% 4%, rgba(40, 90, 143, 0.26), transparent 30%),
        linear-gradient(160deg, #eef5f1 0%, #f8fbf8 48%, #edf6ff 100%);
}

.login-shell {
    display: grid;
    align-items: center;
    width: min(100%, 480px);
    min-height: 100vh;
    min-height: 100dvh;
    margin: 0 auto;
    padding: calc(env(safe-area-inset-top) + 14px) 14px calc(env(safe-area-inset-bottom) + 14px);
}

.login-hero-card {
    display: grid;
    align-content: start;
    gap: 15px;
    min-height: 0;
    max-height: calc(100dvh - env(safe-area-inset-top) - env(safe-area-inset-bottom) - 28px);
    overflow: hidden;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.88)),
        linear-gradient(135deg, rgba(38, 115, 77, 0.14), rgba(40, 90, 143, 0.14));
    box-shadow: var(--shadow);
}

.login-brand {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.login-brand span {
    color: var(--green);
    font-size: 13px;
    font-weight: 900;
}

.login-brand strong {
    color: var(--ink);
    font-size: 18px;
}

.login-visual {
    position: relative;
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 14px 0 8px;
}

.login-visual::before {
    content: "";
    position: absolute;
    top: 36px;
    right: 84px;
    left: 84px;
    height: 3px;
    border-radius: 999px;
    background: #b9e0ca;
}

.login-visual span {
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: var(--green);
    color: #fff;
    font-size: 18px;
    font-weight: 900;
    box-shadow: 0 14px 28px rgba(38, 115, 77, 0.2);
}

.login-visual span:nth-child(2) {
    margin-top: 12px;
    background: var(--blue);
}

.login-visual span:nth-child(3) {
    background: var(--gold);
}

.login-copy {
    display: grid;
    gap: 12px;
}

.login-copy h1 {
    font-size: 26px;
    line-height: 1.1;
    letter-spacing: -0.04em;
}

.login-copy p:not(.eyebrow),
.login-footnote {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.52;
}

.login-footnote a {
    color: var(--green-dark);
    font-weight: 900;
}

.login-points {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.login-points span {
    border: 1px solid #cfe0d6;
    border-radius: 999px;
    background: #f8fcf9;
    color: var(--green-dark);
    padding: 6px 9px;
    font-size: 11px;
    font-weight: 900;
}

.kakao-login-button {
    display: grid;
    place-items: center;
    height: 48px;
    margin-top: 2px;
    border-radius: 11px;
    background: #fee500;
    color: #191600;
    font-size: 16px;
    font-weight: 900;
    text-decoration: none;
    box-shadow: 0 12px 22px rgba(25, 22, 0, 0.12);
}

.login-error {
    padding: 11px 12px;
    margin-top: 2px;
    border-radius: 8px;
    background: #fff2f2;
    color: var(--red) !important;
    font-weight: 800;
}

.comment-form button {
    border: 0;
    border-radius: 8px;
    background: var(--green);
    color: #fff;
    font-weight: 900;
}

.anonymous-check {
    display: inline-flex !important;
    grid-template-columns: none !important;
    align-items: center;
    gap: 6px !important;
    color: var(--muted);
    font-size: 13px;
    font-weight: 900;
    white-space: nowrap;
}

.anonymous-check input {
    width: 16px !important;
    height: 16px;
    margin: 0;
    accent-color: var(--green);
}

.anonymous-check span {
    color: inherit !important;
    font-size: inherit !important;
}

.compose-sheet,
.post-edit-sheet,
.school-request-sheet {
    position: fixed;
    inset: 0;
    z-index: 30;
    display: none;
}

.compose-sheet.is-open,
.post-edit-sheet.is-open,
.school-request-sheet.is-open {
    display: block;
}

.compose-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(23, 32, 27, 0.34);
}

.compose-box {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    display: grid;
    gap: 10px;
    width: min(calc(100% - 24px), 560px);
    max-height: 72vh;
    overflow-y: auto;
    margin: 0 auto;
    padding: 10px 18px calc(env(safe-area-inset-bottom) + 16px);
    border-radius: 16px 16px 0 0;
    background: var(--surface);
    box-shadow: 0 -18px 40px rgba(23, 32, 27, 0.16);
}

.compose-sheet .compose-box {
    min-height: auto;
    max-height: 68vh;
}

.school-request-sheet .compose-box {
    display: grid;
    grid-template-columns: 1fr;
    min-height: auto;
    gap: 12px;
}

.school-request-sheet .school-request-form label,
.school-request-sheet .school-request-form .request-location-field,
.school-request-sheet .school-request-form > button {
    grid-column: 1 / -1;
}

.school-request-sheet .school-request-form .section-heading,
.school-request-sheet .school-request-form .compose-help,
.school-request-sheet .school-request-form .sheet-handle {
    grid-column: 1 / -1;
}

.school-request-sheet .school-request-form input,
.school-request-sheet .school-request-form .select-layer-button {
    width: 100%;
}

.sheet-handle {
    width: 38px;
    height: 4px;
    margin: 2px auto 0;
    border-radius: 999px;
    background: var(--line);
}

.compose-box label {
    display: grid;
    gap: 6px;
}

.compose-box label span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

.compose-help {
    margin-top: -4px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.45;
}

.compose-box input,
.compose-box select,
.compose-box textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fbfdfb;
    color: var(--ink);
    padding: 11px 12px;
    resize: none;
}

.compose-box select {
    font-size: 15px;
    font-weight: 800;
    line-height: 1.35;
}

.compose-box textarea {
    min-height: 180px;
}

.compose-box > button {
    height: 46px;
    border: 0;
    border-radius: 8px;
    background: var(--green);
    color: #fff;
    font-weight: 900;
}

.bottom-nav {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 10;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    width: min(100%, 480px);
    margin: 0 auto;
    padding: 8px 12px calc(env(safe-area-inset-bottom) + 10px);
    border-top: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(14px);
    box-shadow: 0 -14px 30px rgba(23, 32, 27, 0.1);
}

.bottom-nav a {
    display: grid;
    place-items: center;
    min-height: 44px;
    border: 1px solid transparent;
    border-radius: 12px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
}

.bottom-nav a.is-active {
    border-color: #cfe0d6;
    background: #eef5f1;
    color: var(--green-dark);
    box-shadow: inset 0 0 0 1px rgba(38, 115, 77, 0.18);
}

.toast {
    position: fixed;
    right: 18px;
    bottom: 84px;
    left: 18px;
    z-index: 20;
    display: none;
    max-width: 444px;
    margin: 0 auto;
    padding: 13px 14px;
    border-radius: 8px;
    background: #17201b;
    color: #fff;
    font-size: 14px;
    text-align: center;
    box-shadow: var(--shadow);
}

.layer-alert,
.report-layer,
.year-picker-layer,
.school-level-picker-layer {
    position: fixed;
    inset: 0;
    z-index: 40;
    display: none;
    place-items: center;
    padding: 24px;
    overscroll-behavior: contain;
}

.layer-alert.is-open,
.report-layer.is-open,
.year-picker-layer.is-open,
.school-level-picker-layer.is-open {
    display: grid;
}

.layer-alert-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(23, 32, 27, 0.48);
}

.layer-alert-box {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 12px;
    width: min(100%, 380px);
    padding: 24px 20px 20px;
    border-radius: 18px;
    background: var(--surface);
    text-align: center;
    box-shadow: 0 22px 56px rgba(23, 32, 27, 0.24);
}

.report-box {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 12px;
    width: min(100%, 380px);
    padding: 18px;
    border-radius: 8px;
    background: var(--surface);
    box-shadow: var(--shadow);
}

.report-box h2 {
    font-size: 19px;
}

.report-box p {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.45;
}

.report-box textarea {
    min-height: 100px;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 11px 12px;
    resize: vertical;
}

.report-box > div {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.report-box button {
    height: 42px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    font-weight: 900;
}

.report-box button[type="submit"] {
    border-color: var(--red);
    background: var(--red);
    color: #fff;
}

.year-picker-box {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-rows: auto auto 1fr;
    width: min(100%, 390px);
    max-height: min(78vh, 640px);
    padding: 18px;
    border-radius: 16px;
    background: var(--surface);
    box-shadow: var(--shadow);
}

.level-picker-box {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 12px;
    width: min(100%, 360px);
    padding: 18px;
    border-radius: 16px;
    background: var(--surface);
    box-shadow: var(--shadow);
}

.level-picker-box .section-heading {
    margin-bottom: 0;
}

.level-picker-box .section-heading button {
    padding: 0;
}

.level-option-list {
    display: grid;
    gap: 8px;
}

.level-option-list button {
    min-height: 48px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fbfdfb;
    color: var(--ink);
    padding: 0 12px;
    text-align: left;
    font-size: 16px;
    font-weight: 900;
}

.year-picker-box .section-heading {
    margin-bottom: 0;
}

.year-picker-box .section-heading button {
    padding: 0;
}

.year-picker-help {
    margin-top: 4px;
    color: var(--muted);
    font-size: 13px;
}

.year-option-list {
    display: grid;
    gap: 7px;
    margin-top: 12px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    padding-right: 3px;
}

.year-option-list button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    min-height: 46px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fbfdfb;
    color: var(--ink);
    padding: 0 12px;
    text-align: left;
}

.year-option-list strong {
    font-size: 15px;
}

.year-option-list small {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

.layer-alert-box h2 {
    font-size: 21px;
    line-height: 1.2;
}

.layer-alert-box p {
    margin: 0;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.55;
    word-break: keep-all;
}

.layer-alert-box button {
    width: 100%;
    height: 48px;
    margin-top: 6px;
    border: 0;
    border-radius: 14px;
    background: var(--green);
    color: #fff;
    font-size: 15px;
    font-weight: 900;
}

.policy-page {
    background:
        radial-gradient(circle at 16% 8%, rgba(255, 209, 102, 0.28), transparent 30%),
        linear-gradient(160deg, #eef5f1 0%, #f8fbf8 52%, #edf6ff 100%);
}

.policy-shell {
    width: min(100%, 680px);
    margin: 0 auto;
    padding: calc(env(safe-area-inset-top) + 22px) 18px calc(env(safe-area-inset-bottom) + 28px);
}

.policy-back {
    display: inline-flex;
    align-items: center;
    height: 38px;
    margin-bottom: 12px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--surface);
    color: var(--green-dark);
    padding: 0 13px;
    font-size: 13px;
    font-weight: 900;
    text-decoration: none;
}

.policy-card {
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: var(--shadow);
}

.policy-card h1 {
    font-size: 32px;
    line-height: 1.15;
}

.policy-lead {
    margin-top: 12px;
    color: #3f4944;
    font-size: 16px;
    line-height: 1.58;
}

.policy-card h2 {
    margin-top: 24px;
    font-size: 19px;
}

.policy-card ul {
    display: grid;
    gap: 9px;
    margin: 10px 0 0;
    padding-left: 20px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.55;
}

@media (max-width: 360px) {
    .app-shell {
        padding-right: 14px;
        padding-left: 14px;
    }

    .school-form {
        grid-template-columns: 1fr;
    }

    .school-request-form {
        grid-template-columns: 1fr;
    }
}
