/* Private feedback and public reviews */
#feedbackOpen,#feedbackDialog [hidden],.community-reviews [hidden] {display:none!important}
html[data-theme=dark] body:has(#appView:not(.hidden)) #feedbackOpen {
  position:fixed;right:22px;bottom:calc(20px + env(safe-area-inset-bottom));z-index:45;
  display:inline-flex!important;align-items:center;gap:10px;padding:12px 17px;
  border:1px solid #63decd!important;border-radius:28px;background:#102c38!important;color:#94f6e4!important;
  box-shadow:0 5px 24px #030b1880!important;font:590 .95rem/1.4 Inter,sans-serif;letter-spacing:0;
}
#feedbackOpen svg {width:23px;height:23px}

/* Keep transient panel messages centered and clear of the feedback shortcut. */
#toast {
  position:fixed;left:0;right:0;bottom:calc(24px + env(safe-area-inset-bottom));
  z-index:1000;width:fit-content;max-width:min(460px,calc(100% - 32px));
  box-sizing:border-box;margin-inline:auto;text-align:center;overflow-wrap:anywhere;
  line-height:1.45;pointer-events:none;transform:translateY(10px);
  transition:opacity .18s ease,transform .18s ease;
}
#toast.show {transform:none}
@media(max-width:1024px){
  body:has(#appView:not(.hidden)) #toast {bottom:calc(86px + env(safe-area-inset-bottom))}
}
@media(prefers-reduced-motion:reduce){
  #toast {transition:none;transform:none}
}
#appView .panel-legal {padding-bottom:90px}
#feedbackDialog {
  width:min(540px,94vw);max-height:90dvh;overflow:auto;padding:clamp(20px,4vw,32px);
  color:#f4f8ff;background:#101c2f;border:1px solid #41546e;border-radius:22px;box-shadow:0 22px 90px #0009;
}
#feedbackDialog::backdrop {background:#030913cc}
body:has(#feedbackDialog[open]) {overflow:hidden}
#feedbackDialog header,.feedback-switch,.feedback-actions,.review-author,#reviewNav {
  display:flex;align-items:center;gap:12px
}
#feedbackDialog header {justify-content:space-between}
#feedbackDialog h2 {margin:0;font-size:1.65rem;letter-spacing:-.025em}
#feedbackDialog p,#feedbackDialog small {color:#c5d3e5;line-height:1.55}
#feedbackDialog small {display:block;font-size:.84rem}
#feedbackDialog a,.community-reviews a {color:#70ebd4;text-underline-offset:4px}
#feedbackDialog form {display:grid;gap:16px;margin:16px 0}
#feedbackDialog form p {margin:0}
#feedbackDialog label,#feedbackDialog legend {font-size:1rem;font-weight:550;letter-spacing:0;text-transform:none;color:#f0f6ff}
#feedbackDialog textarea {
  display:block;width:100%;margin-top:9px;padding:13px;border:1px solid #496078;border-radius:12px;
  color:white;background:#081324;resize:vertical;font:430 1rem/1.5 Inter,sans-serif;
}
#feedbackDialog textarea::placeholder {color:#9bafc7}
html[data-theme=dark] body :is(#feedbackDialog,.community-reviews) button {
  padding:10px 15px;min-height:42px;border:1px solid #435772!important;border-radius:12px;
  background:#1a2b43!important;color:#eaf4ff!important;box-shadow:none!important;transform:none!important;
  font:560 .95rem/1.35 Inter,sans-serif;letter-spacing:0;text-transform:none
}
html[data-theme=dark] body :is(#feedbackDialog,.community-reviews) button:hover {border-color:#62eddb!important}
html[data-theme=dark] body #feedbackDialog button[aria-pressed=true] {color:#76f4df!important;background:#103d42!important;border-color:#52d7c3!important}
html[data-theme=dark] body #feedbackDialog .send-feedback {background:#64e5d1!important;color:#05212a!important;font-weight:650}
html[data-theme=dark] body #feedbackDialog #removeReview {color:#ffa0ad!important}
.feedback-switch button {flex:1;align-self:stretch}
.feedback-actions {flex-wrap:wrap}
#feedbackDialog fieldset {border:0;padding:0;margin:0;min-width:0}
.star-picker {display:flex;gap:3px;margin-block:6px}
#feedbackDialog .star-picker label {position:relative;display:grid;place-items:center;width:43px;height:45px;cursor:pointer}
#feedbackDialog .star-picker input {position:absolute;inset:0;opacity:0;width:100%;height:100%;margin:0;cursor:pointer}
.star-picker label:focus-within {outline:2px solid #74ead9;border-radius:8px}
.star-picker span {font:36px/1 system-ui;color:#8291a8}
.star-picker .lit span,.review-stars,.reviews-shortcut span {color:#ffce66}
#ratingText {color:#bdcde1;font-size:.9rem}
#feedbackDialog .publish-check {display:grid!important;grid-template-columns:20px minmax(0,1fr)!important;align-items:start;gap:11px;color:#cbd9eb;font-size:.92rem;line-height:1.5;font-weight:430;cursor:pointer}
#feedbackDialog .publish-check input {width:19px!important;height:19px!important;min-height:0!important;margin:2px 0 0!important;padding:0!important;accent-color:#63ecd4;cursor:pointer}
#feedbackDialog .publish-check span {grid-column:2;grid-row:1}
#feedbackDialog #feedbackIdentity {margin:10px 0 18px}
#feedbackDialog #feedbackStatus {color:#82f3de;overflow-wrap:anywhere}
.review-author {flex-wrap:wrap;gap:9px;overflow-wrap:anywhere}
.review-author img {width:32px;height:32px;border-radius:9px;object-fit:contain}
.review-author strong {font-weight:640;font-size:1.07rem}
.review-author span {color:#bbcce2;font-size:.91rem}
.hero-shortcuts {position:relative;z-index:2;display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:4px 24px}
#accessView .reviews-shortcut {display:inline-flex;align-items:center;gap:8px;min-height:42px;color:#f4f7ff;font-weight:580;text-decoration:none}
#accessView .reviews-shortcut:hover {text-decoration:underline;text-underline-offset:4px}
#accessView .community-reviews {
  display:grid;grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr);align-items:center;
  gap:clamp(32px,6vw,84px);padding:clamp(64px,8vw,110px) 0 32px;text-align:left
}
#accessView .review-intro h2 {font-size:clamp(2rem,3.4vw,3rem);line-height:1.14;letter-spacing:-.03em;font-weight:660;margin:0}
#accessView .review-intro em {font:inherit;color:var(--mint)}
#accessView .review-intro p:not(.overline),#accessView #reviewCard p {font-size:1rem;line-height:1.65;color:var(--muted);margin:18px 0}
#accessView #reviewStats:not(:empty) {font-weight:600;color:#ffce66}
.review-browser {min-width:0;padding:22px 6px 0}
.review-links {display:flex;align-items:center;flex-wrap:wrap;gap:18px}
#shareStatus {display:block;margin-top:8px;overflow-wrap:anywhere;color:#a6eadf}
#reviewCard {
  position:relative;isolation:isolate;min-height:215px;display:grid;align-content:center;
  padding:clamp(24px,4vw,42px);border-radius:22px;border:1px solid #425974;
  background:radial-gradient(ellipse at top right,#21445580,transparent 66%),#111e32;
  box-shadow:0 16px 36px #03081555;overflow-wrap:anywhere
}
#reviewCard.stacked {box-shadow:0 -12px 0 -5px #25425b,0 -13px 0 -5px #56758d,0 -24px 0 -10px #182c45,0 -25px 0 -10px #344e6a,0 18px 50px #0003}
#accessView #reviewCard h3 {font-size:1.4rem;line-height:1.3;margin:0}
#reviewCard .review-stars {display:block;font-size:1.35rem;letter-spacing:.14em;margin-top:18px}
#reviewCard blockquote {margin:14px 0 22px;color:#f2f7ff;font-size:clamp(1.07rem,1.5vw,1.3rem);font-weight:450;line-height:1.55;white-space:pre-wrap}
#reviewCard time {color:#b6c8dd;font-size:.89rem}
#reviewNav {justify-content:center;margin-top:18px;color:#c0cee2;font-variant-numeric:tabular-nums}
#reviewNav button:disabled {opacity:.42;cursor:default}
@media(prefers-reduced-motion:no-preference){#reviewCard article {animation:soft-in .22s ease-out}}
@media(max-width:760px){
  #accessView .community-reviews {grid-template-columns:minmax(0,1fr);gap:18px}
  html[data-theme=dark] body:has(#appView:not(.hidden)) #feedbackOpen {right:12px;bottom:calc(12px + env(safe-area-inset-bottom));padding:10px 13px;font-size:.84rem}
  .feedback-switch {gap:7px}
  html[data-theme=dark] body #feedbackDialog .feedback-switch button {padding:10px 6px;font-size:.88rem}
}
