:root {
  color-scheme: light;
  --ink: #17251d;
  --muted: #637067;
  --paper: #fbfaf5;
  --cream: #f2eddf;
  --line: #d9d7cb;
  --green: #285a3a;
  --green-light: #dce9d8;
  --gold: #c99844;
  --danger: #a73b32;
  --shadow: 0 18px 50px rgba(39, 51, 42, .09);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: "Pretendard", "Noto Sans KR", "Malgun Gothic", sans-serif; line-height: 1.65; }
button, input, select, textarea { font: inherit; }
a { color: inherit; text-decoration: none; }
.topbar { position: sticky; top: 0; z-index: 10; display: flex; justify-content: space-between; align-items: center; min-height: 70px; padding: 0 max(24px, calc((100vw - 1160px) / 2)); border-bottom: 1px solid rgba(217,215,203,.85); background: rgba(251,250,245,.92); backdrop-filter: blur(12px); }
.brand { display: flex; gap: 10px; align-items: center; font-weight: 800; letter-spacing: -.04em; }
.brand-mark { width: 25px; height: 25px; border-radius: 7px 13px 7px 13px; background: var(--green); box-shadow: inset -6px -6px 0 rgba(255,255,255,.15); transform: rotate(-4deg); }
nav { display: flex; gap: 24px; margin-left: auto; color: #455149; font-size: 14px; font-weight: 700; }
nav a:hover { color: var(--green); }
.account-actions { display: flex; align-items: center; gap: 8px; margin-left: 24px; }
.account-actions > span { max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; font-weight: 800; }
.quiet-button, .login-button { min-height: 36px; padding: 0 12px; border-radius: 8px; font-size: 13px; font-weight: 800; cursor: pointer; }
.quiet-button { border: 1px solid var(--line); background: transparent; color: var(--ink); }
.login-button { border: 1px solid var(--green); background: var(--green); color: white; }
main { max-width: 1160px; margin: 0 auto; padding: 0 24px 100px; }
.hero { min-height: 520px; display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; gap: 50px; }
.eyebrow { margin: 0 0 8px; color: var(--green); font-size: 13px; font-weight: 900; letter-spacing: .12em; }
h1 { margin: 0; font-family: Georgia, "Nanum Myeongjo", serif; font-size: clamp(44px, 6.5vw, 78px); line-height: 1.11; letter-spacing: -.055em; }
.hero-copy { max-width: 620px; margin: 24px 0 30px; color: var(--muted); font-size: 18px; }
.primary-link, .action-button { display: inline-flex; justify-content: center; align-items: center; min-height: 48px; padding: 0 24px; border: 0; border-radius: 10px; background: var(--green); color: white; font-weight: 800; cursor: pointer; box-shadow: 0 8px 22px rgba(40,90,58,.2); }
.primary-link:hover, .action-button:hover { background: #1e492d; transform: translateY(-1px); }
.hero-art { display: grid; place-items: center; position: relative; height: 390px; }
.hero-art::before { content: ""; position: absolute; width: 85%; height: 55%; border-radius: 50%; background: rgba(40,90,58,.11); filter: blur(36px); }
.hero-art img { position: relative; z-index: 1; width: min(120%, 620px); height: auto; filter: drop-shadow(0 22px 26px rgba(23,37,29,.14)); }
.tool-section { padding: 74px 0 20px; scroll-margin-top: 68px; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 30px; margin-bottom: 24px; }
.section-heading h2 { margin: 0; font-family: Georgia, "Nanum Myeongjo", serif; font-size: clamp(30px, 4vw, 46px); letter-spacing: -.04em; }
.section-heading > p { margin: 0 0 8px; color: var(--muted); }
.tool-card, .text-tool { padding: 28px; border: 1px solid var(--line); border-radius: 18px; background: white; box-shadow: var(--shadow); }
.featured { padding: 34px; }
.dropzone { display: flex; min-height: 245px; flex-direction: column; justify-content: center; align-items: center; gap: 7px; padding: 24px; border: 2px dashed #a8b6aa; border-radius: 14px; background: #fafcf8; text-align: center; cursor: pointer; transition: .2s ease; }
.dropzone.dragging { border-color: var(--green); background: var(--green-light); }
.dropzone input, .file-button input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.drop-icon { display: grid; place-items: center; width: 46px; height: 46px; margin-bottom: 5px; border-radius: 50%; background: var(--green-light); color: var(--green); font-size: 28px; line-height: 1; }
.dropzone strong { font-size: 19px; }.dropzone small, .file-summary { color: var(--muted); font-size: 13px; }
.file-summary { display: block; margin-top: 10px; overflow-wrap: anywhere; }
.option-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 24px; }
label { display: grid; gap: 7px; color: #354039; font-size: 14px; font-weight: 800; }
input[type="text"], input[type="number"], select, textarea { width: 100%; border: 1px solid var(--line); border-radius: 9px; background: white; color: var(--ink); outline: none; }
input[type="text"], input[type="number"], select { min-height: 45px; padding: 0 12px; }
.account-form input { width: 100%; min-height: 45px; padding: 0 12px; border: 1px solid var(--line); border-radius: 9px; background: white; color: var(--ink); outline: none; }
textarea { min-height: 165px; padding: 14px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(40,90,58,.11); }
.check-row { display: flex; align-items: center; gap: 8px; margin: 18px 0; }.check-row input { width: 18px; height: 18px; accent-color: var(--green); }
.privacy-note { display: flex; gap: 10px; align-items: baseline; margin: 0 0 20px; padding: 12px 14px; border-left: 3px solid var(--gold); background: #faf4e8; color: #5d594e; font-size: 13px; }
.privacy-note strong { color: var(--ink); }
.featured .action-button { width: 100%; }
.status { min-height: 24px; margin: 12px 0 0; color: var(--green); font-size: 13px; font-weight: 700; }
.status.error { color: var(--danger); }
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.compact { display: flex; min-height: 330px; flex-direction: column; align-items: stretch; }
.compact h3 { margin: 0; font-size: 22px; }.compact > p { min-height: 52px; margin: 6px 0 18px; color: var(--muted); font-size: 14px; }
.compact .action-button { width: 100%; margin-top: auto; }
.file-button { display: grid; place-items: center; min-height: 80px; border: 1px dashed #9eaaa0; border-radius: 9px; background: #fafcf8; color: var(--green); cursor: pointer; }
.text-tool { display: grid; grid-template-columns: 1fr 180px 1fr; gap: 16px; }
.text-tool textarea { min-height: 310px; }
.text-actions { display: flex; flex-direction: column; gap: 8px; }
.text-actions button { min-height: 40px; padding: 7px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--cream); color: var(--ink); cursor: pointer; font-size: 13px; font-weight: 750; }
.text-actions button:hover { border-color: var(--green); }
.text-tool .status { grid-column: 1 / -1; }
.qr-card { display: grid; grid-template-columns: 2fr 1fr; gap: 20px; align-items: end; }.qr-card textarea { min-height: 120px; }.qr-card .status { grid-column: 1 / -1; }
footer { padding: 28px; border-top: 1px solid var(--line); color: var(--muted); text-align: center; font-size: 13px; }
footer p { margin: 3px 0; }.credit { color: var(--ink); font-weight: 800; }
.account-dialog { position: fixed; z-index: 51; top: 50%; left: 50%; width: min(92vw, 460px); max-height: 92vh; overflow-y: auto; padding: 0; border: 1px solid var(--line); border-radius: 18px; background: var(--paper); color: var(--ink); box-shadow: 0 28px 90px rgba(0,0,0,.24); transform: translate(-50%, -50%); }
body.modal-open { overflow: hidden; } body.modal-open::after { content: ""; position: fixed; z-index: 50; inset: 0; background: rgba(17,29,21,.52); backdrop-filter: blur(3px); }
.dialog-close-form { position: absolute; top: 12px; right: 12px; }.dialog-close-form button { width: 36px; height: 36px; border: 0; border-radius: 50%; background: var(--cream); color: var(--ink); font-size: 24px; cursor: pointer; }
.account-form { display: grid; gap: 16px; padding: 34px; }.account-form h2 { margin: -8px 0 0; font-family: Georgia, "Nanum Myeongjo", serif; font-size: 36px; }.account-form > p:not(.eyebrow, .status) { margin: -8px 0 4px; color: var(--muted); font-size: 14px; }.account-form small { color: var(--muted); font-weight: 500; }
.table-wrap { overflow-x: auto; } table { width: 100%; border-collapse: collapse; min-width: 760px; } th, td { padding: 12px 10px; border-bottom: 1px solid var(--line); text-align: left; font-size: 13px; } th { color: var(--muted); } td select { min-height: 38px; } .table-action { min-height: 38px; padding: 0 12px; border: 0; border-radius: 7px; background: var(--green); color: white; font-weight: 800; cursor: pointer; }
button[disabled] { opacity: .6; cursor: wait; transform: none; }
@media (max-width: 800px) {
  nav { display: none; }.topbar { padding: 0 20px; }.account-actions { margin-left: auto; }.quiet-button.admin-link { display: none; }.hero { min-height: auto; grid-template-columns: 1fr; padding: 80px 0 30px; }.hero-art { height: 310px; }.hero-art img { width: min(112%, 600px); }
  .section-heading { align-items: start; flex-direction: column; gap: 4px; }.option-grid, .card-grid, .qr-card { grid-template-columns: 1fr; }.text-tool { grid-template-columns: 1fr; }.text-actions { display: grid; grid-template-columns: repeat(2, 1fr); }.privacy-note { align-items: start; flex-direction: column; gap: 2px; }
}
@media (max-width: 520px) { .brand span:last-child { display: none; }.account-actions > span { max-width: 90px; }.account-actions { gap: 5px; }.quiet-button, .login-button { padding-inline: 9px; } }
@media (max-width: 450px) { main { padding-inline: 16px; }.featured, .tool-card, .text-tool { padding: 20px; }.hero-art { height: 240px; }.hero { padding-bottom: 0; } h1 { font-size: 44px; }.text-actions { grid-template-columns: 1fr; }.account-form { padding: 28px 20px 22px; } }
