/* 구그디 날라구 오류·제안 게시판 — 단순한 입력 페이지 */
:root{--ink:#1b2140;--sub:#6b7280;--line:#e3e6ee;--bg:#f5f6f8;--navy:#1d2a5c;--red:#e5484d;--blue:#2f6fe4;--green:#1f9d63;--orange:#e9781f;--gray:#9aa0ad}
*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}
html{-webkit-text-size-adjust:100%}
body{margin:0;background:var(--bg);color:var(--ink);font:400 16px/1.55 -apple-system,BlinkMacSystemFont,'Apple SD Gothic Neo','Noto Sans KR','Malgun Gothic',sans-serif;word-break:keep-all;overflow-wrap:anywhere;padding-bottom:calc(40px + env(safe-area-inset-bottom))}
button,input,select,textarea{font:inherit;color:inherit}
button{cursor:pointer;border:0;background:none;padding:0}
a{color:inherit;text-decoration:none}
.wrap{max-width:600px;margin:0 auto;padding:0 16px}

.top{position:sticky;top:0;z-index:20;background:#fff;border-bottom:1px solid var(--line);padding-top:env(safe-area-inset-top)}
.top .wrap{display:flex;align-items:center;gap:10px;height:52px}
.top .ttl{font-weight:700;font-size:17px}
.top .me{margin-left:auto;font-size:14px;color:var(--sub);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:45%}

.card{background:#fff;border:1px solid var(--line);border-radius:14px;padding:16px;margin:14px 0}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:6px;height:48px;padding:0 18px;border-radius:10px;background:var(--navy);color:#fff;font-weight:700;font-size:16px;white-space:nowrap}
.btn.w{background:#fff;color:var(--ink);border:1px solid var(--line)}
.btn.full{width:100%}
.btn.sm{height:38px;font-size:14px;padding:0 12px;border-radius:9px}
.btn[disabled]{opacity:.45;pointer-events:none}
.btn svg{width:18px;height:18px;flex:none}
.btn.on{background:#eef2ff;border-color:var(--navy);color:var(--navy)}

.tabs{display:flex;gap:18px;border-bottom:1px solid var(--line);margin:14px 0 0;overflow-x:auto;scrollbar-width:none}
.tabs::-webkit-scrollbar{display:none}
.tab{flex:none;height:42px;font-size:15px;color:var(--sub);border-bottom:2px solid transparent;margin-bottom:-1px}
.tab.on{color:var(--ink);font-weight:700;border-bottom-color:var(--ink)}

.list{background:#fff;border:1px solid var(--line);border-radius:14px;margin-top:12px;overflow:hidden}
.item{display:flex;gap:12px;align-items:center;padding:13px 14px;border-top:1px solid var(--line)}
.item:first-child{border-top:0}
.item:active{background:#f7f8fb}
.item .c{flex:1;min-width:0}
.item .t{font-weight:600;font-size:16px;line-height:1.4;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.item .th{width:56px;height:56px;flex:none;border-radius:8px;object-fit:cover;background:#eee}
.meta{font-size:13px;color:var(--sub);margin-top:3px;display:flex;gap:8px;flex-wrap:wrap}
.row{display:flex;align-items:center;gap:6px;flex-wrap:wrap}
.no{font-size:13px;color:var(--sub)}
.empty{text-align:center;color:var(--sub);padding:40px 10px;white-space:pre-line}

.kb{font-size:13px;font-weight:700}
.kb.bug{color:var(--red)}.kb.idea{color:var(--blue)}
.st{font-size:13px;color:var(--sub)}
.st.check,.st.fix{color:var(--blue)}.st.need{color:var(--orange)}.st.done{color:var(--green);font-weight:700}

.f{margin-top:18px}
.f>label,.lab{display:block;font-size:14px;font-weight:700;margin:0 0 6px}
.seg{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.seg button{height:46px;border:1px solid var(--line);border-radius:10px;background:#fff;font-weight:600}
.seg button.on{background:var(--navy);border-color:var(--navy);color:#fff}
.two{display:grid;grid-template-columns:1fr 1fr;gap:8px}
input[type=text],select,textarea{width:100%;border:1px solid #d5d9e3;border-radius:10px;background:#fff;padding:11px 12px;font-size:16px;outline:none;-webkit-appearance:none;appearance:none}
select{height:46px;padding-right:32px;background:#fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%236b7280' stroke-width='2'/%3E%3C/svg%3E") no-repeat right 12px center}
select.empty-v{color:#9aa0ad}
textarea{min-height:150px;resize:vertical}
textarea.sm{min-height:80px}
input:focus,select:focus,textarea:focus{border-color:var(--navy)}
::placeholder{color:#9aa0ad}
.note1{font-size:14px;color:var(--sub);margin:4px 0 0}
.ok{font-size:13px;color:var(--green);margin-top:5px}.bad{font-size:13px;color:var(--red);margin-top:5px}.hint{font-size:13px;color:var(--sub);margin-top:5px}
.nickok{font-weight:600}
.nickok small{color:var(--green);font-weight:400;margin-left:6px;font-size:13px}
.pics{display:flex;gap:8px;flex-wrap:wrap}
.pic{position:relative;width:72px;height:72px;border-radius:8px;overflow:hidden;background:#eee}
.pic img{width:100%;height:100%;object-fit:cover;display:block}
.pic .x{position:absolute;top:3px;right:3px;width:22px;height:22px;border-radius:50%;background:rgba(0,0,0,.6);color:#fff;display:flex;align-items:center;justify-content:center}
.pic .x svg{width:11px;height:11px}
.pic.add{display:flex;align-items:center;justify-content:center;background:#fff;border:1px dashed #c3c8d4;color:var(--sub)}
.pic.add svg{width:24px;height:24px}
.pic.busy{background:#eef0f4}
.prog{height:4px;border-radius:9px;background:var(--line);overflow:hidden;margin:14px 0 0;display:none}
.prog i{display:block;height:100%;width:0;background:var(--navy);transition:width .2s}

.back{display:inline-flex;align-items:center;gap:4px;font-size:15px;color:var(--sub);height:40px;margin-top:6px}
.back svg{width:16px;height:16px}
.dt h2{font-size:20px;line-height:1.4;margin:6px 0 4px}
.sec{margin-top:14px}
.sec h3{font-size:13px;color:var(--sub);font-weight:600;margin:0 0 3px}
.sec .v{white-space:pre-wrap}
.gal{display:flex;flex-direction:column;gap:8px;margin-top:14px}
.gal img{width:100%;height:auto;border-radius:10px;display:block;background:#eee}
.flag{margin-top:10px;font-size:14px;font-weight:600}
.flag.done{color:var(--green)}.flag.need{color:var(--orange)}
.acts{display:flex;gap:8px;margin-top:14px}
.notes{margin-top:6px}
.note{padding:10px 0;border-top:1px solid var(--line)}
.note:first-child{border-top:0}
.note .h{display:flex;gap:6px;align-items:center;font-size:13px;font-weight:700}
.note .h .tm{font-weight:400;color:var(--sub)}
.note .h .del{margin-left:auto;font-size:12px;color:var(--sub)}
.note .b{white-space:pre-wrap;font-size:15px;margin-top:2px}
.note.dev .h{color:var(--blue)}

#toast{position:fixed;left:50%;bottom:calc(30px + env(safe-area-inset-bottom));transform:translateX(-50%);background:rgba(27,33,64,.94);color:#fff;font-size:14px;padding:10px 16px;border-radius:10px;opacity:0;pointer-events:none;transition:opacity .2s;z-index:50;max-width:90vw;text-align:center}
#toast.on{opacity:1}
.lb{position:fixed;inset:0;z-index:60;background:rgba(0,0,0,.9);display:flex;flex-direction:column}
.lb .bar{display:flex;justify-content:space-between;align-items:center;padding:calc(8px + env(safe-area-inset-top)) 12px 8px}
.lb .bar a{font-size:14px;color:#fff;text-decoration:underline}
.lb .bar button{width:40px;height:40px;border-radius:50%;background:#fff;color:#000;display:flex;align-items:center;justify-content:center}
.lb .bar svg{width:16px;height:16px}
.lb .im{flex:1;overflow:auto;display:flex;align-items:center;justify-content:center}
.lb img{max-width:100%;max-height:100%;object-fit:contain}
.more{margin:12px auto 0;display:flex}
.load{display:flex;justify-content:center;padding:30px}
.load::after{content:'';width:24px;height:24px;border-radius:50%;border:3px solid var(--line);border-top-color:var(--navy);animation:sp .7s linear infinite}
@keyframes sp{to{transform:rotate(360deg)}}
