/* Hallmark · scope: app · genre: modern-minimal · theme: industrial workstation · v2.0.0 */
/* 평가 초점: 동시 작업 화면의 구획, 회신 상태, 모바일 터치 가독성. */
@import url("tokens.css");
* { box-sizing: border-box; }
html, body { overflow-x: clip; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: var(--sans); font-size: 16px; line-height: 1.48; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { overflow-wrap: break-word; min-width: 0; text-wrap: balance; }
[hidden] { display: none !important; }
button, input, select, textarea { font: inherit; }
button { color: inherit; cursor: pointer; }
button:disabled { cursor: wait; }
button, input, select, textarea, .paste-zone { border-radius: var(--radius); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
button { min-height: 44px; padding: 8px 12px; border: 1px solid transparent; font-weight: 760; transition: background-color 150ms ease; }
button:active { box-shadow: inset 0 0 0 1px currentColor; }
.frame { width: min(1180px, calc(100% - 64px)); margin-inline: auto; }
.topbar { background: var(--surface); border-bottom: 1px solid var(--line); }
.topbar-inner, .intro, .station-header, .attachment-head, .ticket-meta, .history-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.topbar-inner { min-height: 62px; }
.brand { display: flex; align-items: center; gap: 12px; font-size: 17px; font-weight: 830; }
.brand-mark { position: relative; width: 21px; height: 18px; border: 2px solid var(--primary); border-radius: 2px; }
.brand-mark::after { content: ""; position: absolute; width: 12px; height: 5px; right: -5px; bottom: -2px; background: var(--accent); }
.demo-label, .role-note, .history-head span { color: var(--muted); font-size: 13px; font-weight: 680; }
.intro { padding: 28px 0 24px; align-items: flex-end; }
.intro h1 { font-size: 38px; line-height: 1.17; letter-spacing: -.052em; }
.intro p { margin-top: 8px; color: var(--muted); }
.quiet { background: transparent; padding-inline: 8px; font-size: 14px; }
.quiet:hover, .secondary:hover { background: var(--paper); }
.workbench { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); border: 1px solid var(--line); border-top: 3px solid var(--primary); background: var(--surface); }
.station { min-width: 0; }
.station-field { border-left: 1px solid var(--line); background: var(--field); }
.station-header { min-height: 61px; padding: 8px 24px; border-bottom: 1px solid var(--line); }
.station-header h2 { font-size: 21px; letter-spacing: -.033em; }
.station-body { display: grid; gap: 12px; padding: 20px 24px 24px; }
.station-body label { display: grid; gap: 4px; font-size: 14px; font-weight: 730; min-width: 0; }
.station-body input, .station-body select, .station-body textarea { min-width: 0; width: 100%; min-height: 44px; padding: 8px 12px; border: 1px solid var(--control-line); background: var(--surface); color: var(--ink); font-weight: 510; font-size: 16px; }
textarea { resize: vertical; }
.fields { display: grid; gap: 12px; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); }
.attachment-head h3 { font-size: 14px; }
.paste-zone { min-height: 72px; display: grid; align-content: center; gap: 8px; padding: 12px; border: 1px dashed var(--control-line); color: var(--muted); font-size: 14px; }
kbd { font-family: var(--mono); font-size: 12px; color: var(--ink); border: 1px solid var(--line); border-radius: 3px; padding: 2px 4px; background: var(--field); }
.primary { background: var(--primary); color: var(--light); }
.primary:hover { background: var(--primary-hover); }
.secondary { background: var(--surface); border-color: var(--control-line); }
.sound { border-color: var(--line); }
.sound[aria-pressed="true"] { color: var(--success); border-color: var(--success); background: var(--success-bg); }
.field-empty { min-height: 367px; padding: 32px 28px; display: grid; justify-items: center; align-content: center; gap: 8px; text-align: center; }
.field-empty p { color: var(--muted); }
.field-empty h3 { font-size: 20px; }
.inbox-mark { width: 47px; height: 33px; border: 2px solid var(--control-line); border-radius: 4px; display: grid; place-items: center; margin-bottom: 8px; }
.inbox-mark span { width: 17px; height: 8px; border: 2px solid var(--control-line); border-top: 0; }
.message { color: var(--alert-ink); font-weight: 650; font-size: 14px; }
.preview { display: flex; flex-wrap: wrap; gap: 8px; }
.preview img { display: block; width: 74px; height: 54px; object-fit: cover; border-radius: var(--radius); }
.photo-tile { display: grid; align-items: center; grid-template-columns: auto auto; gap: 4px; background: var(--field); padding: 4px; border-radius: var(--radius); }
.ticket-meta { min-height: 27px; font-size: 13px; font-weight: 720; }
.ticket-title { font-size: 25px; line-height: 1.25; letter-spacing: -.038em; }
.status { background: var(--paper); color: var(--ink); padding: 4px 8px; border-radius: 3px; }
.status[data-stage="new"] { background: var(--alert-bg); color: var(--alert-ink); }
.status[data-stage="done"] { background: var(--success-bg); color: var(--success); }
.field-photos { display: grid; gap: 8px; grid-template-columns: repeat(auto-fit, minmax(min(110px, 100%), 1fr)); }
.field-photos button { padding: 0; border: 0; overflow: clip; background: var(--paper); }
.field-photos img { width: 100%; height: clamp(146px, 17vw, 238px); object-fit: cover; display: block; }
#reply-form { display: grid; gap: 12px; }
fieldset { min-width: 0; padding: 0; border: 0; margin: 0; }
legend { font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.decisions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.decisions button { padding-inline: 4px; }
.cs-details { color: var(--muted); }
.receipt, .success-callout { padding: 16px; border: 1px solid var(--line); background: var(--success-bg); }
.receipt h3 { font-size: 14px; color: var(--success); }
#cs-response { font-size: 22px; font-weight: 800; margin-top: 4px; }
#cs-memo { margin-top: 4px; }
.history { border-top: 1px solid var(--line); margin-top: 24px; }
.history-head { padding-block: 12px 8px; }
.history h2 { font-size: 17px; }
.history ol { list-style: none; margin: 0; padding: 0; }
.history li { display: flex; gap: 12px; border-bottom: 1px solid var(--line); padding: 8px 0; color: var(--muted); font-size: 14px; }
.history time { font-family: var(--mono); color: var(--ink); flex-shrink: 0; }
footer { padding-block: 20px 24px; font-size: 13px; color: var(--muted); }
dialog { max-width: min(900px, calc(100% - 24px)); max-height: calc(100% - 24px); padding: 12px; border: 1px solid var(--line); border-radius: var(--radius); }
dialog::backdrop { background: var(--shade); }
dialog form { text-align: right; margin-bottom: 8px; }
dialog img { display: block; max-width: 100%; max-height: 74vh; object-fit: contain; }
.mobile-switch, .mobile-only { display: none; }
@media (max-width: 700px) {
  .frame { width: calc(100% - 32px); }
  .topbar-inner { min-height: 53px; }
  .intro { display: block; position: relative; padding: 16px 0; }
  .intro h1 { font-size: 28px; max-width: calc(100% - 80px); }
  .intro p { font-size: 15px; margin-top: 8px; }
  #reset { position: absolute; top: 11px; right: -3px; font-size: 13px; padding-inline: 4px; }
  .mobile-switch { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); margin-bottom: 12px; gap: 8px; }
  .mobile-switch button { background: var(--paper); border-color: var(--control-line); }
  .mobile-switch button[aria-pressed="true"] { color: var(--light); background: var(--primary); }
  .mobile-new { margin-left: 4px; padding: 2px 4px; font-size: 11px; background: var(--alert-bg); color: var(--alert-ink); border-radius: 3px; }
  .workbench { display: block; }
  .workbench[data-view="cs"] .station-field, .workbench[data-view="field"] .station-cs { display: none; }
  .station-field { border-left: 0; }
  .station-header { min-height: 54px; padding-inline: 16px; }
  .station-header h2 { font-size: 18px; }
  .station-body { padding: 16px; gap: 12px; }
  .field-empty { min-height: 280px; }
  .mobile-only { display: block; }
  .history { margin-top: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  button { transition: none; }
}
