:root { --navy:#102a43; --blue:#1769aa; --sky:#eaf4fb; --line:#d9e3ec; --ink:#162b3f; --muted:#667788; --danger:#b42318; }
* { box-sizing:border-box; }
body { margin:0; background:#f4f7fa; color:var(--ink); font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC",sans-serif; }
button,input,select,textarea { font:inherit; } button { cursor:pointer; }
.shipping-shell { width:min(1080px,100%); margin:0 auto; padding:24px clamp(16px,3vw,32px) 48px; }
.page-header { display:grid; grid-template-columns:1fr auto; gap:16px; align-items:center; margin-bottom:22px; }
.page-header p { margin:0 0 4px; color:#4f7898; font-size:11px; font-weight:800; letter-spacing:.08em; }.page-header h1 { margin:0; font-size:24px; }.page-header > span { color:var(--muted); font-size:13px; }.back-link,.text-button { color:var(--blue); text-decoration:none; border:0; background:transparent; font-weight:700; white-space:nowrap; }
.mode-tabs { display:flex; gap:8px; margin-bottom:16px; }.mode-tabs button { border:1px solid var(--line); border-radius:8px; padding:10px 16px; color:#466074; background:#fff; font-weight:700; }.mode-tabs button.is-active { background:var(--navy); color:#fff; border-color:var(--navy); }
.entry-panel,.list-panel,.archive-panel { background:#fff; border:1px solid var(--line); border-radius:10px; padding:18px; margin-bottom:16px; box-shadow:0 3px 12px rgba(16,42,67,.04); }.panel-title { display:flex; align-items:flex-start; justify-content:space-between; gap:16px; }.panel-title h2,.archive-panel h2 { font-size:17px; margin:0 0 4px; }.panel-title p,.archive-panel p { margin:0; color:var(--muted); font-size:13px; }
.payment-summary { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); min-width:360px; border:1px solid var(--line); border-radius:8px; overflow:hidden; background:#f8fbfd; }.payment-summary span { display:grid; gap:3px; min-width:0; padding:8px 10px; border-left:1px solid var(--line); }.payment-summary span:first-child { border-left:0; }.payment-summary small { color:var(--muted); font-size:11px; font-weight:700; white-space:nowrap; }.payment-summary strong { color:var(--navy); font-size:14px; line-height:1.2; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }.payment-summary span:nth-child(2) strong { color:#087443; }.payment-summary span:nth-child(3) strong { color:#a15c00; }
.record-form { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; margin-top:16px; }.record-form label { display:grid; gap:6px; min-width:0; }.record-form label span { color:#607386; font-size:12px; font-weight:700; }.record-form .wide { grid-column:span 3; }.record-form input,.record-form select,.record-form textarea,.filter-row input,.filter-row select { width:100%; min-height:42px; border:1px solid var(--line); border-radius:8px; padding:9px 10px; outline:none; background:#fff; color:var(--ink); }.record-form textarea { min-height:76px; resize:vertical; }.record-form input:focus,.record-form select:focus,.record-form textarea:focus,.filter-row input:focus,.filter-row select:focus { border-color:var(--blue); box-shadow:0 0 0 3px rgba(23,105,170,.12); }.primary-button { border:0; border-radius:8px; min-height:42px; background:var(--blue); color:#fff; font-weight:800; }.subtle-button { width:max-content; border:1px solid var(--line); border-radius:7px; background:#fff; padding:8px 12px; color:var(--blue); font-weight:700; }
.filter-row { display:grid; grid-template-columns:minmax(200px,1fr) 170px 130px; gap:8px; }.list-head { display:flex; justify-content:space-between; align-items:center; gap:12px; color:var(--muted); font-size:13px; margin:14px 0 10px; }.record-list { display:grid; gap:9px; }.record-card { border:1px solid var(--line); border-radius:8px; padding:12px; display:grid; gap:9px; }.record-card-head { display:flex; justify-content:space-between; gap:12px; align-items:start; }.record-card strong { font-size:15px; }.record-card small { color:var(--muted); }.record-data { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px 14px; color:#485d70; font-size:13px; }.record-data span { overflow-wrap:anywhere; }.status { border-radius:99px; padding:3px 8px; font-size:12px; font-weight:700; white-space:nowrap; }.status.paid { color:#087443; background:#def7e9; }.status.unpaid { color:#a15c00; background:#fff1d6; }.image-link { color:var(--blue); text-decoration:none; font-weight:700; }.empty { padding:22px 8px; color:var(--muted); text-align:center; }.notice { margin-bottom:14px; border-radius:8px; padding:11px 13px; background:#fff3cd; color:#705600; font-size:14px; }.access-panel { display:grid; gap:12px; padding:28px; text-align:center; background:#fff; border-radius:10px; border:1px solid var(--line); }.access-panel a { color:var(--blue); }
.shipping-shell:has(#shippingApp:not([hidden])) #accessDenied { display:none !important; }
.archive-panel { margin-top:16px; }.archive-row { display:flex; justify-content:space-between; gap:12px; padding:12px 0; border-top:1px solid var(--line); }.archive-row:first-of-type { margin-top:10px; }.archive-row strong { display:block; }.archive-row span { color:var(--muted); font-size:13px; }.archive-row.is-superseded { opacity:.64; }.archive-actions { display:flex; gap:8px; align-items:center; flex-wrap:wrap; justify-content:flex-end; }
.list-actions { display:flex; align-items:center; gap:8px; }.archive-title { display:flex; justify-content:space-between; gap:12px; align-items:start; }.archive-title label { display:grid; gap:4px; color:#607386; font-size:12px; font-weight:700; }.archive-title input { min-height:36px; border:1px solid var(--line); border-radius:7px; padding:6px 8px; color:var(--ink); background:#fff; }
.delete-archive { margin-left:8px; border:0; background:transparent; color:var(--danger); font-weight:700; font-size:13px; }
.delete-record { margin-left:8px; border:0; background:transparent; color:var(--danger); font-size:12px; font-weight:700; }
.record-actions { display:flex; align-items:center; justify-content:flex-end; gap:8px; flex-wrap:wrap; }.payment-toggle { display:inline-flex; align-items:center; gap:5px; color:#556b7c; font-size:12px; font-weight:700; white-space:nowrap; }.payment-toggle input { width:16px; height:16px; accent-color:var(--blue); }
@media (max-width:680px) { .shipping-shell { padding:16px 12px 32px; }.page-header { grid-template-columns:1fr auto; }.page-header h1 { font-size:20px; }.entry-panel,.list-panel,.archive-panel { padding:14px; border-radius:8px; }.panel-title { display:grid; gap:12px; }.payment-summary { min-width:0; width:100%; }.payment-summary span { padding:8px; }.payment-summary strong { font-size:12px; }.record-form { grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }.record-form .wide { grid-column:span 2; }.filter-row { grid-template-columns:1fr 1fr; }.filter-row input[type="search"] { grid-column:span 2; }.record-data { grid-template-columns:1fr 1fr; }.record-card { padding:11px; }.mode-tabs button { flex:1; }.archive-row { display:grid; gap:8px; }.archive-actions { justify-content:flex-start; }.archive-row .text-button { font-size:13px; padding:4px 0; } }
