@import url('https://fonts.googleapis.com/css2?family=Heebo:wght@400;700;800;900&display=swap');
*{box-sizing:border-box}html,body{margin:0;height:100%;font-family:Heebo,Arial,sans-serif;color:#0f172a;background:radial-gradient(circle at top right,#dbeafe,transparent 30%),radial-gradient(circle at bottom left,#ede9fe,transparent 35%),linear-gradient(160deg,#eef6ff,#fff)}body{overflow:hidden}.app{width:100%;max-width:480px;height:100dvh;margin:0 auto;padding:10px}.screen{display:none;width:100%;height:100%}.screen.active{display:flex;align-items:center;justify-content:center}.card{width:100%;max-height:100%;background:rgba(255,255,255,.96);border-radius:26px;padding:16px;box-shadow:0 22px 55px rgba(37,99,235,.14);overflow:hidden}.app-card{height:100%;display:flex;flex-direction:column}.center{text-align:center}.scroll-area{flex:1;overflow-y:auto;overflow-x:hidden;padding-bottom:10px;scrollbar-width:none}.scroll-area::-webkit-scrollbar{display:none}.fixed-action{flex:0 0 auto;padding-top:10px;background:linear-gradient(to top,rgba(255,255,255,1),rgba(255,255,255,.95))}.logo{width:78px;height:78px;margin:0 auto 16px;border-radius:24px;background:linear-gradient(135deg,#2563eb,#7c3aed);color:white;display:flex;align-items:center;justify-content:center;font-size:26px;font-weight:900;box-shadow:0 14px 30px rgba(37,99,235,.24)}.small-logo{width:70px;height:70px;font-size:32px;background:linear-gradient(135deg,#16a34a,#2563eb)}h1{margin:0 0 8px;font-size:26px;line-height:1.1;font-weight:900}h2{margin:0 0 14px;font-size:19px;color:#2563eb;font-weight:900}h3{margin:0 0 8px;font-size:16px}p{margin:0 0 10px;color:#64748b;line-height:1.42}.small{font-size:13px;color:#64748b}.tag{display:inline-block;padding:7px 12px;background:#eff6ff;color:#2563eb;border-radius:999px;font-size:12px;font-weight:900;margin-bottom:10px}.user-box{background:#f8fafc;border-radius:16px;padding:10px;margin:10px 0;font-weight:900;color:#2563eb}label{display:block;font-weight:900;margin:7px 0 5px;font-size:13px}input,textarea{width:100%;border:none;border-radius:16px;padding:10px 12px;font-size:15px;background:#f8fafc;outline:none;font-family:inherit}textarea{height:74px;min-height:74px;resize:none;font-size:16px;font-weight:900;text-align:center;line-height:1.35}.choice{padding:9px;border-radius:20px;margin-top:7px}.choice-a{background:linear-gradient(145deg,#dbeafe,#fff)}.choice-b{background:linear-gradient(145deg,#ede9fe,#fff)}.vs,.center-vs{width:38px;height:38px;border-radius:50%;background:#0f172a;color:white;display:flex;align-items:center;justify-content:center;margin:7px auto;font-weight:900;font-size:12px}.center-vs{background:linear-gradient(135deg,#2563eb,#7c3aed);box-shadow:0 10px 22px rgba(37,99,235,.2)}.toggle{display:flex;align-items:center;gap:9px;background:#f8fafc;padding:9px;border-radius:15px;margin-top:8px;font-size:13px}.toggle input{width:18px;height:18px;flex:0 0 auto}.main-btn,.secondary-btn,.danger-btn,.archive-btn{width:100%;border:none;border-radius:17px;padding:13px;margin-top:10px;font-size:15px;font-weight:900;cursor:pointer;font-family:inherit}.main-btn{background:linear-gradient(135deg,#2563eb,#7c3aed);color:white;box-shadow:0 14px 28px rgba(37,99,235,.2)}.secondary-btn{background:#eff6ff;color:#2563eb}.archive-btn{background:#fff7ed;color:#c2410c}.danger-btn{background:#fee2e2;color:#b91c1c}.no-margin{margin-top:0}.link-box{margin-top:10px;background:#f8fafc;padding:12px;border-radius:16px;font-weight:900;font-size:13px;direction:ltr;word-break:break-all}.share-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:12px}.share-grid button{border:none;padding:12px 7px;border-radius:16px;background:#eff6ff;font-weight:900;cursor:pointer;font-family:inherit}.preview-box,.responder-box{margin-top:12px;background:#f8fafc;padding:12px;border-radius:20px}.preview-options{display:grid;grid-template-columns:1fr auto 1fr;gap:8px;align-items:center;margin-top:9px}.preview-options div{background:white;padding:9px;border-radius:12px;font-weight:900}.mini-vs{background:transparent!important;padding:0!important}.friend-title{text-align:center;color:#64748b;font-weight:900;margin:3px 0 7px}.vote-options{display:flex;flex-direction:column;gap:8px}.vote-option{width:100%;border:none;border-radius:24px;min-height:96px;font-size:21px;white-space:pre-wrap;line-height:1.25;font-weight:900;cursor:pointer;color:#0f172a;box-shadow:0 16px 30px rgba(15,23,42,.06);font-family:inherit}.vote-a{background:linear-gradient(145deg,#dbeafe,#fff)}.vote-b{background:linear-gradient(145deg,#ede9fe,#fff)}.vote-option.selected{outline:4px solid rgba(37,99,235,.25);border:2px solid #2563eb;transform:scale(1.01)}.friend-idea{margin-top:10px;background:#f8fafc;padding:11px;border-radius:18px}.counter{text-align:left;font-size:12px;color:#64748b;margin-top:5px}.result-box{background:#f8fafc;padding:14px;border-radius:21px;margin-top:10px}.line{display:flex;justify-content:space-between;font-weight:900;margin:8px 0 3px}.vote-detail{color:#64748b;font-size:13px;font-weight:800;margin:0 0 6px}.bar{height:11px;background:white;border-radius:999px;overflow:hidden;margin-bottom:8px}.bar div{height:100%;background:linear-gradient(90deg,#2563eb,#38bdf8);transition:width .55s ease}.result-small{text-align:center;margin:8px 0 0}.ideas{margin-top:10px;background:#eff6ff;padding:12px;border-radius:19px;max-height:155px;overflow:auto}.idea{background:white;padding:9px;border-radius:12px;margin-top:7px;font-weight:700}.ai-box{margin-top:10px;padding:13px;border-radius:19px;background:#0f172a;color:white}.ai-box p{color:#dbeafe;margin:0}.tag-groups{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0}.tag-chip{border:none;border-radius:999px;padding:9px 12px;background:#eff6ff;color:#2563eb;font-weight:900;font-family:inherit}.history-switch{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:10px 0}.history-switch button{border:none;border-radius:14px;padding:10px;background:#f8fafc;color:#2563eb;font-weight:900;font-family:inherit}.history-switch .active{background:#2563eb;color:white}.bulk-panel{background:#f8fafc;border-radius:18px;padding:10px;margin:10px 0}.select-all{display:flex;align-items:center;gap:8px;margin:0 0 8px;font-size:14px}.select-all input{width:18px;height:18px}.bulk-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px}.bulk-actions button{margin-top:0;padding:10px;border-radius:14px;font-size:14px}.selected-count{text-align:center;color:#64748b;font-size:12px;font-weight:900;margin-top:8px}.my-list{display:flex;flex-direction:column;gap:10px;margin-top:12px}.my-item{background:#f8fafc;border-radius:18px;padding:12px}.item-head{display:grid;grid-template-columns:auto 1fr;gap:10px;align-items:start}.item-check{width:20px;height:20px;margin-top:2px}.my-item strong{display:block;font-size:16px;margin-bottom:7px}.my-item small{display:block;color:#64748b;margin-bottom:8px}.my-stats{font-size:13px;font-weight:900;color:#2563eb;margin-bottom:10px}.item-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:8px}.item-actions.single{grid-template-columns:1fr}.item-actions button{border:none;border-radius:14px;padding:10px;font-weight:900;font-family:inherit}.open-btn{background:#eff6ff;color:#2563eb}.empty-state{background:#f8fafc;border-radius:18px;padding:16px;color:#64748b;font-weight:700;text-align:center}.hidden{display:none!important}@media(max-height:720px){.app{padding:7px}.card{border-radius:22px;padding:12px}.app-card{padding:12px}h1{font-size:22px}h2{font-size:17px}textarea{height:58px;min-height:58px;font-size:15px}.choice{padding:7px;margin-top:5px}.vs,.center-vs{width:32px;height:32px;margin:5px auto}label{margin:5px 0 3px;font-size:12px}input{padding:8px 10px}.toggle{padding:7px;margin-top:6px}.main-btn,.secondary-btn,.danger-btn,.archive-btn{padding:11px;font-size:15px}.vote-option{min-height:78px;font-size:20px}}
.profile-bar{position:absolute;top:8px;left:10px;z-index:20}.profile-btn{border:none;background:rgba(255,255,255,.95);box-shadow:0 8px 20px rgba(15,23,42,.12);border-radius:999px;padding:6px 9px;display:flex;align-items:center;gap:6px;font-family:inherit;font-weight:900;color:#2563eb}.avatar{width:24px;height:24px;border-radius:50%;object-fit:cover}.profile-menu{position:absolute;top:42px;left:0;background:white;border-radius:16px;box-shadow:0 12px 28px rgba(15,23,42,.16);padding:8px;min-width:145px}.profile-menu button{display:block;width:100%;border:none;background:#f8fafc;border-radius:12px;padding:10px;margin:4px 0;font-family:inherit;font-weight:900;color:#0f172a}.share-title{font-size:17px;font-weight:900;color:#2563eb;margin:0 0 10px}


/* Small Samsung / older Android fix:
   keep the submit button visible and make the friend voting screen compact. */
html, body {
  min-height: 100%;
}

body {
  overflow-y: auto;
}

.app {
  min-height: 100svh;
  height: auto;
}

.screen.active {
  min-height: 100svh;
}

.app-card {
  height: calc(100svh - 20px);
  min-height: 0;
}

.fixed-action {
  position: sticky;
  bottom: 0;
  z-index: 30;
  padding-bottom: max(8px, env(safe-area-inset-bottom));
}

#friendVote.screen.active {
  align-items: stretch;
  justify-content: center;
}

#friendVote .card {
  height: calc(100svh - 14px);
  max-height: none;
}

#friendVote .scroll-area {
  padding-bottom: 8px;
}

#friendVote .responder-box {
  padding: 9px;
  margin-top: 8px;
  border-radius: 16px;
}

#friendVote .responder-box .secondary-btn {
  margin-top: 7px;
  padding: 10px;
  font-size: 14px;
}

#friendVote h1 {
  font-size: 24px;
  margin-bottom: 6px;
}

#friendVote .friend-title {
  font-size: 15px;
  margin-bottom: 5px;
}

#friendVote .vote-option {
  min-height: 76px;
  font-size: 22px;
}

#friendVote .center-vs {
  width: 32px;
  height: 32px;
  margin: 4px auto;
}

#friendVote .friend-idea {
  margin-top: 8px;
  padding: 9px;
}

@media (max-height: 720px) {
  .app {
    padding: 6px;
  }

  .app-card {
    height: calc(100svh - 12px);
  }

  #friendVote .card {
    height: calc(100svh - 10px);
    padding: 10px;
    border-radius: 20px;
  }

  #friendVote h1 {
    font-size: 22px;
    line-height: 1.15;
  }

  #friendVote .responder-box label {
    margin: 3px 0;
  }

  #friendVote input {
    padding: 7px 10px;
    font-size: 14px;
  }

  #friendVote .toggle {
    padding: 6px;
    margin-top: 5px;
  }

  #friendVote .vote-options {
    gap: 6px;
  }

  #friendVote .vote-option {
    min-height: 66px;
    font-size: 20px;
    border-radius: 20px;
  }

  #friendVote .main-btn {
    padding: 12px;
    font-size: 16px;
  }
}

@media (max-height: 640px) {
  #friendVote .responder-box .secondary-btn {
    display: none;
  }

  #friendVote .vote-option {
    min-height: 58px;
    font-size: 18px;
  }

  #friendVote h1 {
    font-size: 20px;
  }
}


/* Keep the question visible on small phones while preserving the send button. */
#friendVote h1#friendQuestion,
#friendVote #friendQuestion {
  display: block !important;
  visibility: visible !important;
  color: #0f172a !important;
  font-weight: 900;
  line-height: 1.15;
  margin: 4px 0 8px;
}

@media (max-height: 720px) {
  #friendVote h1#friendQuestion {
    font-size: 25px;
    margin: 3px 0 7px;
    max-height: 58px;
    overflow-y: auto;
  }

  #friendVote .friend-title {
    font-size: 14px;
    line-height: 1.15;
  }

  #friendVote .responder-box {
    padding: 7px;
    margin-top: 5px;
  }

  #friendVote .responder-box label {
    font-size: 12px;
  }

  #friendVote .responder-box input {
    padding: 6px 9px;
    font-size: 13px;
  }

  #friendVote .toggle {
    padding: 5px 7px;
    font-size: 12px;
  }

  #friendVote .vote-option {
    min-height: 58px;
    font-size: 20px;
  }

  #friendVote .friend-idea {
    padding: 8px;
    margin-top: 6px;
  }

  #friendVote .fixed-action {
    padding-top: 6px;
  }
}

@media (max-height: 640px) {
  #friendVote h1#friendQuestion {
    font-size: 23px;
    max-height: 52px;
    margin-bottom: 5px;
  }

  #friendVote .friend-title {
    font-size: 13px;
  }

  #friendVote .responder-box {
    padding: 6px;
  }

  #friendVote .vote-option {
    min-height: 52px;
    font-size: 18px;
  }

  #friendVote .friend-idea {
    max-height: 108px;
    overflow: hidden;
  }
}


/* Twinpick polish update */
.hidden { display: none !important; }

.share-title {
  font-size: 17px;
  font-weight: 900;
  color: #2563eb;
  margin: 0 0 10px;
}

textarea {
  height: 74px;
  min-height: 74px;
  line-height: 1.35;
  white-space: pre-wrap;
}

.preview-options div,
.vote-option {
  white-space: pre-wrap;
}

.tag-chip.selected {
  background: linear-gradient(135deg,#2563eb,#7c3aed) !important;
  color: #fff !important;
  box-shadow: 0 10px 22px rgba(37,99,235,.22);
  transform: translateY(-1px);
}

#topicTag::placeholder {
  color: #64748b;
  opacity: .9;
}

@media (max-height: 720px) {
  textarea {
    height: 58px;
    min-height: 58px;
  }
}


.topic-input-wrap{position:relative;}
.missing-topic{box-shadow:0 0 0 3px rgba(37,99,235,.10)!important;}
.floating-dots{position:absolute;left:14px;top:50%;transform:translateY(-50%);display:flex;gap:4px;pointer-events:none;}
.floating-dots span{width:6px;height:6px;border-radius:50%;background:#2563eb;opacity:.75;animation:topicDotFloat 1.05s infinite ease-in-out;}
.floating-dots span:nth-child(2){animation-delay:.12s;background:#38bdf8;}
.floating-dots span:nth-child(3){animation-delay:.24s;background:#7c3aed;}
.floating-dots span:nth-child(4){animation-delay:.36s;background:#2563eb;}
@keyframes topicDotFloat{0%,100%{transform:translateY(0);opacity:.35}50%{transform:translateY(-7px);opacity:1}}

/* UI readability update - home, create and share screens */
#start h1,
#login h1 {
  font-size: 30px;
  letter-spacing: -0.2px;
}
#start h2,
#login p {
  font-size: 20px;
  line-height: 1.35;
}
#start .main-btn,
#start .secondary-btn,
#login .main-btn,
#login .secondary-btn {
  font-size: 16.5px;
}
#start .small {
  font-size: 14px;
}

#create .tag {
  font-size: 16px;
  padding: 9px 15px;
  color: #1d4ed8;
  background: #dbeafe;
  box-shadow: 0 8px 18px rgba(37,99,235,.10);
}
#create label {
  font-size: 15.5px;
  color: #0f172a;
}
#create input,
#create textarea {
  font-size: 17px;
}
#create input::placeholder,
#create textarea::placeholder {
  color: #64748b;
  opacity: .95;
}
#create textarea {
  height: 70px;
  min-height: 70px;
}
#create .toggle {
  font-size: 14px;
}
#create .main-btn,
#create .secondary-btn {
  font-size: 16px;
}

#share h1 {
  font-size: 28px;
}
.preview-box h3,
.share-channel-title {
  font-size: 20px;
  color: #0f172a;
  font-weight: 900;
}
.preview-box {
  background: linear-gradient(145deg,#f8fafc,#ffffff);
  border: 1px solid rgba(37,99,235,.08);
}
#previewQuestion {
  color: #0f172a;
  font-size: 21px;
  font-weight: 900;
  line-height: 1.25;
  margin-bottom: 12px;
}
.preview-options div {
  color: #0f172a;
  font-size: 17px;
  padding: 13px 9px;
}
.share-panel {
  margin-top: 14px;
  background: #f8fafc;
  padding: 12px;
  border-radius: 20px;
}
.share-channel-title {
  color: #1d4ed8;
  margin-bottom: 10px;
}
.share-grid button {
  font-size: 15.5px;
  color: #1d4ed8;
  background: #dbeafe;
}

@media(max-height:720px){
  #start h1,#login h1{font-size:27px}
  #start h2,#login p{font-size:18px}
  #create .tag{font-size:15px;padding:7px 12px;margin-bottom:7px}
  #create label{font-size:14px;margin:4px 0 3px}
  #create input,#create textarea{font-size:16px;padding:8px 10px}
  #create textarea{height:56px;min-height:56px}
  #create .toggle{font-size:13px;padding:6px;margin-top:5px}
  #create .choice{padding:6px;margin-top:5px}
  #share h1{font-size:24px}
  .preview-box h3,.share-channel-title{font-size:18px}
  #previewQuestion{font-size:19px;margin-bottom:8px}
  .preview-options div{font-size:16px;padding:10px 7px}
  .share-panel{padding:10px;margin-top:10px}
}

/* Friend page readability update */
#friendVote .card {
  padding: 16px;
}
#friendVote .friend-title {
  color: #475569 !important;
  font-size: 18px !important;
  font-weight: 900 !important;
  line-height: 1.25 !important;
  margin: 4px 0 9px !important;
}
#friendVote h1#friendQuestion {
  color: #0f172a !important;
  font-size: 31px !important;
  font-weight: 900 !important;
  line-height: 1.12 !important;
  letter-spacing: -0.2px;
  margin: 3px 0 14px !important;
  text-align: center;
  max-height: none !important;
  overflow: visible !important;
}
#friendVote .vote-options {
  gap: 10px !important;
}
#friendVote .vote-option {
  min-height: 92px !important;
  font-size: 27px !important;
  border-radius: 25px !important;
  color: #0f172a !important;
  font-weight: 900 !important;
  box-shadow: 0 18px 34px rgba(15,23,42,.08) !important;
}
#friendVote .center-vs {
  width: 42px !important;
  height: 42px !important;
  font-size: 15px !important;
  margin: 6px auto !important;
}
#friendVote .responder-box {
  padding: 13px !important;
  border-radius: 20px !important;
  background: linear-gradient(145deg,#f8fafc,#ffffff) !important;
  margin-top: 12px !important;
}
#friendVote .responder-box label:not(.toggle),
#friendVote .friend-idea label {
  font-size: 16px !important;
  color: #0f172a !important;
  font-weight: 900 !important;
}
#friendVote input {
  font-size: 16px !important;
  color: #0f172a !important;
}
#friendVote input::placeholder {
  color: #64748b !important;
  opacity: .95 !important;
}
#friendVote .toggle {
  font-size: 15px !important;
  color: #0f172a !important;
  font-weight: 900 !important;
}
#friendVote .responder-box .secondary-btn {
  font-size: 15.5px !important;
  color: #1d4ed8 !important;
  background: #dbeafe !important;
}
#friendVote .friend-idea {
  padding: 13px !important;
  border-radius: 20px !important;
  background: #f8fafc !important;
}
#friendVote .fixed-action .main-btn {
  font-size: 20px !important;
  padding: 15px !important;
  border-radius: 20px !important;
}

@media(max-height:720px){
  #friendVote .card{padding:12px!important;border-radius:22px!important}
  #friendVote .friend-title{font-size:16px!important;margin:2px 0 6px!important}
  #friendVote h1#friendQuestion{font-size:27px!important;margin:2px 0 9px!important;line-height:1.1!important}
  #friendVote .vote-options{gap:7px!important}
  #friendVote .vote-option{min-height:72px!important;font-size:24px!important;border-radius:22px!important}
  #friendVote .center-vs{width:36px!important;height:36px!important;font-size:13px!important;margin:4px auto!important}
  #friendVote .responder-box{padding:9px!important;margin-top:8px!important;border-radius:18px!important}
  #friendVote .responder-box label:not(.toggle),#friendVote .friend-idea label{font-size:14px!important}
  #friendVote input{font-size:14px!important;padding:7px 10px!important}
  #friendVote .toggle{font-size:13px!important;padding:6px 8px!important}
  #friendVote .responder-box .secondary-btn{font-size:14px!important;padding:9px!important}
  #friendVote .friend-idea{padding:9px!important;margin-top:7px!important}
  #friendVote .fixed-action .main-btn{font-size:18px!important;padding:13px!important}
}

@media(max-height:640px){
  #friendVote .friend-title{font-size:15px!important}
  #friendVote h1#friendQuestion{font-size:24px!important;margin-bottom:7px!important}
  #friendVote .vote-option{min-height:62px!important;font-size:21px!important}
  #friendVote .center-vs{width:32px!important;height:32px!important;margin:3px auto!important}
  #friendVote .responder-box{padding:7px!important;margin-top:6px!important}
  #friendVote .friend-idea{padding:7px!important}
  #friendVote .fixed-action .main-btn{font-size:17px!important;padding:12px!important}
}

/* Friend response clarity update */
.friend-instruction{
  text-align:center;
  color:#64748b;
  font-weight:900;
  font-size:15px;
  margin:0 0 9px;
}
.vote-wrap{
  display:flex;
  flex-direction:column;
  gap:6px;
}
.vote-label{
  color:#2563eb;
  font-weight:900;
  font-size:15px;
  padding-inline:8px;
}
#friendVote .responder-box input::placeholder{
  color:#64748b;
  opacity:1;
  font-weight:700;
}
@media (max-height: 720px){
  .friend-instruction{font-size:13px;margin-bottom:6px;}
  .vote-label{font-size:13px;}
  .vote-wrap{gap:4px;}
}

/* Combined refinements – approved flow */
.toggle-help{
  margin:4px 8px 6px;
  color:#475569;
  font-size:13.5px;
  line-height:1.35;
  font-weight:800;
}
.share-results-toggle{margin-top:6px!important;margin-bottom:2px!important;}
.preview-topic,
.friend-topic{
  color:#f97316;
  font-weight:900;
  text-align:center;
  font-size:24px;
  line-height:1.1;
  margin:3px 0 5px;
}
.preview-topic{font-size:22px;text-align:center;margin-bottom:6px;}
#friendVote .friend-title{
  margin-bottom:3px!important;
}
#friendVote .friend-topic{
  font-size:29px!important;
  color:#f97316!important;
  margin:2px 0 6px!important;
}
#friendVote h1#friendQuestion{
  font-size:27px!important;
  margin-top:0!important;
  margin-bottom:9px!important;
}
#friendVote .friend-idea input{
  font-size:16px!important;
  padding:10px 12px!important;
}
.results-prompt{
  color:#0f172a;
  font-size:20px;
  font-weight:900;
  margin:8px 0 4px;
}
#thanks #friendResultsButton .main-btn{
  font-size:18px;
  padding:14px;
}
#saveSelf h1{font-size:25px;line-height:1.18;}
#saveSelf p{font-size:16px;color:#475569;font-weight:800;}
input::placeholder, textarea::placeholder{
  color:#475569!important;
  opacity:1!important;
  font-size:1.02em;
  font-weight:700;
}
@media(max-height:720px){
  .toggle-help{font-size:12.5px;line-height:1.25;margin:3px 7px 4px;}
  .preview-topic{font-size:20px;margin:2px 0 4px;}
  #friendVote .friend-topic{font-size:25px!important;margin:1px 0 4px!important;}
  #friendVote h1#friendQuestion{font-size:23px!important;margin-bottom:6px!important;}
  .results-prompt{font-size:18px;}
  #saveSelf h1{font-size:22px;}
  #saveSelf p{font-size:14.5px;}
}
@media(max-height:640px){
  #friendVote .friend-topic{font-size:22px!important;}
  #friendVote h1#friendQuestion{font-size:21px!important;}
  .toggle-help{font-size:12px;}
}

/* Latest flow cleanup: global home, self-link checkbox, compact share */
.home-fab{
  position:fixed;
  top:10px;
  right:10px;
  z-index:40;
  width:38px;
  height:38px;
  border:none;
  border-radius:50%;
  background:rgba(255,255,255,.96);
  color:#2563eb;
  box-shadow:0 8px 22px rgba(15,23,42,.14);
  font-size:24px;
  font-weight:900;
  line-height:1;
  cursor:pointer;
}
.self-link-toggle{
  margin-top:9px!important;
  margin-bottom:2px!important;
  text-align:right;
}
.self-link-toggle span{
  font-size:14.5px;
  font-weight:900;
  color:#0f172a;
}
#share .toggle-help{
  margin-bottom:8px;
}
@media(max-height:720px){
  .home-fab{width:34px;height:34px;font-size:21px;top:8px;right:8px;}
  .self-link-toggle span{font-size:13px;}
  #share .toggle-help{font-size:12px;margin-bottom:5px;}
}


/* Approved refinements: compact share, home placement, consulted-with-me */
.home-fab{
  left:10px!important;
  right:auto!important;
}
.profile-bar{
  left:56px!important;
}
.install-note{
  margin:10px 0 6px;
  padding:10px 12px;
  border-radius:16px;
  background:#fff7ed;
  color:#9a3412;
  font-weight:900;
  font-size:13px;
  line-height:1.35;
  text-align:right;
}
.resend-settings{
  margin:8px 0 6px;
  padding:8px;
  border-radius:16px;
  background:#f8fafc;
}
.resend-settings .toggle{
  margin-top:5px!important;
  padding:7px 8px!important;
}
.identified-responder-line{
  font-size:14px;
  color:#0f172a;
  margin:0 0 7px!important;
  line-height:1.25;
}
.identified-responder-line strong{color:#2563eb}
.anonymous-reply-toggle{
  margin-top:6px!important;
  font-size:13px!important;
  line-height:1.25!important;
  padding:7px 8px!important;
}
.anon-note{
  font-size:13px;
  color:#64748b;
  font-weight:800;
  line-height:1.3;
}
.consulted-row{
  cursor:pointer;
  transition:transform .12s ease,box-shadow .12s ease;
}
.consulted-row:active{transform:scale(.99)}
.compact-consulted-row{
  padding:14px 15px;
}
.compact-consulted-row strong{
  font-size:17px;
  color:#0f172a;
  line-height:1.3;
}
.consulted-answer-box h3{margin-bottom:6px;color:#2563eb}
.consulted-answer-text{font-weight:900;color:#0f172a;margin:0;font-size:17px}
#consultedSharedResults{max-height:240px}
@media(max-height:720px){
  .home-fab{width:34px;height:34px;font-size:21px;top:8px;left:8px!important;right:auto!important;}
  .profile-bar{left:48px!important;}
  .install-note{font-size:12px;padding:8px;margin:7px 0 4px;}
  .anonymous-reply-toggle{font-size:12px!important;padding:6px!important}
  .identified-responder-line{font-size:13px!important}
}


/* Final pre-test polish: prevent top controls overlapping brand/title */
#start .card.center,
#login .card.center{
  padding-top:56px;
}
.home-fab{
  top:12px!important;
  left:10px!important;
  right:auto!important;
}
.profile-bar{
  top:12px!important;
  left:56px!important;
  right:auto!important;
}
@media(max-height:720px){
  #start .card.center,
  #login .card.center{
    padding-top:48px;
  }
  .home-fab{
    top:8px!important;
    left:8px!important;
  }
  .profile-bar{
    top:8px!important;
    left:48px!important;
  }
}

/* Compact "ההתלבטויות שלי" so "שלח שוב" is visible without scrolling */
#myTwinpicks .scroll-area{
  padding-bottom:4px;
}
#myTwinpicks .tag{
  margin-bottom:6px;
}
#myTwinpicks h1{
  margin-bottom:6px;
  font-size:24px;
}
#myTwinpicksStatus{
  margin-bottom:6px;
  font-size:13px;
}
#myTwinpicks .history-switch{
  margin:6px 0;
  gap:6px;
}
#myTwinpicks .history-switch button{
  padding:8px;
}
#myTwinpicks .bulk-panel{
  padding:7px;
  margin:6px 0;
  border-radius:15px;
}
#myTwinpicks .select-all{
  margin-bottom:5px;
}
#myTwinpicks .bulk-actions button{
  padding:8px;
}
#myTwinpicks .selected-count{
  margin-top:5px;
}
#myTwinpicks .tag-groups{
  gap:6px;
  margin:7px 0;
}
#myTwinpicks .tag-chip{
  padding:7px 10px;
}
#myTwinpicks .my-list{
  gap:7px;
  margin-top:7px;
}
#myTwinpicks .my-item{
  padding:8px 9px;
  border-radius:16px;
}
#myTwinpicks .item-head{
  gap:7px;
}
#myTwinpicks .item-check{
  width:18px;
  height:18px;
}
#myTwinpicks .my-item strong{
  font-size:15px;
  margin-bottom:3px;
  line-height:1.2;
}
#myTwinpicks .my-item small{
  margin-bottom:3px;
  line-height:1.2;
}
#myTwinpicks .my-stats{
  margin-bottom:5px;
  font-size:12.5px;
}
#myTwinpicks .item-actions{
  gap:6px;
  margin-top:5px;
}
#myTwinpicks .item-actions.single{
  grid-template-columns:1fr 1fr;
}
#myTwinpicks .item-actions button{
  padding:8px;
  border-radius:13px;
}
#myTwinpicks .fixed-action{
  padding-top:6px;
}
#myTwinpicks .fixed-action .main-btn,
#myTwinpicks .fixed-action .secondary-btn{
  padding:10px;
  margin-top:6px;
}

@media(max-height:720px){
  #myTwinpicks h1{font-size:21px;margin-bottom:4px;}
  #myTwinpicksStatus{font-size:12px;margin-bottom:4px;}
  #myTwinpicks .history-switch button{padding:7px;}
  #myTwinpicks .bulk-panel{padding:6px;margin:5px 0;}
  #myTwinpicks .tag-groups{margin:5px 0;}
  #myTwinpicks .my-item{padding:7px 8px;}
  #myTwinpicks .my-item strong{font-size:14px;}
  #myTwinpicks .my-stats{font-size:12px;margin-bottom:4px;}
  #myTwinpicks .item-actions button{padding:7px;font-size:13px;}
  #myTwinpicks .fixed-action .main-btn,
  #myTwinpicks .fixed-action .secondary-btn{padding:9px;font-size:14px;}
}

/* Header overlap final fix: reserve a compact top row for home/profile controls */
.app{position:relative;}
.home-fab{top:8px!important;left:10px!important;right:auto!important;width:36px!important;height:36px!important;font-size:22px!important;}
.profile-bar{top:8px!important;left:54px!important;right:auto!important;}
.profile-btn{min-height:36px!important;padding:5px 8px!important;}
.profile-btn .avatar,.avatar{width:24px!important;height:24px!important;}
#start .card.center,
#login .card.center,
#create .card,
#share .card,
#myTwinpicks .card,
#consultedMe .card,
#consultedDetail .card,
#friendVote .card,
#thanks .card,
#alreadyAnswered .card,
#results .card{
  padding-top:52px!important;
}
@media(max-height:720px){
  .home-fab{top:6px!important;left:8px!important;width:32px!important;height:32px!important;font-size:20px!important;}
  .profile-bar{top:6px!important;left:46px!important;}
  .profile-btn{min-height:32px!important;padding:4px 7px!important;font-size:13px!important;}
  .profile-btn .avatar,.avatar{width:22px!important;height:22px!important;}
  #start .card.center,
  #login .card.center,
  #create .card,
  #share .card,
  #myTwinpicks .card,
  #consultedMe .card,
  #consultedDetail .card,
  #friendVote .card,
  #thanks .card,
  #alreadyAnswered .card,
  #results .card{
    padding-top:44px!important;
  }
  #share .preview-box{margin-top:7px!important;padding:9px!important;}
  #share .share-panel{margin-top:7px!important;padding:9px!important;}
}
