/* TaxTraks Secure Client Portal ------------------------------------------------
 *
 * BRAND COLOURS -- change the three values in the block below and the whole
 * portal restyles: header, nav strip, buttons, links, headings, table headers
 * and focus rings. Nothing else in this file needs touching.
 *
 * To match taxtraks.net exactly: open the site, right-click the header bar,
 * choose "Inspect", and copy the background colour Chrome reports into --navy.
 * Make --navy-dark roughly 15% darker, and take --accent from the site's
 * button / call-to-action colour.
 * --------------------------------------------------------------------------- */

:root {
  /* ---- brand ---------------------------------------------------------- */
  --navy:      #123a4d;   /* header bar, headings          */
  --navy-dark: #0c2a38;   /* navigation strip              */
  --accent:    #a85e12;   /* buttons, links, active tab    */
  /* --------------------------------------------------------------------- */

  --ink:       #22313f;
  --muted:     #6b7c8d;
  --line:      #dde5ec;
  --bg:        #f4f7fa;
  --panel:     #ffffff;
  --good:      #1f6b45;
  --good-bg:   #e6f4ec;
  --warn:      #8a5a00;
  --warn-bg:   #fdf3e0;
  --bad:       #93242b;
  --bad-bg:    #fbeaeb;
  --info:      #1f4e79;
  --info-bg:   #e8f1f8;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  -webkit-text-size-adjust: 100%;
}

a { color: var(--accent); }
a:hover { color: var(--navy); }

/* Header ------------------------------------------------------------------ */
.site-header {
  background: var(--navy);
  color: #fff;
  border-bottom: 4px solid var(--accent);
}
.site-header .bar {
  max-width: 1040px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
/* Logo + wordmark are one link back to the main site. */
.site-header .brand { display: flex; align-items: center; gap: 14px; text-decoration: none; color: inherit; }
.site-header .brand:hover { text-decoration: none; color: inherit; }

/* The local artwork is the reverse (white/green) version, so it sits straight
   on the dark bar. A logo loaded from elsewhere may be full-colour on a
   transparent background, so that one keeps the white pill behind it. */
.site-header img.logo { height: 34px; width: auto; display: block; }
.site-header img.logo-hosted {
  max-height: 52px; height: auto;
  background: #fff; padding: 4px 8px; border-radius: 4px;
}

.site-header .wordmark { line-height: 1.2; }
/* The artwork already says "TAX TRAKS" - only print it as text when there is
   no logo, otherwise the header says the name twice. */
.site-header .title { display: none; font-size: 20px; font-weight: 700; letter-spacing: .3px; }
.site-header .brand-nologo .title { display: block; }
.site-header .subtitle {
  font-size: 11.5px; font-weight: 600; color: #b9cddb;
  letter-spacing: 1.2px; text-transform: uppercase;
}
.site-header .spacer { flex: 1 1 auto; }
.site-header .who { font-size: 13.5px; color: #cddceb; text-align: right; line-height: 1.35; }
.site-header .who strong { color: #fff; display: block; font-weight: 600; }

/* Nav --------------------------------------------------------------------- */
.site-nav { background: var(--navy-dark); }
.site-nav ul {
  max-width: 1040px; margin: 0 auto; padding: 0 12px;
  list-style: none; display: flex; flex-wrap: wrap;
}
.site-nav a {
  display: block; padding: 11px 14px;
  color: #c9d8e6; text-decoration: none; font-size: 14.5px;
  border-bottom: 3px solid transparent;
}
.site-nav a:hover { color: #fff; background: rgba(255,255,255,.06); }
.site-nav a.active { color: #fff; border-bottom-color: var(--accent); font-weight: 600; }

/* The way back to the public site. Set apart from the working menu items so it
   reads as an exit rather than another portal page. */
.site-nav a.nav-home { color: #fff; font-weight: 600; }
.site-nav a.nav-home:hover { background: rgba(255,255,255,.12); }

.site-footer .footer-home { font-weight: 600; }

/* Layout ------------------------------------------------------------------ */
.wrap { max-width: 1040px; margin: 0 auto; padding: 26px 20px 60px; }
.wrap-narrow { max-width: 460px; margin: 0 auto; padding: 44px 20px 60px; }

h1 { font-size: 24px; margin: 0 0 6px; color: var(--navy); font-weight: 650; }
h2 { font-size: 17px; margin: 0 0 14px; color: var(--navy); font-weight: 650; }
.lede { color: var(--muted); margin: 0 0 24px; font-size: 15px; }

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
  margin-bottom: 22px;
  box-shadow: 0 1px 2px rgba(31,58,95,.05);
}
.panel > h2:first-child { margin-top: 0; }
.panel-tight { padding: 0; overflow: hidden; }
.panel-tight h2 { padding: 18px 22px 0; }

/* Forms ------------------------------------------------------------------- */
label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 5px; color: var(--navy); }
.hint { font-weight: 400; color: var(--muted); font-size: 13px; margin: 4px 0 0; }

input[type=text], input[type=email], input[type=password], input[type=file], textarea, select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #c3d0dc;
  border-radius: 5px;
  font: inherit;
  font-size: 15px;
  background: #fff;
  color: var(--ink);
}
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(168,94,18,.18);
}
.field { margin-bottom: 16px; }
.row { display: flex; gap: 16px; flex-wrap: wrap; }
.row .field { flex: 1 1 220px; }

.btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  border: 1px solid var(--accent);
  padding: 10px 20px;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  border-radius: 5px;
  cursor: pointer;
  text-decoration: none;
  line-height: 1.4;
}
.btn:hover { background: var(--navy); border-color: var(--navy); color: #fff; }
.btn:disabled { opacity: .55; cursor: default; }
.btn-block { display: block; width: 100%; text-align: center; }
.btn-quiet { background: #fff; color: var(--navy); border-color: #c3d0dc; }
.btn-quiet:hover { background: #eef3f8; color: var(--navy); border-color: var(--accent); }
.btn-small { padding: 6px 12px; font-size: 13.5px; }
.btn-danger { background: #fff; color: var(--bad); border-color: #e0bfc2; }
.btn-danger:hover { background: var(--bad); color: #fff; border-color: var(--bad); }

/* Alerts ------------------------------------------------------------------ */
.alert {
  padding: 12px 16px;
  border-radius: 6px;
  margin-bottom: 18px;
  font-size: 14.5px;
  border: 1px solid transparent;
}
.alert-good { background: var(--good-bg); color: var(--good); border-color: #bfe0cd; }
.alert-bad  { background: var(--bad-bg);  color: var(--bad);  border-color: #eccace; }
.alert-warn { background: var(--warn-bg); color: var(--warn); border-color: #eddcb8; }
.alert-info { background: var(--info-bg); color: var(--info); border-color: #c8dcec; }
.alert strong { display: block; margin-bottom: 3px; }

/* Drop zone --------------------------------------------------------------- */
.dropzone {
  border: 2px dashed #b9cadb;
  border-radius: 8px;
  background: #fafcfe;
  padding: 30px 20px;
  text-align: center;
  transition: background .15s, border-color .15s;
  cursor: pointer;
}
.dropzone:hover, .dropzone.hot { border-color: var(--accent); background: #eef5fb; }
.dropzone .big { font-size: 16px; font-weight: 600; color: var(--navy); }
.dropzone .small { font-size: 13.5px; color: var(--muted); margin-top: 6px; }
.dropzone input[type=file] { display: none; }
#picked { margin-top: 14px; font-size: 14px; text-align: left; }
#picked ul { margin: 6px 0 0; padding-left: 20px; }

/* Tables ------------------------------------------------------------------ */
.table-scroll { overflow-x: auto; }
table.files { width: 100%; border-collapse: collapse; font-size: 14.5px; }
table.files th {
  text-align: left; padding: 10px 14px;
  background: #eef3f8; color: var(--navy);
  font-size: 12.5px; text-transform: uppercase; letter-spacing: .5px;
  border-bottom: 1px solid var(--line); white-space: nowrap;
}
table.files td { padding: 11px 14px; border-bottom: 1px solid #eef2f6; vertical-align: top; }
table.files tr:last-child td { border-bottom: none; }
table.files tr:hover td { background: #f8fbfd; }
table.files .name { font-weight: 600; color: var(--navy); word-break: break-word; }
table.files .meta { color: var(--muted); font-size: 13px; white-space: nowrap; }
table.files td.actions { text-align: right; }
table.files td.actions form { display: inline-block; margin: 0; }
table.files td.actions .btn { margin: 0 0 4px 4px; }

.tag {
  display: inline-block; font-size: 11.5px; font-weight: 700;
  padding: 2px 8px; border-radius: 20px; letter-spacing: .3px; white-space: nowrap;
}
.tag-in  { background: var(--good-bg); color: var(--good); }
.tag-out { background: var(--info-bg); color: var(--info); }
.tag-off { background: #eceff2; color: var(--muted); }

.empty { padding: 34px 22px; text-align: center; color: var(--muted); font-size: 15px; }

/* Misc -------------------------------------------------------------------- */
.credential {
  background: #fff; border: 1px solid var(--line); border-radius: 6px;
  padding: 14px 16px; margin-top: 12px; font-size: 15px;
}
.credential code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  background: #eef3f8; padding: 3px 8px; border-radius: 4px;
  font-size: 15px; color: var(--navy); font-weight: 600;
}
.site-footer {
  border-top: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
  font-size: 13.5px;
}
.site-footer .bar {
  max-width: 1040px; margin: 0 auto; padding: 18px 20px;
  display: flex; gap: 14px; flex-wrap: wrap; justify-content: space-between;
}
.notice-secure { font-size: 13px; color: var(--muted); margin-top: 18px; text-align: center; }

/* Sharing ----------------------------------------------------------------- */
.tag-share { background: #f1ecfa; color: #5b3f96; }

.shared-line {
  margin-top: 7px;
  font-size: 13px;
  color: var(--muted);
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #f1ecfa;
  color: #5b3f96;
  border-radius: 20px;
  padding: 2px 4px 2px 10px;
  font-size: 12.5px;
  font-weight: 600;
  margin: 2px 3px 2px 0;
}
.chip form { display: inline; margin: 0; }
.chip button {
  border: none;
  background: rgba(91, 63, 150, .14);
  color: #5b3f96;
  border-radius: 50%;
  width: 17px; height: 17px;
  line-height: 15px;
  font-size: 13px;
  cursor: pointer;
  padding: 0;
}
.chip button:hover { background: #5b3f96; color: #fff; }

.share-box { margin-top: 8px; }
.share-box summary {
  cursor: pointer;
  font-size: 13px;
  color: var(--accent);
  font-weight: 600;
  display: inline-block;
  list-style: none;
}
.share-box summary::-webkit-details-marker { display: none; }
.share-box summary::before { content: "+ "; }
.share-box[open] summary::before { content: "\2212 "; }
.share-box summary:hover { color: var(--navy); }
.share-box form {
  margin-top: 8px;
  padding: 10px 12px;
  background: #fafcfe;
  border: 1px solid var(--line);
  border-radius: 6px;
  max-width: 340px;
}
.share-option {
  display: block;
  font-weight: 500;
  font-size: 14px;
  color: var(--ink);
  margin-bottom: 5px;
  cursor: pointer;
}
.share-option input { margin-right: 7px; }
.share-option .meta { margin-left: 4px; }

.inline-mobile { display: flex; gap: 6px; align-items: center; max-width: 260px; }
.inline-mobile input[type=text] { padding: 6px 9px; font-size: 14px; }
.inline-mobile .btn { flex: 0 0 auto; }

/* Shown only on narrow screens, where whole table columns are dropped. */
.show-sm { display: none; }

@media (max-width: 620px) {
  .site-header .who { text-align: left; width: 100%; }
  .site-header img.logo { height: 28px; }
  .site-header .subtitle { font-size: 11px; letter-spacing: .9px; }
  .wrap { padding: 18px 14px 50px; }

  /* Tables become stacked cards so nothing runs off the side of the screen. */
  .table-scroll { overflow-x: visible; }
  table.files, table.files tbody, table.files tr, table.files td { display: block; width: 100%; }
  table.files thead { display: none; }
  table.files .hide-sm { display: none; }
  table.files tr { padding: 14px 0 12px; border-bottom: 1px solid #eef2f6; }
  table.files tr:hover td { background: transparent; }
  table.files td { border-bottom: none; padding: 2px 16px; }
  table.files .meta { white-space: normal; }
  table.files .name { display: block; }
  table.files td.actions { text-align: left; padding-top: 12px; }
  table.files td.actions .btn { margin: 0 8px 0 0; padding: 9px 16px; }
  table.files td.actions form { margin: 0; }

  .show-sm { display: inline-block; margin-left: 8px; vertical-align: 2px; }
}

/* --------------------------------------------------------------------------
 * Three roles: administrator, staff, client.
 * Added when the portal gained a staff tier and a share-with dropdown.
 * -------------------------------------------------------------------------- */

.tag-role { text-transform: none; letter-spacing: 0; }
.tag-role-admin  { background: #fdf0e2; color: #8a5a00; }
.tag-role-staff  { background: #e6f0f7; color: #1c5378; }
.tag-role-client { background: #eceff2; color: var(--muted); }

/* Heading that separates the firm overview from the user's own file area. */
.section-break {
  margin: 34px 0 4px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
  font-size: 19px;
  color: var(--navy);
}

/* The share dropdown replaces the old checkbox list. */
.share-form {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 8px;
  max-width: 420px;
}
.share-label {
  flex: 1 0 100%;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: -2px;
}
.share-form select {
  flex: 1 1 210px;
  min-width: 0;
  padding: 7px 9px;
  font-size: 14px;
  margin: 0;
}
.share-form .btn { flex: 0 0 auto; }
.share-form optgroup {
  font-style: normal;
  font-weight: 700;
  color: var(--muted);
}
.share-form optgroup option {
  font-weight: 400;
  color: var(--ink);
}

@media (max-width: 520px) {
  .share-form select { flex: 1 0 100%; }
}

/* ===========================================================================
 * CRM  --  billing and messages
 *
 * Added with the CRM. Uses the same three brand values as everything above, so
 * changing --navy / --accent at the top of this file restyles these too.
 * ======================================================================== */

/* --- Menu badge ----------------------------------------------------------- */
.nav-badge {
  display: inline-block;
  min-width: 18px;
  padding: 0 5px;
  margin-left: 5px;
  background: var(--accent);
  color: #fff;
  border-radius: 20px;
  font-size: 11.5px;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
  vertical-align: 1px;
}

/* --- Extra tag colours ---------------------------------------------------- */
.tag-bad  { background: var(--bad-bg);  color: var(--bad); }
.tag-warn { background: var(--warn-bg); color: var(--warn); }

/* --- Summary tiles -------------------------------------------------------- */
.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 22px;
}
.stat-tile {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px 20px;
  box-shadow: 0 1px 2px rgba(31,58,95,.05);
}
.stat-tile.stat-bad { border-color: #e0bfc2; background: var(--bad-bg); }
.stat-label {
  font-size: 12px; font-weight: 700; letter-spacing: .7px;
  text-transform: uppercase; color: var(--muted);
}
.stat-value {
  font-size: 27px; font-weight: 700; color: var(--navy);
  line-height: 1.15; margin: 6px 0 3px; letter-spacing: -.4px;
}
.stat-tile.stat-bad .stat-value { color: var(--bad); }
.stat-meta { font-size: 13px; color: var(--muted); }

/* --- Small bits ----------------------------------------------------------- */
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 0 0 22px; }
.toolbar form { margin: 0; }

.crumb { font-size: 14px; margin: 0 0 14px; }
.crumb a { text-decoration: none; }

.amount-due   { color: var(--bad); }
.amount-clear { color: var(--good); }

.meta-list { display: flex; flex-wrap: wrap; gap: 6px 22px; font-size: 14px; color: var(--muted); margin: 0; }
.meta-list strong { color: var(--navy); font-weight: 600; }

.show-sm-block { display: none; }

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

table.files tfoot td { padding: 10px 14px; font-size: 14.5px; border-top: 1px solid var(--line); }
table.files tfoot .total-row td { background: #f8fbfd; }

/* --- Invoice header ------------------------------------------------------- */
.invoice-head { display: flex; gap: 28px; flex-wrap: wrap; align-items: flex-start; }
.invoice-head-main { flex: 1 1 320px; }
.invoice-head-main h1 { margin-bottom: 4px; }
.invoice-head-side {
  flex: 0 0 240px;
  border-left: 1px solid var(--line);
  padding-left: 24px;
}
.invoice-balance { margin: 12px 0 14px; }
.invoice-balance .k {
  display: block; font-size: 12px; font-weight: 700; letter-spacing: .7px;
  text-transform: uppercase; color: var(--muted);
}
.invoice-balance .v { display: block; font-size: 28px; font-weight: 700; letter-spacing: -.4px; }
.invoice-admin-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.invoice-admin-actions form { margin: 0; }

.remittance {
  background: #f7fafc;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 14px 16px;
  margin: 0 0 12px;
  font: inherit;
  font-size: 15px;
  white-space: pre-wrap;
  color: var(--ink);
}

/* --- Invoice line editor -------------------------------------------------- */
table.files.line-editor td { padding: 6px 10px; vertical-align: middle; }
table.files.line-editor input { padding: 8px 10px; font-size: 14.5px; }
table.files.line-editor .line-amount { color: var(--muted); font-size: 14.5px; white-space: nowrap; }

/* --- Conversations -------------------------------------------------------- */
.thread-head { display: flex; gap: 24px; justify-content: space-between; flex-wrap: wrap; align-items: flex-start; }
.thread-head h1 { margin-bottom: 8px; }

.thread { margin-bottom: 22px; }

.msg {
  background: var(--panel);
  border: 1px solid var(--line);
  border-left: 4px solid var(--navy);
  border-radius: 8px;
  padding: 14px 18px 16px;
  margin-bottom: 12px;
  box-shadow: 0 1px 2px rgba(31,58,95,.04);
}
/* Your own messages sit slightly inset and take the accent edge, so a thread
   reads as a conversation rather than a list. */
.msg-mine { border-left-color: var(--accent); margin-left: 36px; background: #fdfdfb; }

.msg-meta {
  display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline;
  margin-bottom: 8px; font-size: 13px; color: var(--muted);
}
.msg-who { font-weight: 700; color: var(--navy); font-size: 14.5px; }
.msg-role {
  font-size: 11px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase;
  background: #eceff2; color: var(--muted); border-radius: 20px; padding: 2px 8px;
}
.msg-role-firm { background: var(--info-bg); color: var(--info); }
.msg-when { margin-left: auto; }
.msg-body { font-size: 15.5px; line-height: 1.6; word-wrap: break-word; }

.thread-divider {
  display: flex; align-items: center; gap: 12px;
  margin: 18px 0 12px;
  color: var(--bad); font-size: 12px; font-weight: 700;
  letter-spacing: 1px; text-transform: uppercase;
}
.thread-divider::before,
.thread-divider::after { content: ""; flex: 1 1 auto; height: 1px; background: #eccace; }

/* --- Responsive ----------------------------------------------------------- */
@media (max-width: 860px) {
  .stat-row { grid-template-columns: 1fr; gap: 12px; }
  .invoice-head-side {
    flex: 1 1 100%;
    border-left: none;
    border-top: 1px solid var(--line);
    padding-left: 0;
    padding-top: 18px;
  }
}

@media (max-width: 620px) {
  .show-sm-block { display: block; }
  .msg-mine { margin-left: 14px; }
  .msg-when { margin-left: 0; width: 100%; }
  table.files.line-editor,
  table.files.line-editor tbody,
  table.files.line-editor tr,
  table.files.line-editor td { display: block; width: 100%; }
  table.files.line-editor thead { display: none; }
  table.files.line-editor tr { padding: 10px 12px; border-bottom: 1px solid var(--line); }
  table.files.line-editor tfoot { display: table; width: 100%; }
}

/* ===========================================================================
 * Software downloads
 * ======================================================================== */
.software-item { display: flex; gap: 30px; align-items: flex-start; flex-wrap: wrap; }
.software-main { flex: 1 1 340px; }
.software-main h2 { margin-bottom: 4px; }
.software-side {
  flex: 0 0 250px;
  border-left: 1px solid var(--line);
  padding-left: 24px;
}
.software-tagline { color: var(--accent); font-weight: 600; margin: 0 0 10px; }

.release-notes, .older-versions, .edit-details { margin-top: 12px; }
.release-notes summary, .older-versions summary, .edit-details summary {
  cursor: pointer; font-size: 14px; font-weight: 600; color: var(--accent);
  list-style: none; display: inline-block;
}
.release-notes summary::-webkit-details-marker,
.older-versions summary::-webkit-details-marker,
.edit-details summary::-webkit-details-marker { display: none; }
.release-notes summary::before,
.older-versions summary::before,
.edit-details summary::before { content: "+ "; }
.release-notes[open] summary::before,
.older-versions[open] summary::before,
.edit-details[open] summary::before { content: "\2212 "; }
.release-notes summary:hover, .older-versions summary:hover, .edit-details summary:hover { color: var(--navy); }

.release-notes > div {
  margin-top: 8px; padding: 12px 14px; background: #f7fafc;
  border: 1px solid var(--line); border-radius: 6px; font-size: 14.5px;
}
.older-versions ul { list-style: none; margin: 10px 0 0; padding: 0; font-size: 14px; }
.older-versions li { padding: 5px 0; border-bottom: 1px solid #eef2f6; }
.older-versions li:last-child { border-bottom: none; }
.older-versions .meta { margin-left: 8px; }

@media (max-width: 760px) {
  .software-side {
    flex: 1 1 100%; border-left: none; padding-left: 0;
    border-top: 1px solid var(--line); padding-top: 18px;
  }
}

/* ===========================================================================
 * Training library
 *
 * A media block beside a text block, stacking on a narrow screen. The video
 * element is capped rather than full width - a training recording at 1200px
 * is unwatchable text, and at 420px it is readable.
 * ======================================================================== */
.lib-item {
  display: flex;
  gap: 22px;
  padding: 20px 0;
  border-top: 1px solid var(--line);
  align-items: flex-start;
}
.lib-item:first-of-type { border-top: none; padding-top: 6px; }

.lib-media { flex: 0 0 420px; max-width: 420px; }
.lib-media video {
  width: 100%; display: block; border-radius: 6px;
  background: #000; border: 1px solid var(--line);
}

/* 16:9 without depending on aspect-ratio, which older Safari does not have. */
.lib-embed { position: relative; width: 100%; padding-top: 56.25%; }
.lib-embed iframe {
  position: absolute; inset: 0; width: 100%; height: 100%;
  border: 0; border-radius: 6px; background: #000;
}

.lib-doc-icon {
  display: flex; align-items: center; justify-content: center;
  height: 132px; border-radius: 6px;
  background: var(--info-bg); border: 1px solid var(--line);
  color: var(--info); font-weight: 700; font-size: 26px; letter-spacing: .06em;
}

.lib-body { flex: 1 1 auto; min-width: 0; }
.lib-body h3 { margin: 0 0 6px; color: var(--navy); font-size: 18px; }
.lib-body p  { margin: 0 0 10px; }

.row-retired td { opacity: .55; }
table.files td.num, table.files th.num { text-align: right; }

@media (max-width: 760px) {
  .lib-item { display: block; }
  .lib-media { max-width: none; margin-bottom: 14px; }
  .lib-doc-icon { height: 96px; font-size: 22px; }
}
