/* AIMarker 자동 마킹 6.0 (2026.10) · mark.css 위에 얹음 */
.au { background: #fff; border-radius: 24px; box-shadow: var(--sh-3); border: 1px solid var(--line); padding: 18px 22px 24px; }
.au [hidden] { display: none !important; }
.au-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.au-top .mk-tabs { margin-bottom: 0; }

/* 단계 줄: 다섯 단계가 차례로 채워짐 */
.au-rail { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 0; counter-reset: none; }
.au-rail li { display: flex; align-items: center; gap: 7px; font-size: 13.5px; font-weight: 750; color: var(--faint); white-space: nowrap; }
.au-rail li + li::before { content: ""; width: 26px; height: 2px; border-radius: 2px; background: var(--line); margin: 0 10px; transition: background .4s var(--ease); }
.au-rail i { font-style: normal; width: 24px; height: 24px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 850; background: var(--soft-2); color: var(--mute); transition: background .3s, color .3s, box-shadow .3s; }
.au-rail li.is-on { color: var(--ink); }
.au-rail li.is-on i { background: var(--blue); color: #fff; box-shadow: 0 0 0 4px var(--blue-50); }
.au-rail li.is-done { color: var(--mk-d); }
.au-rail li.is-done i { background: var(--mk); color: #06231E; }
.au-rail li.is-done + li::before, .au-rail li.is-done + li.is-on::before { background: var(--mk); }

/* 두 칸: 작업 줄 · 설정 */
.au-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 22px; align-items: start; }
.au-main { min-width: 0; display: grid; gap: 14px; align-content: start; }
.au-drop { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; min-height: 300px; border: 2px dashed var(--line-2); border-radius: 18px; background: var(--soft); text-align: center; padding: 28px; cursor: pointer; transition: border-color .15s, background .15s, min-height .3s var(--ease); }
.au-drop:hover, .au-drop.over { border-color: var(--blue); background: var(--blue-50); }
.au-drop b { font-size: 18px; }
.au-drop > span:last-child { color: var(--mute); font-size: 13.5px; max-width: 560px; }
.au-drop-ic { width: 54px; height: 54px; border-radius: 16px; background: #fff; color: var(--blue); display: flex; align-items: center; justify-content: center; box-shadow: var(--sh-1); }
.au-drop-ic .ico { width: 25px; height: 25px; }
.au-drop.is-compact { min-height: 0; flex-direction: row; justify-content: flex-start; text-align: left; padding: 12px 16px; gap: 12px; }
.au-drop.is-compact .au-drop-ic { width: 40px; height: 40px; border-radius: 12px; flex: 0 0 auto; }
.au-drop.is-compact b { font-size: 15px; }
.au-drop.is-compact > span:last-child { display: none; }
.au-toast { margin: 0; padding: 10px 14px; border-radius: 12px; background: var(--amber-50); color: #7A4A00; font-size: 14px; }

/* 한 번 묻기 */
.au-ask { border-radius: 18px; padding: 18px; background: linear-gradient(180deg, #FFF8EA, #FFFDF8); border: 1px solid #F3DDAE; display: grid; gap: 14px; }
.au-ask-h > b { display: block; font-size: 18px; font-weight: 850; letter-spacing: -.02em; }
.au-ask-h > span { display: block; color: #6B5A3A; font-size: 14px; margin-top: 4px; }
.au-ans { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.au-ans button { display: grid; gap: 2px; text-align: left; padding: 12px 14px; border-radius: 12px; border: 1px solid #EBD3A0; background: #fff; cursor: pointer; transition: border-color .15s, box-shadow .15s, background .15s; }
.au-ans button > b { font-size: 14.5px; font-weight: 800; line-height: 1.35; }
.au-ans button > small { color: var(--mute); font-size: 12.5px; font-weight: 650; }
.au-ans button:hover { border-color: var(--amber); }
.au-ans button.on { border-color: var(--navy); background: var(--navy); color: #fff; box-shadow: var(--sh-2); }
.au-ans button.on small { color: #C3CFEE; }
.au-why summary { cursor: pointer; font-size: 13.5px; font-weight: 750; color: #7A4A00; }
.au-why p { margin-top: 8px; font-size: 14px; color: #5D4C2C; }

/* 다 박음 */
.au-done { border-radius: 18px; padding: 18px; background: linear-gradient(135deg, #0A1F52, #16399A); color: #fff; display: grid; gap: 14px; }
.au-done-h { display: flex; gap: 12px; align-items: flex-start; }
.au-done-h > .ico { width: 30px; height: 30px; color: var(--mk); margin-top: 2px; }
.au-done-h > div > b { display: block; font-size: 20px; font-weight: 850; letter-spacing: -.02em; }
.au-done-h > div > span { display: block; color: #C3CFEE; font-size: 14px; margin-top: 2px; }
.au-done-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.au-done .btn-p { background: var(--mk); color: #06231E; box-shadow: none; }
.au-done .btn-p:hover { background: #5BE3CC; }
.au-done .btn-g { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .35); }
.au-three { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.au-three li { padding: 10px 12px; border-radius: 12px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .1); display: grid; gap: 2px; }
.au-three li > b { font-size: 13px; color: var(--mk); }
.au-three li > span { font-size: 13px; color: #DCE4F7; line-height: 1.5; }
.au-done .note { color: #9FB0D6; }

/* 파일 줄 */
.au-list { display: grid; gap: 8px; }
.au-list:empty { display: none; }
.au-row { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto auto 28px; gap: 12px; align-items: center; padding: 10px 10px 10px 12px; border: 1px solid var(--line); border-radius: 14px; background: #fff; transition: border-color .2s, background .2s; }
.au-row.is-need, .au-row.is-confirm, .au-row.is-conflict { border-color: #F0D199; background: #FFFCF4; }
.au-row.is-err { border-color: #F2C4C6; background: #FFF8F8; }
.au-row.is-done { border-color: #BDEBDF; }
.au-th { width: 52px; height: 52px; border-radius: 11px; overflow: hidden; background: var(--soft-2); display: flex; align-items: center; justify-content: center; position: relative; }
.au-th img { width: 100%; height: 100%; object-fit: cover; }
.au-row.is-stamped .au-th { box-shadow: 0 0 0 2px var(--mk); }
.au-th-ic { font-size: 11px; font-weight: 850; color: var(--mute); letter-spacing: .02em; }
.au-fn { min-width: 0; display: grid; gap: 1px; }
.au-fn > b { font-size: 14.5px; font-weight: 750; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.au-fn > span { font-size: 12.5px; color: var(--faint); }
.au-fn > small { font-size: 13px; color: var(--ink-2); line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.au-row.is-err .au-fn > small { color: var(--red); }
.au-lab { display: flex; align-items: center; justify-content: flex-end; min-width: 0; }
.au-lab .mkb { font-size: 12.5px; }
.au-sel { display: inline-flex; align-items: center; gap: 7px; padding: 3px 4px 3px 9px; border-radius: 10px; border: 1px solid var(--line-2); background: #fff; }
.au-sel.is-need { border-color: var(--amber); box-shadow: 0 0 0 3px var(--amber-50); }
.au-sel select { border: 0; background: transparent; font-weight: 750; font-size: 13.5px; padding: 5px 4px; max-width: 168px; cursor: pointer; }
.au-sel select:focus-visible { outline: 2px solid var(--blue); outline-offset: 1px; border-radius: 6px; }
.au-lb { font-size: 13px; font-weight: 750; color: var(--mute); }
.au-st { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 800; padding: 4px 9px; border-radius: 999px; white-space: nowrap; background: var(--soft-2); color: var(--mute); }
.au-st.is-go { background: var(--blue-50); color: var(--blue); }
.au-st.is-ok { background: var(--mint-50); color: var(--mk-d); }
.au-st.is-ask { background: var(--amber-50); color: #8A5300; }
.au-st.is-err { background: #FDEDEE; color: var(--red); }
.au-spin { width: 11px; height: 11px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: auspin .8s linear infinite; }
@keyframes auspin { to { transform: rotate(360deg); } }
.au-x { width: 28px; height: 28px; border: 0; border-radius: 8px; background: transparent; color: var(--faint); font-size: 20px; line-height: 1; cursor: pointer; }
.au-x:hover:not(:disabled) { background: var(--soft-2); color: var(--ink); }
.au-x:disabled { opacity: .35; cursor: default; }
.au-act { grid-column: 2 / -1; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.au-got span { font-size: 12.5px; color: var(--mk-d); font-weight: 700; margin-right: auto; }

/* 설정 */
.au-side { position: sticky; top: 88px; display: grid; gap: 14px; padding: 16px; border-radius: 18px; background: var(--soft); border: 1px solid var(--line); }
.au-pv { display: grid; gap: 6px; }
.au-pv canvas { width: 100%; border-radius: 12px; background: #fff; box-shadow: var(--sh-1); }
.au-pv span { font-size: 12px; color: var(--faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.au-f { margin: 0; padding: 0; border: 0; display: grid; gap: 8px; min-width: 0; }
.au-f legend { padding: 0; margin-bottom: 8px; font-size: 13px; font-weight: 850; color: var(--ink-2); }
.au-row2 { display: flex; gap: 8px; align-items: stretch; }
.au-seg { display: inline-flex; gap: 3px; padding: 3px; border-radius: 10px; background: #fff; border: 1px solid var(--line); }
.au-seg label { position: relative; display: inline-flex; }
.au-seg input { position: absolute; opacity: 0; pointer-events: none; }
.au-seg span { display: inline-flex; align-items: center; justify-content: center; padding: 6px 10px; border-radius: 7px; font-size: 13px; font-weight: 750; color: var(--mute); cursor: pointer; white-space: nowrap; }
.au-seg input:checked + span { background: var(--navy); color: #fff; }
.au-seg input:focus-visible + span, .au-seg input:focus-visible + i { outline: 2px solid var(--blue); outline-offset: 1px; }
.au-pos { display: grid; grid-template-columns: repeat(2, 30px); grid-template-rows: repeat(2, 24px); gap: 3px; }
.au-pos i { width: 30px; height: 24px; border-radius: 6px; display: block; cursor: pointer; position: relative; background: var(--soft-2); }
.au-pos i::after { content: ""; position: absolute; width: 11px; height: 6px; border-radius: 2px; background: var(--faint); }
.au-pos .c-tl::after { left: 4px; top: 4px; } .au-pos .c-tr::after { right: 4px; top: 4px; } .au-pos .c-bl::after { left: 4px; bottom: 4px; } .au-pos .c-br::after { right: 4px; bottom: 4px; }
.au-pos input:checked + i { background: var(--navy); }
.au-pos input:checked + i::after { background: var(--mk); }
.au-size { flex: 1; }
.au-size label { flex: 1; }
.au-size span { width: 100%; }
.au-note3 { width: 100%; }
.au-note3 label { flex: 1; }
.au-note3 span { width: 100%; }
.au-sw, .au-ck, .au-agree { display: flex; gap: 9px; align-items: flex-start; font-size: 14px; cursor: pointer; }
.au-sw input, .au-ck input, .au-agree input { width: 17px; height: 17px; margin: 2px 0 0; flex: 0 0 auto; accent-color: var(--navy); }
.au-ck span, .au-sw span { display: grid; font-weight: 700; }
.au-ck small { font-weight: 600; color: var(--faint); font-size: 12.5px; }
.au-small { font-size: 12.5px; color: var(--faint); }
.au-in { display: grid; gap: 5px; }
.au-in > span { font-size: 13px; font-weight: 800; color: var(--ink-2); display: grid; }
.au-in small { font-weight: 600; color: var(--faint); font-size: 12px; }
.au-in input { height: 40px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line-2); background: #fff; font-size: 14px; width: 100%; }
.au-in input:focus { outline: 2px solid var(--blue); outline-offset: 0; border-color: transparent; }
.au-more { display: grid; gap: 10px; }
.au-more summary { cursor: pointer; font-size: 13.5px; font-weight: 800; color: var(--blue); }
.au-more[open] summary { margin-bottom: 10px; }
.au-more .au-in + .au-in { margin-top: 10px; }
.au-agree { padding: 12px; border-radius: 12px; background: #fff; border: 1px solid var(--line); font-size: 13px; color: var(--ink-2); line-height: 1.5; transition: box-shadow .3s; }
.au-agree.flash { box-shadow: 0 0 0 3px var(--amber); }
.au-go { width: 100%; }
.au-hint { font-size: 13px; color: var(--mute); text-align: center; margin-top: -4px; }

/* 아래 고정 띠(작은 화면) */
.au-bar { display: none; }

/* 광고 · 글 */
.au-tx { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 22px; align-items: start; }
.au-tx-l { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; margin-bottom: 8px; }
.au-tx-l b { font-size: 15px; }
.au-tx-l span { font-size: 13px; color: var(--faint); }
.au-tx textarea { width: 100%; min-height: 260px; resize: vertical; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line-2); background: var(--soft); font-size: 15px; line-height: 1.7; }
.au-tx textarea:focus { outline: 2px solid var(--blue); outline-offset: 0; background: #fff; border-color: transparent; }
.au-count { font-size: 12.5px; color: var(--faint); margin-top: 6px; }
.au-tx-opt { display: grid; gap: 10px; padding: 16px; border-radius: 18px; background: var(--soft); border: 1px solid var(--line); }
.au-q { font-size: 13.5px; font-weight: 850; color: var(--ink-2); }
.au-ans4 { display: grid; grid-template-columns: 1fr 1fr; }
.au-ans4 span { width: 100%; padding: 8px 6px; }
.au-tgo { width: 100%; margin-top: 4px; }
.au-tx-out { margin-top: 18px; }
.au-tx-res { border: 1px solid var(--line); border-radius: 18px; padding: 18px; display: grid; gap: 12px; }
.au-tx-h { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.au-tx-h > div > b { display: block; font-size: 18px; font-weight: 850; }
.au-tx-h > div > span { display: block; font-size: 13.5px; color: var(--mute); }
.au-final { margin: 0; padding: 16px; border-radius: 14px; background: var(--soft); border: 1px solid var(--line); white-space: pre-wrap; word-break: keep-all; overflow-wrap: anywhere; font: 500 15px/1.75 var(--font); color: var(--ink); max-height: 460px; overflow: auto; }
.au-tx-res h4 { font-size: 14.5px; font-weight: 850; margin-top: 4px; }
.au-chg, .au-left { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.au-chg li { font-size: 14px; padding: 8px 12px; border-radius: 10px; background: var(--mint-50); }
.au-chg s { color: var(--red); text-decoration-thickness: 1.5px; }
.au-chg em { font-style: normal; font-weight: 750; color: var(--mk-d); }
.au-chg em.del { color: var(--mute); }
.au-left li { display: grid; gap: 2px; font-size: 14px; padding: 9px 12px; border-radius: 10px; background: var(--amber-50); }
.au-left small { color: var(--mute); }
.au-tx-err { border-radius: 16px; padding: 16px; background: #FFF8F8; border: 1px solid #F2C4C6; display: grid; gap: 8px; }
.au-tx-err.is-ask { background: #FFFCF4; border-color: #F0D199; }

/* 3중 마크 */
.au-tri { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 44px; }
.au-tri article { border: 1px solid var(--line); border-radius: 20px; padding: 18px 18px 22px; display: grid; gap: 10px; align-content: start; background: #fff; }
.au-tri h3 { font-size: 21px; font-weight: 850; margin-top: 6px; }
.au-tri p { font-size: 15px; color: var(--ink-2); }
.au-tri-v { height: 150px; border-radius: 14px; display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; padding: 14px; overflow: hidden; }
.au-tri-v.v1 { background: radial-gradient(120px 80px at 70% 30%, rgba(255, 255, 255, .55), transparent 70%), linear-gradient(135deg, #9DB8F5, #7FD8C8); align-items: flex-start; }
.au-tri-v.v1 .mkb { font-size: 13px; }
.au-tri-v.v2, .au-tri-v.v3 { background: #0B1430; justify-content: center; }
.au-tri-v code { font: 600 12px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; color: #8FA2D1; display: flex; justify-content: space-between; gap: 8px; white-space: nowrap; overflow: hidden; }
.au-tri-v code em { font-style: normal; color: #7FF0DA; overflow: hidden; text-overflow: ellipsis; }

/* 광고 */
.au-ad { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.au-ad .lead { max-width: none; }
.au-ad-v { border-radius: 20px; padding: 22px; background: #fff; border: 1px solid var(--line); box-shadow: var(--sh-2); display: grid; gap: 12px; font-size: 15px; }
.au-ad-v s { color: var(--red); }
.au-ad-v em { font-style: normal; color: var(--mk-d); font-weight: 700; }
.au-ad-v b { display: inline-block; padding: 1px 8px; border-radius: 6px; border: 1.5px solid var(--navy); color: var(--navy); font-weight: 850; }
.au-ad-line { font-size: 13.5px; color: var(--mute); padding-top: 10px; border-top: 1px dashed var(--line-2); }

@media (max-width: 340px) { .au-ans { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .au-spin { animation: none; } .au-rail li + li::before, .au-rail i, .au-drop { transition: none; } }
@media (max-width: 1080px) {
  .au-grid { grid-template-columns: minmax(0, 1fr) 300px; }
  .au-ans { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 960px) {
  .au-grid, .au-tx { grid-template-columns: 1fr; }
  .au-side { position: static; }
  .au-tri { grid-template-columns: 1fr; }
  .au-ad { grid-template-columns: 1fr; gap: 28px; }
  .au-bar:not([hidden]) { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; align-items: center; gap: 10px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, .96); border-top: 1px solid var(--line); box-shadow: 0 -8px 24px rgba(14, 42, 107, .08); backdrop-filter: blur(8px); }
  .au-bar span { flex: 1; min-width: 0; font-size: 12.5px; color: var(--mute); line-height: 1.4; }
  .au-bar .btn { flex: 0 0 auto; }
}
@media (max-width: 720px) {
  .au { padding: 14px 14px 18px; border-radius: 20px; }
  .au-top { gap: 12px; }
  .au-rail { width: 100%; justify-content: space-between; }
  .au-rail li { flex-direction: column; gap: 4px; font-size: 11.5px; }
  .au-rail li + li::before { display: none; }
  .au-drop { min-height: 200px; padding: 20px 14px; }
  .au-ans { grid-template-columns: 1fr 1fr; }
  .au-ans button { padding: 10px 12px; }
  .au-three { grid-template-columns: 1fr; }
  .au-row { grid-template-columns: 44px minmax(0, 1fr) 28px; grid-template-areas: "th fn x" "lab lab lab" "st st st"; gap: 8px 10px; }
  .au-th { grid-area: th; width: 44px; height: 44px; }
  .au-fn { grid-area: fn; }
  .au-lab { grid-area: lab; justify-content: flex-start; }
  .au-st { grid-area: st; justify-self: start; }
  .au-x { grid-area: x; align-self: start; }
  .au-act { grid-column: 1 / -1; }
  .au-sel select { max-width: none; }
}
