:root{color-scheme:light;--ink:#282c36;--muted:#646b78;--line:#dbe0e7;--soft:#f5f6f8;--white:#fff;--orange:#e66e28;--orange-soft:#fff0e3;--shadow:0 10px 30px rgba(18,23,40,.06)}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:#f6f6f8;color:var(--ink);font-family:system-ui,-apple-system,"Hiragino Kaku Gothic ProN","Yu Gothic",sans-serif;font-size:15px;line-height:1.55}
button,input,textarea,select{font:inherit}button{cursor:pointer}button:disabled{opacity:.45;cursor:not-allowed}button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #ef9b55;outline-offset:2px}
.shell{max-width:1250px;margin:auto;padding-inline:clamp(14px,3vw,32px)}.site-header{background:linear-gradient(110deg,#242a35,#414150);color:white;padding:14px 0 13px}.site-header p{margin:0;color:#e2e2e8}.eyebrow{font-size:11px;font-weight:700;letter-spacing:.17em;color:#f1ae6b!important;margin-bottom:5px!important}h1{font-size:clamp(24px,2.6vw,32px);margin:0}h2{font-size:clamp(20px,2vw,24px);margin:0 0 10px}.tabs{display:flex;align-items:stretch;gap:5px;overflow-x:auto;margin-top:13px;border-bottom:1px solid var(--line);padding-bottom:4px}.tab{flex:1 0 max-content;padding:12px 11px;background:#fff;border:1px solid var(--line);border-radius:10px;font-weight:700;white-space:nowrap;min-width:95px}.tab.selected{background:var(--orange-soft);color:#a24614;border-color:var(--orange);box-shadow:inset 0 -3px var(--orange)}.tab:disabled{background:#eceef1;color:#9399a2}.panel{margin:10px 0 100px;background:var(--white);border:1px solid var(--line);border-radius:15px;padding:clamp(16px,2.6vw,30px);box-shadow:var(--shadow)}.hidden,[hidden]{display:none!important}.hint{color:var(--muted);font-size:.89rem;margin:3px 0 15px}.notice{background:#faf6f1;border-left:4px solid #d98445;padding:11px 14px;border-radius:5px;margin:14px 0}.field{margin:14px 0}.field>label,.field-label{display:block;font-weight:700;margin-bottom:7px}.required{color:#b23f1f;font-size:.78em}.field small{display:block;color:var(--muted);margin-top:5px}.field input[type=text],.field input[type=password],.field textarea,.field select,.field-label+select,.two-fields input,.panel select{width:100%;max-width:650px;background:#fff;border:1px solid #c6ccd5;border-radius:8px;padding:9px 12px;min-height:43px;color:var(--ink)}.field textarea{resize:vertical}.two-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}.checks{display:flex;gap:8px 13px;flex-wrap:wrap}.toggle{display:inline-flex;align-items:center;gap:6px;border:1px solid #d9dfe6;border-radius:8px;padding:8px 10px;background:#fff;font-weight:500;min-height:40px}.toggle input{accent-color:var(--orange);width:17px;height:17px}.actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:20px}.primary,.secondary,.danger{padding:10px 18px;border-radius:9px;border:1px solid transparent;font-weight:700;min-height:44px}.primary{background:var(--orange);color:#fff}.primary:hover{background:#cc591c}.secondary{background:#fff;color:#3a404b;border-color:#c7cbd3}.secondary:hover{background:#f0f1f5}.danger{background:#a92e32;color:#fff}.status{color:#424c5a;min-height:1.4em;margin:14px 0}.status.error{color:#b12d2a;font-weight:700}.heading-line{display:flex;align-items:center;justify-content:space-between;gap:12px}.skill-selector{display:flex;gap:14px;align-items:center;min-height:84px}.skill-open{display:flex;align-items:center;position:relative;justify-content:center;width:76px;height:76px;padding:4px;border:2px solid #d5dbe4;background:#f2f3f6;border-radius:10px;flex:none}.skill-thumb{width:60px;height:60px;display:grid;place-items:center;font-size:25px;color:#999da6}.skill-thumb img{width:100%;height:100%;object-fit:contain;border-radius:5px}.chevron{position:absolute;right:0;bottom:0;background:white;border-radius:5px;padding:0px 4px;font-weight:700}.skill-details{display:flex;flex-direction:column;align-items:start;gap:8px;min-width:0}.skill-name{overflow-wrap:anywhere;font-weight:700}.skill-details .toggle{padding:3px 8px}.text-button{border:0;background:transparent;color:#155e9a;text-decoration:underline;padding:0}.stat-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px;margin:13px 0}.stat-fieldset{margin:0;min-width:0;padding:10px 11px 12px;border-radius:10px;border:1px solid var(--line)}.stat-fieldset legend{font-weight:700;padding:0 4px}.choices{display:flex;gap:6px;flex-wrap:wrap}.choice{position:relative;display:inline-flex}.choice input{position:absolute;opacity:0;width:100%;height:100%;margin:0;cursor:pointer}.choice span{padding:5px 10px;background:#fff;border:1px solid #c8cbd0;border-radius:7px;white-space:nowrap;font-size:.91rem}.choice input:checked+span{background:var(--orange-soft);border-color:var(--orange);color:#a8430b;font-weight:700}.choice input:focus-visible+span{outline:3px solid #ef9b55;outline-offset:2px}/* Keep an empty grid track when only one memory matches, rather than stretching it full width. */
/* Result cards allow up to three stats with legible type and horizontal padding. */
.results-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,304px),304px));gap:13px;margin:12px 0 20px;align-items:stretch}
.memory-card{display:flex;flex-direction:column;min-width:0;gap:8px;padding:12px;background:#fff;border:1px solid #dce0e6;border-radius:12px;min-height:176px;overflow:hidden;box-shadow:0 4px 12px #20202508}
.card-skill-name{font-weight:700;font-size:14px;line-height:1.4;overflow-wrap:anywhere}
.memory-card.has-owner{min-height:195px}
.card-upper{display:grid;grid-template-columns:92px minmax(0,1fr);gap:10px;min-width:0}
.card-upper.no-skill{grid-template-columns:minmax(0,1fr)}
.main-skill{display:block;width:100%;height:auto;aspect-ratio:1;object-fit:contain;border-radius:7px;background:#eceef1}
.memory-main{min-width:0;display:flex;flex-direction:column;align-items:flex-start;justify-content:space-between;gap:4px;min-height:92px}
.top-row{display:flex;width:100%;align-items:flex-start;gap:4px;min-width:0}
.flag-rows{flex:0 1 auto;display:flex;flex-direction:column;gap:4px;min-width:0}
.flag-row{display:flex;gap:4px;flex-wrap:wrap}
.card-custom-text{max-width:100%;min-width:0;color:#46505b;font-size:11px;line-height:1.35;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
/* Render editing keys as masked text rather than password form fields in Chromium/Safari.
   Browsers without CSS masking fall back to a native password field via app.js. */
.edit-key-input{-webkit-text-security:disc}
/* The HIF frame is always two state-tag lines high (normally 54px), even with no tags.
   Actual tags use the measured two-line height; the fallback covers zero tags.
   Keep the icon frame square on desktop and mobile. Custom text is excluded. */
.hif-icon-block{--hif-fallback:54px;position:relative;flex:0 0 var(--hif-row-height,var(--hif-fallback));width:var(--hif-row-height,var(--hif-fallback));height:var(--hif-row-height,var(--hif-fallback));align-self:flex-start}
.hif-icon-caption{position:absolute;left:0;right:0;bottom:100%;font-size:12px;line-height:12px;font-weight:700;text-align:center;color:#125875;pointer-events:none}
.hif-icon{display:block;width:100%;height:100%;border-radius:6px;object-fit:contain;background:#ebedf1;flex:none}
/* Three numerical badges fit beside the unchanged 92px main skill icon. */
.memory-card .badges{gap:2px}
.memory-card .badges .tag{font-size:12px;padding:4px 5px}
.memory-card .flag-row .tag{font-size:12px;padding:5px 8px}

.badges{display:flex;flex-wrap:wrap;gap:5px;align-items:flex-start}
.tag{display:inline-flex;font-size:11px;font-weight:700;line-height:1.25;padding:5px 7px;border-radius:5px;white-space:nowrap}
.tag-enhanced,.tag-start{background:#ffdfc4;color:#7c3914}.tag-custom{background:#d9efcb;color:#32602c}.tag-hif{background:#d6eff9;color:#125875}.tag-vocal{background:#bb2862;color:white}.tag-dance{background:#1558af;color:white}.tag-visual{background:#ebbe1e;color:#222}.tag-points{background:#b9e7f8;color:#12465d}.tag-age{background:#edf0f3;color:#46505b}.tag-age.age-mid{background:#dfe3e9}.tag-age.age-old{background:#c7ced7;color:#242e3a}
.card-sub{font-size:12px;color:var(--muted);overflow-wrap:anywhere}
.card-footer{display:flex;align-items:center;justify-content:space-between;gap:8px;min-width:0;margin-top:auto}
.card-pid{display:flex;align-items:center;min-width:0;gap:5px}
.card-pid-value{font-size:14px;font-variant-numeric:tabular-nums;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;line-height:28px}
.card-copy-pid{flex:none;min-height:28px;border:1px solid #c7cbd3;background:#fff;border-radius:6px;padding:3px 6px;color:#2b3f55;font-size:11px;white-space:nowrap}
.card-actions{flex:none;margin-left:auto}
.card-actions button{border:1px solid #c7cbd3;background:#fff;padding:3px 8px;min-height:28px;border-radius:6px;font-size:12px;color:#2b3f55;white-space:nowrap}
.card-copy-pid:hover,.card-actions button:hover{background:#f0f1f5}
.results-grid:empty{display:none}.support-link{margin:20px 0 0;text-align:right;font-size:.88rem;line-height:1.5}.support-link a{color:var(--muted);text-decoration:underline;text-underline-offset:3px}.support-link a:hover{color:#a24614}.support-link a:focus-visible{outline:3px solid #ef9b55;outline-offset:3px}
#back-to-top{position:fixed;right:max(13px,env(safe-area-inset-right));bottom:max(14px,env(safe-area-inset-bottom));background:#343944;color:white;border:0;border-radius:22px;padding:11px 14px;font-weight:700;font-size:13px;box-shadow:0 3px 15px #0003;z-index:5}
dialog{border:1px solid var(--line);box-shadow:0 18px 70px #0003;border-radius:15px;padding:19px;width:min(95vw,760px);max-height:min(88vh,900px);color:var(--ink)}dialog::backdrop{background:#1c222d99}.dialog-title{display:flex;justify-content:space-between;align-items:start;gap:12px}.icon-button{font-size:21px;border:0;background:transparent;width:40px;height:40px;border-radius:8px}.dialog-footer{display:flex;justify-content:flex-end;gap:9px;margin-top:15px}.dialog-footer.wrap{flex-wrap:wrap}#issued-key{display:block;width:100%;padding:10px;font-family:ui-monospace,monospace;border:1px solid #bbb;border-radius:7px;font-size:13px;margin:9px 0}.skill-grid{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));gap:8px;max-height:55vh;overflow-y:auto;padding:10px 2px}.skill-choice{display:block;aspect-ratio:1/1;padding:3px;border:2px solid transparent;border-radius:8px;background:#eff0f2}.skill-choice img{width:100%;height:100%;object-fit:cover;border-radius:5px}.skill-choice.is-selected{border-color:var(--orange);background:#ffedde}#detail-content{padding:10px 0;white-space:pre-wrap;overflow-wrap:anywhere}.detail-line{display:flex;gap:15px;border-bottom:1px solid #e7e9ef;padding:5px 0}.detail-line b{width:130px;flex:none}.detail-line span{flex:1;min-width:0}
@media(max-width:1000px){.skill-grid{grid-template-columns:repeat(6,minmax(0,1fr))}}@media(max-width:650px){.skill-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.two-fields,.stat-fields{grid-template-columns:1fr}.panel{margin-top:10px}.tab{font-size:13px;padding:11px 8px}.site-header{padding:12px 0}.memory-card{padding:10px}.card-upper{grid-template-columns:76px minmax(0,1fr)}.memory-main{min-height:76px}.card-upper.no-skill{grid-template-columns:minmax(0,1fr)}.flag-row{min-height:0}.checks .toggle{flex-grow:1}.heading-line{flex-wrap:wrap}#back-to-top{padding:9px 10px;font-size:12px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}}

/* Auto Ads readiness: avoid persistent UI near screen edges; leave navigation in document flow.
   AdSense anchor overlays are governed by AdSense settings, not controllable by page CSS. */
#create-credentials input{display:block;width:100%;max-width:650px;min-height:43px;padding:9px 12px;border:1px solid #c6ccd5;border-radius:8px;background:#fff;color:var(--ink)}
#create-credentials .confirmation-label{margin-top:14px}
.key-actions{margin-top:10px}
.key-actions .secondary{min-height:43px}
#back-to-top{bottom:max(20px,env(safe-area-inset-bottom));right:max(14px,env(safe-area-inset-right))}
@media(max-width:650px){
  .results-grid{grid-template-columns:minmax(0,1fr)}
  .memory-card.has-owner{min-height:191px}
  .tabs{position:static;scroll-margin-top:0}
  .site-header{position:static}
  .panel{margin-bottom:24px}
  #back-to-top{position:static;display:block;margin:20px max(14px,3vw) calc(22px + env(safe-area-inset-bottom)) auto;box-shadow:none}
  dialog{max-height:calc(100dvh - 30px)}
}

/* Keep narrow-screen result cards at their pre-v0.8.1 minimum height. */
@media(max-width:350px){.memory-card{min-height:196px}.memory-card.has-owner{min-height:220px}}

/* Nonofficial fan site attribution and related links: normal document flow, never an overlay. */
.site-footer{border-top:1px solid var(--line);background:#eff1f4;color:var(--muted);padding:22px 0 calc(24px + env(safe-area-inset-bottom))}
.site-footer-inner{display:flex;flex-direction:column;gap:8px}
.site-footer p{margin:0;font-size:12px;line-height:1.65;overflow-wrap:anywhere}
.site-footer-links{display:flex;flex-wrap:wrap;align-items:center;gap:10px 20px;margin-top:3px;font-size:13px}
.site-footer-links a{color:#245c80;text-decoration:underline;text-underline-offset:3px}
.site-footer-links a:hover{color:#a24614}
.site-footer-links a:focus-visible{outline:3px solid #ef9b55;outline-offset:3px}

/* Keep the memory detail dialog close button visible at its top-right while content scrolls.
   Scope to this dialog only; other dialogs keep their existing scrolling behavior. */
#detail-dialog > .dialog-title {
  position: sticky;
  top: 0;
  z-index: 2;
  margin: -19px -19px 0;
  padding: 10px 12px 9px 19px;
  background: var(--white);
  border-bottom: 1px solid var(--line);
  border-radius: 14px 14px 0 0;
}
#detail-dialog #detail-close { flex-shrink: 0; }

/* Only the HIF skill picker has independent, multi-select plan filters. */
.hif-plan-filters{display:flex;flex-wrap:wrap;gap:7px 9px;margin:10px 0 3px}
.hif-plan-toggle{position:relative;display:inline-flex;cursor:pointer}
.hif-plan-toggle input{position:absolute;opacity:0;inset:0;width:100%;height:100%;margin:0;cursor:pointer}
.hif-plan-toggle span{display:inline-flex;align-items:center;justify-content:center;min-height:36px;padding:7px 13px;border:1px solid #c8cbd0;border-radius:8px;background:#f5f6f8;color:#47505f;font-size:13px;font-weight:700;white-space:nowrap}
.hif-plan-toggle input:checked+span{background:var(--orange-soft);border-color:var(--orange);color:#a8430b}
.hif-plan-toggle input:focus-visible+span{outline:3px solid #ef9b55;outline-offset:2px}
.skill-empty{grid-column:1/-1;min-height:68px;display:grid;place-items:center;text-align:center}


/* v0.14.0: clearly labelled, full-width in-feed advertisements in public results only. */
.results-grid>.infeed-ad{grid-column:1/-1;min-width:0;width:100%;height:auto;
  margin:3px 0;padding:11px 13px 13px;border:1px solid #cbd5e1;border-radius:9px;
  background:#f8fafc;overflow:hidden}
.infeed-ad-label{display:block;width:max-content;margin-bottom:8px;padding:2px 8px;
  border-radius:4px;background:#e2e8f0;color:#334155;font-size:12px;font-weight:700;line-height:1.5}
.infeed-ad .adsbygoogle{display:block;width:100%;min-width:0;height:auto}
.infeed-ad[hidden]{display:none!important}
@media(max-width:650px){.results-grid>.infeed-ad{padding:10px 2px;margin:2px 0}}

/* v0.16.0: report action stays unobtrusive, separate from owner operations. */
.detail-toolbar{display:flex;justify-content:space-between;align-items:flex-end;gap:12px;flex-wrap:wrap;margin-top:14px}
.detail-toolbar>.dialog-footer{margin-top:0;flex:1;justify-content:flex-end}
.report-trigger{color:var(--muted);font-size:.85rem;padding:8px 10px;min-height:38px;white-space:nowrap}
#report-dialog{width:min(95vw,510px)}
#report-dialog .field select,#report-dialog .field textarea{width:100%;max-width:100%}
@media(max-width:650px){
 .detail-toolbar{flex-direction:column-reverse;align-items:stretch;gap:8px}
 .detail-toolbar>.dialog-footer{justify-content:flex-end}
 .report-trigger{align-self:flex-start;font-size:.82rem;padding:6px 9px;min-height:36px}
}

/* v0.18.0: Skill name search and opt-in browser key storage controls. */
.skill-search-field{margin:12px 0 6px}
.skill-search-field>label{display:block;font-weight:700;margin-bottom:6px}
.skill-search-controls{display:flex;align-items:center;gap:8px}
.skill-search-controls input{flex:1;min-width:0;min-height:43px;padding:9px 12px;border:1px solid #c6ccd5;border-radius:8px;background:#fff;font:inherit}
.skill-search-controls .secondary{flex:none;min-height:43px}
.key-save-control{display:flex;align-items:center;gap:11px;max-width:max-content;margin:15px 0 6px;cursor:pointer;font-weight:700}
.key-switch{position:relative;display:inline-flex;flex:none;width:48px;height:28px}
.key-switch input{position:absolute;inset:0;width:100%;height:100%;opacity:0;margin:0;cursor:pointer;z-index:1}
.key-switch-track{width:48px;height:28px;border-radius:999px;background:#aeb5be;transition:background .15s ease;position:relative}
.key-switch-track::after{content:'';position:absolute;left:4px;top:4px;width:20px;height:20px;border-radius:50%;background:white;box-shadow:0 1px 4px #0003;transition:transform .15s ease}
.key-switch input:checked+.key-switch-track{background:#23764d}
.key-switch input:checked+.key-switch-track::after{transform:translateX(20px)}
.key-switch input:focus-visible+.key-switch-track{outline:3px solid #ef9b55;outline-offset:2px}
.key-save-help{font-size:13px;color:var(--muted);margin:0 0 10px;max-width:680px;line-height:1.6}
@media(prefers-reduced-motion:reduce){.key-switch-track,.key-switch-track::after{transition:none}}
/* Keep the opt-in switch dimensions despite existing #create-credentials input rules. */
#create-credentials > .key-save-control{display:flex}
#create-credentials .key-switch input{width:100%;max-width:none;height:100%;min-height:0;padding:0;border:0;background:transparent;opacity:0}

/* v0.19.1: keep the skill-picker shell inside the visible viewport.
   Only the cards scroll; title, HIF filters, search and actions remain fixed.
   Apply flex solely while open, preserving the native closed <dialog> state. */
#skill-dialog[open]{display:flex;flex-direction:column;max-height:min(90dvh,900px);overflow:hidden}
#skill-dialog > .dialog-title,
#skill-dialog > .hif-plan-filters,
#skill-dialog > .skill-search-field,
#skill-dialog > .dialog-footer{flex:0 0 auto}
#skill-dialog .hif-plan-filters[hidden]{display:none}
#skill-dialog .skill-grid{flex:1 1 auto;min-height:0;max-height:none;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain}
@media(max-width:650px){
  #skill-dialog[open]{max-height:calc(100dvh - 20px - env(safe-area-inset-top) - env(safe-area-inset-bottom));padding:12px}
  #skill-dialog .skill-search-field{margin:6px 0 2px}
  #skill-dialog .skill-search-controls input{font-size:16px;min-height:40px}
  #skill-dialog .skill-search-controls .secondary{min-height:40px}
  #skill-dialog .dialog-footer{margin-top:8px}
}

/* v0.19.0: browser-only memory history, reusing the public result-card layout. */
.history-heading-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:8px}
/* History: one scrollable content region (help, status and every card).
   The close header remains visible; the dialog shell and page behind it do not scroll. */
#history-dialog{width:min(96vw,780px);max-height:min(91dvh,900px);padding:0;overflow:hidden}
#history-dialog[open]{display:flex;flex-direction:column}
#history-dialog .history-dialog-title{flex:0 0 auto;padding:15px 19px 9px;border-bottom:1px solid var(--line)}
#history-dialog .history-dialog-title h2{margin:0}
.history-scroll{flex:1 1 auto;min-height:0;max-height:none;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;padding:0 19px 19px}
.history-help{padding:12px 0 4px;font-size:14px;line-height:1.6;color:var(--muted)}
.history-help p{margin:0 0 5px}
#history-status{margin:5px 0 6px}
.history-scroll:focus-visible{outline:3px solid #ef9b55;outline-offset:-3px}
.history-grid{margin:10px 0 12px}
.history-entry{min-width:0;display:flex;flex-direction:column}
.history-entry .memory-card{flex:1 1 auto;height:auto}
.history-meta{margin:0 0 6px;display:flex;gap:7px;flex-wrap:wrap;align-items:center;font-size:13px;color:var(--muted)}
.history-type{display:inline-block;padding:2px 7px;border-radius:5px;background:#e8edf3;color:#34485d;font-weight:700}
.history-current-type{background:#fff0e3;color:#994411}
.history-date{display:block;margin:6px 2px 0;text-align:right;font-size:13px;color:var(--muted);font-variant-numeric:tabular-nums}
.history-entry .card-actions{display:flex;gap:5px;flex-wrap:wrap;justify-content:flex-end}
.history-entry .card-actions .history-delete{color:#a92e32;border-color:#d7afb0}
.history-group-title{font-size:16px;margin:10px 0 4px}
.history-current-note{font-size:13px;color:var(--muted);margin:0 0 10px}
@media(max-width:650px){
  .history-heading-actions{width:100%;justify-content:flex-start}
  #history-dialog{max-height:calc(100dvh - 20px - env(safe-area-inset-top) - env(safe-area-inset-bottom))}
  #history-dialog .history-dialog-title{padding:12px 13px 8px}
  .history-scroll{padding:0 13px 15px}
  .history-help{padding:10px 0 3px}
  #history-status{margin:4px 0 6px}
}

/* v0.20.0: infrequent history transfer controls remain collapsed by default. */
.history-transfer{margin:8px 0 4px;border:1px solid #d7dce3;border-radius:8px;background:#f7f8fa}
.history-transfer summary{padding:9px 11px;cursor:pointer;font-size:13px;color:#435268;font-weight:700}
.history-transfer summary:focus-visible{outline:3px solid #ef9b55;outline-offset:2px}
.history-transfer-content{padding:0 11px 11px}
.history-transfer-content p{margin:2px 0 10px;color:var(--muted);font-size:13px;line-height:1.55}
.history-transfer-actions{display:flex;flex-wrap:wrap;gap:8px}
.history-transfer-actions button{min-height:39px;font-size:13px}
#action-dialog,#copy-fallback-dialog{width:min(95vw,500px);max-height:calc(100dvh - 30px);overflow-y:auto}
#action-dialog h2,#copy-fallback-dialog h2{margin:0 0 12px;font-size:20px}
.action-message{white-space:pre-line;line-height:1.65;overflow-wrap:anywhere}
#copy-fallback-value{width:100%;max-width:100%;min-height:42px;padding:9px;font-size:16px;border:1px solid #c6ccd5;border-radius:7px}
@media(max-width:650px){
  #action-dialog,#copy-fallback-dialog{padding:15px;max-height:calc(100dvh - 24px - env(safe-area-inset-top) - env(safe-area-inset-bottom))}
  #action-dialog .dialog-footer,#copy-fallback-dialog .dialog-footer{flex-wrap:wrap}
}

/* v0.20.8: ownership guidance appears only in the registration panel. */
#panel-register .registration-guidance{margin:8px 0 12px;padding:10px 13px;border-left:3px solid #abb8c6;border-radius:5px;background:#f5f7fa;color:var(--ink);font-size:.94rem;line-height:1.6;overflow-wrap:anywhere}
@media(max-width:650px){#panel-register .registration-guidance br{display:none}}
/* The shared form switches to edit mode when the cancel-edit button is shown. */
#panel-register .heading-line:has(#cancel-edit:not(.hidden)) + .registration-guidance{display:none}
