:root {
    color-scheme: light;
    --ink: #222c36;
    --muted: #78838e;
    --line: #e8e9e5;
    --paper: #fbfaf7;
    --card: #fff;
    --green: #246b51;
    --green-dark: #18543e;
    --green-soft: #e9f3ed;
    --orange: #f4a65a;
    --shadow: 0 16px 48px rgba(35, 47, 42, .07);
}

* { box-sizing: border-box; }
body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: "DM Sans", "Noto Sans KR", "Malgun Gothic", sans-serif;
    -webkit-font-smoothing: antialiased;
}
button, input, textarea, select { font: inherit; }
a { color: var(--green); }
.page-shell { width: min(1120px, calc(100% - 48px)); margin: 0 auto; }
.topbar { height: 88px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; gap: 10px; align-items: center; color: var(--ink); text-decoration: none; font-size: 14px; font-weight: 700; letter-spacing: -.035em; }
.brand-mark { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 10px; color: #fff; background: var(--green); font-weight: 700; font-size: 20px; font-family: Georgia, serif; }
.hero { min-height: 300px; display: flex; align-items: center; justify-content: space-between; position: relative; overflow: hidden; }
.eyebrow { margin-bottom: 12px; color: var(--green); font-size: 10px; font-weight: 700; letter-spacing: .16em; }
h1, h2, h3, p { margin-top: 0; }
.hero h1, .login-card h1, .installer-card h1 { margin-bottom: 16px; font-size: clamp(32px, 5vw, 52px); line-height: 1.2; letter-spacing: -.055em; }
.hero h1 span { color: var(--green); }
.muted { color: var(--muted); font-size: 14px; line-height: 1.8; }
.public-hero { min-height: 300px; display: flex; align-items: center; justify-content: space-between; position: relative; overflow: hidden; }
.public-hero h1 { margin-bottom: 16px; font-size: clamp(36px, 5vw, 54px); line-height: 1.2; letter-spacing: -.055em; }
.public-hero h1 span { color: var(--green); }
.public-hero > div:first-child { max-width: 650px; }
.public-hero .muted { max-width: 490px; }
.public-board { max-width: 920px; margin: 0 auto; padding: 25px; border: 1px solid rgba(232,233,229,.8); border-radius: 18px; background: rgba(255,255,255,.6); }
.public-board .list-heading { margin: 0 0 19px; }
.public-lock { display: inline-flex; align-items: center; gap: 7px; color: #929c96; font-size: 10px; }
.public-lock > span { color: #91b59f; font-size: 8px; }
.public-idea-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.public-idea-card { width: 100%; min-height: 120px; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 19px 20px; border: 1px solid var(--line); border-radius: 13px; background: #fff; color: var(--ink); text-align: left; cursor: pointer; box-shadow: 0 5px 20px rgba(35,47,42,.035); transition: border-color .15s, transform .15s, box-shadow .15s; }
.public-idea-card:hover, .public-idea-card:focus-visible { transform: translateY(-2px); border-color: #bad2c4; box-shadow: var(--shadow); outline: 0; }
.public-card-main { min-width: 0; display: grid; justify-items: start; gap: 10px; }
.public-card-main strong { max-width: 100%; overflow: hidden; font-size: 14px; line-height: 1.6; text-overflow: ellipsis; white-space: nowrap; }
.public-card-main time { color: #a0a7a8; font-size: 10px; }
.public-card-lock { display: inline-flex; align-items: center; gap: 7px; flex: 0 0 auto; color: #96a19a; font-size: 10px; }
.public-card-lock b { display: grid; width: 29px; height: 29px; place-items: center; border-radius: 50%; color: var(--green); background: var(--green-soft); font-size: 13px; font-weight: 500; transition: transform .15s; }
.public-idea-card:hover .public-card-lock b { transform: translate(2px, -2px); }
.public-footer { max-width: 920px; display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 13px auto 0; padding: 0 7px; color: #a0a6a2; font-size: 11px; }
.idea-access-modal, .admin-login-modal { max-height: min(92vh, 1000px); padding: 30px; overflow-y: auto; border: 1px solid var(--line); border-radius: 18px; color: var(--ink); background: var(--card); box-shadow: 0 24px 90px rgba(0,0,0,.22); }
.idea-access-modal { width: min(960px, calc(100% - 32px)); max-width: none; max-height: 94vh; padding: 36px; }
.admin-login-modal { width: min(440px, calc(100% - 28px)); }
.idea-access-modal[open], .admin-login-modal[open] { animation: modal-in .16s ease-out; }
.idea-access-modal::backdrop, .admin-login-modal::backdrop { background: rgba(23, 32, 28, .56); backdrop-filter: blur(3px); }
.modal-close { position: absolute; top: 12px; right: 14px; width: 32px; height: 32px; border: 0; border-radius: 50%; color: #748079; background: #f1f4f0; font-size: 22px; line-height: 1; cursor: pointer; }
.modal-lock-icon { display: grid; width: 38px; height: 38px; place-items: center; margin: 0 0 18px; border-radius: 12px; color: var(--green); background: var(--green-soft); font-size: 18px; }
.idea-access-modal .eyebrow { margin-bottom: 7px; }
.idea-access-modal h2, .admin-login-modal h2 { margin: 0 0 9px; font-size: 22px; letter-spacing: -.04em; }
.idea-access-modal .muted, .admin-login-modal .muted { margin-bottom: 22px; font-size: 12px; }
.idea-access-form { margin-top: 18px; }
.idea-access-form button:disabled { opacity: .65; cursor: wait; }
.access-error { margin: 0 0 13px; }
.private-content-description { padding-top: 3px; color: #626e68; font-size: 13px; line-height: 1.8; white-space: pre-wrap; overflow-wrap: anywhere; }
.private-content-image { display: block; width: auto; height: auto; max-width: 100%; max-height: min(70vh, 820px); margin: 22px auto 0; border: 1px solid var(--line); border-radius: 11px; background: #f7f8f5; object-fit: contain; }
.idea-password-settings { margin-top: 14px; padding-top: 10px; border-top: 1px solid #f0f1ed; }
.idea-password-settings summary { color: var(--green); font-size: 11px; font-weight: 600; cursor: pointer; }
.idea-password-form { display: flex; align-items: flex-start; gap: 8px; margin-top: 11px; }
.idea-password-form input:not([type=checkbox]) { margin: 0; padding: 9px 10px; font-size: 11px; }
.idea-password-form .button { min-height: 36px; flex: 0 0 auto; font-size: 11px; }
@keyframes modal-in { from { opacity: 0; transform: translateY(6px) scale(.99); } to { opacity: 1; transform: translateY(0) scale(1); } }
.hero-orbit { width: 200px; height: 200px; margin-right: 72px; border: 1px solid #dce8df; border-radius: 50%; display: grid; place-items: center; position: relative; color: var(--green); font-size: 12px; font-weight: 700; letter-spacing: .18em; transform: rotate(-12deg); }
.hero-orbit::before, .hero-orbit::after { content: ""; position: absolute; border: 1px solid #e8e3d8; border-radius: 50%; }
.hero-orbit::before { inset: 18px -24px; transform: rotate(54deg); }
.hero-orbit::after { inset: -18px 26px; transform: rotate(-38deg); }
.hero-orbit i { position: absolute; right: 7px; top: 20px; color: var(--orange); font-size: 30px; font-style: normal; }
.content-grid { display: grid; grid-template-columns: 350px minmax(0, 1fr); gap: 52px; align-items: start; padding-top: 8px; }
.compose-card, .idea-card, .login-card, .installer-card { border: 1px solid var(--line); border-radius: 16px; background: var(--card); box-shadow: var(--shadow); }
.compose-card { padding: 24px; position: sticky; top: 24px; }
.card-heading { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 24px; }
.card-heading h2, .list-heading h2 { margin-bottom: 0; font-size: 21px; letter-spacing: -.04em; }
.sparkle { color: var(--orange); font-size: 24px; }
label { display: block; margin: 0 0 8px; color: #4d5963; font-size: 12px; font-weight: 600; }
input:not([type=checkbox]), textarea, select { width: 100%; border: 1px solid #e4e7e2; border-radius: 9px; outline: 0; background: #fff; color: var(--ink); }
input:not([type=checkbox]), textarea { padding: 12px 13px; margin-bottom: 18px; font-size: 13px; transition: border .2s, box-shadow .2s; }
textarea { resize: vertical; line-height: 1.65; }
input:focus, textarea:focus, select:focus { border-color: #8db5a0; box-shadow: 0 0 0 3px rgba(36, 107, 81, .09); }
input::placeholder, textarea::placeholder { color: #aab1b2; }
.optional { color: #9ba3a6; font-weight: 400; }
.button { min-height: 44px; padding: 0 16px; border: 0; border-radius: 9px; cursor: pointer; font-size: 13px; font-weight: 700; transition: transform .15s, background .15s; }
.button:hover { transform: translateY(-1px); }
.button-primary { display: flex; align-items: center; justify-content: space-between; color: white; background: var(--green); }
.button-primary:hover { background: var(--green-dark); }
.button-wide { width: 100%; }
.button-quiet { color: #68736d; background: transparent; }
.button-quiet:hover { color: var(--green); background: var(--green-soft); }
.list-heading { display: flex; align-items: center; justify-content: space-between; margin: 8px 0 20px; }
.list-heading h2 { display: flex; align-items: center; gap: 9px; }
.count { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; color: var(--green); background: var(--green-soft); font-size: 11px; }
.idea-list { display: grid; gap: 12px; }
.idea-card { padding: 19px 21px 17px; box-shadow: 0 5px 20px rgba(35, 47, 42, .035); }
.idea-topline { display: flex; justify-content: space-between; align-items: center; margin-bottom: 13px; }
.idea-topline time { color: #a0a7a8; font-size: 11px; }
.idea-body { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; align-items: start; }
.idea-body.has-image { grid-template-columns: minmax(0, 1fr) minmax(42%, .85fr); }
.idea-copy { min-width: 0; }
.status { display: inline-flex; align-items: center; gap: 6px; color: #777f81; font-size: 11px; font-weight: 600; }
.status-dot { width: 6px; height: 6px; border-radius: 50%; background: #adb4b0; }
.status-in_progress { color: #a36b23; }
.status-in_progress .status-dot { background: var(--orange); }
.status-done { color: var(--green); }
.status-done .status-dot { background: #59a580; }
.idea-card h3 { margin: 0 0 7px; font-size: 15px; line-height: 1.55; letter-spacing: -.02em; }
.idea-description { margin-bottom: 15px; color: #76817f; font-size: 12px; line-height: 1.75; overflow-wrap: anywhere; }
.idea-image-button { width: 100%; padding: 0; position: relative; overflow: hidden; border: 1px solid #e8ebe5; border-radius: 10px; background: #f7f8f5; cursor: zoom-in; }
.idea-image { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: contain; }
.image-zoom-hint { position: absolute; right: 7px; bottom: 7px; padding: 5px 7px; border-radius: 6px; color: #fff; background: rgba(34, 44, 54, .68); font-size: 9px; opacity: 0; transition: opacity .15s; }
.idea-image-button:hover .image-zoom-hint, .idea-image-button:focus-visible .image-zoom-hint { opacity: 1; }
.status-form { display: flex; justify-content: flex-end; }
.status-form select { width: auto; min-width: 104px; padding: 6px 24px 6px 9px; border: 0; color: #64706b; background: #f6f7f4; font-size: 11px; cursor: pointer; }
.empty-state { min-height: 190px; display: grid; align-content: center; justify-items: center; border: 1px dashed #dce3dc; border-radius: 14px; color: var(--muted); text-align: center; }
.empty-state > span { margin-bottom: 10px; color: var(--orange); font-size: 26px; }
.empty-state h3 { margin-bottom: 6px; color: var(--ink); font-size: 14px; }
.empty-state p { margin-bottom: 0; font-size: 12px; }
.footer-note { padding: 48px 0 28px; color: #a0a6a2; font-size: 11px; text-align: center; }
.alert { margin: 14px 0; padding: 12px 14px; border-radius: 9px; font-size: 12px; line-height: 1.6; }
.alert-error { color: #943c36; background: #fff0ed; }
.alert-success { color: #246b51; background: #e9f3ed; }
.upload-hint { display: block; margin: -13px 0 18px; color: #9ba3a6; font-size: 10px; line-height: 1.5; }
.image-lightbox { width: min(94vw, 1200px); max-width: none; max-height: 92vh; padding: 48px 18px 18px; overflow: visible; border: 1px solid rgba(255,255,255,.24); border-radius: 14px; background: #18201d; box-shadow: 0 24px 90px rgba(0,0,0,.4); }
.image-lightbox::backdrop { background: rgba(18, 24, 22, .82); backdrop-filter: blur(3px); }
.image-lightbox img { display: block; max-width: 100%; max-height: calc(92vh - 70px); margin: 0 auto; object-fit: contain; }
.lightbox-close { position: absolute; top: 8px; right: 12px; width: 34px; height: 34px; border: 0; border-radius: 50%; color: #fff; background: rgba(255,255,255,.12); font-size: 24px; line-height: 1; cursor: pointer; }
.login-card { width: min(440px, 100%); margin: 92px auto 0; padding: 38px; }
.login-card h1, .installer-card h1 { font-size: 34px; }
.login-form { margin-top: 28px; }
.installer-shell { max-width: 790px; }
.installer-tag { color: #8e9991; font-size: 10px; font-weight: 700; letter-spacing: .15em; }
.installer-card { margin: 28px auto 0; padding: 34px; overflow: hidden; }
.installer-intro { min-height: 154px; display: flex; align-items: center; justify-content: space-between; position: relative; }
.installer-intro h1 { margin-bottom: 11px; font-size: clamp(30px, 4vw, 39px); }
.installer-intro .muted { max-width: 440px; margin-bottom: 0; }
.installer-orbit { width: 104px; height: 104px; flex: 0 0 104px; display: grid; place-items: center; position: relative; margin: 0 20px 0 24px; border: 1px solid #dce8df; border-radius: 50%; color: var(--green); font-size: 9px; font-weight: 700; letter-spacing: .15em; transform: rotate(-12deg); }
.installer-orbit::before { content: ""; position: absolute; inset: -8px 11px; border: 1px solid #eee9df; border-radius: 50%; transform: rotate(48deg); }
.installer-orbit i { position: absolute; top: 1px; right: 2px; color: var(--orange); font-size: 20px; font-style: normal; }
.install-steps { display: flex; align-items: center; gap: 12px; margin: 17px 0 25px; padding: 13px 15px; border: 1px solid #edf0ea; border-radius: 11px; background: #fafbf8; color: #737e77; font-size: 11px; }
.install-steps span { display: flex; align-items: center; gap: 7px; white-space: nowrap; }
.install-steps b { color: var(--green); font-size: 10px; }
.install-steps i { width: 100%; height: 1px; background: #e3e9e1; }
.installer-form { margin-top: 0; }
.installer-form h2 { display: flex; align-items: center; gap: 9px; margin: 27px 0 15px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 15px; }
.installer-form h2:first-of-type { margin-top: 0; padding-top: 0; border-top: 0; }
.section-number { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 8px; color: var(--green); background: var(--green-soft); font-size: 10px; }
.section-hint { margin-left: auto; color: #a1aaa4; font-size: 10px; font-weight: 400; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.reset-panel { margin: 18px 0 22px; padding: 17px; border: 1px solid #eed8c6; border-radius: 10px; background: #fff9f2; }
.checkbox-label { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 16px; color: #744b30; cursor: pointer; }
.checkbox-label input { margin-top: 3px; accent-color: #b66b39; }
.checkbox-label strong, .checkbox-label small { display: block; }
.checkbox-label strong { font-size: 12px; }
.checkbox-label small, .reset-panel > small { margin-top: 5px; color: #987c66; font-size: 11px; line-height: 1.6; }
.reset-panel code { padding: 2px 4px; border-radius: 4px; background: #f3e9df; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

@media (max-width: 760px) {
    .page-shell { width: min(100% - 32px, 560px); }
    .topbar { height: 70px; }
    .hero { min-height: 250px; }
    .hero-orbit { width: 126px; height: 126px; margin-right: 4px; font-size: 9px; }
    .hero-orbit i { right: 2px; top: 12px; font-size: 22px; }
    .content-grid { grid-template-columns: 1fr; gap: 28px; }
    .compose-card { position: static; }
    .list-heading { margin-top: 0; }
    .login-card { margin-top: 50px; padding: 28px 24px; }
    .installer-card { margin-top: 22px; padding: 24px 20px; }
    .installer-intro { min-height: 140px; }
    .installer-orbit { width: 76px; height: 76px; flex-basis: 76px; margin-right: 6px; font-size: 8px; }
    .install-steps { gap: 8px; padding: 12px 10px; font-size: 10px; }
    .install-steps span { gap: 4px; }
    .public-hero { min-height: 260px; }
    .public-idea-list { grid-template-columns: 1fr; }
    .public-board { padding: 18px; }
    .public-footer { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 460px) {
    .hero-orbit { opacity: .55; position: absolute; right: 0; top: 60px; transform: scale(.8) rotate(-12deg); }
    .hero > div:first-child { position: relative; z-index: 1; }
    .form-row { grid-template-columns: 1fr; gap: 0; }
    .installer-intro { align-items: flex-start; }
    .installer-orbit { width: 54px; height: 54px; flex-basis: 54px; margin: 15px 2px 0 0; font-size: 6px; }
    .installer-orbit i { font-size: 15px; }
    .install-steps { gap: 5px; font-size: 9px; }
    .install-steps span { gap: 3px; }
    .public-hero { min-height: 250px; }
    .public-board { padding: 15px 12px; border-radius: 14px; }
    .public-idea-card { min-height: 108px; padding: 16px 15px; }
    .public-lock { max-width: 130px; text-align: right; line-height: 1.5; }
    .idea-access-modal { width: calc(100% - 24px); max-height: 96vh; padding: 27px 20px; }
    .private-content-image { max-height: 72vh; }
    .admin-login-modal { padding: 26px 21px; }
}
