:root { color-scheme: dark; --bg: #070b0d; --panel: #0e1417; --line: #263137; --line-bright: #506067; --text: #edf3f4; --muted: #8d9ba1; --cyan: #37dbef; --note-tool-block: 44px; --note-tool-font: 14px; font-family: Inter, "Segoe UI", "Noto Sans JP", sans-serif; }
* { box-sizing: border-box; }
html { min-height: 100%; background: var(--bg); }
body { min-width: 280px; min-height: 100vh; margin: 0; background: radial-gradient(circle at 85% 0, rgba(55,219,239,.08), transparent 32rem), var(--bg); color: var(--text); }
button, input, textarea { font: inherit; }
button:not(:disabled) { cursor: pointer; transition: filter 120ms ease, transform 90ms ease, box-shadow 120ms ease, border-color 120ms ease; }
button:not(:disabled):hover { filter: brightness(1.16); box-shadow: 0 0 0 1px rgba(55,219,239,.25); }
button:not(:disabled):active { transform: translateY(1px); filter: brightness(.88); box-shadow: inset 0 2px 5px rgba(0,0,0,.55); transition-duration: 0s; }
.vfp-shell-header { width: 100%; border-bottom: 1px solid rgba(88,225,239,.16); background: linear-gradient(180deg, rgba(5,10,14,.98), rgba(8,14,18,.94)); box-shadow: 0 8px 24px rgba(0,0,0,.28); }
.vfp-shell-header-inner { display: flex; width: calc(100% - 48px); max-width: 1580px; min-height: 68px; margin: 0 auto; align-items: center; justify-content: space-between; gap: 16px; }
.vfp-shell-brand { display: inline-flex; min-width: 0; flex: 0 1 auto; align-items: center; gap: 10px; color: var(--text); text-decoration: none; }
.vfp-shell-brand:link, .vfp-shell-brand:visited { color: var(--text); text-decoration: none; }
.vfp-shell-logo { display: block; width: 44px; height: 44px; max-width: 44px; flex: 0 0 auto; border-radius: 9px; object-fit: contain; box-shadow: 0 6px 16px rgba(0,0,0,.35); }
.vfp-shell-tagline { display: flex; flex-direction: column; justify-content: center; font-size: 17px; font-weight: 800; letter-spacing: .02em; line-height: 1.05; white-space: nowrap; }
.vfp-shell-tagline-line { display: block; }
.vfp-shell-tagline-accent { color: var(--cyan); }
.vfp-shell-brand:hover .vfp-shell-logo { filter: brightness(1.08); }
.vfp-shell-brand:focus-visible { outline: 2px solid var(--cyan); outline-offset: 4px; }
.lang-pill { display: inline-flex; min-height: 34px; align-items: center; gap: 8px; padding: 0 12px; border: 1px solid rgba(122,205,255,.32); border-radius: 999px; background: rgba(6,14,22,.72); color: rgba(225,240,248,.58); cursor: pointer; font: 700 12px/1 system-ui, sans-serif; letter-spacing: .08em; }
.lang-pill span + span::before { margin-right: 8px; color: rgba(225,240,248,.26); content: "/"; }
html[data-lang="jp"] .lang-pill span:first-child, html[data-lang="en"] .lang-pill span:last-child { color: #8ddcff; text-shadow: 0 0 10px rgba(79,202,255,.45); }
.sync-state { flex: 0 0 auto; color: var(--muted); font: 800 12px/1 ui-monospace, monospace; letter-spacing: .06em; white-space: nowrap; }
.sync-state[data-state="SYNCED"], .sync-state[data-state="SYNCING"] { color: var(--cyan); text-shadow: 0 0 8px rgba(55,219,239,.22); animation: note-sync-breathe 3.8s ease-in-out infinite; }
@keyframes note-sync-breathe { 0%, 100% { opacity: 1; } 50% { opacity: .65; } }
@media (prefers-reduced-motion: reduce) { .sync-state { animation: none; } }
main { width: 100%; max-width: 1160px; margin: 0 auto; padding: 22px 14px calc(38px + env(safe-area-inset-bottom)); }
.pairing-view { display: grid; min-height: calc(100vh - 120px); place-content: center; justify-items: center; padding: 28px 18px; text-align: center; }
.pairing-view[hidden], .notes-view[hidden], .notice[hidden] { display: none; }
.pairing-pulse { width: 12px; height: 12px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 0 9px rgba(55,219,239,.08), 0 0 24px rgba(55,219,239,.6); }
.pairing-view h1 { margin: 26px 0 0; font-size: clamp(22px, 7vw, 30px); }
.pairing-view p { max-width: 340px; margin: 12px 0 0; color: #aebbc0; font-size: 14px; line-height: 1.8; }
.notes-heading { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px; }
.notes-heading p { margin: 0 0 5px; color: var(--cyan); font: 800 10px/1 ui-monospace, monospace; letter-spacing: .15em; }
.notes-heading h1 { margin: 0; font-size: clamp(26px, 8vw, 34px); line-height: 1; }
.notes-heading-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 12px; margin-left: auto; }
.notes-device-actions { display: inline-flex; min-width: 0; align-items: center; gap: 12px; }
#strategy-notes-sync-status { min-width: 0; margin: 0; padding: 0; border: 0; background: transparent; gap: 4px 12px; }
#strategy-notes-sync-status [role="status"] { min-width: 0; flex: 0 1 auto; }
#strategy-notes-sync-status [data-sync-detail] { flex: 0 1 auto; overflow-wrap: anywhere; }
.notes-heading-actions > strong { color: var(--cyan); font: 800 12px/1 ui-monospace, monospace; letter-spacing: .06em; }
.create-note { display: inline-flex; height: var(--note-tool-block); flex: 0 0 auto; align-items: center; justify-content: center; padding: 0 16px; border: 1px solid var(--cyan); border-radius: 0; background: var(--cyan); color: #071116; cursor: pointer; font-size: 12px; font-weight: 850; white-space: nowrap; }
.create-note:hover { border-color: #73e9f6; background: #73e9f6; }
.create-note-plus { display: block; width: 20px; height: 20px; flex: 0 0 20px; }
.create-note-label { display: block; line-height: 1; }
.create-note:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }
.note-backup-open { min-height: 38px; padding: 0 10px; border: 1px solid var(--line-bright); background: transparent; color: #cbd4d7; cursor: pointer; font-size: 12px; font-weight: 800; }
.note-backup-open:hover, .note-backup-open:focus-visible { border-color: var(--cyan); color: var(--cyan); }
.note-backup-dialog { width: min(580px, calc(100vw - 28px)); max-height: calc(100dvh - 28px); overflow-y: auto; padding: 20px; border: 1px solid var(--line-bright); background: #0d1316; color: var(--text); }
.note-backup-dialog::backdrop { background: rgba(0,4,6,.78); }
.note-backup-dialog h2 { margin: 0 0 16px; font-size: 24px; }
.note-backup-dialog h3 { margin: 0 0 10px; font-size: 17px; }
.note-backup-dialog p { margin: 12px 0; color: #c7d1d5; font-size: 14px; line-height: 1.7; overflow-wrap: anywhere; }
.note-backup-dialog .note-backup-help { color: var(--muted); font-size: 12px; }
.note-backup-dialog button { min-height: 42px; padding: 0 14px; border: 1px solid var(--line-bright); background: transparent; color: var(--text); cursor: pointer; font-size: 13px; font-weight: 800; }
.note-backup-dialog button:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }
.note-backup-dialog button:disabled { cursor: default; opacity: .45; }
.note-backup-dialog #note-backup-export-json, .note-backup-dialog #note-backup-restore { border-color: var(--cyan); background: var(--cyan); color: #071116; }
.note-backup-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.note-backup-download { display: inline-block; margin-top: 12px; color: var(--cyan); font-size: 13px; line-height: 1.7; }
.note-backup-download[hidden] { display: none; }
.note-backup-import { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--line); }
.note-backup-footer { display: flex; justify-content: flex-end; margin-top: 14px; }
#note-backup-preview[hidden] { display: none; }
#note-backup-samples { display: grid; gap: 8px; margin: 12px 0; padding: 0; list-style: none; }
#note-backup-samples li { max-height: 100px; overflow-y: auto; padding: 10px; border: 1px solid var(--line); font-size: 13px; line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere; }
.note-backup-dialog #note-backup-status.is-error { color: #ffb0b6; }
.note-storage { width: fit-content; max-width: 100%; margin: 8px 0 0 auto; border: 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.note-storage-meter { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 4px 8px; }
.note-storage-meter [data-storage-amount] { white-space: nowrap; }
.note-storage-info { position: relative; flex: 0 0 auto; }
.note-storage-info summary { display: flex; width: 24px; height: 24px; align-items: center; justify-content: center; padding: 0; border: 0; background: transparent; color: var(--cyan); cursor: pointer; font: 700 14px/1 Georgia, serif; list-style: none; }
.note-storage-info summary::-webkit-details-marker { display: none; }
.note-storage-info summary:hover, .note-storage-info[open] summary { color: #8beaf7; }
.note-storage-info summary:active { color: #fff; }
.note-storage-info summary:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }
.note-storage[data-state="warning"] .note-storage-meter, .note-storage[data-state="failed"] .note-storage-meter { color: #ffd09a; }
.note-storage-content { position: absolute; z-index: 20; top: calc(100% + 8px); right: 0; width: min(460px, calc(100vw - 64px)); padding: 12px 14px; border: 1px solid var(--line-bright); background: #0d1316; color: #b9c6cc; box-shadow: 0 8px 24px rgba(0,0,0,.35); }
.note-storage-content p { margin: 0; overflow-wrap: anywhere; }
.note-storage [data-storage-warning] { max-width: 560px; margin: 6px 0 0; color: #ffd09a; overflow-wrap: anywhere; }
.note-recovery-actions { display: flex; flex-wrap: wrap; gap: 8px; }
#note-backup-confirmation[hidden] { display: none; }
.note-save-recovery button { min-height: 40px; padding: 8px 12px; border: 1px solid var(--line-bright); background: transparent; color: var(--text); font-size: 12px; font-weight: 750; cursor: pointer; }
.note-save-recovery button:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }
.note-save-recovery { margin-top: 12px; padding: 12px; border: 1px solid #9b6b3b; background: #19150f; color: #ffd09a; }
.note-save-recovery[hidden], .note-save-recovery a[hidden], .note-storage [hidden], .note-editing-status[hidden] { display: none; }
.note-save-recovery p { margin: 0 0 10px; font-size: 13px; line-height: 1.65; overflow-wrap: anywhere; }
.note-save-recovery p[role="status"] { margin: 10px 0 0; }
.note-save-recovery p[role="status"]:empty { display: none; }
.note-save-recovery a { display: inline-block; margin-top: 10px; color: var(--cyan); font-size: 13px; }
.note-editing-status { margin: 10px 0 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.note-tools :disabled, .note-filters :disabled, .create-note:disabled { cursor: default; opacity: .5; }
.note-dialog { max-height: calc(100dvh - 28px); overflow-y: auto; }
.strategy-notes-pairing-open { min-height: 38px; padding: 0 12px; border: 1px solid #64747c; background: transparent; color: #cbd4d7; cursor: pointer; font-size: 12px; font-weight: 850; }
.strategy-notes-pairing-open:hover, .strategy-notes-pairing-open:focus-visible { border-color: var(--cyan); color: var(--cyan); outline: 0; }
.note-toolbar { display: flex; flex-direction: column; align-items: stretch; gap: 12px; min-width: 0; margin: 22px -4px 0; padding: 4px; }
.note-tools { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px; min-width: 0; }
.note-search-actions { display: flex; flex: 1 1 300px; align-items: flex-end; gap: 8px; min-width: 0; }
.note-tool-field { display: grid; flex: 1 1 140px; gap: 5px; min-width: 0; }
.note-sort-field { flex: 0 0 128px; }
.note-tool-caption { color: #97a5ab; font-size: 11px; font-weight: 650; line-height: 1.3; }
html[data-lang="jp"] .note-toolbar .i18n-en, html[data-lang="en"] .note-toolbar .i18n-jp { display: none; }
.note-toolbar :is(button, select, input) { height: var(--note-tool-block); min-height: var(--note-tool-block); font-size: var(--note-tool-font); font-weight: 800; line-height: 1.2; letter-spacing: 0; }
.note-toolbar .create-note { flex: 0 0 auto; gap: 6px; padding-inline: 12px; }
.search-field { display: block; min-width: 0; flex: 1 1 140px; }
.search-field input { width: 100%; height: var(--note-tool-block); padding: 0 12px; border: 1px solid var(--line-bright); border-radius: 0; outline: 0; background: #0a0f12; color: #fff; }
.search-field input:focus { border-color: var(--cyan); box-shadow: 0 0 0 2px rgba(55,219,239,.18); }
.search-field input::placeholder { color: #74838a; }
.note-tools select, .note-filters select { flex: 0 0 auto; height: var(--note-tool-block); padding: 0 28px 0 12px; border: 1px solid var(--line-bright); border-radius: 0; background: #11181c; color: #dbe4e7; cursor: pointer; white-space: nowrap; }
.note-toolbar select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5' fill='none' stroke='%23dbe4e7' stroke-width='1.5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 12px 8px; }
#note-sort { width: 128px; }
.note-tools .note-signals-toggle { display: inline-flex; width: var(--note-tool-block); height: var(--note-tool-block); flex: 0 0 var(--note-tool-block); align-items: center; justify-content: center; padding: 0; }
.note-signals-toggle svg { flex: 0 0 18px; }
.note-filters { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px; min-width: 0; margin: 0; }
.note-filters select { width: 100%; }
.note-filters select[data-active="true"] { border-color: var(--cyan); color: var(--cyan); }
.note-review-filter { display: inline-flex; flex: 0 0 auto; min-height: var(--note-tool-block); align-items: center; justify-content: center; padding: 0 12px; border: 1px solid var(--line-bright); border-radius: 0; background: transparent; color: #dbe4e7; cursor: pointer; white-space: nowrap; }
.note-review-filter[aria-pressed="true"] { border-color: var(--cyan); background: rgba(55,219,239,.12); color: var(--cyan); }
.note-filters :focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }
@media (min-width: 1280px) {
  .note-toolbar { flex-direction: row; align-items: flex-end; gap: 8px; }
  .note-tools { display: contents; }
  .note-search-actions { flex: 1 1 auto; min-width: 220px; }
  .note-sort-field { flex: 0 0 128px; }
  .note-filters { flex: 0 0 auto; flex-wrap: nowrap; }
  .note-filters .note-tool-field { flex: 0 0 148px; width: 148px; }
}
@media (max-width: 599px) {
  .note-search-actions { flex-basis: 100%; }
  .note-filters .note-tool-field { flex-basis: calc((100% - 8px) / 2); }
}
.note-list { display: grid; gap: 10px; margin-top: 15px; }
.note-card { min-width: 0; padding: 16px; border: 1px solid var(--line); background: var(--panel); }
.note-card.is-entry-target { border-color: var(--cyan); box-shadow: 0 0 0 1px var(--cyan), 0 0 22px rgba(55,219,239,.28); outline: none; animation: note-entry-flash 1.6s ease-out; }
@keyframes note-entry-flash { 0%, 30% { background: rgba(55,219,239,.18); } 100% { background: var(--panel); } }
@media (prefers-reduced-motion: reduce) { .note-card.is-entry-target { animation: none; } }
.conflict-label { display: inline-flex; margin-bottom: 10px; padding: 3px 6px; border: 1px solid #9b6b3b; color: #ffc57f; font: 850 10px/1.2 ui-monospace, monospace; letter-spacing: .06em; }
.note-meta { display: flex; min-width: 0; align-items: baseline; justify-content: space-between; gap: 10px; }
.note-meta.is-general { justify-content: flex-end; }
.note-matchup { min-width: 0; margin: 0; overflow: hidden; color: #dfe8eb; font-size: 14px; font-weight: 850; line-height: 1.4; text-overflow: ellipsis; white-space: nowrap; }
.note-matchup b { color: var(--cyan); }
.note-date { flex: 0 0 auto; color: #97a5ab; font: 700 11px/1 ui-monospace, monospace; }
.note-text { margin: 15px 0 0; color: #fff; font-size: 18px; font-weight: 700; line-height: 1.58; white-space: pre-wrap; overflow-wrap: anywhere; }
.note-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; margin-top: 15px; }
.note-scene { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; margin-right: auto; padding: 0 12px; border: 1px solid var(--cyan); color: var(--cyan); font-size: 12px; font-weight: 800; text-decoration: none; white-space: nowrap; }
.note-scene:hover, .note-scene:focus-visible { background: rgba(55,219,239,.12); outline: 2px solid var(--cyan); outline-offset: 2px; }
.note-scene-unavailable { flex-basis: 100%; align-self: center; color: var(--muted); font-size: 11px; line-height: 1.5; overflow-wrap: anywhere; }
.note-actions button, .edit-actions button { min-width: 76px; min-height: 42px; padding: 0 14px; border: 1px solid var(--line-bright); border-radius: 0; background: transparent; color: #d4dde0; font-size: 13px; font-weight: 850; }
.note-scene ~ button { min-width: 68px; padding-inline: 10px; }
.note-actions button:active, .edit-actions button:last-child { border-color: var(--cyan); color: var(--cyan); }
.note-actions .delete-note { border-color: #75444a; color: #ff9ca5; }
.note-actions button:disabled, .edit-actions button:disabled { cursor: wait; opacity: .55; }
.note-editor { margin-top: 14px; }
.note-editor textarea { display: block; width: 100%; min-height: 118px; resize: vertical; padding: 12px; border: 1px solid var(--cyan); border-radius: 0; outline: 0; background: #080d0f; color: #fff; font-size: 17px; font-weight: 680; line-height: 1.55; }
.edit-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 9px; }
.note-dialog { width: min(560px, calc(100vw - 28px)); padding: 0; border: 1px solid var(--line-bright); border-radius: 0; background: #0d1316; color: var(--text); box-shadow: 0 22px 70px rgba(0,0,0,.7); }
.note-dialog::backdrop { background: rgba(0,4,6,.78); }
.note-dialog form { padding: 20px; }
.note-dialog h2 { margin: 0 0 18px; font-size: 24px; }
.note-dialog textarea { display: block; width: 100%; min-height: 180px; resize: vertical; padding: 12px; border: 1px solid var(--cyan); border-radius: 0; outline: 0; background: #080d0f; color: #fff; font-size: 17px; line-height: 1.55; }
.empty { margin: 34px 12px; color: var(--muted); font-size: 14px; line-height: 1.8; text-align: center; }
.note-load-more { display: block; min-height: 44px; margin: 20px auto 0; padding: 9px 24px; border: 1px solid var(--line-bright); background: transparent; color: var(--text); font-size: 14px; font-weight: 700; }
.note-load-more[hidden] { display: none; }
.note-load-more:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }
.note-load-more:disabled { cursor: default; opacity: .45; }
.empty-notes { min-width: 0; margin: 32px 12px; color: var(--muted); font-size: 14px; font-weight: 400; line-height: 1.8; text-align: center; text-wrap: balance; overflow-wrap: anywhere; }
.notice { position: fixed; z-index: 40; right: 14px; bottom: calc(14px + env(safe-area-inset-bottom)); left: 14px; max-width: 540px; margin: auto; padding: 13px 15px; border: 1px solid var(--cyan); background: #0d171a; color: #eaf8fa; box-shadow: 0 14px 38px rgba(0,0,0,.6); font-size: 14px; font-weight: 720; line-height: 1.55; }
.eyebrow { margin: 0; color: var(--cyan); font: 800 10px/1 ui-monospace, monospace; letter-spacing: .15em; }
.annotation-close { width: 38px; height: 38px; flex: 0 0 38px; border: 1px solid var(--line-bright); background: transparent; color: #dce5e8; cursor: pointer; font-size: 24px; line-height: 1; }
.annotation-close:hover, .annotation-close:focus-visible { border-color: var(--cyan); color: var(--cyan); outline: 0; }
.button { min-height: 44px; padding: 0 18px; border: 1px solid var(--line-bright); background: transparent; color: #dce5e8; cursor: pointer; font-size: 13px; font-weight: 850; letter-spacing: .04em; }
.button:hover:not(:disabled), .button:focus-visible { border-color: var(--cyan); color: var(--cyan); outline: 0; }
.button:disabled { cursor: wait; opacity: .45; }
.strategy-notes-pairing-dialog { width: min(520px, calc(100vw - 28px)); padding: 0; border: 1px solid var(--line-bright); border-radius: 0; background: #0d1316; color: var(--text); box-shadow: 0 22px 70px rgba(0,0,0,.7); }
.strategy-notes-pairing-dialog::backdrop { background: rgba(0,4,6,.78); }
.strategy-notes-pairing-dialog > section { padding: 20px; }
.strategy-notes-pairing-dialog header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.strategy-notes-pairing-dialog h2 { margin: 3px 0 0; font-size: 25px; }
.strategy-notes-pairing-status { min-height: 24px; margin: 18px 0 0; color: #d8e1e4; font-size: 14px; line-height: 1.6; }
.strategy-notes-pairing-qr-panel { display: grid; place-items: center; gap: 10px; margin-top: 15px; text-align: center; }
.strategy-notes-pairing-qr-panel[hidden], .strategy-notes-pairing-request[hidden], .strategy-notes-device-management[hidden], .strategy-notes-mobile-pairing[hidden], .strategy-notes-mobile-switch[hidden] { display: none; }
.strategy-notes-pairing-qr { width: min(280px, 75vw); padding: 10px; background: #fff; }
.strategy-notes-pairing-qr svg { display: block; width: 100%; height: auto; }
.strategy-notes-pairing-qr-panel p { margin: 0; color: #c7d1d5; font-size: 14px; }
.strategy-notes-pairing-qr-panel strong { color: var(--cyan); font-family: ui-monospace, monospace; font-size: 13px; }
.strategy-notes-pairing-label { letter-spacing: .12em; }
.strategy-notes-pairing-or { color: #7f9097; font-size: 12px; font-weight: 800; }
.strategy-notes-pairing-code { color: #fff; font-family: ui-monospace, monospace; font-size: clamp(24px, 7vw, 34px); font-weight: 900; letter-spacing: .12em; }
.strategy-notes-pairing-request { margin-top: 16px; padding: 16px; border: 1px solid var(--cyan); background: rgba(55,219,239,.06); }
.strategy-notes-pairing-request p { margin: 0; color: #fff; font-size: 16px; font-weight: 800; line-height: 1.5; }
.strategy-notes-pairing-request > div { display: flex; justify-content: flex-end; gap: 8px; margin-top: 14px; }
.strategy-notes-mobile-pairing { display: grid; gap: 16px; margin-top: 16px; }
.strategy-notes-mobile-pairing > p { margin: 0; color: #d8e1e4; font-size: 14px; line-height: 1.65; }
.strategy-notes-mobile-code-entry { display: grid; gap: 10px; }
.strategy-notes-mobile-code-entry[hidden] { display: none; }
.strategy-notes-mobile-code-entry label { color: #d8e1e4; font-size: 14px; line-height: 1.55; }
.strategy-notes-mobile-code-entry input { width: 100%; min-height: 50px; padding: 0 14px; border: 1px solid var(--line-bright); background: #070b0d; color: #fff; font-family: ui-monospace, monospace; font-size: 22px; font-weight: 900; letter-spacing: .12em; text-align: center; text-transform: uppercase; }
.strategy-notes-mobile-code-entry .button, .strategy-notes-mobile-switch { width: max-content; min-height: 44px; }
.strategy-notes-mobile-context-note { color: #89989e !important; font-size: 12px !important; }
.strategy-notes-device-management { margin-top: 15px; }
.strategy-notes-device-management > h3 { margin: 20px 0 0; color: #fff; font-size: 15px; }
.strategy-notes-device-management > p { max-width: 42ch; margin: 12px 0 0; color: #8f9da3; font-size: 12px; line-height: 1.65; }
.strategy-notes-device-management > .strategy-notes-device-id-note { margin-top: 9px; color: #75858c; font-size: 11px; }
.strategy-notes-device-list { display: grid; gap: 8px; margin-top: 10px; }
.strategy-notes-device-row { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); background: #0a1013; color: #d9e2e5; font-family: ui-monospace, monospace; font-size: 12px; }
.strategy-notes-device-row > span { min-width: 0; overflow-wrap: anywhere; line-height: 1.45; }
.strategy-notes-device-row strong { color: var(--cyan); font-size: 11px; white-space: nowrap; }
.strategy-notes-device-row button { padding: 6px 9px; border: 1px solid #75444a; background: transparent; color: #ff9ca5; cursor: pointer; font-size: 12px; font-weight: 800; }
.strategy-notes-conflict-notice { position: fixed; z-index: 80; right: 18px; bottom: 18px; max-width: min(420px, calc(100vw - 36px)); padding: 13px 16px; border: 1px solid #9b6b3b; background: #18130d; color: #ffd09a; box-shadow: 0 12px 36px rgba(0,0,0,.55); font-size: 14px; font-weight: 750; line-height: 1.55; }
.strategy-notes-conflict-notice[hidden] { display: none; }
.visually-hidden { position: absolute !important; width: 1px !important; height: 1px !important; overflow: hidden !important; clip: rect(0 0 0 0) !important; white-space: nowrap !important; }
.note-conflict-dialog { width: min(900px, calc(100vw - 28px)); max-height: calc(100dvh - 28px); overflow-y: auto; padding: 22px; border: 1px solid var(--line-bright); background: #0d1316; color: var(--text); }
.note-conflict-dialog::backdrop { background: rgba(0,4,6,.78); }
.note-conflict-dialog h2 { margin: 0; font-size: 22px; }
.note-conflict-help, .note-conflict-status { margin: 12px 0; color: #aab9bf; font-size: 13px; line-height: 1.7; }
.note-conflict-status { color: #ffd09a; }
.note-conflict-status:empty { display: none; }
.note-conflict-versions { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 12px; margin-top: 18px; }
.note-conflict-versions[data-single="true"] { grid-template-columns: minmax(0,1fr); }
.note-conflict-version { min-width: 0; padding: 14px; border: 1px solid var(--line); background: #080f12; }
.note-conflict-version[hidden] { display: none; }
.note-conflict-version h3 { margin: 0; font-size: 15px; }
.note-conflict-date { margin: 8px 0 12px; color: #94a5ad; font-size: 11px; line-height: 1.6; }
.note-conflict-text { min-height: 80px; margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; font: 14px/1.8 system-ui, sans-serif; }
.note-conflict-changed { background: rgba(255,208,154,.16); color: #ffe0b9; }
.note-conflict-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.note-conflict-actions button { min-height: 42px; padding: 9px 12px; border: 1px solid var(--line-bright); background: transparent; color: var(--text); cursor: pointer; font-size: 13px; font-weight: 750; }
.note-conflict-actions button[data-choice="both"] { border-color: var(--cyan); background: var(--cyan); color: #071116; }
.note-conflict-actions button:disabled { cursor: default; opacity: .45; }
.note-conflict-actions button:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }
.note-conflict-actions button[hidden] { display: none; }
@media (max-width: 759px) {
  .note-conflict-dialog { padding: 16px; }
  .note-conflict-versions { grid-template-columns: minmax(0,1fr); }
}
@media (min-width: 760px) {
  main { padding: 30px 30px 64px; }
  .notes-heading h1 { font-size: 30px; }
  .note-toolbar { margin-top: 17px; }
  .note-list { display: flex; flex-direction: column; gap: 0; margin-top: 12px; border-top: 1px solid var(--line); }
  .note-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; column-gap: 18px; padding: 11px 16px 12px; border-top: 0; }
  .conflict-label { grid-column: 1 / -1; margin-bottom: 7px; }
  .note-meta { grid-column: 1 / -1; justify-content: flex-start; gap: 18px; }
  .note-meta.is-general { justify-content: flex-start; }
  .note-matchup { font-size: 13px; line-height: 1.35; }
  .note-date { font-size: 11px; }
  .note-text { min-width: 0; margin: 5px 0 0; font-size: 15px; font-weight: 680; line-height: 1.48; }
  .note-actions { grid-column: 2; grid-row: 2; align-self: start; margin-top: 4px; }
  .note-actions button { min-width: 58px; min-height: 30px; padding: 0 10px; font-size: 11px; }
  .note-scene { min-height: 30px; padding: 0 10px; font-size: 11px; }
  .note-editor { grid-column: 1 / -1; margin-top: 8px; }
  .note-editor textarea { min-height: 86px; font-size: 15px; }
  .notice { right: 24px; bottom: 24px; left: auto; }
  .strategy-notes-device-management:not([hidden]) { display: grid; justify-items: stretch; }
  .strategy-notes-device-management > .button { min-height: 40px; justify-self: start; padding-inline: 16px; }
}
@media (max-width: 759px) {
  .vfp-shell-header-inner { width: calc(100% - 24px); min-height: 60px; gap: 10px; }
  .vfp-shell-brand { gap: 8px; }
  .vfp-shell-logo { width: 40px; height: 40px; max-width: 40px; }
  .vfp-shell-tagline { font-size: 14px; }
  .notes-heading { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: end; gap: 12px 8px; }
  .notes-heading-actions { display: contents; }
  .notes-heading-actions > strong { grid-column: 2; grid-row: 1; text-align: right; }
  .notes-device-actions { grid-column: 1 / -1; display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: start; gap: 10px; }
  .sync-state { line-height: 1.6; }
  #strategy-notes-sync-status { display: grid; gap: 2px; }
  #strategy-notes-sync-status [data-sync-last] { white-space: normal; overflow-wrap: anywhere; }
  .notes-heading-actions > :is(button, a) { min-height: 44px; width: 100%; margin: 0; }
  .note-storage { width: 100%; margin-top: 10px; }
  .note-storage-meter { justify-content: flex-start; }
  .note-storage-info { margin-left: auto; }
  .note-toolbar { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 8px; margin-top: 16px; }
  .note-tools, .note-filters { display: contents; }
  .note-search-actions { grid-column: 1 / -1; }
  .note-tool-field { width: 100%; }
  #note-sort { width: 100%; }
  .note-toolbar :is(input, select) { font-size: 16px; }
  .note-toolbar select { padding-inline: 8px 24px; background-position: right 8px center; font-weight: 650; }
  .note-review-filter { width: 100%; align-self: end; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; } button:not(:disabled) { transition: none; } button:not(:disabled):active { transform: none; } }
