/* 운명담음 작업실 화면 */
@font-face { font-family: 'NanumGothic'; font-weight: 400; src: url('../fonts/NanumGothic-Regular.woff2') format('woff2'); }
@font-face { font-family: 'NanumGothic'; font-weight: 700; src: url('../fonts/NanumGothic-Bold.woff2') format('woff2'); }
@font-face { font-family: 'NanumGothic'; font-weight: 800 900; src: url('../fonts/NanumGothic-ExtraBold.woff2') format('woff2'); }
:root {
  --bg: #F3EFE7; --card: #FFFDF8; --ink: #26211D; --soft: #5E5446; --mute: #8A7F70; --line: #E2D8C6;
  --gold: #9A7536; --gold-t: rgba(154,117,54,.10); --rose: #A5392E; --green: #3F6B4A; --blue: #34506E; --amber: #A9853F;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { background: var(--bg); }
body { margin: 0; color: var(--ink); font-family: 'NanumGothic', 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif; font-size: 15px; line-height: 1.65; word-break: keep-all; }
main { max-width: 1200px; margin: 0 auto; padding: 18px 20px 80px; }
h1 { font-size: 22px; margin: 0; } h2 { font-size: 20px; margin: 0 0 4px; } h3 { font-size: 16px; margin: 0 0 10px; } h4 { font-size: 15px; margin: 14px 0 6px; }
h2 small, h3 small, h4 small { font-weight: 400; font-size: 13px; color: var(--mute); margin-left: 6px; }
a { color: var(--gold); }
.muted { color: var(--mute); } .small { font-size: 13px; } .mono { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 13px; }
.ok { color: var(--green); font-weight: 700; } .bad { color: var(--rose); } .warn { color: #8A5A12; }
.grow { flex: 1; }
#top { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 16px; padding: 10px 20px; background: #24201C; color: #EFE6D4; }
.brand { display: flex; align-items: center; gap: 8px; font-size: 16px; } .brand .muted { color: #B7A98F; }
.seal { display: inline-flex; width: 26px; height: 26px; align-items: center; justify-content: center; background: var(--rose); color: #F6EDDA; border-radius: 3px; font-weight: 900; transform: rotate(-4deg); }
#nav { display: flex; gap: 6px; margin-left: auto; }
#nav button { background: transparent; color: #E5DAC5; border: 1px solid transparent; }
#nav button.on { border-color: #8D7347; color: #fff; }
.keywarn { display: block; width: 100%; border: 0; border-radius: 0; background: #F6E3C1; color: #6C4A10; padding: 8px; cursor: pointer; font-weight: 700; }
.head { display: flex; align-items: center; gap: 10px; margin: 6px 0 14px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 18px 20px; margin-bottom: 14px; }
.step { display: inline-flex; width: 22px; height: 22px; border-radius: 50%; background: var(--gold); color: #fff; font-size: 13px; align-items: center; justify-content: center; margin-right: 6px; }
button, .filebtn { font: inherit; font-size: 14px; padding: 8px 14px; border-radius: 7px; border: 1px solid #CBBFA9; background: #fff; color: var(--ink); cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
button:hover, .filebtn:hover { border-color: var(--gold); }
button.primary { background: var(--ink); color: #F6EDDA; border-color: var(--ink); font-weight: 700; }
button.primary:hover { background: #000; }
button.ghost { background: transparent; } button.danger { color: var(--rose); border-color: #E0B8B2; }
button:disabled { opacity: .55; cursor: default; }
input, select, textarea { font: inherit; font-size: 14px; padding: 8px 10px; border: 1px solid #D3C7B1; border-radius: 7px; background: #fff; color: var(--ink); width: 100%; }
input:focus, select:focus, textarea:focus { outline: 2px solid rgba(154,117,54,.35); border-color: var(--gold); }
textarea { resize: vertical; line-height: 1.6; }
label { display: block; font-size: 13px; color: var(--soft); }
label > input, label > select, label > textarea { margin-top: 4px; }
.field > span { display: block; font-size: 13px; color: var(--soft); margin-bottom: 4px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px 16px; margin-bottom: 12px; }
.grid .wide { grid-column: span 2; }
.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 8px; }
.row.tight { margin-top: 0; flex-wrap: nowrap; } .row input { flex: 1; } .row .lng { flex: 0 0 110px; }
.radios { display: flex; gap: 14px; padding: 8px 0; } .radios label { display: flex; align-items: center; gap: 5px; font-size: 14px; color: var(--ink); }
.radios input, .chk input { width: auto; margin: 0; }
.radios.big { gap: 20px; } .chk { display: flex; align-items: center; gap: 6px; font-size: 14px; color: var(--ink); margin: 10px 0; white-space: nowrap; }
.ymd { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 6px; }
.notes { margin: 10px 0 0; padding-left: 18px; font-size: 13px; color: #8A5A12; }
.login { max-width: 420px; margin: 12vh auto; } .login label { margin: 12px 0; } .login button { margin-top: 4px; }
table.list { width: 100%; border-collapse: collapse; font-size: 14px; }
table.list th { text-align: left; font-size: 12px; color: var(--mute); font-weight: 700; padding: 6px 8px; border-bottom: 1px solid var(--line); white-space: nowrap; }
table.list td { padding: 9px 8px; border-bottom: 1px solid #EFE7D8; white-space: nowrap; }
table.list tr[data-id] { cursor: pointer; } table.list tr[data-id]:hover td { background: var(--gold-t); }
.chip { display: inline-block; padding: 1px 9px; border-radius: 20px; font-size: 12px; font-weight: 700; color: #fff; }
.chip.grey { background: #9A9083; } .chip.blue { background: var(--blue); } .chip.amber { background: var(--amber); } .chip.green { background: var(--green); } .chip.ink { background: var(--ink); } .chip.red { background: var(--rose); }
.empty { text-align: center; padding: 30px; }
iframe.manse { width: 100%; border: 1px solid var(--line); border-radius: 8px; height: 520px; margin: 8px 0 12px; background: #F2ECDF; }
.ysfive { display: flex; gap: 6px; flex-wrap: wrap; } .ys { padding: 4px 10px; border-radius: 6px; background: #F1ECE3; font-size: 13px; } .ys.good { background: #DDE8DC; color: #2F4F37; } .ys small { color: var(--mute); }
#ys-form label { margin-bottom: 10px; } #ys-form .row label { margin: 0; min-width: 140px; }
.ohead { display: flex; gap: 16px; align-items: flex-start; flex-wrap: wrap; margin-bottom: 12px; } .ohead > div:first-child { flex: 1; } .oacts { display: flex; gap: 8px; align-items: center; }
.oacts select { width: auto; }
.back { text-decoration: none; font-size: 14px; }
.wait h3 { margin-bottom: 6px; } .bar { height: 10px; background: #EEE6D6; border-radius: 6px; overflow: hidden; margin: 12px 0 6px; } .bar span { display: block; height: 100%; background: var(--gold); transition: width .4s; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 12px; }
.tabs button { border: 0; border-bottom: 3px solid transparent; border-radius: 0; background: transparent; padding: 10px 14px; }
.tabs button.on { border-bottom-color: var(--gold); font-weight: 700; }
.pvbar, .edbar { display: flex; gap: 10px; align-items: center; margin-bottom: 8px; flex-wrap: wrap; } .edbar select { width: auto; min-width: 160px; }
iframe.pv { width: 100%; height: 78vh; border: 1px solid var(--line); border-radius: 8px; background: #D9D2C4; }
.edgrid { display: grid; grid-template-columns: 1fr 340px; gap: 12px; } .edgrid textarea { min-height: 70vh; font-size: 14px; line-height: 1.75; }
.edgrid .card { margin: 0; max-height: 70vh; overflow: auto; }
.pagelens { display: flex; flex-wrap: wrap; gap: 5px; margin: 4px 0 8px; } .pl { font-size: 12px; padding: 2px 7px; border-radius: 5px; background: #EEF3EC; color: #2F4F37; } .pl small { color: var(--mute); } .pl.bad { background: #F7E1DD; color: var(--rose); font-weight: 700; }
.probs { margin: 4px 0 10px; padding-left: 18px; font-size: 13px; } .probs li { margin: 2px 0; }
.log { list-style: none; padding: 0; margin: 0; font-size: 13px; color: var(--soft); } .log li { padding: 3px 0; border-bottom: 1px dashed #EEE5D5; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(20px); background: #26211D; color: #F6EDDA; padding: 10px 18px; border-radius: 8px; opacity: 0; pointer-events: none; transition: all .25s; max-width: 90vw; font-size: 14px; z-index: 50; }
.toast.show { opacity: 1; transform: translateX(-50%); } .toast.bad { background: var(--rose); }
@media (max-width: 760px) { .grid .wide { grid-column: auto; } .edgrid { grid-template-columns: 1fr; } #nav button { padding: 6px 8px; } main { padding: 12px; } }
