:root{font-family:-apple-system,BlinkMacSystemFont,"Hiragino Kaku Gothic ProN",sans-serif;color:#173247;background:#f4f8fa}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button{cursor:pointer}button:disabled{opacity:.35;cursor:default}header{background:#073b57;color:white;display:flex;align-items:center;justify-content:space-between;padding:14px 18px;position:sticky;top:0;z-index:5}.brand{font-weight:800;letter-spacing:1.4px;display:flex;align-items:center;gap:10px}.logo{display:grid;place-items:center;background:#0d7791;width:35px;height:35px;border-radius:12px;font-size:28px}main{max-width:700px;margin:auto;padding:20px 16px 110px}h1{font-size:25px;margin:0 0 14px}h2{font-size:19px;margin:0 0 14px}h3{margin:0 0 8px;font-size:17px}p{line-height:1.55}.headline{display:flex;justify-content:space-between;align-items:center;margin-bottom:17px}.eyebrow{font-size:11px;letter-spacing:2px;color:#65808f;margin:0 0 4px}.stat{background:#e0eff4;border-radius:15px;padding:10px 18px;display:flex;gap:6px;align-items:baseline}.stat strong{font-size:28px}.stat small{font-size:10px;color:#526e7e}.toolbar{display:grid;gap:11px;margin-bottom:18px}.toolbar-row{display:flex;justify-content:space-between;gap:12px}.toggle{display:flex;background:#e4edf1;padding:3px;border-radius:11px}.toggle button{border:0;background:transparent;border-radius:9px;padding:9px 16px;color:#47677a}.toggle button.selected{background:white;color:#073b57;font-weight:700;box-shadow:0 1px 5px #0001}input,select,textarea{width:100%;background:white;border:1px solid #cadbe2;border-radius:11px;padding:12px;color:#173247;min-height:44px}textarea{min-height:110px;resize:vertical}input:focus,select:focus,textarea:focus{outline:2px solid #1c8ba9;outline-offset:1px}button.primary,.primary{background:#086b88;color:white;border:0;border-radius:11px;padding:12px 18px;font-weight:700}button.secondary,.secondary{background:#e9f1f4;color:#15465e;border:1px solid #c5d8e0;border-radius:11px;padding:11px 16px;font-weight:650}.danger{color:#b2343d;background:#fff0f0;border:1px solid #f0b8bc;border-radius:10px;padding:10px 14px}.small{padding:9px 12px!important;font-size:13px}.wide{width:100%;margin:12px 0}.textbtn{background:none;border:0;color:#096c8a;padding:10px 0}.cards{display:grid;gap:14px}.dive-card,.list-card,.detail-card{background:white;border:1px solid #dae7ec;border-radius:17px;overflow:hidden;box-shadow:0 3px 15px #103d5410}.dive-card,.list-card{cursor:pointer}.cover{height:165px;background:linear-gradient(145deg,#086a88,#073b57);display:grid;place-items:center;color:#c4edf7;font-size:48px}.cover img{width:100%;height:100%;object-fit:cover}.card-body{padding:16px}.meta{font-size:12px;color:#6b8290}.point{font-size:19px;font-weight:750;margin:6px 0}.metrics{display:flex;gap:18px;margin-top:14px}.metrics div{flex:1}.metrics small{display:block;color:#698391;font-size:11px;margin-bottom:4px}.metrics strong{font-size:17px}.list-card{padding:14px;display:flex;justify-content:space-between;align-items:center;gap:8px}.list-card .point{font-size:16px}.right-metric{text-align:right;white-space:nowrap}.muted{color:#728896}.smalltext{font-size:12px}.empty{text-align:center;padding:60px 12px;color:#78919e}.topline{display:flex;justify-content:space-between;align-items:center;margin-bottom:16px}.steps{display:grid;grid-template-columns:repeat(5,1fr);gap:5px;margin-bottom:18px}.steps button{border:0;border-radius:10px;padding:11px 3px;background:#e4eef2;color:#557383;font-size:12px}.steps button.active{background:#086b88;color:white;font-weight:750}.field-panel{background:white;border:1px solid #dbe7eb;border-radius:16px;padding:18px;display:grid;gap:14px}.field{display:grid;gap:6px;min-width:0}.field label{font-size:13px;font-weight:700;color:#466272}.field-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.form-actions{display:flex;gap:10px;margin-top:18px}.form-actions button{flex:1}.hint{font-size:12px;color:#728896}.photo-preview{display:flex;gap:8px;flex-wrap:wrap}.photo-preview img{width:80px;height:80px;object-fit:cover;border-radius:10px}.photo-tile{position:relative}.photo-tile button{position:absolute;right:0;top:0;border:0;background:#173247;color:white;border-radius:50%;width:23px;height:23px}.detail-cover{height:220px;border-radius:16px;overflow:hidden;background:linear-gradient(145deg,#086a88,#073b57);display:grid;place-items:center;color:white;font-size:52px}.detail-cover img{width:100%;height:100%;object-fit:cover}.detail-title{margin:17px 0}.detail-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:9px;margin:14px 0}.metric-box{background:#e4f0f4;padding:12px 5px;text-align:center;border-radius:12px}.metric-box small{display:block;font-size:11px;color:#658190}.metric-box strong{font-size:17px}.detail-card{padding:17px;margin:15px 0}.detail-row{display:flex;justify-content:space-between;gap:14px;padding:9px 0;border-bottom:1px solid #eef3f5;font-size:14px}.detail-row:last-child{border:0}.detail-row span:first-child{color:#718894}.detail-row span:last-child{text-align:right;overflow-wrap:anywhere}.gallery{display:grid;grid-template-columns:repeat(3,1fr);gap:7px}.gallery img{width:100%;aspect-ratio:1;object-fit:cover;border-radius:10px}.importButton{display:block;text-align:center;margin:10px 0;cursor:pointer}nav{position:fixed;bottom:0;left:0;right:0;display:flex;justify-content:space-around;background:white;border-top:1px solid #d9e6ea;padding:8px 0 calc(8px + env(safe-area-inset-bottom));z-index:5}nav button{border:0;background:none;color:#79909b;display:grid;gap:1px;place-items:center;font-size:23px;min-width:85px}nav button span{font-size:11px}nav button.active{color:#086b88}#toast{position:fixed;bottom:95px;left:50%;transform:translateX(-50%);background:#173247;color:white;border-radius:12px;padding:12px 18px;opacity:0;pointer-events:none;transition:opacity .2s;z-index:9;max-width:90vw;text-align:center}#toast.show{opacity:1}@media(max-width:380px){.field-grid{grid-template-columns:1fr}.metrics{gap:9px}.steps button{font-size:11px}}

.tour-title{font-size:21px;font-weight:800;margin:7px 0 5px;line-height:1.35;overflow-wrap:anywhere}.list-card .tour-title{font-size:19px}.list-card .meta{line-height:1.6}

/* v6: 写真の全体表示と非破壊の表示範囲調整 */
.image-cover,.crop-preview-image{position:relative;overflow:hidden;isolation:isolate;background:#073b57}
.image-cover .cover-backdrop,.crop-preview-image .cover-backdrop{position:absolute;inset:-15%;width:130%;height:130%;object-fit:cover;filter:blur(16px) brightness(.72);z-index:-1}
.image-cover .cover-foreground,.crop-preview-image .cover-foreground{position:relative;width:100%;height:100%;object-fit:contain;z-index:1}
.crop-dialog[hidden]{display:none!important}
.crop-dialog{position:fixed;inset:0;background:#001923c9;z-index:30;display:flex;align-items:center;justify-content:center;padding:16px;overflow-y:auto}
.crop-panel{width:min(100%,480px);background:#fff;border-radius:18px;padding:18px;max-height:92dvh;overflow-y:auto}
.crop-panel h2{margin:0 0 6px}.crop-preview-image{height:220px;border-radius:12px;margin:14px 0}
.crop-control{margin:12px 0}.crop-control label{display:flex;justify-content:space-between;font-size:13px;font-weight:700;color:#47677a;margin-bottom:5px}
.crop-control input[type=range]{width:100%;padding:0;min-height:24px;accent-color:#086b88;border:0}
.crop-buttons{display:flex;gap:10px}.crop-buttons button{flex:1}

/* v7: Apply the same saved cover framing to list cards and detail views. */
.cover.image-cover,.detail-cover.image-cover,.crop-preview-image.image-cover{display:block;position:relative;overflow:hidden;background:#073b57}
.cover.image-cover .cover-backdrop,.detail-cover.image-cover .cover-backdrop,.crop-preview-image.image-cover .cover-backdrop{z-index:0;pointer-events:none}
.cover.image-cover .cover-foreground,.detail-cover.image-cover .cover-foreground,.crop-preview-image.image-cover .cover-foreground{z-index:1;display:block;pointer-events:none}

/* ─── v8 Ocean Minimal × Dive Journal ───────────────────── */
:root{color-scheme:light;--bg:#f5f8fa;--surface:#fff;--surface-soft:#eef5f7;--surface-strong:#dceef2;--ink:#10384c;--ink-strong:#083b53;--muted:#64808c;--line:#dae6eb;--accent:#087e9b;--accent-hover:#076d87;--header:#083b53;--header-text:#fff;--shadow:0 7px 26px rgba(9,57,79,.065);--danger-bg:#fff1f1;--danger-ink:#a83a45;--danger-border:#edc2c6}
html{background:var(--bg);-webkit-text-size-adjust:100%}
body{background:var(--bg);color:var(--ink);min-height:100dvh}
body,button,input,select,textarea{font-family:-apple-system,BlinkMacSystemFont,"Hiragino Kaku Gothic ProN","Hiragino Sans",sans-serif}
button{-webkit-tap-highlight-color:transparent}
[hidden]{display:none!important}
header{background:var(--header);color:var(--header-text);padding:15px max(18px,env(safe-area-inset-left));min-height:70px;box-shadow:0 2px 12px #002c4012}
.brand{font-size:16px;letter-spacing:2.1px;gap:12px}
.logo{width:38px;height:38px;background:#087e9b;border-radius:13px;font-size:28px;font-weight:500;line-height:1}
header .primary{background:#117d9a;border:1px solid #ffffff15;border-radius:13px;font-size:12px;padding:11px 13px}
main{max-width:720px;padding:27px 18px calc(112px + env(safe-area-inset-bottom))}
h1{font-size:29px;letter-spacing:-.7px;color:var(--ink-strong);line-height:1.28}
h2{font-size:19px;letter-spacing:-.3px;color:var(--ink-strong)}
h3{color:var(--ink-strong)}
.eyebrow{font-size:10px;letter-spacing:2.7px;font-weight:700;color:var(--muted);margin:0 0 9px}
.page-intro{margin:0 0 24px}.page-intro h1{font-size:34px;margin:0 0 7px}.intro-dot{color:var(--accent)}.intro-description{font-size:13px;color:var(--muted);margin:0}
.headline{margin-bottom:23px}.headline h1{font-size:30px;margin:0}
.stat{background:var(--surface-strong);border-radius:18px;padding:12px 19px;gap:7px;color:var(--ink-strong)}.stat strong{font-size:31px;font-weight:750}.stat small{color:var(--muted);font-weight:650;letter-spacing:1px}
.toolbar{gap:12px;margin-bottom:21px}.toolbar-row{align-items:stretch}
.toggle{background:var(--surface-soft);border:1px solid var(--line);border-radius:13px;gap:2px}.toggle button{color:var(--muted);border-radius:10px;font-size:13px;padding:11px 17px}.toggle button.selected{background:var(--surface);color:var(--ink-strong);box-shadow:0 2px 7px #001a2711}
.toolbar-row select{max-width:58%;font-size:13px}
input,select,textarea{background:var(--surface);color:var(--ink);border:1px solid var(--line);border-radius:13px;min-height:49px;padding:12px 14px;font-size:16px}
input::placeholder,textarea::placeholder{color:var(--muted);opacity:.75}
input:focus,select:focus,textarea:focus{outline:2px solid var(--accent);outline-offset:1px}
button.primary,.primary{background:var(--accent);border-radius:13px;color:#fff;padding:13px 17px;font-weight:750}
button.primary:active{background:var(--accent-hover)}
button.secondary,.secondary{background:var(--surface-soft);color:var(--ink-strong);border:1px solid var(--line);border-radius:13px;padding:12px 15px}
.danger{background:var(--danger-bg);color:var(--danger-ink);border-color:var(--danger-border)}
.textbtn{color:var(--accent);font-weight:650;font-size:13px}
.cards{gap:19px}
.dive-card,.list-card,.detail-card{background:var(--surface);border:1px solid var(--line);border-radius:20px;box-shadow:var(--shadow)}
.dive-card{overflow:hidden;transition:transform .16s ease,box-shadow .16s ease}
.dive-card:active{transform:scale(.993)}
.cover{height:auto;aspect-ratio:16/9;background:linear-gradient(150deg,#0c82a5,#073b57);color:#c7eff6;font-size:58px}
.card-body{padding:19px 19px 20px}
.meta{font-size:12px;color:var(--muted);line-height:1.65}
.tour-title{font-size:22px;letter-spacing:-.4px;color:var(--ink-strong);line-height:1.4;margin:7px 0 4px}
.metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;margin-top:18px;padding-top:16px;border-top:1px solid var(--line)}
.metrics div{min-width:0}.metrics small{font-size:10px;color:var(--muted);letter-spacing:.3px;margin-bottom:6px}.metrics strong{font-size:17px;font-weight:750;color:var(--ink-strong);white-space:nowrap}
.list-card{padding:18px 16px}.list-card .tour-title{font-size:18px}.list-card .right-metric strong{color:var(--ink-strong)}
.muted,.hint,.empty{color:var(--muted)}
.empty{background:var(--surface);border:1px dashed var(--line);border-radius:18px;padding:45px 16px;font-size:14px;line-height:2}
.topline{margin-bottom:20px}.topline .textbtn{font-size:14px}
.form-eyebrow{margin:8px 0 13px}
.steps{gap:6px;margin-bottom:20px}.steps button{position:relative;background:var(--surface-soft);border-radius:10px;color:var(--muted);padding:13px 2px;font-size:11px;line-height:1.3}
.steps button.active{background:var(--accent);color:#fff}
.field-panel{background:var(--surface);border:1px solid var(--line);border-radius:20px;padding:22px 18px;gap:17px;box-shadow:var(--shadow)}
.field-panel h2{font-size:22px;margin:0 0 4px}.field label{color:var(--ink);font-size:13px;font-weight:700}.field-grid{gap:12px}
.form-actions{margin-top:18px}.form-actions button{min-height:48px}
.photo-preview img{border-radius:13px}.photo-tile button{background:var(--ink-strong)}
.detail-cover{height:auto;aspect-ratio:16/9;border-radius:20px;font-size:58px}
.detail-title{margin:23px 0 17px}.detail-title h1{font-size:29px;margin:6px 0}
.detail-grid{gap:8px;margin:17px 0 21px}.metric-box{background:var(--surface-strong);padding:15px 4px;border-radius:15px}.metric-box small{font-size:10px;color:var(--muted);margin-bottom:6px}.metric-box strong{font-size:17px;color:var(--ink-strong)}
.detail-card{padding:20px;margin:17px 0}.detail-card h3{font-size:17px;margin:0 0 14px}.detail-row{border-color:var(--line);font-size:13px;padding:12px 0}.detail-row span:first-child{color:var(--muted)}
.gallery{gap:9px}.gallery img{border-radius:13px}
nav{background:var(--surface);border-color:var(--line);padding:9px max(7px,env(safe-area-inset-left)) calc(8px + env(safe-area-inset-bottom));box-shadow:0 -6px 25px #092c3a08;gap:0}
nav button{min-width:0;flex:1;gap:5px;font-size:12px;color:var(--muted);padding:2px 0 0;line-height:1.2}
nav button svg{width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round}
nav button span{font-size:10px;font-weight:600}
nav button.active{color:var(--accent)}nav button.active span{font-weight:800}
nav .nav-create svg{width:29px;height:29px}
#toast{background:var(--ink-strong);color:#fff;border-radius:13px}
.crop-dialog{background:#001923cf}.crop-panel{background:var(--surface);color:var(--ink);border:1px solid var(--line);border-radius:21px}.crop-control label{color:var(--ink)}.crop-control input[type=range]{accent-color:var(--accent)}
/* Dashboard */
.home-stats,.stats-summary{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:0 0 31px}
.dashboard-stat{background:var(--surface);border:1px solid var(--line);border-radius:18px;padding:19px 17px;min-height:108px;box-shadow:var(--shadow)}
.dashboard-stat-label{font-size:10px;letter-spacing:1.3px;color:var(--muted);font-weight:700;margin-bottom:14px}
.dashboard-stat-value{font-size:30px;font-weight:800;letter-spacing:-.7px;color:var(--ink-strong);line-height:1.2;overflow-wrap:anywhere}
.dashboard-stat-value span{font-size:14px;font-weight:650;letter-spacing:0;margin-left:3px}
.section-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:0 0 15px}.section-heading h2{margin:0}.section-heading .eyebrow{margin:0 0 6px}
.home-cta{margin:24px 0 0}.recent-card .cover{aspect-ratio:16/9}
/* Statistics */
.stats-summary{margin-bottom:18px}.stats-chart-card h2{font-size:18px}.stats-chart-card .section-heading{margin-bottom:8px}
.monthly-chart{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));align-items:end;gap:5px;height:195px;padding:12px 0 4px}
.chart-column{display:flex;flex-direction:column;align-items:center;justify-content:flex-end;min-width:0;height:100%;gap:6px;font-size:10px;color:var(--muted)}
.chart-number{height:15px;font-size:10px;font-weight:700;color:var(--ink)}
.chart-bar-track{flex:1;display:flex;align-items:flex-end;width:100%;background:var(--surface-soft);border-radius:5px;overflow:hidden}
.chart-bar{width:100%;background:linear-gradient(0deg,var(--accent),#62c5d8);border-radius:5px 5px 0 0;min-height:0;transition:height .2s ease}
.ranking-row{display:flex;align-items:center;gap:13px;padding:13px 0;border-bottom:1px solid var(--line);font-size:13px}.ranking-row:last-child{border:0}.rank-number{font-size:12px;font-weight:800;color:var(--accent)}.ranking-row strong{margin-left:auto;white-space:nowrap;color:var(--ink-strong)}
/* Settings */
.settings-title{display:flex;align-items:center;gap:14px}.settings-title h2{margin:0 0 4px}.settings-title p{margin:0}.settings-icon{background:var(--surface-strong);color:var(--accent);width:45px;height:45px;border-radius:14px;display:grid;place-items:center;font-size:26px}
.appearance-preview{display:flex;gap:9px;align-items:center;justify-content:space-between;background:var(--surface-soft);padding:13px;border-radius:12px;margin-top:18px;font-size:12px;color:var(--muted)}.appearance-preview strong{color:var(--accent)}
.settings-footer{text-align:center;color:var(--muted);font-size:11px;letter-spacing:2px;margin:25px 0}
/* v7 cover-crop remains unchanged, including saved object-fit, position and zoom. */
.cover.image-cover,.detail-cover.image-cover,.crop-preview-image.image-cover{background:var(--header)}
@media(max-width:380px){.field-grid{grid-template-columns:1fr}.dashboard-stat{padding:16px 13px}.dashboard-stat-value{font-size:25px}.metrics{gap:3px}.metrics strong{font-size:14px}.steps button{font-size:10px}.card-body{padding:16px}}
/* Appearance is resolved from system preference or the user's manual selection. */
html[data-theme="dark"]{color-scheme:dark;--bg:#071923;--surface:#102e41;--surface-soft:#19394b;--surface-strong:#1b4053;--ink:#e2f0f5;--ink-strong:#f5fbfd;--muted:#a9c3cf;--line:#2b4b5b;--accent:#6acde3;--accent-hover:#4eb6ce;--header:#071923;--header-text:#fff;--shadow:0 8px 25px rgba(0,0,0,.13);--danger-bg:#3c2632;--danger-ink:#ffc3c7;--danger-border:#794453}
html[data-theme="dark"] header .primary,html[data-theme="dark"] button.primary,html[data-theme="dark"] .primary{background:#087e9b;color:#fff}
html[data-theme="dark"] .logo{background:#087e9b}
html[data-theme="dark"] .toggle button.selected{box-shadow:0 2px 7px #0003}
html[data-theme="dark"] .chart-bar{background:linear-gradient(0deg,#087e9b,#6acde3)}
html[data-theme="dark"] .cover.image-cover,html[data-theme="dark"] .detail-cover.image-cover,html[data-theme="dark"] .crop-preview-image.image-cover{background:#071923}
html[data-theme="dark"] #toast{background:#e2f0f5;color:#071923}

/* Image geometry: preserve v7 crop controls while using 16:9 journal cards. */
.cover.image-cover,.detail-cover.image-cover{aspect-ratio:16/9;height:auto}
.cover.image-cover .cover-foreground,.detail-cover.image-cover .cover-foreground,.crop-preview-image.image-cover .cover-foreground{position:absolute;inset:0;width:100%;height:100%}

/* v9: iOS Safari native date/time inputs must never exceed their card or grid. */
#editScreen,#diveForm,#fields,.field-panel,.field-grid,.field{min-width:0;max-width:100%}
.field-panel{width:100%;overflow:visible}
.field input,.field select,.field textarea{display:block;box-sizing:border-box;width:100%;max-width:100%;min-width:0}
.field input[type="date"],.field input[type="time"]{-webkit-appearance:none;appearance:none;min-width:0;max-width:100%;width:100%;overflow:hidden;text-overflow:clip}
.field input[type="date"]::-webkit-date-and-time-value,.field input[type="time"]::-webkit-date-and-time-value{min-width:0;text-align:left}
.field input[type="date"]::-webkit-datetime-edit,.field input[type="time"]::-webkit-datetime-edit{min-width:0;padding:0}
/* Native iPhone time controls need more width than half a form on small phones. */
@media(max-width:520px){.field-grid.time-fields{grid-template-columns:minmax(0,1fr)}}
/* Manual appearance control */
.theme-picker{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px;padding:5px;background:var(--surface-soft);border:1px solid var(--line);border-radius:15px;margin-top:20px}
.theme-picker button{border:0;border-radius:11px;background:transparent;color:var(--muted);font-size:13px;font-weight:700;padding:13px 4px;min-width:0;transition:background .15s ease,color .15s ease}
.theme-picker button[aria-pressed="true"]{background:var(--surface);color:var(--ink-strong);box-shadow:0 2px 8px #001c2a17}
.theme-picker button:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.theme-help{margin:12px 0 0}

/* v11: Original SHUNTER logo in the upper-left brand mark. */
header .brand{min-width:0;gap:10px;white-space:nowrap}
header .brand .logo{flex:0 0 auto;display:flex;align-items:center;justify-content:center;width:78px;height:43px;border-radius:11px;background:#fff;padding:4px;overflow:hidden}
header .brand .logo img{display:block;width:100%;height:100%;object-fit:contain}
@media(max-width:390px){header .brand{gap:7px;font-size:14px;letter-spacing:1.2px}header .brand .logo{width:65px;height:40px}header .primary{font-size:11px;padding:10px 9px}}
@media(max-width:350px){header .brand{font-size:12px;letter-spacing:.7px}header .brand .logo{width:56px;height:36px}header{padding-left:12px;padding-right:12px}}

/* v15: SHUNTER black tile in the header */
header .brand .logo{background:#000!important;border-radius:11px!important;padding:0!important;overflow:hidden!important}
header .brand .logo img{width:100%!important;height:100%!important;object-fit:cover!important}

/* v16: minimal black-and-white SHUNTER launch screen */
.launch-splash{position:fixed;inset:0;z-index:1000;background:#050505;color:#fff;display:flex;align-items:center;justify-content:center;padding:30px 26px calc(30px + env(safe-area-inset-bottom));opacity:1;visibility:visible;transition:opacity .42s ease,visibility .42s ease}
.launch-splash.is-hidden{opacity:0;visibility:hidden;pointer-events:none}
.launch-splash-inner{width:100%;max-width:360px;display:flex;align-items:center;flex-direction:column;justify-content:center;gap:0;transform:translateY(-2vh)}
.launch-splash-logo{display:block;width:min(84vw,320px);height:auto;aspect-ratio:520/292;object-fit:contain}
.launch-splash-title{font-size:19px;font-weight:750;letter-spacing:.28em;margin-top:4px;padding-left:.28em}
.launch-splash-tagline{font-size:10px;font-weight:500;letter-spacing:.21em;color:#aab0b4;margin-top:13px}
.launch-splash-line{margin-top:39px;width:72px;height:2px;background:#343434;border-radius:3px;overflow:hidden}
.launch-splash-line span{display:block;width:50%;height:100%;background:#fff;animation:launchProgress 1.1s ease-in-out infinite alternate}
@keyframes launchProgress{from{transform:translateX(-100%)}to{transform:translateX(200%)}}
@media(prefers-reduced-motion:reduce){.launch-splash,.launch-splash.is-hidden{transition:none}.launch-splash-line span{animation:none;transform:none;width:100%}}
/* v16: understated partner branding at the bottom of the home screen */
.home-partner{margin:40px auto 0;padding:24px 12px 14px;max-width:480px;border-top:1px solid var(--line);display:flex;align-items:center;flex-direction:column;gap:14px}
.home-partner-eyebrow{font-size:10px;font-weight:750;letter-spacing:.23em;color:var(--muted);margin:0}
.home-partner-logo-frame{background:#fff;border-radius:12px;padding:10px 13px;box-shadow:0 2px 12px #001a2910;width:min(100%,340px);display:flex;align-items:center;justify-content:center}
.home-partner-logo-frame img{display:block;width:100%;height:auto;object-fit:contain}

/* v17: header label only; keep My Ocean and the existing SHUNTER logo. */
header .brand{flex:1 1 auto;min-width:0;gap:9px}
header .brand-title{font-size:clamp(12px,3.5vw,16px);letter-spacing:.025em;white-space:nowrap;min-width:0}
header #newBtn{flex:0 0 auto;white-space:nowrap}
@media(max-width:390px){header .brand{gap:6px}header .brand-title{font-size:12px;letter-spacing:0}header .primary{padding:9px 8px}}
@media(max-width:350px){header .brand-title{font-size:11px}header .brand .logo{width:50px;height:34px}}
