/* Popover dimensions follow the two measured reference breakpoints. */
.ui-icon { width: 15px; height: 15px; flex: none; vertical-align: -.16em; color: inherit; }
.popover {
  position: absolute;
  z-index: 100;
  top: calc(100% + 13px);
  left: 0;
  width: 325px;
  padding: 16px;
  max-height: calc(100dvh - 80px);
  overflow: auto;
  border: 1px solid #67bde2;
  border-radius: 18px;
  background: linear-gradient(155deg,rgba(245,252,255,.99),rgba(218,243,255,.99));
  box-shadow: 0 20px 48px rgba(18,103,145,.24);
  color: #155f82;
  animation: open-choice .18s ease-out;
}
@keyframes open-choice { from {opacity:0;transform:translateY(-4px)} to {opacity:1;transform:none} }
.popover[hidden] { display: none; }
.download-menu { width: 430px; }
.community-menu,.ranking-menu { left:auto;right:0; }
.pop-head {
  display:flex;flex-direction:column;justify-content:center;
  padding:3px 5px 13px;border-bottom:1px solid #91cee8;
  height:63.2px;color:#0b597e;
}
.pop-head strong { font-size:17px;line-height:1.55;font-weight:800; }
.pop-head small { color:#4d8199;font-size:11.5px;font-weight:600;line-height:1.55; }
.choice-grid { display:grid;gap:7px;margin-top:10px; }
.choice {
  display:flex;align-items:center;gap:12px;min-width:0;min-height:72px;padding:12px;
  border:1px solid #9bcfe5;border-radius:13px;color:#155f82;
  background:rgba(239,250,255,.92);text-align:center;
  transition:transform .18s,border-color .18s,background .18s;
}
.choice:hover,.choice:focus-visible {text-decoration:none;transform:translateY(-2px);background:#fff;border-color:#58b8e5;}
.choice:active {transform:translateY(0);background:#e1f4ff;}
.choice-art {
  flex:none;display:grid;place-items:center;overflow:hidden;
  width:42px;height:42px;border-radius:11px;
  background:linear-gradient(145deg,#d9f4ff,#8fd5f0);
}
.choice-art img {display:block;width:100%;height:100%;object-fit:contain;}
.choice-copy {display:flex;flex-direction:column;align-items:center;min-width:0;}
.choice-copy strong {font-size:14px;font-weight:800;line-height:1.55;color:#0b597e;}
.choice-copy small {display:block;margin-top:2px;font-size:10.5px;font-weight:600;line-height:1.55;color:#4d8199;}
.account-menu .choice-grid,.download-menu .choice-grid {gap:8px}
.account-menu .choice-grid {grid-template-columns:repeat(2,minmax(0,1fr));margin-top:8px}
.account-menu .choice:not(.choice-wide) {min-height:82px;gap:6px;padding:8px 6px}
.account-menu .choice:not(.choice-wide) .choice-art {width:36px;height:36px}
.choice-wide {grid-column:1/-1;justify-content:center}
.community-menu .choice-art {box-shadow:0 4px 10px #247eb333}
.community-menu img {width:34px;height:34px}
.ranking-menu img {width:23px;height:23px;filter:drop-shadow(0 2px 2px #18415c33)}
.download-menu .choice-grid {grid-template-columns:repeat(4,minmax(0,1fr))}
.download-menu .choice {height:62px;min-height:0;flex-direction:column;justify-content:center;gap:3px;padding:4px;border-radius:12px}
.download-menu .choice-art {width:78px;max-width:100%;height:36px;border-radius:0;background:none;overflow:visible}
.download-menu .choice-art img {filter:drop-shadow(0 2px 2px #84571a38)}
.download-menu .choice-copy small {font-size:10px;line-height:1;margin:0;color:#174e6c}
@media (min-width:651px) and (max-width:1020px) {
  .pop-head {height:61.6px}
}
@media(max-width:650px) {
  .popover {position:fixed;left:6px;right:6px;top:64px;width:auto;padding:14px;max-height:calc(100dvh - 72px)}
  .pop-head {height:55.4px}
  .pop-head strong {font-size:14px}
  .pop-head small {font-size:9.5px}
  .download-menu .choice-grid {grid-template-columns:repeat(2,minmax(0,1fr))}
  .download-menu .choice {height:60px}
  .choice {min-height:64px}
  .account-menu .choice:not(.choice-wide) {min-height:72px}
  .choice-copy strong {font-size:12px}
  .choice-copy small {font-size:9px}
}
.featured-action small {display:block}
.featured-action i {background:rgba(255,255,255,.1)}
.featured-action i .ui-icon {width:17px;height:17px}
.auth-row {gap:6px}
.auth-row i {display:grid;place-items:center;width:25px;height:25px;background:linear-gradient(135deg,#fff4bb,#ffd568);color:#8c5204;border-radius:8px}
.side-title,.notice li {display:flex;align-items:center;gap:7px}
.download-grid>* {gap:6px}
.support .cta {gap:6px;background:linear-gradient(110deg,#2593bb,#307ca7)}
.notice ul {list-style:none;padding:0;margin:11px 0 0}
.notice li {padding:3px 0;line-height:1.5;gap:9px}
.notice li .ui-icon,.notice .side-title {color:#0781c5}
.notice .ui-icon {width:18px;height:18px}
.meta {align-items:center}
.meta span,.meta a {display:inline-flex;align-items:center;gap:5px}
.form-mark .ui-icon {width:27px;height:27px}
.field label .ui-icon, label .ui-icon {width:14px;height:14px;margin-right:4px}
.destination .ui-icon {width:23px;height:23px;margin-right:6px}
.pin .ui-icon {width:11px;height:11px}
.petals {position:fixed;inset:0;overflow:hidden;z-index:9;pointer-events:none}
.petals img {
  position:absolute;top:-40px;left:var(--x);width:var(--size);height:auto;
  opacity:.78;animation:petal-fall var(--t) linear infinite;animation-delay:var(--d);
}
@keyframes petal-fall {
  0%{transform:translate3d(0,0,0) rotate(-25deg)}
  45%{transform:translate3d(26px,49vh,0) rotate(60deg)}
  100%{transform:translate3d(-18px,calc(100vh + 54px),0) rotate(190deg)}
}
@media(prefers-reduced-motion:reduce){.petals{display:none}.popover,.choice{animation:none;transition:none}}

.community-menu .choice-copy {align-items:flex-start;text-align:left}
.download-grid>* {font-size:12.1px;font-weight:700;border-radius:10px}
.download-grid b {background:linear-gradient(135deg,#1e648a,#248eb8)}
.download-grid a:nth-child(2) {background:#20a34a}
.download-grid a:nth-child(3) {background:#3e5b84}
.download-grid a:nth-child(4) {background:#f17018}
.download-grid a:nth-child(5) {background:#5a36e8}
.download-grid a,.support .cta {transition:transform .15s,filter .15s,box-shadow .15s}
.download-grid a:hover,.support .cta:hover {transform:translateY(-1px);filter:brightness(1.08);box-shadow:0 4px 10px #10415c40}
.support .cta {background:#ee5260;border-radius:10px;font-size:12.1px}
.auth-row {background:linear-gradient(135deg,#536fc4,#8b72d8);border-radius:10px;font-size:14.5px}
dialog:has([data-mode=login]) input:not([type=hidden]) {text-align:center;font-weight:700;border-color:#9ccce3;border-radius:11px}
dialog:has([data-mode=login]) .secondary {color:#23678a;background:#effaff;border:2px solid #6bb9de}
@media(min-width:651px) and (max-width:1020px){
  .menus {gap:4px}
  .nav-trigger {padding:0 7px 0 3px}
}
@media(max-width:650px){
  .choice {padding-block:10px}
  .choice-art {width:39px;height:39px}
  .account-menu .choice:not(.choice-wide) .choice-art {width:32px;height:32px}
}

.panel video, dialog video {display:block;width:100%;height:auto;border-radius:10px;background:#18394d}

dialog:has(.ios-guide),.panel:has(.ios-guide) {
  width:min(1226px,calc(100% - 16px));max-width:calc(100% - 16px);padding:13px 12px 10px;
  border:3px solid #df922e;border-radius:16px;background:#fff7df;color:#492b15;
}
.panel:has(.ios-guide){margin:auto}
.ios-guide h1 {font-size:21px;text-align:center;line-height:1.35;margin:0 30px 8px}
dialog:has(.ios-guide) .close {left:7px;right:auto;top:7px;width:31px;height:31px;border-radius:50%;border-color:#a45419;color:#824017;background:#fff0c7}
.panel .ios-guide video,dialog .ios-guide video {width:100%;height:min(67.4dvh,640px);background:#080808;object-fit:contain}
.guide-actions {display:flex;align-items:center;justify-content:center;gap:12px;margin:10px 0 0}
.guide-actions>* {display:grid;place-items:center;min-height:43px;padding:6px 14px;font-weight:800;font-size:16px;color:#60320f;border:2px solid #a5591c;border-radius:10px;background:linear-gradient(#f7bd59,#df8a31)}
.ios-guide details{font-size:12px;margin-top:6px}.ios-guide summary{cursor:pointer}

.lh-editor {
  box-sizing: border-box;
  max-width: 850px;
  flex: 1;
  min-width: 0;
  line-height: 1.5;
  color: #173f2d;
}
.lh-editor [hidden] {
  display: none !important;
}
.lh-editor [data-tools],
.lh-editor [data-gallery] {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.lh-editor [data-tools] {
  padding: 9px;
  background: #e1f2e6;
  border: 1px solid #aacbb3;
  border-radius: 10px 10px 0 0;
}
.lh-editor button,
.lh-editor select {
  border: 1px solid #a9cdb5;
  border-radius: 6px;
  background: #fff;
  color: #204a35;
  padding: 5px 9px;
  cursor: pointer;
}
.lh-editor button:hover {
  background: #e0f4e6;
}
.format-bold {
  font-weight: bold;
}
.format-italic {
  font-style: italic;
}
.format-underline {
  text-decoration: underline;
}
.lh-editor [data-writing],
.lh-editor dialog article {
  box-sizing: border-box;
  color: #163d28;
  background: #fcfffb;
  font:
    17px/1.6 "Times New Roman",
    serif;
  padding: 18px;
  overflow-wrap: anywhere;
}
.lh-editor [data-writing] {
  border: 1px solid #aacbb3;
  border-top: 0;
  border-radius: 0 0 10px 10px;
  min-height: 220px;
  max-height: 70vh;
  overflow: auto;
}
.lh-editor [data-writing] img,
.lh-editor dialog img {
  max-width: 100%;
  height: auto;
}
.lh-editor table {
  border-collapse: collapse;
}
.lh-editor td,
.lh-editor th {
  border: 1px solid #94b59c;
  min-width: 45px;
  padding: 5px;
}
.lh-editor .upload-area {
  display: block;
  float: none;
  width: auto;
  border: 1px dashed #83af91;
  border-radius: 8px;
  padding: 10px;
  background: #f1f9ef;
  color: #254c36;
}
.lh-editor .upload-area input {
  display: block;
  margin-top: 6px;
}
.lh-editor [data-gallery]:not(:empty) {
  padding: 10px 0;
}
.editor-tile {
  width: 144px;
  background: #eff8ed;
  border: 1px solid #c4ddc8;
  padding: 6px;
  border-radius: 8px;
}
.editor-tile img {
  width: 100%;
  height: 78px;
  object-fit: contain;
}
.editor-tile button {
  font-size: 11px;
  padding: 3px 5px;
  margin: 2px;
}
.lh-editor dialog {
  width: min(720px, 90vw);
  max-height: 85vh;
  overflow: auto;
  border: 1px solid #98bda2;
  border-radius: 12px;
  background: #f6fcf5;
}
.lh-editor dialog::backdrop {
  background: #123b2c88;
}
.lh-editor [data-choose-image] {
  box-sizing: border-box;
  width: min(440px, calc(100% - 24px));
  padding: 18px;
}
.lh-editor [data-choose-image] header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.lh-editor [data-choose-image] :is(h2, h3) {
  margin: 0;
  padding: 0;
  background: none;
  color: #204a35;
  text-transform: none;
}
.lh-editor [data-choose-image] [data-library-heading] {
  margin-top: 16px;
}
.lh-editor [data-image-choices] {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(85px, 1fr));
  gap: 8px;
  margin-top: 8px;
}
.lh-editor [data-image-choices] img {
  display: block;
  width: 100%;
  height: 64px;
  margin-bottom: 4px;
  object-fit: contain;
}
.lh-editor [data-status] {
  display: block;
  color: #336247;
}
.lh-editor progress {
  width: 100%;
}
.lh-editor img {
  image-rendering: auto;
}
.lh-editor small {
  color: #40644d;
}

.section-tabs a {gap:6px}
.section-tabs {margin-bottom:14px}
.account-nav a[aria-current="page"] {background:#316e42;color:#fff}
.form-stack {display:grid;gap:16px}
.form-stack .field {min-width:0}
.form-options {padding:10px 14px;border:1px solid var(--border);border-radius:10px}
.form-options summary {font-weight:700;cursor:pointer}
.form-options[open] .field {margin-block:10px}
.inline-actions {display:flex;flex-wrap:wrap;align-items:center;gap:6px 10px}
.panel .inline-actions .secondary,.panel .filter-bar .secondary {margin:0}
.panel .check-field {display:inline-flex;align-items:center;gap:6px;margin:6px 0}
.panel .check-field input {width:17px;min-height:17px;accent-color:var(--green)}
.panel .lh-editor [data-tools] select {width:auto;min-height:32px;padding:3px 8px}
.filter-bar {display:grid;grid-template-columns:minmax(0,1fr) minmax(145px,auto) auto;gap:10px;align-items:end}
.record-row {padding:18px 0;border-top:1px solid var(--border)}
.record-row:first-child {margin-top:16px}
.record-row:last-child {padding-bottom:0}
.panel .record-row h2 {margin:6px 0;font-size:20px}
.record-row .quiet {font-size:14px}
.record-row > .inline-actions {margin-top:10px}
.state-label {background:#e5f3e7;color:#315e41;border-radius:6px;padding:2px 8px}
.secondary.danger-link {color:#a03246;border-color:#ddb9c0}
@media (max-width:650px) {
  .section-tabs a {font-size:14px}
  .filter-bar {grid-template-columns:minmax(0,1fr) auto}
  .filter-bar > .field:first-child {grid-column:1/-1}
}
