/* 빛모음 사진 자료실: 사진 아카이브 홈페이지 시연 (archive)
   인상: 사진 편집실의 밀착 인화지와 라이트박스. 움직임은 붉은 색연필 동그라미 하나만 쓴다. */

.ar {
  --bg: #DCDCD8;
  --surface: #F7F7F5;
  --surface-2: #ECECE8;
  --text: #161616;
  --muted: #5C5C58;
  --line: #B9B9B4;
  --line-soft: #D2D2CD;
  --primary: #006F8E;
  --primary-press: #005A73;
  --primary-soft: #DDEBEF;
  --accent: #D4372C;
  --ok: #2E7D4F;
  --ok-soft: #E3F0E7;
  --warn: #B26A00;
  --warn-ink: #8A5200;
  --warn-soft: #F6EBD9;
  --danger: #B3261E;
  --display: "Orbit", "Pretendard Variable", Pretendard, sans-serif;
  --mono: "Courier Prime", "Pretendard Variable", ui-monospace, monospace;
  --font: "Pretendard Variable", Pretendard, "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
  --r: 2px;
  --max: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
.ar {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  word-break: keep-all;
  overflow-wrap: anywhere;
}
:where(.ar) :where(p, h1, h2, h3, h4, ol, ul, dl, dd, figure, fieldset) { margin: 0; }
:where(.ar) :where(ol, ul) { padding: 0; list-style: none; }
:where(.ar) :where(button, input, select, textarea) { font: inherit; color: inherit; }
.ar [hidden] { display: none !important; }
.ar :focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; }
.ar a { color: var(--primary); }
.ar mark { background: #F3D9A4; color: inherit; padding: 0 1px; border-radius: 1px; }
.ar-num { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.ar-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ar-eyebrow { font-size: 13px; color: var(--muted); }
.ar-h1 { font-family: var(--display); font-weight: 400; font-size: 32px; line-height: 1.2; letter-spacing: -.01em; word-spacing: -.22em; }
.ar-h2 { font-family: var(--display); font-weight: 400; font-size: 24px; line-height: 1.25; word-spacing: -.2em; }
.ar-brand__name, .ar-dialog__title, .ar-detail__title, .ar-foot__name, .ar-done__ok { word-spacing: -.2em; }
.ar-formula__pick { word-spacing: normal; }
.ar-h3 { font-family: var(--display); font-weight: 400; font-size: 18px; margin-top: 20px; }

/* ---------- 버튼 ---------- */
.ar-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 44px; padding: 0 18px; border-radius: var(--r);
  border: 1px solid var(--line); background: var(--surface);
  font-size: 15px; font-weight: 600; text-decoration: none; color: var(--text) !important;
  cursor: pointer; white-space: nowrap;
}
.ar-btn:hover { background: var(--surface-2); }
.ar-btn--primary { background: var(--primary); border-color: var(--primary); color: #fff !important; }
.ar-btn--primary:hover { background: var(--primary-press); }
.ar-btn--ghost { background: transparent; }
.ar-btn--sm { min-height: 40px; padding: 0 14px; font-size: 13px; }
.ar-btn--block { width: 100%; }
.ar-icon-btn {
  width: 44px; height: 44px; flex: none; border-radius: var(--r); border: 1px solid var(--line);
  background: var(--surface); display: inline-grid; place-items: center; cursor: pointer;
}

/* ---------- 안내 띠·머리말 ---------- */
.ar-band {
  height: 28px; line-height: 28px; text-align: center; padding: 0 12px;
  font-size: 12px; color: var(--muted); background: var(--surface-2); border-bottom: 1px solid var(--line);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ar-head { background: var(--surface); border-bottom: 1px solid var(--line); }
.ar-head__inner {
  max-width: var(--max); margin: 0 auto; padding: 10px 20px;
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px 24px;
}
.ar-brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text) !important; min-width: 0; }
.ar-brand__mark { width: 30px; height: 30px; flex: none; }
.ar-brand__name { font-family: var(--display); font-size: 18px; white-space: nowrap; }
.ar-nav { display: flex; gap: 4px; justify-content: center; }
.ar-nav__item {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px;
  font-size: 15px; font-weight: 600; color: var(--muted) !important; text-decoration: none;
  border-bottom: 2px solid transparent;
}
.ar-nav__item:hover { color: var(--text) !important; }
.ar-nav__item.is-on { color: var(--text) !important; border-bottom-color: var(--accent); }

.ar-main { max-width: var(--max); margin: 0 auto; padding: 20px 20px 40px; }
.ar-wrap { display: grid; gap: 20px; min-width: 0; }
.ar-pagehead { display: grid; gap: 8px; }
.ar-lead { color: var(--muted); max-width: 720px; }
.ar-flag {
  justify-self: start; font-size: 13px; color: var(--warn-ink); background: var(--warn-soft);
  border: 1px solid #E0C79F; border-radius: var(--r); padding: 4px 10px;
}
.ar-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; min-width: 0; }

/* ---------- 비용 띠 ---------- */
.ar-cost {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px;
  padding: 12px 16px; background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--primary);
  border-radius: var(--r); text-decoration: none; color: var(--text) !important; font-size: 15px;
}
.ar-cost:hover { border-color: var(--primary); }
.ar-cost b { font-size: 18px; font-weight: 700; }
.ar-cost small { font-size: 13px; color: var(--muted); }
.ar-cost__item { white-space: nowrap; }
.ar-cost__item--main { white-space: normal; }
.ar-cost__go { margin-left: auto; font-weight: 700; color: var(--primary); white-space: nowrap; }

/* ---------- 검색 ---------- */
.ar-finder { display: grid; gap: 12px; }
.ar-finder__top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.ar-count { font-size: 15px; color: var(--muted); }
.ar-count b { font-size: 24px; color: var(--text); }
.ar-finder__row { display: grid; grid-template-columns: 1fr 200px; gap: 10px; }
.ar-search {
  display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 14px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r); color: var(--muted); min-width: 0;
}
.ar-search:focus-within { border-color: var(--primary); box-shadow: 0 0 0 2px var(--primary-soft); }
.ar-search__label { font-size: 13px; font-weight: 700; color: var(--text); white-space: nowrap; }
.ar-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font-size: 18px; color: var(--text); padding: 8px 0; }
.ar-year select, .ar-filters select, .ar-bulk select, .ar-field select {
  width: 100%; min-height: 48px; padding: 0 12px; border: 1px solid var(--line); border-radius: var(--r); background: #fff;
}
.ar-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.ar-chips__label { font-size: 13px; color: var(--warn-ink); margin-right: 4px; }
.ar-chip {
  min-height: 40px; padding: 0 14px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface);
  font-size: 15px; cursor: pointer;
}
.ar-chip:hover { border-color: var(--text); }
.ar-chip.is-on { background: var(--text); border-color: var(--text); color: #fff; }
.ar-hint { font-size: 13px; color: var(--muted); }

/* ---------- 밀착 인화지 격자 ---------- */
.ar-sheet {
  display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 18px 14px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 18px 16px 20px;
}
.ar-frame { position: relative; min-width: 0; }
.ar-frame__open {
  display: grid; gap: 4px; width: 100%; padding: 0; border: 0; background: none; text-align: left; cursor: pointer; color: var(--text);
}
.ar-frame__img {
  position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden;
  border: 4px solid #161616; border-width: 6px 4px; background: #161616;
}
.ar-art { display: block; width: 100%; height: 100%; }
.ar-frame__tag {
  position: absolute; right: 4px; bottom: 4px; font-size: 11px; line-height: 1; padding: 3px 5px;
  background: rgba(22, 22, 22, .72); color: #F7F7F5; border-radius: 1px;
}
.ar-frame__open:hover .ar-frame__img { border-color: #3A3A38; }
.ar-frame__meta { display: flex; justify-content: space-between; gap: 6px; font-size: 13px; color: var(--muted); }
.ar-frame__title {
  font-size: 15px; font-weight: 600; line-height: 1.35;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.ar-frame__kw {
  font-size: 13px; color: var(--muted); line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden;
}
.ar-tier {
  position: absolute; top: 10px; right: 8px; font-size: 12px; font-weight: 700; line-height: 1;
  padding: 4px 6px; border-radius: var(--r); border: 1px solid;
}
.ar-tier--hot { background: #fff; color: var(--primary); border-color: var(--primary); }
.ar-tier--cold { background: #fff; color: var(--muted); border-color: var(--muted); border-style: dashed; }
.ar-tier--inline { position: static; display: inline-block; }
.ar-pick {
  position: absolute; top: 0; left: 0; width: 44px; height: 44px; padding: 0; border: 0; background: none; cursor: pointer;
  display: grid; place-items: center;
}
.ar-pick__box {
  width: 22px; height: 22px; border-radius: var(--r); background: #fff; border: 1px solid var(--muted);
  display: grid; place-items: center; color: transparent;
}
.ar-pick__box svg { width: 14px; height: 14px; }
.ar-pick:hover .ar-pick__box { border-color: var(--accent); }
.ar-frame.is-picked .ar-pick__box { background: var(--accent); border-color: var(--accent); color: #fff; }

/* 붉은 색연필 동그라미: 고르면 0.3초 동안 그려진다 */
.ar-circle {
  position: absolute; left: -10px; top: -10px; width: calc(100% + 20px); aspect-ratio: 4 / 3.25; height: auto;
  pointer-events: none; overflow: visible;
}
.ar-circle path {
  fill: none; stroke: var(--accent); stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round;
  vector-effect: non-scaling-stroke; stroke-dasharray: 1; stroke-dashoffset: 1; opacity: 0;
}
.ar-frame.is-picked .ar-circle path { stroke-dashoffset: 0; opacity: .92; transition: stroke-dashoffset .3s ease-out; }
@media (prefers-reduced-motion: reduce) {
  .ar-frame.is-picked .ar-circle path { transition: none; }
}

.ar-empty { padding: 28px; text-align: center; color: var(--muted); display: grid; gap: 12px; justify-items: center; }

/* ---------- 아래 계기와 선택 막대 ---------- */
.ar--home .ar-main { padding-bottom: calc(var(--dock-h, 64px) + 40px); }
.ar-dock { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; display: grid; }
.ar-selbar {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap;
  max-width: var(--max); width: calc(100% - 40px); margin: 0 auto 8px; padding: 8px 10px 8px 16px;
  background: var(--surface); border: 1px solid var(--accent); border-left-width: 4px; border-radius: var(--r);
}
.ar-selbar__text { font-size: 15px; }
.ar-selbar__text b { font-size: 18px; }
.ar-selbar__btns { display: flex; gap: 6px; }
.ar-meter {
  display: flex; flex-wrap: wrap; align-items: center; gap: 2px 18px; padding: 10px 20px;
  background: #161616; color: #E6E6E2; font-size: 13px;
}
.ar-meter__label { font-weight: 700; color: #fff; }
.ar-meter__val b { font-size: 15px; color: #fff; }
.ar-meter__note { color: #B9B9B4; }
@media (min-width: 1240px) {
  .ar-meter { padding-left: calc((100% - var(--max)) / 2 + 20px); }
}

/* ---------- 상세 시트 ---------- */
.ar-dialog {
  width: min(680px, calc(100% - 24px)); max-height: calc(100vh - 48px); padding: 0; border: 1px solid var(--line);
  border-radius: var(--r); background: var(--surface); color: var(--text);
}
.ar-dialog::backdrop { background: rgba(22, 22, 22, .55); }
.ar-dialog--sm { width: min(400px, calc(100% - 32px)); }
.ar-dialog__body { padding: 22px; display: grid; gap: 14px; }
.ar-dialog__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.ar-dialog__title { font-family: var(--display); font-weight: 400; font-size: 24px; }
.ar-dialog__sub { font-family: var(--display); font-weight: 400; font-size: 18px; margin-top: 6px; }
.ar-dialog__foot { font-size: 13px; color: var(--muted); border-top: 1px solid var(--line-soft); padding-top: 12px; }
.ar-info { font-size: 15px; }
.ar-map { display: grid; gap: 0; border-top: 1px solid var(--line-soft); }
.ar-map li { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line-soft); }
.ar-map__need { font-size: 13px; color: var(--muted); }
.ar-map__show { font-size: 15px; font-weight: 600; text-decoration: none; }
.ar-diffs { display: grid; gap: 6px; font-size: 13px; }
.ar-diffs li { padding-left: 14px; position: relative; }
.ar-diffs li::before { content: ""; position: absolute; left: 2px; top: .6em; width: 5px; height: 5px; background: var(--warn); }

.ar-detail { width: min(980px, calc(100% - 24px)); }
.ar-detail__body { display: grid; grid-template-columns: 1.25fr 1fr; }
.ar-detail__img { position: relative; background: #161616; padding: 14px; display: grid; align-content: center; }
.ar-detail__img > div { aspect-ratio: 4 / 3; }
.ar-detail__img .ar-frame__tag { right: 18px; bottom: 18px; }
.ar-detail__info { padding: 20px; display: grid; gap: 12px; align-content: start; min-width: 0; }
.ar-detail__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.ar-detail__title { font-family: var(--display); font-weight: 400; font-size: 24px; line-height: 1.3; }
.ar-detail__kw { display: flex; flex-wrap: wrap; gap: 6px; }
.ar-kwchip { font-size: 13px; padding: 2px 8px; border: 1px solid var(--line); border-radius: var(--r); background: #fff; }
.ar-spec { display: grid; gap: 0; border-top: 1px solid var(--line-soft); }
.ar-spec > div { display: grid; grid-template-columns: 96px 1fr; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line-soft); }
.ar-spec dt { font-size: 13px; color: var(--muted); }
.ar-spec dd { font-size: 15px; min-width: 0; }
.ar-spec__note { display: block; font-size: 13px; color: var(--muted); margin-top: 2px; }
.ar-detail__btns { display: flex; flex-wrap: wrap; gap: 8px; }
.ar-detail__note { font-size: 15px; font-weight: 600; color: var(--primary); }
.ar-detail__sub { font-size: 13px; color: var(--muted); }
.ar-detail__sub:empty { display: none; }

/* ---------- 저장 비용 ---------- */
.ar-knobs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.ar-knob { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; display: grid; gap: 6px; min-width: 0; scroll-margin-top: 16px; }
.ar-knob:target { border-color: var(--accent); }
.ar-knob__label { font-weight: 700; }
.ar-knob__row { display: flex; align-items: center; gap: 12px; }
.ar-knob__row input[type=range] { flex: 1; min-width: 0; accent-color: var(--primary); height: 44px; }
.ar-knob__num { display: inline-flex; align-items: center; gap: 6px; font-family: var(--mono); }
.ar-knob__num input {
  width: 84px; min-height: 44px; padding: 0 8px; border: 1px solid var(--line); border-radius: var(--r); background: #fff;
  font-family: var(--mono); font-size: 18px; text-align: right;
}
.ar-knob__num--wide input { width: 140px; }
.ar-knob__help { font-size: 13px; color: var(--muted); }

.ar-plans { display: grid; gap: 12px; }
.ar-sechead { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.ar-legend { display: flex; gap: 14px; font-size: 13px; color: var(--muted); flex-wrap: wrap; }
.ar-legend li { display: inline-flex; align-items: center; gap: 6px; }
.ar-seg { display: inline-block; height: 100%; }
.ar-legend .ar-seg, .ar-plan__parts .ar-seg { width: 12px; height: 12px; flex: none; }
.ar-seg--store { background: var(--primary); }
.ar-seg--get { background: var(--warn); }
.ar-seg--out { background: repeating-linear-gradient(135deg, #161616 0 3px, #8E8E88 3px 6px); }
.ar-planlist { display: grid; gap: 8px; }
.ar-plan {
  width: 100%; display: grid; grid-template-columns: minmax(0, 330px) minmax(0, 1fr) 150px; grid-template-areas: "name bar total" "badges parts parts";
  align-items: center; gap: 6px 16px; padding: 14px 16px; text-align: left; cursor: pointer;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); color: var(--text);
}
.ar-plan:hover { border-color: var(--text); }
.ar-plan.is-on { border-color: var(--accent); box-shadow: inset 4px 0 0 var(--accent); }
.ar-plan__name { grid-area: name; display: flex; gap: 10px; align-items: flex-start; min-width: 0; }
.ar-plan__no { font-size: 24px; line-height: 1; font-family: var(--display); }
.ar-plan__txt { display: grid; gap: 2px; min-width: 0; }
.ar-plan__txt b { font-size: 15px; }
.ar-plan__txt small { font-size: 13px; color: var(--muted); }
.ar-plan__badges { grid-area: badges; display: flex; gap: 6px; flex-wrap: wrap; padding-left: 34px; }
.ar-badge { font-size: 12px; font-weight: 700; padding: 2px 7px; border: 1px solid; border-radius: var(--r); background: #fff; }
.ar-badge--base { color: var(--accent); border-color: var(--accent); }
.ar-badge--low { color: var(--ok); border-color: var(--ok); }
.ar-plan__bar { grid-area: bar; display: flex; height: 26px; background: var(--surface-2); border: 1px solid var(--line-soft); min-width: 0; }
.ar-plan__total { grid-area: total; display: grid; justify-items: end; }
.ar-plan__total b { font-size: 18px; }
.ar-plan__total small { font-size: 13px; color: var(--muted); }
.ar-plan__parts { grid-area: parts; display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 13px; color: var(--muted); }
.ar-plan__parts > span { display: inline-flex; align-items: center; gap: 6px; }
.ar-plan__parts b { color: var(--text); font-weight: 400; }
.ar-assume { font-size: 13px; color: var(--muted); }
.ar-assume b { color: var(--warn-ink); border: 1px solid var(--warn); border-radius: var(--r); padding: 0 6px; margin-right: 6px; font-weight: 700; }
.ar-extra { font-size: 13px; color: var(--muted); }

.ar-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 16px; align-items: start; }
.ar-formula { display: grid; gap: 12px; }
.ar-formula__pick { display: block; font-family: var(--font); font-size: 15px; color: var(--accent); margin-top: 4px; }
.ar-lines { display: grid; border-top: 1px solid var(--line-soft); }
.ar-lines li { display: grid; gap: 2px; padding: 8px 0; border-bottom: 1px solid var(--line-soft); }
.ar-lines li > span:first-child { font-size: 13px; color: var(--muted); }
.ar-lines .ar-num { font-size: 15px; }
.ar-lines__sum { font-size: 15px; }
.ar-lines__sum b, .ar-lines__web b { font-size: 18px; }
.ar-lines__web { font-size: 13px; color: var(--muted); }
.ar-budget { display: grid; gap: 8px; padding: 12px; border: 1px dashed var(--line); border-radius: var(--r); scroll-margin-top: 16px; }
.ar-budget:target { border-color: var(--accent); border-style: solid; }
.ar-budget label { font-weight: 700; }
.ar-budget__state { font-size: 13px; color: var(--ok); }
.ar-budget__state.is-warn { color: var(--warn-ink); }
.ar-prices { display: grid; gap: 10px; }
.ar-prices__note { font-size: 13px; color: var(--warn-ink); }
.ar-prices__todo { font-size: 13px; color: var(--muted); }

.ar-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.ar-table th, .ar-table td { text-align: left; vertical-align: top; padding: 8px 8px; border-bottom: 1px solid var(--line-soft); }
.ar-table thead th { font-weight: 700; color: var(--muted); border-bottom: 1px solid var(--line); white-space: nowrap; }
.ar-table tbody th { font-weight: 600; }
.ar-table small { color: var(--muted); }
.ar-block { display: block; }
.ar-table--prices td { font-variant-numeric: tabular-nums; }

.ar-cuts { display: grid; gap: 12px; }
.ar-cuts__list { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.ar-cut { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 14px; display: grid; gap: 6px; align-content: start; }
.ar-cut__no { font-size: 13px; color: var(--accent); font-weight: 700; }
.ar-cut h3 { font-size: 15px; font-weight: 700; }
.ar-cut p { font-size: 13px; color: var(--muted); }
.ar-cut a { font-size: 13px; font-weight: 600; text-decoration: none; margin-top: 4px; }

/* ---------- 촬영 요청서 ---------- */
.ar-reqgrid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 16px; align-items: start; }
.ar-reqgrid > .ar-card { grid-column: 1; grid-row: 1; }
.ar-side { grid-column: 2; grid-row: 1; display: grid; gap: 12px; }
.ar-side__note { font-size: 13px; color: var(--muted); margin-top: 10px; }
.ar-form { display: grid; gap: 14px; }
.ar-form__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.ar-field { display: grid; gap: 6px; min-width: 0; border: 0; padding: 0; }
.ar-field > span:first-child, .ar-field legend { font-size: 13px; font-weight: 700; padding: 0; }
.ar-field em { font-style: normal; font-weight: 600; color: var(--accent); font-size: 12px; margin-left: 4px; }
.ar-field input:not([type=radio]):not([type=file]), .ar-field textarea {
  width: 100%; min-height: 48px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r); background: #fff; font-size: 15px;
}
.ar-field textarea { resize: vertical; }
.ar-field input:focus, .ar-field textarea:focus, .ar-field select:focus { outline: 2px solid var(--primary); outline-offset: 0; border-color: var(--primary); }
.ar-field__pair { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 8px; }
.ar-radios { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.ar-radio { position: relative; }
.ar-radio input { position: absolute; opacity: 0; inset: 0; margin: 0; }
.ar-radio span {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border: 1px solid var(--line); border-radius: var(--r);
  background: #fff; cursor: pointer; font-size: 15px;
}
.ar-radio input:checked + span { background: var(--text); color: #fff; border-color: var(--text); }
.ar-radio input:focus-visible + span { outline: 3px solid var(--primary); outline-offset: 2px; }
.ar-file { position: relative; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; min-height: 48px; padding: 6px; border: 1px dashed var(--line); border-radius: var(--r); background: #fff; cursor: pointer; }
.ar-file input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.ar-file__btn { padding: 8px 12px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); font-size: 13px; font-weight: 700; }
.ar-file__name { font-size: 13px; color: var(--muted); min-width: 0; }
.ar-form__err { color: var(--danger); font-size: 13px; font-weight: 600; }
.ar-form__btns { display: flex; justify-content: flex-end; }
.ar-form__btns .ar-btn { min-width: 160px; }

.ar-done { display: grid; gap: 14px; scroll-margin-top: 16px; }
.ar-done__ok { font-family: var(--display); font-size: 24px; color: var(--ok); }
.ar-done__no b { font-size: 32px; display: block; }
.ar-done__btns { display: flex; gap: 8px; flex-wrap: wrap; }
.ar-steps { display: flex; flex-wrap: wrap; gap: 4px; counter-reset: st; }
.ar-steps li {
  counter-increment: st; display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; font-size: 13px;
  border: 1px solid var(--line); border-radius: var(--r); background: #fff; color: var(--muted);
}
.ar-steps li::before { content: counter(st); font-family: var(--mono); font-weight: 700; }
.ar-steps li.is-done { color: var(--text); border-color: var(--text); }
.ar-steps li.is-on { background: var(--primary); border-color: var(--primary); color: #fff; font-weight: 700; }
.ar-steps--plain { margin-top: 10px; display: grid; gap: 4px; }
.ar-steps--plain li { justify-content: flex-start; }
.ar-steps li { white-space: nowrap; }
.ar-steps--mini li { padding: 3px 7px; font-size: 12px; }
.ar-steps--mini li::before { content: none; }
.ar-mine { display: grid; gap: 10px; margin-top: 10px; }
.ar-mine li { display: grid; gap: 6px; padding-bottom: 10px; border-bottom: 1px solid var(--line-soft); }
.ar-mine__head { display: flex; gap: 8px; flex-wrap: wrap; align-items: baseline; font-size: 13px; color: var(--muted); }
.ar-mine__head b { color: var(--text); font-size: 15px; }
.ar-spec--done > div { grid-template-columns: 110px 1fr; }

/* ---------- 관리자 취합 ---------- */
.ar-admin { display: grid; gap: 12px; }
.ar-toolbar { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; flex-wrap: wrap; }
.ar-filters { display: flex; gap: 8px; flex-wrap: wrap; }
.ar-filters label { display: grid; gap: 4px; font-size: 13px; color: var(--muted); }
.ar-filters select { min-width: 150px; min-height: 44px; }
.ar-toolbar__btns { display: flex; gap: 6px; flex-wrap: wrap; }
.ar-table--req { font-size: 15px; }
.ar-table--req td, .ar-table--req th { padding: 10px 8px; vertical-align: middle; }
.ar-req.is-sel { background: #FBF1EF; }
.ar-req__check { width: 48px; }
.ar-req__id { white-space: nowrap; }
.ar-check { position: relative; display: inline-grid; place-items: center; width: 44px; height: 44px; cursor: pointer; margin: -10px 0; }
.ar-check input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.ar-check span { width: 20px; height: 20px; border: 1px solid var(--muted); border-radius: var(--r); background: #fff; display: grid; place-items: center; }
.ar-check input:checked + span { background: var(--accent); border-color: var(--accent); }
.ar-check input:checked + span::after { content: ""; width: 10px; height: 6px; border: solid #fff; border-width: 0 0 2px 2px; transform: rotate(-45deg) translate(1px, -1px); }
.ar-check input:indeterminate + span::after { content: ""; width: 10px; height: 2px; background: var(--accent); }
.ar-check input:focus-visible + span { outline: 3px solid var(--primary); outline-offset: 2px; }
.ar-new { display: inline-block; font-family: var(--font); font-size: 12px; font-weight: 700; color: var(--accent); border: 1px solid var(--accent); border-radius: var(--r); padding: 0 5px; margin-left: 4px; }
.ar-status { display: inline-block; font-size: 13px; font-weight: 700; padding: 2px 8px; border-radius: var(--r); border: 1px solid; white-space: nowrap; }
.ar-status[data-status="접수"] { color: var(--primary); border-color: var(--primary); background: #fff; }
.ar-status[data-status="일정 확정"] { color: #fff; border-color: var(--primary); background: var(--primary); }
.ar-status[data-status="촬영 완료"] { color: var(--ok); border-color: var(--ok); background: var(--ok-soft); }
.ar-bulk { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13px; padding-top: 4px; }
.ar-bulk label { font-weight: 700; }
.ar-bulk select { width: auto; min-width: 140px; min-height: 40px; }
.ar-bulk__note { color: var(--muted); }

.ar-merge { display: grid; gap: 12px; scroll-margin-top: 16px; }
.ar-merge:focus { outline: none; }
.ar-merge__btns { display: flex; gap: 6px; flex-wrap: wrap; }
.ar-merge__meta { font-size: 13px; color: var(--muted); }
.ar-table--merge td small { display: block; font-size: 12px; color: var(--muted); }
.ar-clash { display: inline-block; font-size: 12px; font-weight: 700; color: var(--warn-ink); border: 1px solid var(--warn); background: var(--warn-soft); border-radius: var(--r); padding: 1px 6px; white-space: nowrap; }
.ar-depts { display: flex; flex-wrap: wrap; gap: 8px; }
.ar-depts li { display: inline-flex; gap: 10px; align-items: baseline; padding: 6px 12px; border: 1px solid var(--line); border-radius: var(--r); background: #fff; font-size: 13px; }
.ar-depts b { font-size: 15px; }

/* ---------- 바닥글·대응표 버튼·알림 ---------- */
.ar-foot { border-top: 1px solid var(--line); background: var(--surface-2); }
.ar-foot__inner { max-width: var(--max); margin: 0 auto; padding: 14px 20px; display: flex; align-items: center; gap: 8px 16px; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.ar-foot__name { font-family: var(--display); color: var(--text); font-size: 15px; }
.ar-foot { padding-bottom: 64px; }
.ar--home .ar-foot { padding-bottom: calc(var(--dock-h, 64px) + 64px); }
.demo-notice { max-width: var(--max); margin: 0 auto; padding: 0 20px 14px; font-size: 12px; color: var(--muted); }

.ar-fab {
  position: fixed; right: 16px; bottom: 16px; z-index: 30; min-height: 44px; padding: 0 16px;
  display: inline-flex; align-items: center; gap: 6px; border-radius: var(--r); border: 1px solid #161616;
  background: #fff; color: var(--text); font-size: 13px; font-weight: 700; cursor: pointer;
}
.ar-fab:hover { background: var(--surface-2); }
.ar--home .ar-fab { bottom: calc(var(--dock-h, 44px) + 12px); }
.ar-toast {
  position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(var(--dock-h, 0px) + 68px); z-index: 40;
  width: min(560px, calc(100% - 32px)); padding: 12px 16px; border-radius: var(--r);
  background: #161616; color: #fff; font-size: 15px; border-left: 4px solid var(--primary);
}
.ar-toast[data-tone="warn"] { border-left-color: var(--warn); }

/* ---------- 좁은 화면 ---------- */
@media (max-width: 1100px) {
  .ar-sheet { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .ar-cuts__list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ar-split { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 860px) {
  .ar-head__inner { grid-template-columns: minmax(0, 1fr) auto; padding: 8px 16px 0; }
  .ar-nav { grid-column: 1 / -1; grid-row: 2; justify-content: flex-start; margin: 0 -8px; overflow-x: auto; }
  .ar-nav__item { padding: 0 10px; flex: none; }
  .ar-main { padding: 16px 16px 32px; }
  .ar-knobs { grid-template-columns: minmax(0, 1fr); }
  .ar-reqgrid { grid-template-columns: minmax(0, 1fr); }
  .ar-reqgrid > .ar-card, .ar-side { grid-column: 1; grid-row: auto; }
  .ar-plan { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "name total" "bar bar" "parts parts" "badges badges"; }
  .ar-plan__badges { padding-left: 0; }
  .ar-meter { padding: 10px 16px; }

  /* 표는 카드 목록으로 */
  .ar-table thead { display: none; }
  .ar-table, .ar-table tbody, .ar-table tr, .ar-table th, .ar-table td { display: block; width: 100%; }
  .ar-table tr { border: 1px solid var(--line); border-radius: var(--r); background: #fff; padding: 8px 12px; margin-bottom: 8px; }
  .ar-table tbody th, .ar-table td { border: 0; padding: 3px 0; display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 8px; }
  .ar-table td::before, .ar-table tbody th::before { content: attr(data-label); font-family: var(--font); font-size: 12px; font-weight: 400; color: var(--muted); }
  .ar-table--req tr { position: relative; padding-left: 52px; }
  .ar-table--req td.ar-req__check { position: absolute; left: 4px; top: 8px; width: 44px; display: block; padding: 0; }
  .ar-table--req td.ar-req__check::before { content: none; }
  .ar-check { margin: 0; }
  .ar-req.is-sel { background: #FBF1EF; }
  .ar-table--req tr.ar-req { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; padding: 10px 12px 10px 56px; }
  .ar-table--req tr.ar-req[hidden] { display: none; }
  .ar-table--req tr.ar-req td { display: block; width: auto; padding: 0; }
  .ar-table--req tr.ar-req td::before { content: none; }
  .ar-table--req td[data-label="접수 번호"] { order: 1; font-weight: 700; }
  .ar-table--req td[data-label="상태"] { order: 2; margin-left: auto; }
  .ar-table--req td[data-label="희망일"] { order: 3; flex-basis: 100%; }
  .ar-table--req td[data-label="부서"] { order: 4; }
  .ar-table--req td[data-label="목적"] { order: 5; color: var(--muted); }
  .ar-table--req td[data-label="장소"] { order: 6; flex-basis: 100%; }
  .ar-table--req td[data-label="접수일"] { order: 7; flex-basis: 100%; font-size: 12px; color: var(--muted); }
  .ar-table--req td[data-label="접수일"]::before { content: "접수일 " !important; font-family: var(--font); }
  .ar-table--req td.ar-req__check { top: 50%; transform: translateY(-50%); }
  .ar-table--merge tr { display: grid; grid-template-columns: auto auto minmax(0, 1fr); grid-template-areas: "date time clash" "dept place place" "what what what" "no no no"; gap: 2px 10px; align-items: baseline; }
  .ar-table--merge td { display: block; width: auto; padding: 0; }
  .ar-table--merge td::before { content: none; }
  .ar-table--merge td[data-label="희망일"] { grid-area: date; font-weight: 700; }
  .ar-table--merge td[data-label="시간"] { grid-area: time; }
  .ar-table--merge td[data-label="확인"] { grid-area: clash; justify-self: end; }
  .ar-table--merge td[data-label="부서"] { grid-area: dept; }
  .ar-table--merge td[data-label="장소"] { grid-area: place; color: var(--muted); }
  .ar-table--merge td[data-label="목적·필요 컷"] { grid-area: what; }
  .ar-table--merge td[data-label="목적·필요 컷"] small { display: inline; margin-left: 6px; }
  .ar-table--merge td[data-label="접수 번호"] { grid-area: no; font-size: 12px; color: var(--muted); }
}

@media (max-width: 560px) {
  .ar-band__long { display: none; }
  .ar-brand__name { font-size: 15px; }
  .ar-head__reset { padding: 0 10px; }
  .ar-h1 { font-size: 24px; }
  .ar-h2 { font-size: 18px; }
  .ar-cost { gap: 4px 12px; padding: 10px 12px; }
  .ar-cost b { font-size: 15px; }
  .ar-cost__go { margin-left: 0; }
  .ar-finder { gap: 10px; }
  .ar-finder__row { grid-template-columns: minmax(0, 1fr) 112px; gap: 8px; }
  .ar-year select { padding: 0 6px; font-size: 13px; }
  .ar-chips { flex-wrap: nowrap; overflow-x: auto; margin: 0 -16px; padding: 0 16px 2px; scrollbar-width: none; }
  .ar-chips::-webkit-scrollbar { display: none; }
  .ar-chips__label { flex: none; }
  .ar-chip { flex: none; }
  .ar-hint { display: none; }
  .ar-wrap { gap: 14px; }
  .ar-finder__top { gap: 4px; }
  .ar-count b { font-size: 18px; }
  .ar-search__label { display: none; }
  .ar-search input { font-size: 15px; }
  .ar-chip { padding: 0 11px; }
  .ar-sheet { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 12px; padding: 12px 10px 14px; }
  .ar-frame__img { border-width: 5px 3px; }
  .ar-circle { left: -6px; top: -6px; width: calc(100% + 12px); }
  .ar-selbar { width: calc(100% - 16px); padding: 8px 8px 8px 12px; }
  .ar-selbar__btns { width: 100%; }
  .ar-selbar__btns .ar-btn { flex: 1; }
  .ar-meter { padding: 8px 12px; gap: 0 12px; }
  .ar-meter__note { flex-basis: 100%; }
  .ar-fab { right: 12px; bottom: 12px; }
  .ar--home .ar-fab { bottom: calc(var(--dock-h, 44px) + 10px); }
  .ar-detail { width: 100%; max-width: 100%; max-height: 92vh; margin: auto 0 0; border-radius: 0; }
  .ar-detail__body { grid-template-columns: minmax(0, 1fr); }
  .ar-detail__img { padding: 10px; }
  .ar-detail__info { padding: 16px; }
  .ar-detail__btns .ar-btn { flex: 1 1 100%; }
  .ar-spec > div { grid-template-columns: 84px minmax(0, 1fr); }
  .ar-map li { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .ar-knob__num input { width: 72px; }
  .ar-knobs { gap: 8px; }
  .ar-knob { grid-template-columns: minmax(0, 1fr) auto; align-items: center; padding: 10px 12px; gap: 2px 10px; }
  .ar-knob__row { display: contents; }
  .ar-knob__label { grid-column: 1; grid-row: 1; }
  .ar-knob .ar-knob__num { grid-column: 2; grid-row: 1; }
  .ar-knob__row input[type=range] { grid-column: 1 / -1; grid-row: 2; height: 36px; }
  .ar-knob__help { grid-column: 1 / -1; grid-row: 3; }
  .ar-knob__num--wide input { width: 130px; }
  .ar-cuts__list { grid-template-columns: minmax(0, 1fr); }
  .ar-form__grid { grid-template-columns: minmax(0, 1fr); }
  .ar-form__btns .ar-btn { width: 100%; }
  .ar-toolbar__btns { width: 100%; }
  .ar-toolbar__btns .ar-btn { flex: 1; }
  .ar-filters { width: 100%; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ar-filters select { min-width: 0; padding: 0 6px; font-size: 13px; }
  .ar-merge__btns { width: 100%; }
  .ar-merge__btns .ar-btn { flex: 1; }
}

/* ---------- 인쇄용 보기(관리자 취합본만) ---------- */
@media print {
  .ar--admin { background: #fff; }
  .ar--admin .ar-band, .ar--admin .ar-head, .ar--admin .ar-pagehead, .ar--admin .ar-admin, .ar--admin .ar-foot,
  .ar--admin .ar-fab, .ar--admin .ar-toast, .ar--admin .ar-merge__btns { display: none !important; }
  .ar--admin .ar-main { padding: 0; max-width: none; }
  .ar--admin .ar-merge { border: 0; padding: 0; }
  .ar--admin .ar-table thead { display: table-header-group; }
  .ar--admin .ar-table { display: table; }
  .ar--admin .ar-table tbody { display: table-row-group; }
  .ar--admin .ar-table tr { display: table-row; border: 0; padding: 0; margin: 0; }
  .ar--admin .ar-table th, .ar--admin .ar-table td { display: table-cell; border-bottom: 1px solid #999; padding: 4px 6px; width: auto; }
  .ar--admin .ar-table td::before { content: none; }
  .ar--admin .ar-clash { background: none; }
}
