/* JDL.13 TEXT FINE TUNE: UI 전체 형태 잠금, 확인창/일지 글자 크기만 미세 조정.
   운임DB·저장·오더추출·상차지·주소 파서 수정 금지. */


:root {
  --bg: #05070b;
  --card: #141820;
  --card2: #202635;
  --field: #080b11;
  --row: #121722;
  --text: #ffffff;
  --sub: #eef2f8;
  --muted: #cbd2dd;
  --muted2: #a9b2c0;
  --blue: #4da3ff;
  --green: #65dc91;
  --warn: #f1b15f;
  --danger: #ff9a9a;
  --line: rgba(255,255,255,.11);
  color-scheme: dark;
  --jdl-font: "SamsungOne", "One UI Sans", "Pretendard Variable", "Pretendard", "Noto Sans KR", "Noto Sans CJK KR", "Apple SD Gothic Neo", "Roboto", "Malgun Gothic", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --jdl-content-size: 1.015rem;
  --jdl-content-weight: 500;
  --jdl-content-line: 1.40;
  --jdl-content-letter: -0.012em;
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html {
  min-height: 100%;
  background: var(--bg);
  font-size: 14.8px;
  -webkit-text-size-adjust: 100%;
}

html[data-app-size="compact"] { font-size: 14px; }
html[data-app-size="large"] { font-size: 15.6px; }

body {
  min-height: 100%;
  margin: 0;
  padding: max(12px, env(safe-area-inset-top)) 12px calc(78px + env(safe-area-inset-bottom));
  background: #05070b;
  color: var(--text);
  font-family: var(--jdl-font);
  font-weight: 480;
  line-height: 1.40;
  text-rendering: geometricPrecision;
  -webkit-font-smoothing: antialiased;
  letter-spacing: -0.008em;
  font-synthesis-weight: none;
}

button,
input,
textarea,
select {
  font: inherit;
  letter-spacing: 0;
}

button {
  letter-spacing: 0;
  min-height: 42px;
  border: 0;
  border-radius: 11px;
  background: var(--card2);
  color: var(--text);
  padding: 0 12px;
  font-weight: 520;
  box-shadow: none;
  touch-action: manipulation;
}

button:active {
  transform: scale(.99);
  opacity: .9;
}

button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid rgba(111,147,255,.55);
  outline-offset: 2px;
}

input,
textarea,
select {
  width: 100%;
  border: 0;
  border-radius: 10px;
  background: var(--field);
  color: var(--text);
  outline: none;
  box-shadow: none;
}

select {
  appearance: none;
  text-align: center;
}

.hidden,
.hidden-file {
  display: none;
}

.app-shell {
  width: min(430px, 100%);
  margin: 0 auto;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 4px 0 13px;
}

.brand-block {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
}

.topbar h1 {
  margin: 2px 0 0;
  color: #fbfcff;
  font-size: clamp(1.9rem, 7.6vw, 2.18rem);
  font-weight: 560;
  line-height: 1;
  letter-spacing: -0.024em;
  text-shadow: none;
}

.top-right {
  display: none;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 7px;
}

.pill,
.icon-btn {
  min-height: 40px;
  border-radius: 9px;
  padding: 0 13px;
  background: var(--card);
  color: #f0f3f8;
  border: 0;
  font-size: .94rem;
  font-weight: 560;
  letter-spacing: 0;
}

.pill.gold {
  background: var(--card);
  color: #f0f3f8;
  font-size: .92rem;
  font-weight: 460;
  letter-spacing: 0;
}

.icon-btn {
  min-width: 54px;
}


.today-date {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: max-content;
  min-height: 24px;
  padding: 0 6px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #c9d0dc;
  font-size: .88rem;
  font-weight: 480;
  white-space: nowrap;
  letter-spacing: 0;
}

.card {
  position: relative;
  margin-bottom: 10px;
  padding: 14px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 12px;
  background: #151922;
  box-shadow: 0 8px 18px rgba(0,0,0,.30);
}

.paste-card {
  padding: 16px;
}

#orderInput {
  display: block;
  min-height: 166px;
  max-height: 280px;
  resize: vertical;
  padding: 16px 15px;
  background: #070a10;
  color: #ffffff;
  border: 1px solid rgba(255,255,255,.10);
  font-size: var(--jdl-content-size);
  font-weight: 480;
  line-height: var(--jdl-content-line);
  border-radius: 10px;
  letter-spacing: var(--jdl-content-letter);
  font-family: var(--jdl-font);
}

#orderInput::placeholder {
  color: #c4ccd8;
  font-weight: 460;
  font-size: .98rem;
  letter-spacing: -0.01em;
  font-family: var(--jdl-font);
}

.paste-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 9px;
}

.soft-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 9px;
  background: #202635;
  color: #eef2f8;
  border: 0;
  font-size: 1.04rem;
  font-weight: 530;
  letter-spacing: -0.012em;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.13);
}

.soft-btn span {
  display: none;
}

.primary-btn {
  width: 100%;
  min-height: 50px;
  margin-top: 10px;
  padding: 0 13px;
  background: #1599e8;
  border: 1px solid rgba(255,255,255,.12);
  color: #ffffff;
  font-size: 1.06rem;
  font-weight: 540;
  box-shadow: 0 5px 12px rgba(21,153,232,.18);
  letter-spacing: -0.012em;
  border-radius: 10px;
}

.secondary-btn {
  background: var(--card2);
  color: var(--text);
}

.paste-help,
.required-help,
.settings-note,
.month-help {
  margin: 9px 3px 0;
  color: #aeb7c5;
  font-size: .94rem;
  font-weight: 460;
  line-height: 1.38;
  text-align: left;
  letter-spacing: var(--jdl-content-letter);
  font-family: inherit;
}

.quick-actions {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
  margin: 9px 0 10px;
}

.quick-actions button {
  letter-spacing: 0;
  min-height: 44px;
  padding: 0 8px;
  border-radius: 10px;
  font-size: .98rem;
  font-weight: 520;
  border: 1px solid rgba(255,255,255,.13);
}

.green,
.blue,
.gold {
  background: var(--card);
  border: 0;
}

.green {
  color: #d5ffdf;
  font-size: .99rem;
  font-weight: 520;
  letter-spacing: 0;
}

.blue {
  color: #cfe0ff;
  font-size: .99rem;
  font-weight: 520;
  letter-spacing: 0;
}

.gold {
  color: #ffe59c;
  font-size: .99rem;
  font-weight: 520;
}

.result-card {
  padding: 16px 15px;
  background: var(--card);
  border: 1px solid rgba(255,255,255,.085);
}

.result-list {
  display: grid;
  gap: 7px;
  margin: 0;
}

.result-list div {
  display: grid;
  grid-template-columns: 82px 1fr;
  gap: 8px;
  align-items: start;
}

.result-list dt {
  color: #c7cfdb;
  font-weight: 500;
  line-height: 1.32;
  letter-spacing: -0.016em;
  font-size: .94rem;
  font-family: inherit;
  white-space: nowrap;
}

.result-list dd {
  margin: 0;
  color: #f7f9fc;
  font-weight: 510;
  word-break: keep-all;
  overflow-wrap: anywhere;
  line-height: 1.34;
  letter-spacing: -0.016em;
  font-size: .98rem;
  font-family: inherit;
  text-shadow: none;
}

.divider {
  height: 1px;
  margin: 12px 0;
  background: var(--line);
}

.money-line {
  color: #f5f7fb;
  font-size: .96rem;
  font-weight: 500;
  line-height: 1.32;
  letter-spacing: -0.012em;
  font-family: inherit;
}

.money-line strong {
  color: #ffffff;
  font-size: 1.31rem;
  font-weight: 590;
  letter-spacing: -0.022em;
}

.match-line {
  margin-top: 8px;
  color: var(--green);
  font-size: .95rem;
  font-weight: 500;
  line-height: 1.34;
  letter-spacing: -0.012em;
  font-family: inherit;
}

.cert-line {
  margin-top: 5px;
  color: #cfd5df;
  font-size: .92rem;
  font-weight: 460;
  line-height: 1.34;
  letter-spacing: -0.012em;
  font-family: inherit;
}

.fare-alert { color: var(--danger); font-weight: inherit; }
.fare-wait { color: var(--warn); font-weight: inherit; }
.fare-shinhang { color: var(--blue); font-weight: inherit; }
.fare-bukhang { color: #ffbe7d; font-weight: inherit; }
.fare-neutral { color: #f4f6fb; font-weight: inherit; }

.heavy-notice {
  margin-top: 8px;
  padding: 9px 10px;
  border: 0;
  border-radius: 6px;
  background: #332b20;
  color: #f2dda8;
  font-size: 1em;
  font-weight: inherit;
  line-height: inherit;
  letter-spacing: inherit;
  font-family: inherit;
}

.heavy-apply-btn {
  width: auto;
  min-height: 36px;
  margin-left: 6px;
  padding: 0 10px;
  background: #403521;
  color: #f2dda8;
  border: 0;
  font-size: .86rem;
}

.option-card {
  background: var(--card);
}

.option-list {
  display: grid;
  gap: 8px;
}

.option-row,
.month-row,
.journal-detail-summary,
.journal-detail-raw {
  border: 0;
  border-radius: 7px;
  background: #121722;
}

.option-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 46px;
  padding: 11px 12px;
  color: var(--sub);
  font-weight: 540;
}

.option-row input[type="checkbox"] {
  width: 22px;
  height: 22px;
  accent-color: var(--blue);
}

.select-row select {
  width: 120px;
  padding: 10px;
}

.manual-option {
  display: grid;
  grid-template-columns: 1fr 40px 54px 40px;
}

.option-step {
  min-height: 38px;
}

.option-total {
  margin-top: 11px;
  color: var(--sub);
  text-align: right;
  font-weight: 600;
}

.option-total strong {
  color: #fff;
}

.option-actions,
.modal-actions,
.journal-detail-actions,
.journal-edit-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  margin-top: 11px;
}

.confirm-actions {
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
}

.confirm-actions .secondary-btn,
.confirm-actions .primary-btn {
  min-height: 52px;
  margin-top: 0;
  border-radius: 10px;
  font-size: 1.02rem;
  font-weight: 520;
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: none;
}

.confirm-actions .secondary-btn {
  background: #202633;
  color: #f0f4fb;
}

.confirm-actions .shuttle-btn {
  background: #252c3b;
  color: #dbe5ff;
  border-color: rgba(155,178,225,.24);
}

.confirm-actions .primary-btn {
  background: #1497de;
  color: #fff;
  border-color: rgba(170,220,255,.26);
}

.shuttle-btn {
  background: #20283a;
  color: #d8e4ff;
  border: 1px solid rgba(160,185,235,.22);
}

.journal-card {
  margin-top: 12px;
  padding: 14px 12px;
}

.journal-head {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: start;
  gap: 10px;
  margin-bottom: 11px;
}

.journal-head h2 {
  margin: 0;
  color: #fbfcff;
  font-size: 1.30rem;
  font-weight: 560;
  line-height: 1.04;
  letter-spacing: -0.01em;
}

.journal-month {
  margin-top: 4px;
  color: var(--muted);
  font-size: .92rem;
  font-weight: 460;
  letter-spacing: 0;
}

.journal-icon-btn {
  width: 40px;
  height: 40px;
  min-height: 40px;
  padding: 0;
  border-radius: 10px;
  background: var(--card2);
}

.journal-icon-btn svg {
  width: 21px;
  height: 21px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
}

.journal-click-hint {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: var(--jdl-content-size);
  line-height: var(--jdl-content-line);
  word-break: keep-all;
  font-weight: var(--jdl-content-weight);
  letter-spacing: var(--jdl-content-letter);
  font-family: inherit;
}

.hint-strong {
  display: inline;
  color: var(--sub);
  font-weight: var(--jdl-content-weight);
  letter-spacing: var(--jdl-content-letter);
  font-size: var(--jdl-content-size);
  font-family: inherit;
  line-height: var(--jdl-content-line);
}

.table-head,
.entry-row {
  display: grid;
  grid-template-columns: 32px 28px 66px minmax(74px, 1fr) 84px;
  gap: 3px;
  align-items: center;
  font-size: .96rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  border-radius: 0;
  min-height: 24px;
  padding: 0 6px;
  border: 0;
  border-bottom: 1px solid rgba(255,255,255,.075);
  background: transparent;
  color: #f5f7fb;
  width: 100%;
  overflow: hidden;
  column-gap: 4px;
  row-gap: 0;
  font-family: inherit;
  box-sizing: border-box;
}

.table-head {
  padding: 0 8px;
  border-bottom: 1px solid rgba(255,255,255,.06);
  color: #b7c0cf;
  font-size: .91rem;
  font-weight: 480;
  letter-spacing: -0.008em;
  height: 28px;
  font-family: inherit;
}

.entry-list {
  display: grid;
  gap: 0;
  margin-top: 2px;
  background: var(--row);
  border-radius: 14px;
  overflow: hidden;
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  box-sizing: border-box;
}

.entry-row {
  min-height: 26px;
  padding: 7px 6px;
  border: 0;
  border-radius: 0;
  background: var(--row);
  color: #f3f6fb;
  font-size: .96rem;
  font-weight: 530;
}






.table-head span,
.entry-row span {
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: clip;
  line-height: 1;
  display: block;
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
  letter-spacing: inherit;
}

.table-head span:nth-child(1),
.entry-row span:nth-child(1),
.table-head span:nth-child(2),
.entry-row span:nth-child(2),
.table-head span:nth-child(3),
.entry-row span:nth-child(3),
.table-head span:nth-child(4),
.entry-row span:nth-child(4) {
  text-align: center;
  justify-self: center;
}

.table-head span:nth-child(5),
.entry-row span:nth-child(5),
.entry-row .amount {
  text-align: right;
  justify-self: end;
  white-space: nowrap;
  overflow: visible;
  font-variant-numeric: tabular-nums;
}

.entry-row:last-child {
  border-bottom: 0;
}

.entry-row .amount {
  text-align: right;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.empty-state {
  padding: 20px 12px;
  color: var(--muted);
  text-align: center;
  font-size: .94rem;
}

.total-line,
.month-detail-total {
  margin-top: 11px;
  padding-top: 11px;
  border-top: 1px solid var(--line);
  color: var(--sub);
  text-align: right;
  font-size: .98rem;
  font-weight: 500;
}

.total-line strong,
.month-detail-total strong {
  color: #fff;
  font-size: 1.00rem;
  font-weight: 560;
}

/* JDL.13: 확인창/결과카드/일지 글자만 미세 축소. UI 구조와 색상은 유지. */
.result-card .result-list dt,
.confirm-dialog .modal-card .result-list dt { font-size: .94rem; }
.result-card .result-list dd,
.confirm-dialog .modal-card .result-list dd { font-size: .98rem; }
.journal-card .journal-click-hint,
.journal-card .hint-strong { font-size: .96rem; }
.journal-card .table-head { font-size: .91rem; }
.journal-card .entry-row { font-size: .96rem; }
@media (max-width: 360px) {
  .result-card .result-list dt,
  .confirm-dialog .modal-card .result-list dt { font-size: .92rem; }
  .result-card .result-list dd,
  .confirm-dialog .modal-card .result-list dd { font-size: .96rem; }
  .journal-card .table-head { font-size: .89rem; }
  .journal-card .entry-row { font-size: .94rem; }
}

.confirm-dialog {
  width: min(94vw, 540px);
  max-height: 92vh;
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--text);
}

.confirm-dialog::backdrop {
  background: rgba(0,0,0,.68);
  backdrop-filter: blur(4px);
}

.modal-card {
  position: relative;
  max-height: 88vh;
  overflow: auto;
  padding: 16px;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 11px;
  background: #141922;
  box-shadow: 0 18px 42px rgba(0,0,0,.42);
}

.modal-card h2 {
  margin: 0 50px 15px 0;
  font-size: 1.28rem;
  font-weight: 560;
  letter-spacing: -0.018em;
}

.confirm-dialog .modal-card .result-list {
  gap: 8px;
}

.confirm-dialog .modal-card .result-list div {
  grid-template-columns: 92px 1fr;
  gap: 10px;
}

.confirm-dialog .modal-card .result-list dt {
  color: #c3ccd9;
  font-weight: 500;
  letter-spacing: -0.014em;
}

.confirm-dialog .modal-card .result-list dd {
  color: #f7f9fc;
  font-weight: 510;
  letter-spacing: -0.015em;
}

.modal-close {
  position: absolute;
  top: 11px;
  right: 11px;
  width: 44px;
  height: 44px;
  min-height: 44px;
  padding: 0;
  border-radius: 10px;
  background: #202738;
  border: 1px solid rgba(255,255,255,.10);
  font-size: 1.22rem;
  line-height: 1;
}

.confirm-edit label,
.required-grid label,
.journal-edit-grid label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: .9rem;
  font-weight: 580;
}

.required-grid,
.journal-edit-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
}

.required-grid .wide,
.journal-edit-grid .wide {
  grid-column: 1 / -1;
}

.confirm-edit input,
.confirm-edit select,
.required-grid input,
.required-grid select,
.journal-edit-grid input,
.journal-edit-grid select {
  min-height: 46px;
  padding: 12px;
  font-size: .92rem;
}

.field-tip {
  color: var(--muted2);
  font-size: .73rem;
  font-weight: 520;
  line-height: 1.42;
}

.required-card {
  border: 1px solid rgba(178, 205, 255, .22);
  box-shadow: 0 20px 44px rgba(0,0,0,.46);
}

.required-guide {
  margin-top: 4px;
  margin-bottom: 2px;
  color: #e5ebf5;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.46;
}

.required-grid-reflow {
  margin-top: 10px;
  gap: 10px;
}

.required-grid .label-title {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  color: #d7deea;
}

.required-grid .required-field input,
.required-grid .required-field select {
  min-height: 50px;
  padding: 12px 14px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 12px;
  background: #070b12;
  color: #fbfdff;
  font-size: 1rem;
  font-weight: 550;
}

.required-grid .required-field input::placeholder {
  color: #9ca8ba;
  font-weight: 500;
}

.required-grid .required-field .field-tip {
  margin-top: 2px;
  color: #c2ccda;
  font-size: .90rem;
  font-weight: 560;
  line-height: 1.42;
}

.required-grid .required-field.is-missing .label-title {
  color: #ffbf7f;
}

.required-grid .required-field.is-missing input,
.required-grid .required-field.is-missing select {
  border-color: rgba(255, 164, 84, .80);
  box-shadow: 0 0 0 1px rgba(255, 164, 84, .20);
}

.required-dialog .missing-list {
  margin-top: 10px;
}

.required-dialog .missing-list strong {
  display: block;
  margin-bottom: 7px;
  color: #ffbf7f;
  font-size: 1rem;
  font-weight: 650;
}

.missing-chip-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.missing-chip {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 10px;
  background: rgba(255, 164, 84, .12);
  border: 1px solid rgba(255, 164, 84, .38);
  color: #ffbf7f;
  font-size: .93rem;
  font-weight: 620;
  letter-spacing: -0.012em;
}

.required-actions {
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 14px;
}

.required-actions .secondary-btn,
.required-actions .primary-btn {
  min-height: 54px;
  margin-top: 0;
  border-radius: 12px;
  font-size: 1.04rem;
  font-weight: 620;
  border: 1px solid rgba(255,255,255,.16);
  box-shadow: none;
}

.required-actions .secondary-btn {
  background: #212838;
  color: #f1f5fb;
}

.required-actions .primary-btn {
  background: #4a97dd;
  border-color: rgba(168,215,255,.34);
  color: #ffffff;
}

.req-star,
.inline-required {
  color: #ffbf7f;
}

.missing-list,
.month-list,
.month-detail-list {
  display: grid;
  gap: 8px;
}

.missing-item {
  padding: 11px;
  border: 0;
  border-radius: 6px;
  background: var(--row);
}

.settings-card {
  background: var(--card);
}

.settings-section-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: var(--text);
  font-weight: 500;
}

.settings-size-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
  margin-top: 9px;
}

.settings-source {
  margin-top: 15px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.source-note {
  margin: 0;
  color: var(--muted);
  font-size: .8rem;
  line-height: 1.52;
}


.bottom-nav {
  position: fixed;
  left: 50%;
  bottom: calc(8px + env(safe-area-inset-bottom));
  z-index: 8000;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  width: min(430px, calc(100vw - 28px));
  padding: 5px 6px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 14px;
  background: #0a0d12;
  box-shadow: 0 8px 20px rgba(0,0,0,.36);
  backdrop-filter: none;
  transform: translateX(-50%);
}

.bottom-nav-btn {
  display: grid;
  gap: 2px;
  align-content: center;
  justify-items: center;
  min-height: 46px;
  padding: 3px 0;
  border-radius: 11px;
  background: transparent;
  color: #bfc6d2;
  font-size: .76rem;
  font-weight: 500;
}

.bottom-nav-btn.active {
  color: var(--blue);
  background: rgba(77,163,255,.13);
}

.bottom-nav-icon {
  font-size: 1.08rem;
  line-height: 1;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(84px + env(safe-area-inset-bottom));
  z-index: 9999;
  max-width: 88vw;
  transform: translateX(-50%);
  padding: 10px 14px;
  border: 0;
  border-radius: 6px;
  background: #2b303b;
  color: #fff;
  text-align: center;
  font-size: .95rem;
  box-shadow: none;
}

.month-row,
.journal-detail-summary {
  padding: 11px;
}

.month-detail-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  margin-bottom: 11px;
}

.journal-detail-raw,
.journal-raw {
  white-space: pre-wrap;
  padding: 11px;
  color: var(--sub);
  font-family: inherit;
  font-size: .86rem;
  line-height: 1.52;
}

.journal-action.delete {
  color: #ffd0d0;
  border: 0;
  background: #3a2528;
}

@media (max-width: 420px) {
  body {
    padding-left: 13px;
    padding-right: 13px;
  }

  .brand-block {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
  }

  .topbar h1 {
    font-size: clamp(1.72rem, 7vw, 2.02rem);
  }

  .pill,
  .icon-btn {
    min-height: 39px;
    padding-left: 12px;
    padding-right: 12px;
  }

  .icon-btn {
    min-width: 52px;
  }

  #orderInput {
    min-height: 154px;
  }

  .result-list div {
    grid-template-columns: 80px 1fr;
  }

  .table-head,
  .entry-row {
    grid-template-columns: 32px 28px 66px minmax(70px, 1fr) 82px;
    gap: 3px;
  }

  .entry-row {
    font-size: var(--jdl-content-size);
  }
}

@media (max-width: 360px) {
  body {
    padding-left: 9px;
    padding-right: 9px;
  }

  .card,
  .paste-card {
    padding: 11px;
  }

  .top-actions {
    gap: 6px;
  }

  .pill,
  .icon-btn {
    min-height: 38px;
    border-radius: 8px;
    padding: 0 10px;
  }

  .soft-btn {
    min-height: 40px;
    font-size: .96rem;
  }

  .primary-btn {
    min-height: 46px;
  }

  .quick-actions {
    gap: 7px;
  }

  .quick-actions button {
    min-height: 40px;
    font-size: .92rem;
  }

  .table-head,
  .entry-row {
    grid-template-columns: 32px 28px 66px minmax(70px, 1fr) 82px;
    font-size: var(--jdl-content-size);
  }
}


@media (max-width: 360px) {
  .journal-card {
    padding-left: 9px;
    padding-right: 9px;
  }
  .table-head,
  .entry-row {
    grid-template-columns: 30px 26px 62px minmax(64px, 1fr) 80px;
    column-gap: 3px;
  }
}
