
body { font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif; margin: 0; padding: 0;   background: #f8f9fb; }
.container { max-width: 980px; margin: 0 auto; padding: 20px; }
.small { font-size: 13px; opacity: 0.8; }
h1, h2, h3 { margin: 0 0 10px 0; }
p { margin: 10px 0; }

.btn { display: inline-block; padding: 10px 14px; border-radius: 10px; background: #111; color: #fff; text-decoration: none; border: 0; cursor: pointer; }
.btn-secondary { display: inline-block; padding: 8px 12px; border-radius: 10px; background: #eee; color: #111; text-decoration: none; border: 0; cursor: pointer; }
.linklike { background: none; border: 0; padding: 0; color: #111; text-decoration: underline; cursor: pointer; font: inherit; }

.toolbar { display: flex; gap: 10px; align-items: center; margin: 14px 0; }
.toolbar input { flex: 1; padding: 10px; border-radius: 10px; border: 1px solid #ddd; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; overflow: visible; }

/* Selection cards (legacy) */
.card {
  border: 1px solid #eee;
  border-radius: 14px;
  padding: 12px;
  display: grid;
  grid-template-columns: 18px 44px 1fr;
  gap: 10px;
  align-items: center;
  cursor: pointer;
  background: #fff;
  border: 1px solid #eee;
  box-shadow: 0 1px 2px rgba(0,0,0,0.03);
}
.card.hidden { display: none; }
.card input { width: 18px; height: 18px; }
.card .name { grid-column: 3; }
.card .desc { grid-column: 3; margin-top: 6px; line-height: 1.3; }
.card .open-yt { grid-column: 3; margin-top: 8px; justify-self: start; }
.card .btn-secondary.open-yt { display: inline-block; }

/* Public share cards */
.card-static { border: 1px solid #eee; border-radius: 14px; padding: 12px; display: grid; grid-template-columns: 44px 1fr; gap: 10px; align-items: center; background: #fff;  box-shadow: 0 1px 2px rgba(0,0,0,0.03); }
.card-static .btn-secondary { grid-column: 1 / span 2; justify-self: start; }
.card-static .desc { grid-column: 2; margin-top: 6px; line-height: 1.3; }

.avatar { width: 44px; height: 44px; border-radius: 999px; object-fit: cover; background: #f2f2f2; }
.name { font-size: 14px; }

.sticky {
position: sticky;
bottom: 0;
background: #fff;
border-top: 1px solid #eee;
margin-top: 14px;
padding: 12px 0;
}

.sticky-inner {
max-width: 1100px;
margin: 0 auto;
padding: 0 20px;
display: flex;
flex-wrap: wrap;
gap: 14px;
align-items: center;
}

#sel-count {
flex: 1 1 auto;
}

#create-btn {
margin-left: auto;
}

#share-result {
flex: 1 1 100%;
margin-top: 6px;
}

.sticky-top {
display: flex;
align-items: center;
justify-content: space-between;
gap: 12px;
}

#sel-count {
flex: 0 0 auto;
padding-right: 10px;
}

#create-btn {
flex: 0 0 auto;
}

.result {
margin-top: 12px;
}

.sticky-right{
  display: flex;
  align-items: flex-start;
  gap: 16px;
  flex: 1;
  justify-content: flex-end;
}

.result{
  margin-top: 0;
}


.sticky-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

#sel-count { white-space: nowrap; }

#create-btn { flex: 0 0 auto; }

.result { margin-top: 0; }
`
.linkbox {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 10px 0;
  max-width: 100%;
}

/* hard cap + show ellipsis */
.share-link-input {
  width: 34ch;              /* makes it a fixed, short “pill” */
  max-width: 100%;
  padding: 10px;
  border-radius: 10px;
  border: 1px solid #ddd;

  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.emails input { width: 100%; padding: 10px; border-radius: 10px; border: 1px solid #ddd; margin: 8px 0; }

/* New channel picker cards */
.ch-card {
  border: 1px solid #eee;
  border-radius: 14px;
  padding: 12px;
  display: grid;
  grid-template-columns: 18px 44px 1fr;
  gap: 10px;
  align-items: start;
  cursor: pointer;
  background: #fff;
  border: 1px solid #eee;
  box-shadow: 0 1px 2px rgba(0,0,0,0.03);
  position: relative;
  z-index: 0;
  background: #fff;
  border: 1px solid #eee;
  box-shadow: 0 1px 2px rgba(0,0,0,0.03);
}

.ch-card.hidden { display: none; }
.ch-card:hover { z-index: 2000; }

.ch-check { width: 18px; height: 18px; margin-top: 2px; }

.ch-avatar { width: 44px; height: 44px; border-radius: 999px; object-fit: cover; background: #f2f2f2; }

.ch-main { min-width: 0; }

.ch-title-row {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding-right: 92px;
}

.ch-title {
  font-size: 14px;
  line-height: 1.25;
  overflow-wrap: normal;
  word-break: normal;
}

.ch-card:has(.ch-check:checked) {
  border-color: #ddd;
  background: #fafafa;
}

/* YouTube pill */
.yt-pill {
  position: absolute;
  top: 0;
  right: 0;

  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid #e6e6e6;
  background: #f7f7f7;
  color: #111;
  text-decoration: none;
  font-size: 13px;
  line-height: 1;
  opacity: 0.9;

  white-space: nowrap;
  z-index: 1;
}

.yt-pill:hover {
  background: #efefef;
  border-color: #ddd;
  opacity: 1;
}

.yt-pill:active {
  transform: translateY(1px);
}

.yt-pill-ico {
  width: 14px;
  height: 10px;
  border-radius: 3px;
  background: #777;
  position: relative;
  flex: 0 0 auto;
}

.yt-pill-ico::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 2px;
  width: 0;
  height: 0;
  border-left: 5px solid #fff;
  border-top: 3px solid transparent;
  border-bottom: 3px solid transparent;
}

/* Description + tooltip */
.ch-desc {
  position: relative;
  line-height: 1.35;
  opacity: 0.75;
  margin-top: 6px;
  overflow: visible;
}

.ch-desc-text {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Tooltip */
.ch-tooltip {
  display: none;
  position: absolute;
  left: 0;
  top: 100%;
  margin-top: 6px;
  max-width: 360px;
  max-height: 200px;
  overflow-y: auto;

  padding: 10px 12px;
  background: #111;
  color: #fff;
  font-size: 13px;
  line-height: 1.35;
  border-radius: 10px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);

  z-index: 5000;
}

.ch-desc:hover .ch-tooltip,
.ch-card:hover .ch-tooltip {
  display: block;
}

/* Share-created layout */
.share-note { margin-top: 6px; }
.share-link { width: 100%; }

.share-meta {
  margin-top: 10px;
  display: flex;
  gap: 12px;
  align-items: baseline;
  flex-wrap: wrap;
}

/* Share-created: keep left + right close together, not stretched across the whole page */
.share-row{
  display: grid;
  grid-template-columns: minmax(420px, 1fr) 360px;
  gap: 24px;
  align-items: start;
}

.share-left{
  min-width: 0; /* allows truncation instead of pushing layout */
}

.share-right{
  min-width: 360px;
}

.send-row{
  display: flex;
  gap: 10px;
}

.send-row .emailfield{
  flex: 1;
  min-width: 220px;
}


/* Right column: no divider, no forced spacing, don’t sink downward */

/* Keep “Send to” nicely sized */
.share-right .emails{
  max-width: 520px;
  margin-top: 0;
}

.share-right .emails h3{
  margin-top: 0;
}

/* Make sure the left block doesn’t expand to fill the whole row */
.share-left{
  flex: 0 0 auto;
}

/* Let the send field shrink nicely without breaking layout */
.send-row{
  display: flex;
  gap: 10px;
  align-items: center;
}

.emailfield{
  flex: 1;
  min-width: 0;
}


/* keep the send box from stretching weirdly */
.emails{ max-width: 520px; }
.send-row{ width: 100%; }

/* keep the send box from stretching weirdly */
.emails{ max-width: 520px; }
.send-row{ width: 100%; }

@media (max-width: 820px) {
  .share-row { grid-template-columns: 1fr; }
  .share-right { border-left: 0; padding-left: 0; margin-top: 14px; }
}

@media (max-width: 700px) {
  .send-row { flex-direction: column; align-items: stretch; }
}

/* Share view cards (public page) */
.sv-card {
  border: 1px solid #eee;
  border-radius: 14px;
  padding: 12px;
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 12px;
  align-items: start;
  position: relative;
  z-index: 0;
   background: #fff;
  border: 1px solid #eee;
  box-shadow: 0 1px 2px rgba(0,0,0,0.03);

}

.sv-card:hover { z-index: 2000; }

.sv-avatar {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  object-fit: cover;
  background: #f2f2f2;
}

.sv-main { min-width: 0; }

.sv-title-row {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding-right: 92px; /* room for the yt pill */
}

.sv-title {
  font-size: 14px;
  line-height: 1.25;
  overflow-wrap: normal;
  word-break: normal;
}

.shared-meta {
  margin-bottom: 18px;
}

.home-steps { margin: 12px 0 16px; padding-left: 18px; }
.home-steps li { margin: 6px 0; }
.home-cta { margin: 16px 0 8px; }
.home { margin-top: 6px; }

.home-hero {
  border: 1px solid #eee;
  border-radius: 18px;
  padding: 22px;
  background: #fafafa;
}

.home-hero-inner { max-width: 760px; }

.home-brand {
  display: flex;
  gap: 14px;
  align-items: center;
}

.home-logo {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #111;
}

.home-title { margin: 0; }
.home-subtitle { margin: 6px 0 0; font-size: 18px; opacity: 0.9; }

.home-cta-row {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 16px;
}

.home-btn { padding: 12px 16px; border-radius: 12px; }
.home-cta-note { opacity: 0.75; }

.home-trust {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.home-pill {
  border: 1px solid #e6e6e6;
  background: #fff;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 13px;
  opacity: 0.9;
}

.home-fineprint { margin-top: 12px; opacity: 0.75; }

.home-grid {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.home-card {
  border: 1px solid #eee;
  border-radius: 16px;
  padding: 16px;
  background: #fff;
  border: 1px solid #eee;
  box-shadow: 0 1px 2px rgba(0,0,0,0.03);
}

.home section { margin-bottom: 28px; }

.home-hero {
  border: 1px solid #eee;
  border-radius: 18px;
  padding: 22px;
  background: #fafafa;
}

.home-lead {
  font-size: 18px;
  line-height: 1.4;
  margin-top: 6px;
}

.home-context {
  margin-top: 10px;
  max-width: 680px;
  opacity: 0.85;
}

.home-cta {
  margin-top: 16px;
}

.home-cta-note {
  margin-top: 6px;
}

.home-example h2 {
  margin-bottom: 12px;
}

.example-card {
  border: 1px solid #eee;
  border-radius: 14px;
  padding: 14px;
  max-width: 520px;
  background: #fff;
  border: 1px solid #eee;
  box-shadow: 0 1px 2px rgba(0,0,0,0.03);
}

.example-item {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 10px;
}

.example-avatar {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: #e6e6e6;
  flex: 0 0 auto;
}

.example-title {
  font-size: 14px;
  font-weight: 500;
}

.example-desc {
  font-size: 13px;
  opacity: 0.75;
}

.example-note {
  margin-top: 8px;
}

.home-info {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.info-block {
  border: 1px solid #eee;
  border-radius: 14px;
  padding: 14px;
  background: #fff;
}

.info-block ul,
.info-block ol {
  padding-left: 18px;
}

@media (max-width: 800px) {
  .home-info {
    grid-template-columns: 1fr;
  }
}

.btn {
  display: inline-block;
  padding: 12px 18px;
  border-radius: 12px;
  background: #111;
  color: #fff;
  text-decoration: none;
  border: 0;
  cursor: pointer;

  transition:
    background-color 0.15s ease,
    transform 0.08s ease,
    box-shadow 0.15s ease;
}

.btn:hover {
  background: #000;
  box-shadow: 0 6px 18px rgba(0,0,0,0.18);
}

.btn:active {
  transform: translateY(1px);
  box-shadow: 0 3px 10px rgba(0,0,0,0.15);
}

.btn:focus-visible {
  outline: 2px solid #000;
  outline-offset: 3px;
}

/* Send chips UI */
.sendbox-label{
  display:flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 10px;
}

.sendbox-form{ display:block; }

.chips{
  border: 1px solid #ddd;
  border-radius: 12px;
  padding: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  background: #fff;
}

.chips:focus-within{
  border-color: #111;
  box-shadow: 0 0 0 3px rgba(0,0,0,0.06);
}

.chips input{
  border: 0;
  outline: 0;
  padding: 8px;
  min-width: 220px;
  flex: 1;
  font: inherit;
}

.chip{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid #e6e6e6;
  background: #f7f7f7;
  font-size: 13px;
  max-width: 100%;
}

.chip.invalid{
  border-color: #d9a3a3;
  background: #fff5f5;
}

.chip span{
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 360px;
}

.chip button{
  border: 0;
  background: none;
  cursor: pointer;
  font: inherit;
  padding: 0 2px;
  opacity: 0.75;
}

.chip button:hover{ opacity: 1; }

.send-actions{ margin-top: 10px; }
.send-help{ margin-top: 8px; }

/* Create button after link created */
#create-btn.is-done{ opacity: 0.5; cursor: default; }

.app-header {
margin: 10px 0 18px;
}

.brand {
display: inline-flex;
align-items: center;
gap: 10px;
text-decoration: none;
color: inherit;
}

.brand-logo {
width: 200px;
object-fit: contain;
display: block;
opacity: 0.85;
margin: 15px;
}


h1 {
margin-top: 0;
}

.share-created {
margin-top: 16px;
}

