@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

/* ============================================================
   SLR Family Print — print.slr.family

   The design system from documents.slr.family, carried over so
   the sites read as one product. One substitution: the vault's
   violet accent becomes the print blue, because the only button
   that matters on this site is a dark blue "Print".

   The page is one column at every width. There is exactly one
   thing to do here — write a message and send it to a printer —
   so the phone layout and the desktop layout are the same
   layout, just wider.
   ============================================================ */

:root {
  /* Brand — dark blue, the Print button's colour */
  --accent:          #16407a;
  --accent-hover:    #102f5c;
  --accent-soft:     #e9eff8;
  --accent-ring:     rgba(22, 64, 122, .18);

  /* Bars */
  --rail:            #1b2a3a;
  --rail-text:       #b9c6d3;
  --rail-faint:      #6f8298;

  /* Surfaces */
  --bg:              #f4f5f7;
  --surface:         #ffffff;
  --border:          #e2e5ea;
  --border-strong:   #cbd2db;

  /* Text */
  --text:            #1a2733;
  --text-muted:      #5c6b7a;
  --text-faint:      #8a97a4;

  /* State */
  --danger:          #d0342c;
  --danger-soft:     #fdeceb;
  --ok:              #217a44;
  --ok-soft:         #e8f6ee;

  --radius:          8px;
  --radius-sm:       6px;
  --shadow:          0 1px 2px rgba(20, 35, 50, .08);
  --shadow-lg:       0 8px 24px -8px rgba(20, 35, 50, .25);

  --topbar-h:        56px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; }
button { font: inherit; color: inherit; }
input, select, textarea { font: inherit; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 3px; }
::selection { background: var(--accent-soft); color: var(--text); }

/* ── The family mark ──────────────────────────────────────── */

.rail-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px; height: 32px;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
  flex: none;
}

/* ── Buttons ──────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 36px;
  padding: 0 14px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text);
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
  transition: background .12s, border-color .12s, box-shadow .12s;
}
.btn:hover:not(:disabled) { background: #f7f8fa; }
.btn:disabled { opacity: .55; cursor: not-allowed; }

.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  font-weight: 600;
}
.btn-primary:hover:not(:disabled) { background: var(--accent-hover); border-color: var(--accent-hover); }

.btn-block { width: 100%; }

/* The one button this whole site exists for. Centred, filled dark blue,
   white text — and big enough to be the obvious end of the form. */
.print-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 22px 20px 26px;
  border-top: 1px solid var(--border);
  background: #fbfcfd;
}

.btn-print {
  min-width: 220px;
  height: 48px;
  padding: 0 32px;
  border: none;
  border-radius: var(--radius-sm);
  background: var(--accent);
  color: #ffffff;
  font-size: 15.5px;
  font-weight: 600;
  letter-spacing: .01em;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: var(--shadow);
  transition: background .12s, box-shadow .12s, transform .06s;
}
.btn-print:hover:not(:disabled) { background: var(--accent-hover); box-shadow: var(--shadow-lg); }
.btn-print:active:not(:disabled) { transform: translateY(1px); }
.btn-print:disabled { opacity: .55; cursor: not-allowed; box-shadow: none; }

.print-hint {
  font-size: 12px;
  color: var(--text-faint);
  text-align: center;
  max-width: 420px;
}

/* ── Top bar ──────────────────────────────────────────────── */

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  height: var(--topbar-h);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 16px;
  background: var(--rail);
  color: #fff;
}
.topbar .rail-mark { background: rgba(255, 255, 255, .14); }
.topbar-title { font-size: 14.5px; font-weight: 600; }
.topbar-title span { display: block; font-size: 11.5px; font-weight: 400; color: var(--rail-faint); }
.topbar-spacer { flex: 1; }

.who {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.who-email {
  font-size: 12.5px;
  color: var(--rail-text);
  max-width: 46vw;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.avatar {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .16);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11.5px;
  font-weight: 600;
  object-fit: cover;
  flex: none;
}
.signout {
  border: 1px solid rgba(255, 255, 255, .22);
  background: transparent;
  color: var(--rail-text);
  height: 30px;
  padding: 0 10px;
  border-radius: var(--radius-sm);
  font-size: 12.5px;
  cursor: pointer;
}
.signout:hover { background: rgba(255, 255, 255, .1); color: #fff; }

/* ── The composer ─────────────────────────────────────────── */

.page {
  max-width: 720px;
  margin: 0 auto;
  padding: 22px 16px 48px;
}

.page-head { margin-bottom: 16px; }
.page-head h1 { font-size: 19px; font-weight: 600; letter-spacing: -.01em; }
.page-head p { margin-top: 3px; font-size: 13px; color: var(--text-muted); }

.compose {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.compose-head {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 42px;
  padding: 0 16px;
  background: var(--rail);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .02em;
}

/* One row of the header block — the To / Subject lines of an email. */
.field {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 16px;
  border-bottom: 1px solid var(--border);
  min-height: 48px;
}
.field > label,
.field > .field-label {
  flex: none;
  width: 68px;
  font-size: 13px;
  color: var(--text-muted);
}
.field-body { flex: 1; min-width: 0; }

.field input[type="text"],
.field select {
  width: 100%;
  border: none;
  background: transparent;
  color: var(--text);
  font-size: 14px;
  padding: 12px 0;
}
.field input[type="text"]:focus,
.field select:focus { outline: none; }
.field input::placeholder { color: var(--text-faint); }

.field select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 22px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%235c6b7a' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 2px center;
  cursor: pointer;
}

/* The signed-in address, shown the way a mail client shows "From". */
.from-line {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--text);
  padding: 12px 0;
}
.from-line .avatar { background: var(--accent-soft); color: var(--accent); }

.printer-note {
  font-size: 12px;
  color: var(--text-faint);
  padding: 0 16px 12px;
  border-bottom: 1px solid var(--border);
  margin-top: -4px;
}

.body-wrap { padding: 4px 16px 8px; }
textarea#body {
  width: 100%;
  min-height: 220px;
  border: none;
  background: transparent;
  color: var(--text);
  font-size: 14.5px;
  line-height: 1.6;
  padding: 12px 0;
  resize: vertical;
}
textarea#body:focus { outline: none; }
textarea#body::placeholder { color: var(--text-faint); }


[hidden]{display:none!important}.topbar #account{margin-left:auto}.topbar #account .email{color:var(--rail-text);font-size:12px;max-width:45vw;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.quiet{border:0;background:transparent;color:var(--text-muted);font-size:12px;padding:6px;cursor:pointer}.topbar .quiet{color:var(--rail-text);border:1px solid #ffffff38;border-radius:6px;padding:5px 9px}.attachment{padding:16px}.drop{position:relative;display:flex;gap:8px;align-items:center;justify-content:center;flex-direction:column;min-height:125px;padding:18px;border:1px dashed var(--border-strong);border-radius:6px;background:#fbfcfd;color:var(--text-muted);cursor:pointer}.drop.drag,.drop:hover{border-color:var(--accent);background:var(--accent-soft)}.drop:focus-within{outline:2px solid var(--accent);outline-offset:2px}.drop input{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer}.drop strong{font-size:13px;font-weight:500;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.drop span{font-size:12px;color:var(--text-faint)}.listing{margin-top:22px}.listing:first-child{margin-top:0}.section-title{display:flex;align-items:center;justify-content:space-between;margin-bottom:10px}.section-title h2{font-size:15px;font-weight:600}.count{font-size:11px;font-weight:500;margin-left:5px;color:var(--text-faint)}.cards{display:grid;gap:10px}.empty{background:white;padding:26px 16px;border:1px solid var(--border);border-radius:8px;color:var(--text-faint);font-size:13px}.item{background:white;border:1px solid var(--border);border-radius:8px;padding:15px 16px;display:flex;align-items:center;gap:13px}.doc-icon{display:grid;place-items:center;width:35px;height:42px;flex-shrink:0;border:1px solid var(--border);border-radius:5px;background:#f7f9fc;font-size:9px;font-weight:600;color:var(--accent)}.item-details{flex:1;min-width:0}.item h3{font-size:13.5px;font-weight:500;margin:0 0 4px;overflow-wrap:anywhere}.item p{font-size:11.5px;color:var(--text-faint)}.item-tools{display:flex;align-items:center;gap:10px}.timer{font-size:12px;font-variant-numeric:tabular-nums;color:var(--text-muted);white-space:nowrap}.open-btn{border:1px solid var(--border-strong);background:white;border-radius:6px;font-size:12px;padding:6px 12px;cursor:pointer}.email-failed{color:#aa5129!important}.notice{background:var(--accent-soft);color:var(--accent);padding:12px 14px;border:1px solid #d2ddec;border-radius:6px;font-size:13px;margin-bottom:15px;line-height:1.6}.auth-card{background:white;border:1px solid var(--border);border-radius:8px;padding:24px}.auth-card h2{font-size:18px}.auth-card p{font-size:13px;color:var(--text-muted);margin:6px 0 20px}footer{padding:25px 0;color:var(--text-faint);font-size:12px}footer a{text-decoration:none}dialog{border:1px solid var(--border);border-radius:8px;width:min(1000px,94vw);max-height:92dvh;padding:0;background:var(--bg);color:var(--text);margin:auto}dialog::backdrop{background:#1b2a3a77}.viewer-head,.viewer-foot{display:flex;align-items:center;justify-content:space-between;padding:15px 20px;gap:15px;background:white}.viewer-head h2{font-size:16px}.viewer-head p,.viewer-foot p{font-size:12px;color:var(--text-muted);margin-top:4px}#viewerBody{min-height:200px;display:grid;place-items:center}#viewerBody iframe{width:100%;height:65dvh;border:0}#viewerBody img{max-width:100%;max-height:65dvh;object-fit:contain}#viewerBody p{padding:25px;color:var(--text-muted)}@media(max-width:600px){.item{flex-wrap:wrap}.item-tools{width:100%;justify-content:flex-end}.timer{margin-right:auto}.field{padding:0 12px;gap:8px}.field>label,.field>.field-label{width:47px}.from-line{font-size:12.5px}.topbar{gap:8px}.topbar-title{font-size:13px}.topbar-title span{font-size:10px}.topbar #account .email{max-width:34vw;font-size:10px}.who{gap:5px}.topbar .quiet{font-size:10px;padding:5px}.viewer-head,.viewer-foot{padding:12px}.viewer-foot p{font-size:10px}}

a.open-btn{display:inline-block;color:var(--text);text-decoration:none;white-space:nowrap}
