/* share.css — public listing and private gate */

.share_list {
  display: grid;
  gap: 10px;
}

.share_item {
  display: grid;
  gap: 4px;
  padding: 16px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--surface-2);
}

.share_item[hidden] {
  display: none;
}

.share_item a {
  color: var(--text);
  font-weight: 600;
}

.share_item a:hover {
  color: var(--accent);
}

.share_item_note {
  color: var(--muted);
  font-size: 14px;
}

.share_gate {
  display: grid;
  gap: 12px;
  max-width: 360px;
  padding: 22px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--surface-2);
}

.share_gate_input {
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #000000;
  color: var(--text);
  font-size: 16px;
}

.share_gate_input:focus {
  border-color: var(--accent);
  outline: none;
}

.share_gate_button {
  padding: 10px 14px;
  border-radius: 12px;
  border: 0;
  background: var(--accent);
  color: #04251f;
  font-weight: 700;
  cursor: pointer;
}

.share_gate_button:hover {
  background: var(--accent-bright);
}

.share_gate_error {
  color: var(--error);
  font-size: 14px;
}

.share_heading {
  font-size: 24px;
  font-weight: 700;
  margin: 0 0 20px;
}

.share_public_page .home_link,
.share_private_page .home_link {
  display: inline-block;
  margin: 0 0 8px;
}


.share_desk {
  display: grid;
  gap: 12px;
  margin: 0 0 22px;
  padding: 16px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--surface-2);
}

.share_add {
  display: grid;
  gap: 8px;
}

.share_add_label {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.share_file_name,
.share_note,
.share_download_url {
  width: 100%;
  min-height: 44px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: #000000;
  color: var(--text);
  font: inherit;
}

.share_add_button {
  justify-self: start;
  min-height: 44px;
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  border: 0;
  background: var(--accent);
  color: #04251f;
  font-weight: 650;
  cursor: pointer;
}

.share_add_button:hover {
  background: var(--accent-bright);
}

.share_item {
  grid-template-columns: 1fr auto;
  align-items: center;
}

.share_item a {
  grid-column: 1;
}

.share_item_note {
  grid-column: 1;
}

.share_item .file_trash {
  grid-column: 2;
  grid-row: 1 / span 2;
}

.share_copy {
  color: var(--muted);
  margin: 0 0 16px;
}
