/* osir.co.uk: Secure Shared Clipboard */

.cb-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 20px;
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
}
.cb-k { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.cb-danger { color: #dc2626; }
.cb-danger:hover { border-color: #dc2626 !important; }
:root[data-theme="dark"] .cb-danger { color: #f87171; }

/* ---------- Gate & messages ---------- */
.cb-gate, .cb-notice { max-width: 520px; margin: 8px auto 0; padding: 40px 32px; text-align: center; }
.cb-gate-icon { display: inline-grid; place-items: center; width: 64px; height: 64px; border-radius: 18px; color: #fff; background: var(--grad); box-shadow: 0 10px 24px -10px color-mix(in srgb, var(--brand-1) 80%, transparent); }
.cb-gate h2, .cb-notice h2 { margin-top: 18px; font-size: 24px; font-weight: 800; }
.cb-gate > p, .cb-notice > p { margin-top: 8px; color: var(--muted); }
.cb-human {
  display: inline-flex; align-items: center; gap: 14px; margin-top: 24px; padding: 14px 22px 14px 16px;
  border-radius: 14px; border: 1px solid var(--border-strong); background: var(--surface-solid);
  font: inherit; font-weight: 650; font-size: 17px; color: var(--text); cursor: pointer;
  transition: border-color .2s, box-shadow .2s;
}
.cb-human:hover { border-color: var(--brand-1); }
.cb-human-box { position: relative; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; border: 2px solid var(--border-strong); transition: background .2s, border-color .2s; }
.cb-human-box svg { width: 18px; height: 18px; fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 20; stroke-dashoffset: 20; transition: stroke-dashoffset .35s ease .05s; }
.cb-spin { position: absolute; inset: -2px; border-radius: 8px; border: 2px solid transparent; border-top-color: var(--brand-1); opacity: 0; }
.cb-human.is-busy .cb-spin { opacity: 1; animation: cbspin .8s linear infinite; }
.cb-human.is-done .cb-human-box { background: #16a34a; border-color: #16a34a; }
.cb-human.is-done .cb-human-box svg { stroke-dashoffset: 0; }
.cb-human.is-done .cb-spin { display: none; }
@keyframes cbspin { to { transform: rotate(360deg); } }
.cb-gate-status { margin-top: 14px; font-size: 14px; color: var(--muted); min-height: 1.6em; }
.cb-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.cb-msg-actions { margin-top: 22px; }

/* ---------- Session bar ---------- */
.cb-bar {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 18px 24px;
  padding: 18px 22px;
}
.cb-id-block { display: grid; gap: 4px; }
.cb-id { font-family: var(--mono); font-size: 24px; font-weight: 700; letter-spacing: .06em; color: var(--text); white-space: nowrap; }
.cb-live { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; color: var(--muted); }
.cb-live i { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 3px rgba(34, 197, 94, .18); }
.cb-live.is-off i { background: #f59e0b; box-shadow: 0 0 0 3px rgba(245, 158, 11, .2); }
.cb-bar-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.cb-bar-actions .btn .icon { width: 16px; height: 16px; }
.cb-timer { display: flex; align-items: center; gap: 12px; }
.cb-timer strong { display: block; font-family: var(--mono); font-size: 20px; font-variant-numeric: tabular-nums; }
.cb-timer.is-low strong { color: #dc2626; }
.cb-ring { width: 42px; height: 42px; transform: rotate(-90deg); flex: none; }
.cb-ring circle { fill: none; stroke-width: 3.5; }
.cb-ring-bg { stroke: var(--border-strong); }
.cb-ring-fg { stroke: var(--brand-1); stroke-linecap: round; transition: stroke-dashoffset 1s linear; }
.cb-timer.is-low .cb-ring-fg { stroke: #dc2626; }
.cb-join { grid-column: 1 / -1; padding-top: 16px; border-top: 1px solid var(--border); }
.cb-join label { font-size: 14px; font-weight: 600; color: var(--text-2); }
.cb-join-row { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.cb-join-row input { flex: 1 1 240px; height: 40px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--border-strong); background: var(--bg); font-family: var(--mono); font-size: 15px; outline: none; }
.cb-join-row input:focus, .cb-label:focus, .cb-pw:focus { border-color: var(--brand-1); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand-1) 18%, transparent); }
.cb-recent { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 10px; }
.cb-chip { font-family: var(--mono); font-size: 13px; padding: 4px 10px; border-radius: 8px; border: 1px solid var(--border); background: var(--surface-2); cursor: pointer; color: var(--text-2); }
.cb-chip:hover { border-color: var(--brand-1); color: var(--text); }

/* ---------- Composer & files ---------- */
.cb-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: 20px; margin-top: 20px; }
.cb-compose, .cb-files { padding: 20px; display: flex; flex-direction: column; }
.cb-tabs { display: flex; gap: 6px; padding: 4px; border-radius: 12px; background: var(--surface-2); align-self: flex-start; }
.cb-tab { display: inline-flex; align-items: center; gap: 7px; padding: 7px 14px; border: 0; border-radius: 9px; background: transparent; font: inherit; font-size: 14px; font-weight: 600; color: var(--muted); cursor: pointer; }
.cb-tab.is-active { background: var(--surface-solid); color: var(--text); box-shadow: var(--shadow); }
.cb-label, .cb-pw { width: 100%; height: 44px; margin-top: 14px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--border-strong); background: var(--bg); font-size: 15px; outline: none; }
.cb-pw-wrap { display: flex; gap: 8px; align-items: center; }
.cb-pw-wrap .btn { margin-top: 14px; height: 44px; }
.cb-pw { font-family: var(--mono); }
.cb-text {
  width: 100%; min-height: 230px; margin-top: 14px; padding: 14px; resize: vertical;
  border-radius: 12px; border: 1px solid var(--border-strong); background: var(--bg); outline: none;
  font-family: var(--mono); font-size: 14px; line-height: 1.55; tab-size: 4; color: var(--text);
}
.cb-text:focus { border-color: var(--brand-1); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand-1) 18%, transparent); }
.cb-meter { margin-top: 10px; }
.cb-meter-bar { height: 6px; border-radius: 99px; background: var(--border); overflow: hidden; }
.cb-meter-bar span { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--grad); transition: width .2s; }
.cb-meter-bar.is-warn span { background: #f59e0b; }
.cb-meter-bar.is-full span { background: #dc2626; }
.cb-meter-row { display: flex; justify-content: space-between; gap: 10px; margin-top: 6px; font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.cb-warn { margin-top: 10px; padding: 10px 12px; border-radius: 10px; font-size: 14px; color: #92400e; background: rgba(245, 158, 11, .14); border: 1px solid rgba(245, 158, 11, .35); }
:root[data-theme="dark"] .cb-warn { color: #fcd34d; }
.cb-compose-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }

.cb-drop {
  display: grid; place-items: center; gap: 4px; padding: 30px 16px; text-align: center; cursor: pointer;
  border: 2px dashed var(--border-strong); border-radius: 16px; color: var(--muted);
  transition: border-color .2s, background .2s;
}
.cb-drop strong { color: var(--text); font-size: 16px; }
.cb-drop-icon { color: var(--brand-1); }
.cb-drop:hover, .cb-drop:focus-visible, .cb-drop.is-over { border-color: var(--brand-1); background: color-mix(in srgb, var(--brand-1) 8%, transparent); }
.cb-file-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.cb-file-actions .icon { width: 16px; height: 16px; }
.cb-limits { margin-top: 10px; font-size: 13px; color: var(--muted); }
.cb-queue { display: grid; gap: 6px; margin-top: 12px; }
.cb-q { display: grid; grid-template-columns: 1fr auto auto auto; align-items: center; gap: 4px 10px; padding: 8px 10px; border-radius: 10px; background: var(--surface-2); font-size: 13px; }
.cb-q-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.cb-q-size, .cb-q-state { color: var(--muted); white-space: nowrap; }
.cb-q-bar { width: 70px; height: 5px; border-radius: 99px; background: var(--border); overflow: hidden; }
.cb-q-bar i { display: block; height: 100%; background: var(--grad); transition: width .2s; }
.cb-q-ok .cb-q-state { color: #16a34a; font-weight: 700; }
.cb-q-bad { background: rgba(220, 38, 38, .08); }
.cb-q-bad .cb-q-state { color: #dc2626; font-weight: 700; }
.cb-q-err { grid-column: 1 / -1; color: #dc2626; }
.cb-q-x { height: 26px; padding: 0 8px; font-size: 12px; }

/* ---------- Items ---------- */
.cb-items-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 34px 0 12px; }
.cb-items-head h2 { font-size: 22px; font-weight: 800; display: flex; align-items: center; gap: 10px; }
.cb-pill { font-size: 13px; font-weight: 700; padding: 2px 10px; border-radius: 99px; background: var(--surface-2); color: var(--text-2); }
.cb-items { display: grid; gap: 12px; }
.cb-item { padding: 16px 18px; border-radius: 18px; background: var(--surface); border: 1px solid var(--border); animation: cbin .35s var(--ease) both; }
.cb-item.is-new { border-color: var(--brand-1); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand-1) 16%, transparent); }
@keyframes cbin { from { opacity: 0; transform: translateY(6px); } }
.cb-item-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.cb-item-icon { width: 36px; height: 36px; border-radius: 10px; flex: none; background: var(--surface-2) center/18px no-repeat; }
.cb-item-icon.i-text { background-color: hsl(150 80% var(--tint-bg-l)); }
.cb-item-icon.i-key { background-color: hsl(265 80% var(--tint-bg-l)); }
.cb-item-icon.i-image { background-color: hsl(195 80% var(--tint-bg-l)); }
.cb-item-icon.i-zip { background-color: hsl(35 90% var(--tint-bg-l)); }
.cb-item-icon::before { content: ""; display: block; width: 100%; height: 100%; -webkit-mask: center/18px no-repeat; mask: center/18px no-repeat; background: currentColor; }
.cb-item-icon.i-text { color: hsl(150 70% var(--tint-l)); }
.cb-item-icon.i-key { color: hsl(265 70% var(--tint-l)); }
.cb-item-icon.i-image { color: hsl(195 70% var(--tint-l)); }
.cb-item-icon.i-zip { color: hsl(35 80% var(--tint-l)); }
.cb-item-icon.i-text::before { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M8 7l-5 5 5 5M16 7l5 5-5 5'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M8 7l-5 5 5 5M16 7l5 5-5 5'/%3E%3C/svg%3E"); }
.cb-item-icon.i-key::before { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='8' cy='15' r='4'/%3E%3Cpath d='M11 12l9-9M17 6l2 2M15 8l2 2'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='8' cy='15' r='4'/%3E%3Cpath d='M11 12l9-9M17 6l2 2M15 8l2 2'/%3E%3C/svg%3E"); }
.cb-item-icon.i-image::before { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round'%3E%3Crect x='3' y='4' width='18' height='16' rx='2'/%3E%3Ccircle cx='9' cy='10' r='2'/%3E%3Cpath d='M21 17l-5-5-9 8'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round'%3E%3Crect x='3' y='4' width='18' height='16' rx='2'/%3E%3Ccircle cx='9' cy='10' r='2'/%3E%3Cpath d='M21 17l-5-5-9 8'/%3E%3C/svg%3E"); }
.cb-item-icon.i-zip::before { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 2h9l5 5v15H6z'/%3E%3Cpath d='M11 4v2M11 8v2M11 12v2M10 16h2v3h-2z'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 2h9l5 5v15H6z'/%3E%3Cpath d='M11 4v2M11 8v2M11 12v2M10 16h2v3h-2z'/%3E%3C/svg%3E"); }
.cb-item-title { display: grid; min-width: 0; flex: 1 1 220px; }
.cb-item-title strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 15.5px; }
.cb-item-meta { font-size: 13px; color: var(--muted); }
.cb-item-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.cb-item-actions .btn { height: 32px; padding: 0 11px; font-size: 13px; }
.cb-pre {
  margin: 12px 0 0; padding: 12px 14px; border-radius: 12px; background: var(--bg); border: 1px solid var(--border);
  font-family: var(--mono); font-size: 13.5px; line-height: 1.55; white-space: pre-wrap; word-break: break-word;
  overflow: auto; max-height: 70vh; tab-size: 4;
}
.cb-pre.is-clamped { max-height: 300px; overflow: hidden; -webkit-mask-image: linear-gradient(#000 75%, transparent); mask-image: linear-gradient(#000 75%, transparent); }
.cb-more { margin-top: 8px; height: 30px; font-size: 13px; }
.cb-secret { display: block; margin-top: 12px; padding: 12px 14px; border-radius: 12px; background: var(--bg); border: 1px solid var(--border); font-family: var(--mono); font-size: 16px; letter-spacing: .12em; word-break: break-all; }
.cb-secret.is-shown { letter-spacing: normal; }
.cb-flags { display: grid; gap: 4px; margin-top: 10px; }
.cb-flag { justify-self: start; font-size: 12.5px; font-weight: 700; padding: 3px 10px; border-radius: 99px; color: #92400e; background: rgba(245, 158, 11, .16); }
:root[data-theme="dark"] .cb-flag { color: #fcd34d; }
.cb-flag-text { font-size: 13px; color: var(--muted); }
.cb-thumb { display: grid; place-items: center; width: 100%; min-height: 120px; margin-top: 12px; padding: 0; border: 1px solid var(--border); border-radius: 12px; background: var(--bg); cursor: zoom-in; overflow: hidden; color: var(--muted); font: inherit; font-size: 14px; }
.cb-thumb img { display: none; max-width: 100%; max-height: 420px; object-fit: contain; }
.cb-thumb.is-loaded img { display: block; }
.cb-thumb.is-loading { background: linear-gradient(90deg, var(--bg), var(--surface-2), var(--bg)); background-size: 200% 100%; animation: cbshimmer 1.2s linear infinite; }
@keyframes cbshimmer { to { background-position: -200% 0; } }
.cb-thumb-hint { padding: 20px; }
.cb-zip-note { margin-top: 10px; font-size: 13px; color: var(--muted); }
.cb-empty { display: grid; place-items: center; gap: 10px; padding: 40px 20px; text-align: center; color: var(--muted); border: 1px dashed var(--border-strong); border-radius: 18px; }

/* ---------- Lightbox & toasts ---------- */
.cb-lightbox { padding: 0; border: 0; background: transparent; max-width: 96vw; max-height: 94vh; }
.cb-lightbox::backdrop { background: rgba(3, 5, 12, .88); }
.cb-lightbox img { display: block; max-width: 96vw; max-height: 94vh; object-fit: contain; border-radius: 8px; }
.cb-lb-close { position: fixed; top: 14px; right: 14px; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .16); color: #fff; cursor: pointer; }
.cb-toasts { position: fixed; right: 16px; bottom: 16px; z-index: 90; display: grid; gap: 8px; pointer-events: none; }
.cb-toast { max-width: 360px; padding: 12px 14px; border-radius: 12px; background: var(--surface-solid); border: 1px solid var(--border-strong); border-left: 4px solid var(--brand-1); box-shadow: var(--shadow-lg); font-size: 14px; pointer-events: auto; animation: cbin .25s var(--ease) both; transition: opacity .3s; }
.cb-toast.ok { border-left-color: #16a34a; }
.cb-toast.err { border-left-color: #dc2626; }
.cb-toast.out { opacity: 0; }

@media (max-width: 960px) {
  .cb-bar { grid-template-columns: 1fr auto; }
  .cb-bar-actions { grid-column: 1 / -1; grid-row: 2; }
  .cb-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .cb-bar { grid-template-columns: 1fr; padding: 16px; }
  .cb-bar-actions { grid-row: auto; }
  .cb-id { font-size: 20px; }
  .cb-gate, .cb-notice { padding: 30px 20px; }
  .cb-toasts { left: 16px; }
  .cb-toast { max-width: none; }
}

/* ---------- Auto-paste ---------- */
.cb-auto { gap: 8px; }
.cb-auto-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--border-strong); transition: background .2s, box-shadow .2s; }
.cb-auto[aria-pressed="true"] { border-color: #16a34a; color: #15803d; background: rgba(34, 197, 94, .1); }
.cb-auto[aria-pressed="true"] .cb-auto-dot { background: #22c55e; box-shadow: 0 0 0 3px rgba(34, 197, 94, .25); animation: cbpulse 1.6s ease-in-out infinite; }
:root[data-theme="dark"] .cb-auto[aria-pressed="true"] { color: #4ade80; }
@keyframes cbpulse { 50% { box-shadow: 0 0 0 6px rgba(34, 197, 94, 0); } }
.cb-auto-status { grid-column: 1 / -1; margin: -4px 0 0; padding: 10px 12px; border-radius: 10px; font-size: 14px; color: var(--text-2); background: rgba(34, 197, 94, .08); border: 1px solid rgba(34, 197, 94, .3); }
.cb-auto-status.is-warn { background: rgba(245, 158, 11, .1); border-color: rgba(245, 158, 11, .35); }

/* ---------- Connected devices ---------- */
.cb-peers { margin-top: 16px; padding: 0; overflow: hidden; }
.cb-peers summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 14px 20px; cursor: pointer; list-style: none; }
.cb-peers summary::-webkit-details-marker { display: none; }
.cb-peers summary::after { content: ""; width: 9px; height: 9px; margin-left: 4px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg) translateY(-3px); transition: transform .2s; }
.cb-peers:not([open]) summary::after { transform: rotate(-45deg); }
.cb-peers-title { display: inline-flex; align-items: center; gap: 8px; font-weight: 750; font-size: 16px; margin-right: auto; }
.cb-peers-title .icon { color: var(--brand-1); }
.cb-peers-online { display: inline-flex; align-items: center; gap: 7px; font-size: 13.5px; color: var(--muted); }
.cb-peers-note { padding: 0 20px 10px; font-size: 13.5px; color: var(--muted); }
.cb-peers-box { max-height: 232px; overflow: auto; margin: 0 12px 14px; border: 1px solid var(--border); border-radius: 12px; background: var(--bg); }
.cb-peers-tbl { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.cb-peers-tbl th { position: sticky; top: 0; z-index: 1; text-align: left; padding: 8px 12px; font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); background: var(--surface-solid); border-bottom: 1px solid var(--border); white-space: nowrap; }
.cb-peers-tbl td { padding: 8px 12px; border-bottom: 1px solid var(--border); font-variant-numeric: tabular-nums; white-space: nowrap; }
.cb-peers-tbl tr:last-child td { border-bottom: 0; }
.cb-peers-tbl tr.is-new td { animation: cbflash 2.4s ease-out; }
@keyframes cbflash { from { background: color-mix(in srgb, var(--brand-1) 18%, transparent); } }
.cb-ip { font-family: var(--mono); font-size: 13px; }
.cb-you { margin-left: 6px; padding: 1px 7px; border-radius: 99px; font-size: 11px; font-weight: 700; color: var(--brand-1); background: color-mix(in srgb, var(--brand-1) 12%, transparent); }
.cb-on { display: inline-flex; align-items: center; gap: 6px; color: #15803d; font-weight: 650; }
:root[data-theme="dark"] .cb-on { color: #4ade80; }
.cb-on::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 3px rgba(34, 197, 94, .2); }
@media (max-width: 560px) { .cb-peers summary { padding: 12px 16px; } .cb-peers-note { padding: 0 16px 10px; } }
.cb-zip-warn { margin-top: 12px; padding: 10px 14px; border-radius: 12px; background: rgba(208, 59, 59, .08); border: 1px solid rgba(208, 59, 59, .35); color: #b42323; font-size: 14px; }
:root[data-theme="dark"] .cb-zip-warn { color: #fca5a5; }
.cb-zip-warn ul { margin-top: 6px; padding-left: 18px; list-style: disc; color: var(--text-2); max-height: 160px; overflow: auto; }

.cb-item-icon.i-doc { background-color: hsl(220 80% var(--tint-bg-l)); color: hsl(220 70% var(--tint-l)); }
.cb-item-icon.i-doc::before { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 2h9l5 5v15H6z'/%3E%3Cpath d='M14 2v6h6M9 13h6M9 17h6'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 2h9l5 5v15H6z'/%3E%3Cpath d='M14 2v6h6M9 13h6M9 17h6'/%3E%3C/svg%3E"); }

/* ---------- Short code ---------- */
.cb-short { grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px 24px; padding: 16px 18px; border-radius: 14px; background: color-mix(in srgb, var(--brand-1) 7%, var(--surface-solid)); border: 1px solid color-mix(in srgb, var(--brand-1) 30%, transparent); }
.cb-short-main { display: grid; gap: 4px; min-width: 0; }
.cb-short-code { font-family: var(--mono); font-size: clamp(30px, 5vw, 42px); font-weight: 800; letter-spacing: .12em; color: var(--text); line-height: 1.15; }
.cb-short-link { font-size: 14px; color: var(--text-2); }
.cb-short-link b { font-family: var(--mono); color: var(--brand-1); }
.cb-short-nato { font-size: 13px; color: var(--muted); }
.cb-short-side { display: grid; align-content: space-between; justify-items: end; gap: 10px; }
.cb-short-exp { font-size: 14px; font-weight: 650; font-variant-numeric: tabular-nums; color: var(--text-2); }
.cb-short-exp.is-dead { color: #c2312f; }
.cb-short-actions { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
@media (max-width: 820px) { .cb-short-side { justify-items: start; } .cb-short-actions { justify-content: flex-start; } }
