.collection-tabs { display: flex; align-items: center; gap: 8px; padding: 0 20px; border-bottom: 1px solid var(--line); }
.collection-tabs button { padding: 16px 8px; border: 0; border-radius: 0; border-bottom: 2px solid transparent; background: transparent; color: var(--muted); }
.collection-tabs button[aria-pressed="true"] { border-bottom-color: var(--accent); color: var(--text); }
#collection-note { margin-left: auto; }
.collection-toolbar .search-form { width: min(460px, 60%); }
.list-tools { display: flex; align-items: center; gap: 10px; }
.list-tools select { border-color: var(--line); font-size: 13px; padding-right: 28px; background: var(--surface-soft); }
.list-tools > .action > button { border-color: var(--line); background: var(--surface-soft); }
.table-region { width: 100%; }
table { width: 100%; table-layout: fixed; border-collapse: collapse; text-align: left; }
.name-column { width: 24%; }
.click-column { width: 85px; }
.status-column { width: 105px; }
.actions-column { width: 184px; }
th { color: var(--muted); background: #0d141d; font-size: 11px; font-weight: 600; letter-spacing: 1.1px; text-transform: uppercase; }
th, td { padding: 14px 20px; border-bottom: 1px solid var(--line); vertical-align: middle; }
td { height: 62px; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #121e2b; }
td:nth-child(1) .url { font-weight: 550; text-decoration: none; }
td:nth-child(2) { padding-left: 12px; }
.actions-heading, .click-heading, .clicks { text-align: right; }
.clicks { font-family: var(--mono); font-size: 13px; font-variant-numeric: tabular-nums; }
.status { display: inline-flex; align-items: center; gap: 6px; color: var(--accent); font-size: 12px; white-space: nowrap; }
.status::before { content: ""; width: 5px; height: 5px; border: 1px solid currentColor; border-radius: 50%; background: currentColor; }
.status.disabled, .status.trash { color: var(--muted); }
.status.disabled::before, .status.trash::before { background: transparent; }
td:last-child { padding-left: 4px; padding-right: 16px; }
.row-actions { display: flex; align-items: center; justify-content: flex-end; gap: 2px; }
.row-actions .button { font-size: 13px; }
.row-actions .icon-button { width: 34px; height: 34px; min-height: 34px; }
.list-footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; min-height: 66px; color: var(--muted); font-size: 13px; }
.feedback-area { min-height: 38px; }
.feedback { margin: 0; }
.count-note { font-size: 12px; }
#created h2 { font-size: 15px; margin-bottom: 10px; }
.copy-result { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
#created-address { overflow-wrap: anywhere; }
#created-copy-status:not(:empty) { margin-top: 10px; color: var(--accent); }
dialog { width: min(540px, calc(100% - 32px)); max-height: calc(100dvh - 32px); margin: auto; padding: 28px; background: var(--surface); color: var(--text); border: 1px solid #455973; border-radius: 10px; overflow-y: auto; }
dialog::backdrop { background: rgb(3 8 14 / 78%); }
.dialog-heading { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 26px; }
.dialog-heading .eyebrow { font-size: 11px; margin-bottom: 6px; }
.dialog-heading h2 { font-size: 24px; }
dialog .field { margin-bottom: 20px; }
dialog .field-error:not([hidden]) { margin-top: 8px; }
.name-input { display: flex; align-items: center; border: 1px solid #52657b; border-radius: 5px; background: var(--page); }
.name-input span { font-family: var(--mono); font-size: 12px; color: var(--muted); padding-left: 12px; white-space: nowrap; }
.name-input input { padding-left: 0; border: 0; }
#name-helper { margin-top: 8px; }
.form-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); }
.link-metadata { margin: 24px 0 0; padding-top: 18px; border-top: 1px solid var(--line); }
.link-metadata div { display: grid; grid-template-columns: 100px minmax(0, 1fr); gap: 12px; margin-top: 8px; font-size: 12px; }
.link-metadata dt { color: var(--muted); }
.link-metadata dd { margin: 0; overflow-wrap: anywhere; }
#trash-dialog h2 { margin-bottom: 18px; }
#trash-name { color: var(--accent); overflow-wrap: anywhere; margin-top: 14px; }
.modal-session { margin-top: 18px; }
@media (max-width: 1000px) and (min-width: 761px) {
  .site-header, main { width: calc(100% - 40px); }
  th, td { padding-inline: 12px; }
  .name-column { width: 22%; }
  .actions-column { width: 166px; }
  .status-column { width: 95px; }
  .click-column { width: 70px; }
}
@media (max-width: 760px) {
  .collection-tabs { padding-inline: 12px; }
  #collection-note { display: none; }
  .collection-toolbar .search-form { width: 100%; flex-basis: 100%; }
  .list-tools { width: 100%; justify-content: space-between; }
  .list-tools select { min-height: 44px; }
  table, tbody { display: block; }
  colgroup, thead { display: none; }
  tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; padding: 16px 12px 10px; gap: 10px 12px; border-bottom: 1px solid var(--line); }
  tr:last-child { border-bottom: 0; }
  td { display: block; height: auto; padding: 0 !important; border: 0 !important; min-width: 0; }
  td:nth-child(1) { grid-column: 1; grid-row: 1; align-self: center; }
  td:nth-child(2) { grid-column: 1 / -1; grid-row: 2; }
  td:nth-child(3) { grid-column: 1; grid-row: 3; align-self: center; text-align: left; color: var(--muted); }
  td:nth-child(3)::after { content: " clicks"; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: 12px; }
  td:nth-child(4) { grid-column: 2; grid-row: 1; align-self: center; }
  td:nth-child(5) { grid-column: 2; grid-row: 3; }
  .row-actions { gap: 0; }
  .row-actions .icon-button { width: 44px; height: 44px; min-height: 44px; }
  .row-actions .action:first-child .tooltip { left: 0; right: auto; }
  .copy-result { flex-wrap: wrap; gap: 12px; }
  .list-footer { padding-top: 16px; }
  .page-controls { gap: 8px; }
  dialog { padding: 22px; }
  .name-input { flex-wrap: wrap; }
  .name-input span { padding: 10px 12px 0; }
  .name-input input { padding: 8px 12px; }
  .link-metadata div { grid-template-columns: 84px minmax(0, 1fr); }
}
