#pos { --pos-accent: #f6d341; }
#pos .section-heading > div { min-width: 0; }
.pos-notice { padding: 16px 20px; margin: 0 0 12px; border: 1px solid rgba(246,211,65,.22); border-radius: 14px; background: rgba(246,211,65,.06); color: #f5e4a0; font-size: .86rem; line-height: 1.6; }
.pos-feedback { min-height: 24px; margin: 8px 0; color: var(--green); font-size: .85rem; overflow-wrap: anywhere; }
.pos-feedback.is-error { color: #ffad91; }
.pos-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 24px; }
.pos-tabs button { min-height: 44px; padding: 10px 18px; border: 1px solid var(--line-strong); border-radius: 12px; color: var(--muted); background: #141a22; font-size: .84rem; font-weight: 700; }
.pos-tabs button[aria-selected="true"] { color: #171308; border-color: var(--pos-accent); background: var(--pos-accent); }
.pos-columns { display: grid; grid-template-columns: 1.05fr 1fr; gap: 22px; align-items: start; }
#pos .panel { min-width: 0; padding: 22px; }
#pos .panel > header { padding: 0 0 18px; flex-wrap: wrap; gap: 12px; }
.pos-checks { margin-bottom: 24px; }
.pos-check { display: grid; grid-template-columns: 25px minmax(0,1fr) auto; gap: 10px; align-items: center; padding: 15px 0; border-bottom: 1px solid var(--line); font-size: .84rem; line-height: 1.5; }
.pos-check > span { color: #a5adba; font-size: 1.25rem; }
.pos-check small { color: var(--muted); }
.pos-check.is-complete > span, .pos-check.is-complete small { color: var(--green); }
#pos label { display: grid; gap: 8px; color: #dce0e6; font-size: .8rem; font-weight: 600; }
#pos label small { color: var(--muted); font-size: .75rem; font-weight: 400; line-height: 1.5; }
#pos input:not([type="checkbox"]), #pos select { width: 100%; min-width: 0; min-height: 46px; padding: 11px 13px; border: 1px solid var(--line-strong); border-radius: 10px; background: #0e131b; color: var(--ink); font-size: max(16px,.85rem); }
#pos .pos-confirm { grid-template-columns: 22px 1fr; align-items: start; gap: 10px; padding: 15px 0 0; font-weight: 400; line-height: 1.6; }
.pos-confirm input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--pos-accent); }
.pos-confirm:has(input:disabled) { color: var(--muted); }
#pos .primary-button, #pos .secondary-button { min-height: 44px; }
#pos .panel-note { line-height: 1.7; overflow-wrap: anywhere; }
.pos-filters { display: grid; grid-template-columns: minmax(0,1fr) minmax(200px,.5fr); gap: 15px; margin: 22px 0; }
.pos-csv-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
#pos .pos-file-button { position: relative; display: flex; align-items: center; min-height: 44px; padding: 12px 16px; border: 1px solid var(--line-strong); border-radius: 10px; color: var(--ink); font-size: .8rem; cursor: pointer; overflow: hidden; }
.pos-file-button input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.pos-file-button:focus-within { outline: 2px solid var(--orange); outline-offset: 3px; }
.pos-mapping-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
.pos-mapping-row { display: grid; gap: 14px; padding: 18px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,.018); min-width: 0; }
.pos-mapping-row > div { display: grid; gap: 7px; min-width: 0; }
.pos-mapping-row small { color: var(--pos-accent); font-size: .68rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.pos-mapping-row strong { font-size: .9rem; overflow-wrap: anywhere; }
.pos-mapping-row > div > span { color: var(--muted); font-size: .76rem; }
.pos-pagination { display: flex; justify-content: center; align-items: center; gap: 18px; margin: 20px 0; }
.pos-pagination span { font-size: .8rem; text-align: center; color: var(--muted); }
.pos-pagination button { flex-shrink: 0; min-width: 44px; }
.pos-form-actions { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 15px; padding-top: 16px; border-top: 1px solid var(--line); }
.pos-preview-form { display: flex; align-items: end; flex-wrap: wrap; gap: 16px; margin: 25px 0; }
.pos-preview-form label { flex: 1; min-width: min(100%,260px); }
.pos-simulation { padding: 20px; border: 1px solid rgba(246,211,65,.28); border-radius: 14px; background: rgba(246,211,65,.06); }
.pos-simulation > span { color: var(--pos-accent); font-size: .66rem; font-weight: 800; letter-spacing: .08em; }
.pos-simulation h4 { margin: 12px 0 8px; font-size: 1.1rem; }
.pos-simulation p { color: #bcc4cd; font-size: .86rem; line-height: 1.6; margin-bottom: 0; }
.pos-preview-lines { margin: 20px 0; }
.pos-preview-line { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 15px; padding: 18px 0; border-bottom: 1px solid var(--line); font-size: .88rem; }
.pos-preview-line > div { display: grid; gap: 8px; min-width: 0; }
.pos-preview-line > div > strong { overflow-wrap: anywhere; }
.pos-preview-line small, .pos-preview-line p { margin: 0; color: var(--muted); font-size: .77rem; line-height: 1.6; }
.pos-preview-total { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 0; }
.pos-preview-total > div { display: grid; gap: 9px; }
.pos-preview-total small, .pos-preview-total span { color: var(--muted); font-size: .77rem; }
.pos-preview-total > strong { font-size: clamp(1.6rem,4vw,2.3rem); white-space: nowrap; letter-spacing: -.05em; }
.pos-payload { margin-top: 25px; border-top: 1px solid var(--line); padding-top: 18px; }
.pos-payload summary { cursor: pointer; min-height: 44px; padding: 10px 0; color: #f5d66a; font-size: .85rem; }
.pos-payload pre { max-height: 420px; max-width: 100%; overflow: auto; padding: 18px; border-radius: 12px; background: #090e14; font-size: .75rem; white-space: pre-wrap; overflow-wrap: anywhere; }
.pos-job { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 14px; padding: 20px 0; border-bottom: 1px solid var(--line); font-size: .85rem; }
.pos-job > div { min-width: 0; }
.pos-job > div > strong { display: block; overflow-wrap: anywhere; }
.pos-job small { display: block; color: var(--muted); font-size: .75rem; margin-top: 8px; }
.pos-job p { grid-column: 1 / -1; color: var(--muted); font-size: .8rem; line-height: 1.6; margin: 0; }
.pos-job .privacy-badge { justify-self: start; }
.pos-import-note { margin-top: 22px; }
@media (min-width:1400px) { .pos-mapping-list { grid-template-columns: repeat(3,minmax(0,1fr)); } }
@media (max-width:1000px) { .pos-columns { grid-template-columns: 1fr; } }
@media (max-width:760px) {
  .floating-nav { width: calc(100vw - 22px); left: 11px; right: 11px; top: auto; bottom: calc(9px + env(safe-area-inset-bottom)); transform: none; }
}
@media (min-width:761px) and (max-height:620px) {
  .floating-nav { top: 120px; bottom: 12px; max-height: calc(100dvh - 132px); transform: none; overflow-y: auto; scrollbar-width: thin; }
  .floating-nav .nav-item { flex-shrink: 0; min-height: 44px; }
}
@media (max-width:600px) {
  #pos .panel { padding: 17px; }
  .pos-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .pos-tabs button { padding: 11px 6px; font-size: .78rem; }
  .pos-mapping-list, .pos-filters { grid-template-columns: 1fr; }
  .pos-mapping-row { padding: 16px; }
  .pos-notice { padding: 14px; font-size: .8rem; }
  .pos-check { gap: 8px; font-size: .8rem; }
  .pos-form-actions, .pos-form-actions > button, .pos-preview-form button { width: 100%; }
  .pos-preview-total { align-items: end; }
  .pos-preview-total small { max-width: 180px; line-height: 1.6; }
  #pos > .section-heading { display: grid; gap: 12px; }
  #pos > .section-heading > .integration-state { justify-self: start; }
}
