body { font-family: 'IBM Plex Sans', system-ui, -apple-system, sans-serif; color: #13294C; max-width: 820px; margin: 2rem auto; padding: 0 1rem; }
header { display: flex; justify-content: space-between; align-items: center; border-bottom: 3px solid #13294C; padding-bottom: .75rem; }
.brand { display: flex; align-items: center; gap: .6rem; }
.brand .logo { height: 38px; width: auto; }
.brand .product { font-size: 1.05rem; font-weight: 600; color: #13294C; }
a { color: #0070F3; }
.countdown { font-variant-numeric: tabular-nums; font-weight: 600; }
.countdown.warn { color: #b45309; }
.countdown.expired { color: #b91c1c; }
.link-status { background: #fef2f2; border: 1px solid #fecaca; color: #b91c1c;
  border-radius: 8px; padding: .75rem 1rem; margin: 1rem 0; font-weight: 600; }
.link-status .contact { display: block; margin-top: .4rem; font-weight: 400; color: #7f1d1d; }
form.disabled { opacity: .55; }
.assurances { background: #f1f5f9; border-radius: 8px; padding: 1rem; margin: 1rem 0; }
.assurances .leastpriv { color: #334155; }
form { display: grid; gap: .6rem; }
label { display: grid; gap: .2rem; font-size: .9rem; }
input, select { padding: .4rem; }
button { padding: .5rem 1.1rem; cursor: pointer; background: #13294C; color: #fff;
  border: none; border-radius: 6px; font-weight: 600; }
button:hover { background: #0D1B2A; }
button:disabled { background: #9ca3af; cursor: not-allowed; }

/* File selection grid */
.files-toolbar { display: flex; align-items: center; gap: 1rem; margin: .5rem 0; flex-wrap: wrap; }
#file-search { flex: 1 1 280px; padding: .45rem .6rem; border: 1px solid #cbd5e1; border-radius: 6px; }
.file-summary { font-size: .9rem; color: #334155; font-variant-numeric: tabular-nums; white-space: nowrap; }
.grid-wrap { max-height: 420px; overflow-y: auto; border: 1px solid #e2e8f0; border-radius: 8px; }
.file-grid { width: 100%; border-collapse: collapse; font-size: .9rem; }
.file-grid thead th { position: sticky; top: 0; background: #13294C; color: #fff; text-align: left;
  padding: .5rem .6rem; font-weight: 600; z-index: 1; }
.file-grid th.col-check { width: 2.2rem; text-align: center; }
.file-grid th.col-size, .file-grid td.col-size { width: 7rem; text-align: right; white-space: nowrap;
  font-variant-numeric: tabular-nums; }
.file-grid tbody td { padding: .4rem .6rem; border-top: 1px solid #eef2f7; }
.file-grid td.col-check { text-align: center; }
.file-grid td.col-name { word-break: break-all; }
.file-grid tbody tr:nth-child(even) { background: #f8fafc; }
.file-grid tbody tr:hover { background: #eff6ff; }
.file-grid .empty td { color: #64748b; text-align: center; padding: 1rem; }

/* Paging */
.pager { display: flex; align-items: center; gap: .8rem; margin: .6rem 0; }
.pager #page-info { font-size: .9rem; color: #334155; font-variant-numeric: tabular-nums; }
.pager button { padding: .35rem .8rem; }
.actions { display: flex; gap: .6rem; flex-wrap: wrap; align-items: center; }
button.secondary { background: #fff; color: #13294C; border: 1px solid #13294C; }
button.secondary:hover { background: #eef2f7; }

/* Status modal */
.modal { position: fixed; inset: 0; background: rgba(15, 23, 42, .55);
  display: flex; align-items: center; justify-content: center; padding: 1rem; z-index: 50; }
.modal[hidden] { display: none; }
.modal-card { background: #fff; border-radius: 12px; width: min(520px, 100%);
  padding: 1.25rem 1.4rem; box-shadow: 0 20px 50px rgba(0,0,0,.3); }
.modal-head { display: flex; justify-content: space-between; align-items: center; }
.modal-head h2 { margin: 0; font-size: 1.15rem; }
.icon-btn { background: none; color: #64748b; font-size: 1.5rem; line-height: 1;
  padding: 0 .3rem; border: none; }
.icon-btn:hover { background: none; color: #13294C; }
.progress-bar { height: 12px; background: #e2e8f0; border-radius: 999px; overflow: hidden; margin: 1rem 0 .5rem; }
.progress-fill { height: 100%; width: 0; background: #0070F3; border-radius: 999px;
  transition: width .4s ease; }
.status-line { font-weight: 600; margin: .25rem 0 .75rem; }
.status-line.error { color: #b91c1c; }
.status-grid { display: grid; grid-template-columns: auto 1fr; gap: .35rem 1rem; margin: 0;
  font-size: .92rem; }
.status-grid dt { color: #64748b; }
.status-grid dd { margin: 0; font-variant-numeric: tabular-nums; text-align: right; }
.modal-foot { display: flex; justify-content: flex-end; margin-top: 1.1rem; }
