.eyebrow { font-size: var(--text-xs); font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); }
.lede { color: var(--ink-2); }

/* ---- Login ----------------------------------------------------------- */
.login { min-height: calc(100dvh - var(--topbar-h)); display: grid; place-items: center; padding: var(--gutter); }
.login-card { width: min(100%, 460px); padding: 40px; display: grid; gap: 16px; }

/* ---- Dashboard ------------------------------------------------------- */
.dashboard { max-width: 980px; margin: 0 auto; padding: 28px var(--gutter) 120px; display: grid; gap: 22px; }
.dash-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

.panel { padding: 16px 20px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--paper); box-shadow: var(--shadow-1); }
.address { display: grid; gap: 14px; }
.address-main { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.address h2 { font-size: var(--text-sm); font-weight: 600; color: var(--ink-2); }
.address .hint { font-size: var(--text-xs); color: var(--ink-3); }
.address-controls { display: flex; align-items: center; gap: 6px; }
.address-controls select { height: 38px; padding: 0 12px; border-radius: var(--r-sm); border: 1px solid var(--line-strong); background-color: var(--paper-2); font-family: var(--font-mono); font-size: var(--text-sm); max-width: min(60vw, 420px); }
.address-help { padding: 12px 14px; border-radius: var(--r-md); background: var(--warn-soft); font-size: var(--text-sm); color: var(--warn-ink); display: grid; gap: 8px; }
.address-help pre { margin: 0; padding: 10px 12px; border-radius: var(--r-sm); background: var(--code-bg); font-family: var(--font-mono); font-size: var(--text-xs); }

/* ---- Activity --------------------------------------------------------- */
.activity-list { display: grid; gap: 2px; max-height: 60vh; overflow: auto; }
.activity-row { display: grid; grid-template-columns: 24px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 8px 10px; border-radius: var(--r-sm); font-size: var(--text-sm); }
.activity-row:nth-child(odd) { background: var(--paper-2); }
.activity-row .act-icon { display: inline-grid; place-items: center; color: var(--ink-3); }
.activity-row .act-icon svg { width: 16px; height: 16px; }
.activity-row .act-main { display: grid; min-width: 0; }
.activity-row .act-main span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.activity-row .act-sub { font-size: var(--text-xs); color: var(--ink-3); }
.activity-row .act-time { font-size: var(--text-xs); color: var(--ink-3); white-space: nowrap; text-align: right; }
.activity-row.owner .act-icon { color: var(--accent); }
.activity-empty { padding: 30px; text-align: center; color: var(--ink-3); }
.usage-bar { height: 6px; border-radius: 3px; background: var(--paper-3); overflow: hidden; }
.usage-bar span { display: block; height: 100%; background: var(--accent); transform-origin: left; }
.usage-bar.full span { background: var(--danger); }
.usage { display: grid; gap: 4px; font-size: var(--text-xs); color: var(--ink-2); }

/* ---- Share cards ----------------------------------------------------- */
.share-list { display: grid; gap: 14px; }
.share-card {
  display: grid; gap: 14px;
  padding: 18px 20px 16px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--paper);
  box-shadow: var(--shadow-1);
  transition: box-shadow var(--dur), border-color var(--dur), transform var(--dur) var(--ease);
}
.share-card:hover { box-shadow: var(--shadow-2); border-color: var(--line-strong); }
.share-card.flash { animation: flash 1.4s var(--ease); }
@keyframes flash { 0% { box-shadow: 0 0 0 4px var(--accent-soft); border-color: var(--accent); } 100% { box-shadow: var(--shadow-1); } }
.share-card.expired { opacity: 0.7; }
.share-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.share-title { display: grid; gap: 2px; min-width: 0; }
.share-title h3 { font-family: var(--font-display); font-weight: 500; font-size: var(--text-xl); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.share-root { font-family: var(--font-mono); font-size: var(--text-xs); color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; direction: rtl; text-align: left; }
.share-head-actions { display: flex; gap: 6px; flex: none; }

.link-box {
  display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 6px;
  padding: 6px 6px 6px 14px;
  border-radius: var(--r-md);
  background: var(--paper-2);
  border: 1px solid var(--line);
}
.link-text { font-family: var(--font-mono); font-size: var(--text-sm); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink); }
.link-text .link-host { color: var(--ink-3); }
.link-box .btn.copied { --btn-bg: var(--ok-soft); --btn-fg: oklch(38% 0.1 150); --btn-border: transparent; }

.qr-wrap { display: none; justify-content: center; padding: 14px; border-radius: var(--r-md); background: var(--paper-2); border: 1px solid var(--line); }
.qr-wrap.open { display: flex; }
.qr-wrap img { width: 180px; height: 180px; background: white; padding: 10px; border-radius: 10px; box-shadow: var(--shadow-1); }

.share-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.share-created { font-size: var(--text-xs); color: var(--ink-3); }

/* ---- Share editor ---------------------------------------------------- */
.share-form { display: grid; gap: 22px; }
.switch.muted-switch { opacity: 0.45; }
.activity-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.hint-row { font-size: var(--text-xs); color: var(--ink-2); }
.hint-row input { vertical-align: middle; }
.editor-section { display: grid; gap: 10px; }
.editor-section > h3 { font-size: var(--text-sm); font-weight: 600; color: var(--ink-2); }
.switch-grid { display: grid; gap: 8px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }

.picker { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 0; border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; background: var(--paper); }
.picker-places { display: grid; align-content: start; gap: 2px; padding: 8px; border-right: 1px solid var(--line); background: var(--paper-2); max-height: 360px; overflow: auto; }
.picker-places h4 { margin: 8px 8px 4px; font-size: var(--text-xs); font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-3); }
.place {
  display: flex; align-items: center; gap: 8px;
  height: 32px; padding: 0 8px;
  border: 0; border-radius: var(--r-xs);
  background: transparent; text-align: left;
  font-size: var(--text-sm);
  overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
}
.place svg { width: 16px; height: 16px; color: var(--ink-3); flex: none; }
.place:hover { background: var(--paper-3); }
.place.active { background: var(--paper); font-weight: 600; box-shadow: var(--shadow-1); }
.place.active svg { color: var(--accent); }
.picker-main { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; min-height: 320px; max-height: 360px; }
.picker-bar { display: flex; align-items: center; gap: 6px; padding: 8px; border-bottom: 1px solid var(--line); }
.picker-bar input { flex: 1; height: 34px; padding: 0 10px; border-radius: var(--r-xs); border: 1px solid var(--line-strong); background: var(--paper-2); font-family: var(--font-mono); font-size: var(--text-xs); min-width: 0; }
.picker-list { overflow: auto; padding: 6px; display: grid; align-content: start; gap: 2px; }
.picker-list .folder-row { display: flex; align-items: center; gap: 10px; height: 36px; padding: 0 10px; border: 0; border-radius: var(--r-xs); background: transparent; text-align: left; font-size: var(--text-sm); }
.picker-list .folder-row svg { width: 18px; height: 18px; color: oklch(68% 0.11 75); flex: none; }
.picker-list .folder-row:hover { background: var(--paper-2); }
.picker-list .folder-row span.name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.picker-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; border-top: 1px solid var(--line); background: var(--paper-2); font-size: var(--text-xs); color: var(--ink-2); }
.picker-selected { display: grid; min-width: 0; }
.picker-selected strong { font-size: var(--text-sm); color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.picker-selected span { font-family: var(--font-mono); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; direction: rtl; text-align: left; }
.picker-msg { padding: 14px; color: var(--ink-3); font-size: var(--text-sm); }
.picker-msg.error { color: var(--danger); }

@media (max-width: 640px) {
  .picker { grid-template-columns: 1fr; }
  .picker-places { grid-auto-flow: column; grid-auto-columns: max-content; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--line); }
  .picker-places h4 { display: none; }
  .link-box { grid-template-columns: minmax(0, 1fr) auto; }
  .link-box .btn.qr-toggle { display: none; }
}
