:root {
  --rabbit-blue: #021e73;
  --rabbit-mid: #034c8c;
  --rabbit-soft: #3b668c;
  --rabbit-neutral: #d9d1c7;
  --white: #ffffff;
  --ink: #0f1730;
  --muted: #64718f;
  --panel: rgba(255,255,255,.965);
  --border: rgba(2,30,115,.13);
  --shadow: 0 24px 70px rgba(0, 10, 50, .28);
  --radius: 24px;
}

* { box-sizing: border-box; }
html, body { width: 100%; min-height: 100%; margin: 0; }
body {
  font-family: "NeverMind Extended", "Arial Narrow", Arial, sans-serif;
  color: var(--ink);
  background: var(--rabbit-blue);
}
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
.hidden { display: none !important; }

.app-shell { min-height: 100vh; position: relative; overflow: hidden; }
.background { position: fixed; inset: 0; background: #021e73; overflow: hidden; z-index: 0; }
.background-gradient {
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 72% 24%, rgba(43, 111, 201, .52), transparent 34%),
    radial-gradient(circle at 54% 92%, rgba(0, 0, 0, .22), transparent 44%),
    linear-gradient(120deg, #010b31 0%, #021e73 52%, #034c8c 100%);
}
.watermark {
  position: absolute; right: -2vw; bottom: -15vh;
  width: min(60vw, 900px); opacity: .11; filter: brightness(4) saturate(0);
  transform: rotate(-8deg);
}
.ambient { position:absolute; border-radius:999px; filter: blur(45px); opacity:.25; }
.ambient-a { width: 30vw; height: 30vw; background: #7ca8ff; right: 12vw; top: 12vh; }
.ambient-b { width: 18vw; height: 18vw; background: #000; left: 35vw; bottom: -6vh; opacity:.18; }

.topbar {
  position: relative; z-index: 10; display:flex; align-items:center; justify-content:space-between;
  min-height: 88px; padding: 20px 42px;
}
.brand-button { background: transparent; border: 0; padding: 0; display:flex; align-items:center; }
.brand-logo { width: 178px; height: 56px; object-fit: contain; object-position:left center; }
.nav-actions { display:flex; align-items:center; gap: 8px; }
.nav-link, .account-button {
  border: 1px solid transparent; background: rgba(255,255,255,.06); color:#fff;
  border-radius: 999px; padding: 11px 16px; transition:.2s ease; font-weight:700;
}
.nav-link:hover, .account-button:hover { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.16); }
.nav-link.active, .account-button.active {
  background: rgba(255,255,255,.22); border-color: rgba(255,255,255,.30);
  box-shadow: inset 0 -2px 0 rgba(255,255,255,.72), 0 8px 24px rgba(0,0,0,.08);
}
.account-button { display:flex; align-items:center; gap:9px; }
.avatar { width: 27px; height: 27px; border-radius:50%; background:#fff; color:var(--rabbit-blue); display:grid; place-items:center; font-weight:800; font-size:12px; }
.avatar.large { width:48px; height:48px; font-size:17px; }
.menu-bars { width:16px; height:14px; display:flex; flex-direction:column; justify-content:center; gap:2.5px; margin-left:2px; opacity:.82; }
.menu-bars i { display:block; width:13px; height:1.5px; border-radius:99px; background:#fff; }

.stage {
  position: relative; z-index: 2; min-height: calc(100vh - 88px); padding: 5vh 6vw 8vh;
  display:grid; grid-template-columns:minmax(340px, 455px) 1fr; gap: clamp(40px, 8vw, 140px); align-items:center;
}
.transfer-card {
  background: var(--panel); border-radius: var(--radius); padding: 30px;
  box-shadow: var(--shadow); border:1px solid rgba(255,255,255,.8); backdrop-filter: blur(18px);
}
.card-header { margin-bottom:24px; }
.eyebrow { margin:0 0 8px; font-size:11px; letter-spacing:.16em; color:var(--rabbit-mid); font-weight:900; }
#panelEyebrow { font-weight:900; letter-spacing:.13em; }
h1, h2, p { margin-top:0; }
h1 { font-size:30px; line-height:1.04; margin-bottom:11px; letter-spacing:-.03em; }
.intro { color:var(--muted); font-size:13px; line-height:1.55; margin-bottom:0; }

.dropzone {
  min-height:132px; border:1.5px dashed rgba(2,30,115,.26); border-radius:18px; display:flex; flex-direction:column;
  justify-content:center; align-items:center; gap:4px; background:rgba(2,30,115,.035); transition:.2s ease; margin-bottom:18px;
}
.dropzone:hover, .dropzone.dragging { border-color:var(--rabbit-mid); background:rgba(3,76,140,.075); transform:translateY(-1px); }
.plus { width:42px; height:42px; border-radius:50%; display:grid; place-items:center; background:var(--rabbit-blue); color:#fff; font-size:27px; line-height:1; margin-bottom:5px; }
.drop-title { font-weight:800; font-size:14px; }
.drop-subtitle { color:var(--muted); font-size:11px; }
.file-summary { display:flex; align-items:center; justify-content:space-between; gap:14px; background:#f5f7fb; border:1px solid var(--border); border-radius:14px; padding:13px 14px; margin-bottom:18px; }
.file-summary-copy { display:flex; flex-direction:column; gap:3px; min-width:0; }
.file-summary-copy strong { font-size:13px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.file-summary-copy span { font-size:11px; color:var(--muted); }
.file-summary-actions { display:flex; flex-direction:row !important; align-items:center; gap:10px !important; flex:0 0 auto; }
.text-button { border:0; background:transparent; color:var(--rabbit-mid); font-weight:800; font-size:11px; cursor:pointer; }
.text-button.danger { color:#9a3340; }
.selected-file-list { display:flex; flex-direction:column; gap:7px; margin:-9px 0 18px; max-height:156px; overflow-y:auto; padding-right:2px; }
.selected-file-row { display:flex; align-items:center; justify-content:space-between; gap:12px; border:1px solid var(--border); border-radius:11px; padding:9px 10px; background:#fff; }
.selected-file-meta { display:flex; flex-direction:column; min-width:0; gap:2px; }
.selected-file-meta strong { font-size:10px; font-weight:700; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.selected-file-meta span { color:var(--muted); font-size:9px; }
.selected-file-remove { width:26px; height:26px; flex:0 0 26px; display:grid; place-items:center; border:0; border-radius:50%; background:#f5eef0; color:#9a3340; font-size:17px; line-height:1; cursor:pointer; }
.selected-file-remove:hover { background:#eedfe3; }

.field-group { margin:0 0 15px; }
.field-group label { display:block; font-size:11px; font-weight:800; margin:0 0 7px; color:#293553; }
.field-group label span { color:#8b95aa; font-weight:500; }
.field-group input, .field-group textarea, .field-group select,
.email-entry, .link-box input {
  width:100%; border:1px solid var(--border); background:#fff; color:var(--ink); border-radius:12px; outline:none;
  transition:border-color .18s, box-shadow .18s;
}
.field-group input, .field-group select { height:44px; padding:0 13px; }
.field-group textarea {
  padding:12px 13px;
  resize:none;
  height:84px;
  min-height:84px;
  max-height:84px;
  overflow-y:auto;
  overflow-x:hidden;
}
.field-group input:focus, .field-group textarea:focus, .field-group select:focus, .email-entry:focus-within { border-color:rgba(3,76,140,.6); box-shadow:0 0 0 3px rgba(3,76,140,.08); }
.email-entry { min-height:44px; display:flex; align-items:center; flex-wrap:wrap; gap:6px; padding:5px 8px; }
.email-entry input { border:0; flex:1; min-width:160px; height:32px; padding:0 5px; outline:none; }
.email-chips { display:flex; flex-wrap:wrap; gap:5px; }
.email-chip { display:flex; align-items:center; gap:6px; border-radius:999px; background:#eef3ff; color:var(--rabbit-blue); padding:6px 9px; font-size:10px; font-weight:700; }
.email-chip button { border:0; background:transparent; color:inherit; padding:0; font-weight:900; }
.field-help { display:block; margin-top:5px; font-size:9px; color:#9aa3b5; }
.optional-grid { display:grid; grid-template-columns:1fr 1fr; gap:10px; }
.compact { margin-bottom:12px; }
.primary-button { width:100%; border:0; border-radius:13px; min-height:48px; padding:0 18px; color:#fff; background:linear-gradient(135deg,var(--rabbit-blue),var(--rabbit-mid)); font-weight:800; box-shadow:0 10px 26px rgba(2,30,115,.2); transition:.2s ease; }
.primary-button:hover:not(:disabled) { transform:translateY(-1px); box-shadow:0 14px 32px rgba(2,30,115,.28); }
.primary-button:disabled { opacity:.35; cursor:not-allowed; box-shadow:none; }
.request-icon { width:54px; height:54px; border-radius:17px; background:#eef3ff; color:var(--rabbit-blue); display:grid; place-items:center; font-size:26px; margin-bottom:18px; }
.request-expiry-options { display:grid; grid-template-columns:1fr 1fr; gap:8px; }
.request-expiry-option {
  position:relative; display:flex; align-items:flex-start; gap:9px; min-height:82px; padding:12px;
  border:1px solid var(--border); border-radius:13px; background:#fff; cursor:pointer; transition:.18s ease;
}
.request-expiry-option:hover { border-color:rgba(3,76,140,.38); background:#f8faff; }
.request-expiry-option.active { border-color:rgba(3,76,140,.62); background:#eef4ff; box-shadow:0 0 0 3px rgba(3,76,140,.06); }
.request-expiry-option input { width:15px; height:15px; margin:2px 0 0; accent-color:var(--rabbit-blue); flex:0 0 auto; }
.request-option-copy { display:flex; flex-direction:column; gap:4px; }
.request-option-copy strong { font-size:11px; color:#243150; }
.request-option-copy small { font-size:9px; line-height:1.35; color:var(--muted); font-weight:500; }
#requestBusinessDays { max-width:140px; }

.visual-message { color:#fff; max-width:670px; align-self:center; padding-bottom:4vh; }
.visual-kicker { font-size:12px; font-weight:800; letter-spacing:.22em; opacity:.62; }
.visual-message h2 { font-size:clamp(42px,5vw,78px); line-height:.94; letter-spacing:-.055em; margin:14px 0 24px; text-wrap:balance; }
.visual-message p { max-width:520px; font-size:15px; line-height:1.7; opacity:.7; }

.progress-heading { display:flex; justify-content:space-between; align-items:flex-end; gap:16px; }
.progress-heading h2 { font-size:19px; margin-bottom:0; overflow:hidden; white-space:nowrap; text-overflow:ellipsis; max-width:300px; }
.progress-heading strong { font-size:24px; color:var(--rabbit-blue); }
.progress-track { height:10px; border-radius:999px; background:#e6eaf2; overflow:hidden; margin:24px 0 12px; }
.progress-bar { width:0; height:100%; background:linear-gradient(90deg,var(--rabbit-blue),#1670ba); border-radius:inherit; transition:width .3s ease; }
.progress-meta { display:grid; grid-template-columns:1.2fr .8fr .9fr; gap:8px; font-size:10px; color:var(--muted); }
.progress-meta span:nth-child(2), .progress-meta span:nth-child(3) { text-align:right; }
.progress-note { font-size:10px; color:#8b95aa; margin:22px 0 0; }

.success-mark { width:60px; height:60px; border-radius:50%; display:grid; place-items:center; background:#e7f6ec; color:#168047; font-size:31px; margin-bottom:18px; }
#completeView h2 { margin-bottom:8px; }
#completeView > p { color:var(--muted); font-size:12px; line-height:1.5; }
.link-box { display:grid; grid-template-columns:1fr auto; gap:8px; margin:20px 0 10px; }
.link-box input { height:46px; padding:0 12px; font-size:11px; background:#f7f8fb; }
.link-box button { border:0; border-radius:11px; background:#eef3ff; color:var(--rabbit-blue); font-weight:800; padding:0 14px; }
.expiry-message { margin:0 0 22px !important; }

.drawer { position:fixed; top:0; right:0; z-index:30; height:100vh; width:min(440px,92vw); background:rgba(255,255,255,.985); box-shadow:-22px 0 70px rgba(0,0,0,.22); transform:translateX(105%); transition:transform .28s ease; padding:28px; display:flex; flex-direction:column; }
.drawer.open { transform:translateX(0); }
.drawer-header { display:flex; align-items:flex-start; justify-content:space-between; border-bottom:1px solid var(--border); padding-bottom:20px; }
.drawer-header h2 { font-size:23px; margin:0; }
.icon-button { border:0; width:36px; height:36px; border-radius:50%; background:#f0f2f6; color:#53617c; font-size:20px; }
.transfer-list { display:flex; flex-direction:column; gap:10px; padding:18px 0; overflow:auto; }
.transfer-item { display:grid; grid-template-columns:8px 1fr auto; gap:12px; align-items:center; border:1px solid var(--border); border-radius:15px; padding:13px; }
.transfer-status { width:8px; height:36px; border-radius:999px; background:#2da96b; }
.transfer-info { min-width:0; display:flex; flex-direction:column; gap:3px; }
.transfer-info strong { font-size:12px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.transfer-info span, .transfer-info code { font-size:9px; color:var(--muted); }
.mini-button { border:0; border-radius:8px; padding:8px 9px; background:#eef3ff; color:var(--rabbit-blue); font-size:9px; font-weight:800; }
.drawer-footer-button { margin-top:auto; border:1px solid var(--border); background:#fff; border-radius:12px; min-height:44px; color:var(--rabbit-blue); font-weight:800; }

.modal-backdrop { position:fixed; z-index:40; inset:0; background:rgba(0,10,40,.45); backdrop-filter:blur(9px); display:grid; place-items:start end; padding:82px 38px; }
.account-menu-card { width:310px; background:#fff; border-radius:18px; padding:18px; box-shadow:var(--shadow); position:relative; }
.modal-close { position:absolute; top:12px; right:12px; }
.profile-row { display:flex; align-items:center; gap:12px; padding:5px 36px 17px 4px; border-bottom:1px solid var(--border); }
.profile-row div { display:flex; flex-direction:column; gap:3px; }
.profile-row strong { font-size:13px; }
.profile-row span { font-size:10px; color:var(--muted); }
.menu-list { display:flex; flex-direction:column; padding-top:8px; }
.menu-list button { text-align:left; border:0; background:transparent; border-radius:9px; padding:11px 9px; color:#33405e; font-size:11px; font-weight:700; }
.menu-list button:hover { background:#f4f6fa; }
.toast { position:fixed; z-index:100; left:50%; bottom:26px; transform:translateX(-50%); background:#111a31; color:#fff; border-radius:999px; padding:11px 17px; font-size:11px; box-shadow:0 10px 28px rgba(0,0,0,.25); }

/* Keep the primary navigation visible when the transfer drawer is open. */
.app-shell.history-open .topbar {
  padding-right: calc(min(440px, 92vw) + 26px);
  transition: padding-right .28s ease;
}
.app-shell:not(.history-open) .topbar { transition: padding-right .28s ease; }
.app-shell.history-open .nav-actions { gap:6px; }
.app-shell.history-open .nav-link,
.app-shell.history-open .account-button { padding-left:13px; padding-right:13px; }


@media (max-width: 1050px) {
  .app-shell.history-open .topbar { padding-right: 20px; }
  .app-shell.history-open .nav-link { display:none; }
}

@media (max-width: 900px) {
  .topbar { padding:17px 20px; }
  .brand-logo { width:140px; }
  .nav-link { display:none; }
  .stage { grid-template-columns:1fr; padding:4vh 20px 60px; align-items:start; }
  .transfer-card { max-width:500px; width:100%; margin:0 auto; }
  .visual-message { display:none; }
}
@media (max-width: 480px) {
  .topbar { min-height:76px; }
  .brand-logo { width:118px; height:42px; }
  .account-button span:nth-child(2) { display:none; }
  .transfer-card { padding:22px; border-radius:20px; }
  h1 { font-size:25px; }
  .optional-grid { grid-template-columns:1fr; gap:0; }
  .progress-meta { grid-template-columns:1fr 1fr; }
  .progress-meta span:nth-child(3) { grid-column:1/-1; text-align:left; margin-top:4px; }
}

@media (max-width: 520px) {
  .request-expiry-options { grid-template-columns:1fr; }
}


/* v0.2.1 — authentication and user administration */
.center-modal {
  place-items: center;
  padding: 24px;
}
.auth-card {
  width: min(420px, calc(100vw - 32px));
  background: #fff;
  border-radius: 22px;
  padding: 26px;
  box-shadow: var(--shadow);
}
.auth-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 10px;
}
.auth-brand img {
  width: 86px;
  height: 62px;
  object-fit: contain;
  object-position: left center;
}
.auth-brand h2 {
  margin: 0;
  font-size: 24px;
}
.auth-copy {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
  margin-bottom: 20px;
}
.form-error {
  margin: 0 0 12px;
  color: #a52b2b;
  background: #fff0f0;
  border: 1px solid rgba(165,43,43,.14);
  border-radius: 10px;
  padding: 9px 10px;
  font-size: 10px;
  line-height: 1.4;
}
.logout-menu-button {
  color: #9d2e2e !important;
  margin-top: 4px;
  border-top: 1px solid var(--border) !important;
  border-radius: 0 !important;
  padding-top: 14px !important;
}
.users-card {
  width: min(760px, calc(100vw - 32px));
  max-height: min(82vh, 760px);
  overflow: auto;
  background: #fff;
  border-radius: 22px;
  padding: 24px;
  box-shadow: var(--shadow);
  position: relative;
}
.users-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-right: 44px;
  margin-bottom: 18px;
}
.users-header h2 {
  margin: 0;
  font-size: 25px;
}
.secondary-button {
  border: 1px solid var(--border);
  border-radius: 11px;
  background: #fff;
  color: var(--rabbit-blue);
  min-height: 40px;
  padding: 0 14px;
  font-weight: 800;
  font-size: 10px;
}
.secondary-button:hover {
  background: #f5f7fb;
}
.create-user-form {
  border: 1px solid var(--border);
  background: #f8faff;
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 18px;
}
.user-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 12px;
}
.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  align-items: center;
}
.compact-action {
  width: auto;
  min-height: 40px;
  padding: 0 18px;
}
.users-list {
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.users-loading {
  color: var(--muted);
  font-size: 11px;
  padding: 20px 4px;
  text-align: center;
}
.user-row {
  display: grid;
  grid-template-columns: 40px 1fr auto;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 11px 12px;
}
.user-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #eef3ff;
  color: var(--rabbit-blue);
  font-size: 13px;
  font-weight: 900;
}
.user-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.user-main strong {
  font-size: 12px;
}
.user-main span {
  color: var(--muted);
  font-size: 10px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.user-meta {
  display: flex;
  align-items: center;
  gap: 7px;
}
.user-role,
.user-status {
  border-radius: 999px;
  padding: 5px 8px;
  font-size: 9px;
  font-weight: 800;
}
.user-role {
  background: #eef3ff;
  color: var(--rabbit-blue);
}
.user-status.active {
  background: #e9f7ef;
  color: #207846;
}
.user-status.inactive {
  background: #f2f2f2;
  color: #777;
}

@media (max-width: 640px) {
  .user-form-grid { grid-template-columns: 1fr; }
  .users-header { align-items: flex-start; flex-direction: column; }
  .user-row { grid-template-columns: 40px 1fr; }
  .user-meta { grid-column: 2; }
}

/* v0.3.0 — persistent transfers, requests, history and storage pool */
.drawer-section-label {
  margin: 16px 2px 7px;
  font-size: 9px;
  letter-spacing: .14em;
  font-weight: 900;
  color: var(--rabbit-mid);
  text-transform: uppercase;
}
.request-list { padding-top: 0; }
.request-status { background: #2c77c8; }
.item-actions { display:flex; flex-direction:column; align-items:stretch; gap:5px; }
.empty-state {
  border: 1px dashed var(--border);
  border-radius: 13px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.45;
  padding: 14px;
  text-align: center;
}
.history-card { width:min(900px, calc(100vw - 32px)); }
.history-columns { display:grid; grid-template-columns:1fr 1fr; gap:18px; }
.history-columns h3 { font-size:12px; margin:0 0 9px; color:#2a3654; }
.history-list { display:flex; flex-direction:column; gap:8px; }
.history-row {
  display:flex; flex-direction:column; gap:3px;
  border:1px solid var(--border); border-radius:12px; padding:11px 12px;
}
.history-row strong { font-size:11px; }
.history-row span, .history-row small { font-size:9px; color:var(--muted); }
.storage-card { width:min(820px, calc(100vw - 32px)); }
.storage-note { margin:0 0 13px; color:var(--muted); font-size:10px; line-height:1.5; }
.storage-list { display:flex; flex-direction:column; gap:9px; }
.storage-row {
  display:flex; align-items:center; justify-content:space-between; gap:18px;
  border:1px solid var(--border); border-radius:14px; padding:13px 14px;
}
.storage-row > div:first-child { min-width:0; display:flex; flex-direction:column; gap:3px; }
.storage-row strong { font-size:12px; }
.storage-row span { font-size:9px; color:var(--muted); }
.storage-meta { display:flex; align-items:flex-end; flex-direction:column; gap:3px; text-align:right; }
.storage-meta b { font-size:9px; color:var(--rabbit-blue); }
.storage-meta em { font-size:9px; color:#8b95aa; font-style:normal; }
.public-link-view h2 { font-size:23px; margin-bottom:8px; }
.public-copy { color:var(--muted); font-size:12px; line-height:1.55; margin-bottom:18px; }
.public-file-list { display:flex; flex-direction:column; gap:7px; margin:14px 0 18px; }
.public-file-row {
  display:flex; justify-content:space-between; align-items:center; gap:12px;
  border:1px solid var(--border); border-radius:11px; padding:10px 11px; background:#f8faff;
}
.public-file-row span { min-width:0; overflow:hidden; white-space:nowrap; text-overflow:ellipsis; font-size:10px; }
.public-file-row b { flex:0 0 auto; color:var(--muted); font-size:9px; }
.muted-mark { background:#eef1f5; color:#65718b; }
body.public-mode .nav-actions { display:none; }
body.public-mode .topbar { justify-content:flex-start; }
body.public-mode .visual-message h2 { font-size:clamp(36px,4.2vw,66px); }
body.public-mode .account-menu-card,
body.public-mode #historyDrawer { display:none !important; }

@media (max-width: 720px) {
  .history-columns { grid-template-columns:1fr; }
  .storage-row { align-items:flex-start; flex-direction:column; }
  .storage-meta { align-items:flex-start; text-align:left; }
}

/* v0.4.0 · Google Drive storage actions */
.storage-actions { display:flex; align-items:center; gap:7px; flex-wrap:wrap; justify-content:flex-end; }
.storage-main { min-width:0; display:flex; flex-direction:column; gap:3px; }
.danger-outline { background:#fff1f1 !important; color:#a62b2b !important; }
.public-download-link { text-decoration:none; display:inline-flex; align-items:center; justify-content:center; flex:0 0 auto; }
.public-file-row { gap:10px; }
.public-file-row > span { flex:1 1 auto; }
@media (max-width: 700px) {
  .storage-actions { justify-content:flex-start; }
  .public-file-row { align-items:center; flex-wrap:wrap; }
}
