:root{--bg: #0a0e17;--surface: #111827;--surface2: #1a2332;--border: #2a3444;--text: #e5e7eb;--text-dim: #8892a4;--accent: #3b82f6;--accent-hover: #60a5fa;--warn: #f59e0b;--danger: #ef4444;--ok: #10b981;--deco-stop: #818cf8;--radius: 8px}*{margin:0;padding:0;box-sizing:border-box}.license-link{color:var(--accent);text-decoration:none}.license-link:hover{text-decoration:underline}html,body{overflow-x:clip;max-width:100vw}body{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,system-ui,sans-serif;background:var(--bg);color:var(--text);min-height:100vh;line-height:1.5;scrollbar-width:none}::-webkit-scrollbar{display:none}.app-header{padding:16px 24px;border-bottom:1px solid var(--border);display:flex;align-items:center;gap:12px}.app-header h1{font-size:18px;font-weight:600;letter-spacing:-.02em}.app-header .engine-badge{font-size:11px;color:var(--text-dim);background:var(--surface2);padding:2px 8px;border-radius:99px}.header-toggles{margin-left:auto;display:flex;align-items:center;gap:8px}.header-group{display:inline-flex;align-items:center;gap:4px}.header-group--social+.header-group--settings{position:relative;padding-left:10px;margin-left:2px}.header-group--social+.header-group--settings:before{content:"";position:absolute;left:0;top:20%;bottom:20%;width:1px;background:var(--border, rgba(255, 255, 255, .1))}.header-toggle{display:inline-flex;align-items:center;gap:1px;background:var(--surface2);border:1px solid var(--border);border-radius:99px;padding:3px;cursor:pointer;user-select:none}.header-toggle span{font-size:11px;font-weight:600;letter-spacing:.04em;padding:3px 10px;border-radius:99px;transition:background .18s,color .18s;color:var(--text-dim)}.header-toggle--compact span{font-size:11px;font-weight:700;letter-spacing:.02em;padding:3px 8px;min-width:22px;text-align:center}.lang-menu{z-index:1000;background:var(--surface, #1f2937);border:1px solid var(--border, rgba(255, 255, 255, .1));border-radius:10px;padding:4px;box-shadow:0 8px 32px #00000059;min-width:160px;max-height:calc(100vh - 80px);overflow-y:auto;display:flex;flex-direction:column}.lang-menu-item{display:block;width:100%;text-align:left;background:transparent;border:0;color:var(--text);font-size:13px;padding:8px 12px;border-radius:6px;cursor:pointer;line-height:1.2}.lang-menu-item:hover{background:#ffffff0f}.lang-menu-item.is-active{background:var(--accent, #13a3c2);color:#fff}.header-toggle span.active{background:var(--accent);color:#fff;box-shadow:0 1px 4px #3b82f666}.header-toggle span.inactive:hover{color:var(--text);background:#ffffff0f}#loading-overlay{position:fixed;inset:0;background:var(--bg);display:flex;align-items:center;justify-content:center;z-index:100;transition:opacity .3s}#loading-overlay.hidden{opacity:0;pointer-events:none}.spinner{width:32px;height:32px;border:3px solid var(--border);border-top-color:var(--accent);border-radius:50%;animation:spin .8s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.layout{display:grid;grid-template-columns:420px 1fr;gap:0;min-height:calc(100vh - 53px)}@media (max-width: 900px){.layout{grid-template-columns:1fr}.panel-left,.panel-right{overflow-y:visible;max-height:none}}.panel-left{border-right:1px solid var(--border);padding:20px;overflow-y:auto;max-height:calc(100vh - 53px);scrollbar-width:none}.panel-right{padding:20px;overflow-y:auto;max-height:calc(100vh - 53px);display:flex;flex-direction:column;scrollbar-width:none}.panel-right #resultsArea{flex:1}.section{margin-bottom:20px}.settings-collapsible{margin-bottom:20px;border:none}.settings-collapsible-summary{font-size:11px;text-transform:uppercase;letter-spacing:.08em;color:var(--text-dim);font-weight:600;cursor:pointer;user-select:none;margin-bottom:6px}.settings-collapsible-summary:hover{color:var(--text)}.section-title{font-size:11px;text-transform:uppercase;letter-spacing:.08em;color:var(--text-dim);margin-bottom:10px;font-weight:600}.settings-sub-header{font-size:10px;text-transform:uppercase;letter-spacing:.06em;color:var(--text-dim);margin:12px 0 6px;font-weight:600;opacity:.7}.chart-opt{font-size:10px;text-transform:none;letter-spacing:0;color:var(--text-dim);font-weight:400;cursor:pointer;display:flex;align-items:center;gap:3px;user-select:none}.chart-opt input{margin:0;accent-color:var(--accent);width:12px;height:12px;cursor:pointer}.profile-tab-group{display:flex;gap:2px;background:var(--surface);border-radius:6px;padding:2px;border:1px solid var(--border)}.profile-tab{font-size:11px;font-weight:500;padding:3px 10px;border:none;border-radius:4px;background:transparent;color:var(--text-dim);cursor:pointer;transition:all .15s}.profile-tab:hover{color:var(--text)}.profile-tab.active{background:var(--accent);color:#fff}.field-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px;align-items:end}.field{display:flex;flex-direction:column;gap:4px;min-width:0}.field label{font-size:12px;color:var(--text-dim);font-weight:500}.field input,.field select{background:var(--surface2);border:1px solid var(--border);color:var(--text);padding:8px 10px;border-radius:var(--radius);font-size:14px;font-family:inherit;outline:none;transition:border-color .15s;width:100%;min-width:0}.field input:focus,.field select:focus{border-color:var(--accent)}.field input[type=range]{padding:0;appearance:none;height:6px;border-radius:3px;background:var(--surface2);border:none;margin-top:4px}.field input[type=range]::-webkit-slider-thumb{appearance:none;width:16px;height:16px;border-radius:50%;background:var(--accent);cursor:pointer}.btn-add-gas{font-size:12px;color:var(--accent);background:none;border:1px dashed var(--border);padding:6px 12px;border-radius:6px;cursor:pointer;transition:all .15s}.btn-add-gas:hover{border-color:var(--accent)}.btn-add-dive{width:100%;margin-top:12px;font-size:14px;font-weight:600;color:var(--accent);background:#3b82f614;border:1.5px dashed var(--accent);padding:10px 16px;border-radius:var(--radius);cursor:pointer;transition:all .15s}.btn-add-dive:hover{background:#3b82f629;border-style:solid}.btn-auto-gas{font-size:12px;color:var(--ok);background:none;border:1px dashed var(--border);padding:6px 12px;border-radius:6px;cursor:pointer;margin-left:6px;transition:all .15s}.btn-auto-gas:hover{border-color:var(--ok)}.dive-list{display:flex;flex-direction:column;gap:0}#diveList{display:flex;flex-direction:column;gap:8px}.dive-card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);overflow:hidden;transition:border-color .15s}.dive-card.expanded{border-color:var(--accent)}.dive-card.dive-card-error{border-color:var(--danger);box-shadow:0 0 0 1px var(--danger)}.dive-card.dive-card-error.expanded{border-color:var(--danger)}.dive-card-warnings{display:flex;flex-direction:column;gap:4px;padding:6px 10px 8px;border-top:1px solid var(--border)}.dive-card-warnings .warning-badge{font-size:12px;padding:5px 10px}.dive-card-header{display:flex;align-items:center;justify-content:space-between;padding:8px 12px;cursor:pointer;user-select:none;transition:background .1s}.dive-card-header:hover{background:var(--surface)}.dive-header-left{display:flex;align-items:center;gap:8px;min-width:0;overflow:hidden}.dive-number{font-size:12px;font-weight:600;color:var(--accent);text-transform:uppercase;letter-spacing:.04em;flex-shrink:0}.dive-summary{display:flex;align-items:baseline;gap:6px;font-size:12px;color:var(--text-dim);min-width:0;flex-wrap:wrap}.dive-summary-depth{white-space:nowrap;flex-shrink:0}.dive-summary-gas{white-space:normal;word-break:break-word;opacity:.7}.dive-expand-icon{font-size:10px;color:var(--text-dim);transition:transform .2s;margin-right:4px}.dive-card.expanded .dive-expand-icon{transform:rotate(90deg)}.dive-header-right{display:flex;align-items:center;gap:8px}.dive-remove{width:24px;height:24px;display:flex;align-items:center;justify-content:center;background:none;border:1px solid transparent;border-radius:4px;color:var(--text-dim);cursor:pointer;font-size:14px;transition:all .15s}.dive-remove:hover{border-color:var(--danger);color:var(--danger)}.dive-body{display:none;padding:0 12px 12px}.dive-card.expanded .dive-body{display:block}.dive-body .field-grid{gap:6px}.dive-mode-pills{display:flex;background:var(--surface);border-radius:4px;overflow:hidden;border:1px solid var(--border);margin-bottom:10px}.dive-mode-pill{flex:1;padding:5px 10px;font-size:11px;font-weight:600;text-align:center;letter-spacing:.03em;background:none;border:none;color:var(--text-dim);cursor:pointer;transition:all .15s}.dive-mode-pill.active{background:var(--accent);color:var(--bg)}.dive-mode-pill:not(.active):hover{color:var(--text);background:var(--surface2)}.dive-mode-badge{display:inline-block;font-size:9px;font-weight:600;padding:1px 4px;border-radius:3px;vertical-align:middle;letter-spacing:.03em;flex-shrink:0}.dive-mode-badge.oc{background:var(--accent);color:var(--bg);opacity:.8}.dive-mode-badge.ccr{background:#f59e0b;color:#1a1a2e;opacity:.8}.dive-gas-table{margin-top:0}.dive-gas-header{display:grid;grid-template-columns:1fr 1fr 70px 24px;gap:6px;padding:0 0 3px}.dive-gas-header span{font-size:10px;color:var(--text-dim);font-weight:500}.dive-gas-row{display:grid;grid-template-columns:1fr 1fr 70px 24px;gap:6px;align-items:center;margin-bottom:3px}.dive-gas-row input{background:var(--surface2);border:1px solid var(--border);color:var(--text);font-size:12px;padding:4px 6px;border-radius:4px;font-family:inherit;outline:none;transition:border-color .15s;width:100%}.dive-gas-row input:focus{border-color:var(--accent)}.dive-gas-remove{width:24px;height:24px;display:flex;align-items:center;justify-content:center;background:none;border:1px solid transparent;border-radius:4px;color:var(--text-dim);cursor:pointer;font-size:12px;margin-bottom:1px}.dive-gas-remove:hover{border-color:var(--danger);color:var(--danger)}.dive-gas-actions{display:flex;gap:6px;margin-top:12px}.dive-divider{border:none;border-top:1px solid var(--border);margin:10px 0 8px}.dive-subsection-label{font-size:10px;text-transform:uppercase;letter-spacing:.06em;color:var(--text-dim);font-weight:600;margin:10px 0 6px;opacity:.7}.field-grid-3{display:grid;grid-template-columns:1fr 1fr 1fr;gap:6px;align-items:end}.dive-ccr-settings .field-grid,.dive-ccr-settings .field-grid-3{gap:6px}.dive-bailout-section{margin-top:10px;padding-top:8px;border-top:1px solid var(--border)}.dive-bailout-toggle{display:flex;align-items:center;gap:8px;font-size:12px;cursor:pointer;margin-bottom:8px}.dive-bailout-toggle input{accent-color:var(--accent);width:14px;height:14px}.bailout-section{margin-top:12px;padding-top:10px;border-top:2px solid #f59e0b40}.bailout-title{color:#f59e0b!important}.dive-si{display:flex;align-items:center;gap:8px;padding:6px 12px;border-top:1px solid var(--border);font-size:12px;color:var(--text-dim)}.dive-si label{font-size:12px;white-space:nowrap}.dive-si input{width:60px;background:var(--surface2);border:1px solid var(--border);color:var(--text);padding:4px 6px;border-radius:4px;font-size:12px;font-family:inherit;outline:none;text-align:center}.dive-si input:focus{border-color:var(--accent)}.results-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:12px;margin-bottom:20px}.stat-card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);padding:14px 16px}.stat-label{font-size:11px;text-transform:uppercase;letter-spacing:.06em;color:var(--text-dim);margin-bottom:4px}.stat-value{font-size:22px;font-weight:700;font-variant-numeric:tabular-nums}.stat-value.warn{color:var(--warn)}.stat-value.danger{color:var(--danger)}.stat-value.ok{color:var(--ok)}.stat-unit{font-size:12px;font-weight:400;color:var(--text-dim);margin-left:2px}.stop-table{width:100%;border-collapse:separate;border-spacing:0;margin-bottom:20px}.stop-table th{font-size:11px;text-transform:uppercase;letter-spacing:.06em;color:var(--text-dim);text-align:left;padding:8px 12px;border-bottom:1px solid var(--border);font-weight:600;position:sticky;top:47px;background:var(--bg);z-index:7}.stop-table td{padding:9px 12px!important;font-size:14px;border-bottom:1px solid var(--border);font-variant-numeric:tabular-nums;line-height:1.3}.stop-table tr[data-stop-idx]{cursor:pointer;transition:background .1s}.stop-table tr[data-stop-idx]:hover td,.stop-table tr[data-stop-idx].highlighted td{background:var(--surface2)}.gas-badge{display:inline-block;font-size:11px;font-weight:600;padding:2px 8px;border-radius:99px;border:1px solid}.tissue-chart{position:relative;background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);padding:0}.tissue-chart canvas{display:block;width:100%;height:100px}.profile-section{margin-bottom:20px}.profile-dive-map{width:100%;height:320px;border-radius:var(--radius);border:1px solid var(--border);background:var(--surface2);overflow:hidden;z-index:0}.dive-map-pin{background:transparent;border:0}.leaflet-marker-icon.marker-cluster,.leaflet-marker-icon.marker-cluster div{background:transparent!important}.dive-map-pin-inner{background:#3b82f6;color:#fff;border:2px solid #fff;border-radius:50%;text-align:center;font-size:11px;font-weight:600;box-shadow:0 1px 3px #00000080}.dive-map-popup-link{display:inline-block;margin-top:6px;color:var(--accent, #3b82f6);font-weight:600;text-decoration:none}.dive-map-popup-link:hover{text-decoration:underline}.dive-map-popup-list{list-style:none;margin:6px 0 0;padding:0;max-height:160px;overflow-y:auto}.dive-map-popup-list li{margin:2px 0}.dive-map-popup-list a{color:var(--accent, #3b82f6);font-weight:500;text-decoration:none}.dive-map-popup-list a:hover{text-decoration:underline}.profile-canvas-wrap{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);padding:12px;position:relative}.dive-profile-canvas{width:100%;height:300px;display:block}.dive-profile-overlay{position:absolute;pointer-events:auto;touch-action:none}.warnings{display:flex;flex-direction:column;gap:6px;margin-bottom:16px}.warning-badge{display:flex;align-items:center;gap:8px;padding:8px 12px;border-radius:6px;font-size:13px;font-weight:500}.warning-badge.warn{background:#f59e0b1f;color:var(--warn);border:1px solid rgba(245,158,11,.25)}.warning-badge.danger{background:#ef44441f;color:var(--danger);border:1px solid rgba(239,68,68,.25)}.error-msg{background:#ef44441f;border:1px solid rgba(239,68,68,.25);color:var(--danger);padding:12px 16px;border-radius:var(--radius);font-size:13px}.no-results{color:var(--text-dim);font-size:14px;text-align:center;padding:60px 20px}.dive-summary-table{width:100%;border-collapse:separate;border-spacing:0;font-size:12px;margin-top:-1px}.dive-summary-table thead th{text-align:left;padding:6px 8px;font-size:11px;font-weight:600;color:var(--text-dim);border-bottom:1px solid var(--border);white-space:nowrap}.dive-summary-table td{padding:6px 8px;white-space:nowrap}.dive-summary-row{cursor:pointer;user-select:none;transition:background .1s}.dive-summary-row:hover{background:var(--surface2)}.dive-summary-row .dive-expand-icon{font-size:9px;color:var(--text-dim);display:inline-block;transition:transform .2s;margin-right:4px}.dive-summary-row.expanded .dive-expand-icon{transform:rotate(90deg)}.dive-summary-row.expanded td{border-bottom:none;position:sticky;top:21px;background:var(--bg);z-index:8}.dive-detail-row td{padding:0}.dive-detail-row .dive-result-body{padding:0 8px 14px}.dive-si-row td{text-align:center;font-size:11px;color:var(--text-dim);padding:6px 8px;opacity:.7;border-top:1px solid var(--border);border-bottom:1px solid var(--border);background:var(--surface)}.icon-si{width:12px;height:12px;vertical-align:-1px;margin-right:3px;display:inline-block}.btn-icon{width:13px;height:13px;vertical-align:-2px;display:inline-block}.dive-result-body .profile-section{margin-top:10px;margin-bottom:14px}.single-dive-stats{display:flex;flex-wrap:wrap;gap:4px 16px;font-size:12px;color:var(--text-dim);padding:20px 0 4px;border-bottom:1px solid var(--border);margin-bottom:0;position:sticky;top:-20px;background:var(--bg);z-index:10}.single-dive-stats strong{color:var(--text)}.single-dive-stats .warn{color:var(--warn)}.single-dive-stats .danger{color:var(--danger)}.ccr-fields{margin-top:10px}.dive-advanced{margin-top:10px;border-top:1px solid var(--border);padding-top:8px}.dive-advanced-summary{font-size:11px;color:var(--text-dim);cursor:pointer;user-select:none}.dive-advanced-summary:hover{color:var(--text)}.dive-advanced-body{display:flex;flex-direction:column;gap:6px;margin-top:8px}.dive-advanced-body .field-grid{margin-top:0}.dive-water-row{display:flex;gap:12px;align-items:center}.dive-water-row select{flex:1;min-width:0}.water-type-row{display:flex;gap:12px;align-items:center}.water-type-row select{flex:1;min-width:0}.dive-custom-density{display:inline-flex;align-items:center;gap:4px;flex-shrink:0;font-size:12px;color:var(--text-dim)}.dive-custom-density input{width:80px}.custom-density-inline{display:flex;align-items:center;gap:6px;flex-shrink:0}.custom-density-inline input{width:80px}.custom-density-inline input[readonly]{opacity:.7;cursor:default}.unit-label{font-size:12px;color:var(--text-dim);flex-shrink:0;white-space:nowrap}.dive-settings-modified{color:var(--accent);font-weight:500}.btn-reset-dive-settings{display:block;margin:6px 0 4px;padding:3px 8px;font-size:10px;color:var(--text-dim);background:transparent;border:1px solid var(--border);border-radius:var(--radius);cursor:pointer}.btn-reset-dive-settings:hover{color:var(--text);border-color:var(--text-dim)}.dive-advanced input::placeholder,.dive-advanced select option[value=""]{color:var(--text-dim);opacity:.6}.dive-advanced select.is-default{color:var(--text-dim)}@media (max-width: 600px){.panel-left *,.panel-right *{min-width:0}.app-header{padding:12px;gap:8px}.app-header .profile-brand-text{font-size:15px}.app-header .profile-brand-mark{display:none}.app-header .header-toggles{gap:4px;flex-wrap:nowrap}.app-header .header-group{gap:4px}.app-header .icon-btn,.app-header .btn-account{width:32px;height:32px;padding:0}.app-header .icon-btn svg,.app-header .btn-account svg{width:16px;height:16px}.app-header .header-toggle span{font-size:10px;padding:2px 7px}.panel-left,.panel-right{padding:12px;overflow-y:visible;max-height:none}.dive-gas-header,.dive-gas-row{grid-template-columns:1fr 1fr 56px 24px;gap:4px}.results-grid{grid-template-columns:repeat(auto-fit,minmax(100px,1fr));gap:8px}.stat-card{padding:10px 12px}.stat-value{font-size:18px}.profile-canvas-wrap{padding:6px}.chart-options label{font-size:10px}.stop-table{font-size:11px}}.disclaimer{max-width:1400px;margin:40px auto 20px;padding:8px 16px;color:var(--text-dim);font-size:9px;line-height:1.5;opacity:.5}.disclaimer p{margin:0 0 6px}.disclaimer p:last-child{margin-bottom:0}.pro-badge{font-size:10px;font-weight:700;letter-spacing:.08em;color:#fbbf24;background:#fbbf241f;border:1px solid rgba(251,191,36,.3);padding:2px 8px;border-radius:99px}.btn-upgrade{font-size:12px;font-weight:600;color:#fff;background:linear-gradient(135deg,#7c3aed,#3b82f6);border:none;border-radius:99px;padding:6px 16px;cursor:pointer;transition:opacity .15s,transform .15s;white-space:nowrap}.btn-upgrade:hover{opacity:.9;transform:scale(1.02)}.btn-upgrade.trial-active{background:linear-gradient(135deg,#f59e0b,#ef4444)}.modal-overlay{position:fixed;inset:0;background:#000000b3;backdrop-filter:blur(4px);display:flex;align-items:center;justify-content:center;z-index:1000;padding:20px;transition:opacity .2s}.modal-overlay.hidden{display:none}.modal{background:var(--surface);border:1px solid var(--border);border-radius:16px;padding:32px;max-width:800px;width:100%;max-height:90vh;overflow-y:auto;position:relative}.modal-close{position:absolute;top:12px;right:16px;background:none;border:none;color:var(--text-dim);font-size:24px;cursor:pointer;line-height:1;padding:4px}.modal-close:hover{color:var(--text)}.modal-title{font-size:22px;font-weight:700;margin-bottom:4px;letter-spacing:-.02em}.modal-subtitle{color:var(--text-dim);font-size:14px;margin-bottom:24px;line-height:1.5}.pro-feature-list{list-style:none;display:grid;grid-template-columns:1fr 1fr;gap:6px 24px;margin:0 0 20px;padding:0;font-size:13px;color:var(--text-dim)}.pro-feature-list li{padding-left:18px;position:relative;line-height:1.4}.pro-feature-list li:before{content:"✓";position:absolute;left:0;color:var(--ok);font-weight:600}.pricing-cards{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin-bottom:24px}.pricing-card{background:var(--surface2);border:1px solid var(--border);border-radius:12px;padding:24px 20px;text-align:center;position:relative;transition:border-color .15s}.pricing-card:hover{border-color:var(--accent)}.pricing-card.featured{border-color:var(--accent);box-shadow:0 0 0 1px var(--accent),0 4px 24px #3b82f626}.pricing-badge{position:absolute;top:-10px;left:50%;transform:translate(-50%);background:var(--accent);color:#fff;font-size:11px;font-weight:600;padding:2px 12px;border-radius:99px;white-space:nowrap}.pricing-card-header{font-size:16px;font-weight:600;margin-bottom:8px;color:var(--text)}.pricing-price{font-size:36px;font-weight:700;color:var(--text);margin-bottom:4px;letter-spacing:-.03em}.pricing-period{font-size:16px;font-weight:400;color:var(--text-dim)}.pricing-savings{font-size:12px;color:var(--ok);margin-bottom:12px}.pricing-features{list-style:none;text-align:left;margin:16px 0;font-size:13px;color:var(--text-dim)}.pricing-features li{padding:4px 0 4px 20px;position:relative}.pricing-features li:before{content:"✓";position:absolute;left:0;color:var(--ok);font-weight:600}.btn-checkout{width:100%;padding:10px 16px;font-size:14px;font-weight:600;color:#fff;background:var(--accent);border:none;border-radius:8px;cursor:pointer;transition:background .15s}.btn-checkout:hover{background:var(--accent-hover)}.pricing-card.featured .btn-checkout{background:linear-gradient(135deg,#7c3aed,#3b82f6)}.pricing-footer{text-align:center;display:flex;justify-content:center;gap:24px}.btn-link{background:none;border:none;color:var(--accent);font-size:13px;cursor:pointer;text-decoration:underline;text-underline-offset:2px}.btn-link:hover{color:var(--accent-hover)}.license-modal{max-width:480px}.license-form{display:flex;gap:8px;margin:16px 0 8px}.license-input{flex:1;padding:10px 12px;font-size:14px;font-family:SF Mono,Menlo,Consolas,monospace;background:var(--bg);border:1px solid var(--border);border-radius:8px;color:var(--text);outline:none}.license-input:focus{border-color:var(--accent)}.btn-activate{padding:10px 20px;font-size:14px;font-weight:600;color:#fff;background:var(--accent);border:none;border-radius:8px;cursor:pointer;white-space:nowrap}.btn-activate:hover{background:var(--accent-hover)}.btn-activate:disabled{opacity:.5;cursor:not-allowed}.license-error{color:var(--danger);font-size:13px;margin:4px 0}.license-success-msg{color:var(--ok);font-size:13px;margin:8px 0;padding:8px 12px;background:#10b9811a;border-radius:8px}.license-hint{color:var(--text-dim);font-size:12px;margin-top:12px}.license-status-text{color:var(--text-dim);font-size:14px;margin:12px 0 20px}.btn-deactivate{padding:8px 16px;font-size:13px;font-weight:500;color:var(--danger);background:#ef44441a;border:1px solid rgba(239,68,68,.3);border-radius:8px;cursor:pointer}.btn-deactivate:hover{background:#ef444433}.pro-lock{display:inline-flex;align-items:center;gap:4px;font-size:10px;font-weight:600;color:#7c3aed;background:#7c3aed1a;border:1px solid rgba(124,58,237,.2);padding:1px 6px;border-radius:4px;cursor:pointer;white-space:nowrap;vertical-align:middle;margin-left:6px}.pro-lock:before{content:"🔒";font-size:9px}.pro-locked{opacity:.45;pointer-events:none;position:relative}.pro-locked-overlay{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;background:#0a0e1799;border-radius:var(--radius);cursor:pointer;z-index:2}.pro-locked-overlay span{background:linear-gradient(135deg,#7c3aed,#3b82f6);color:#fff;font-size:12px;font-weight:600;padding:6px 14px;border-radius:99px}.trial-banner{background:linear-gradient(90deg,#f59e0b1a,#ef44441a);border-bottom:1px solid rgba(245,158,11,.2);padding:6px 24px;text-align:center;font-size:12px;color:var(--warn)}.trial-banner a{color:var(--accent);font-weight:600;cursor:pointer;text-decoration:underline}.expired-banner{background:#ef444414;border-bottom:1px solid rgba(239,68,68,.2);padding:6px 24px;text-align:center;font-size:12px;color:var(--danger)}.expired-banner a{color:var(--accent);font-weight:600;cursor:pointer;text-decoration:underline}@media (max-width: 700px){.pricing-cards{grid-template-columns:1fr}.pricing-modal{padding:20px}.btn-upgrade{font-size:11px;padding:5px 12px}}.pricing-card{display:flex;flex-direction:column}.btn-checkout{margin-top:auto}.results-toolbar{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end;margin:16px 0 4px;padding-top:12px;border-top:1px solid var(--border)}.btn-result-action{display:inline-flex;align-items:center;gap:8px;font-size:13px;font-weight:500;color:var(--text-dim);background:transparent;border:1px solid var(--border);padding:7px 14px;border-radius:var(--radius);cursor:pointer;transition:color .15s ease,border-color .15s ease,background .15s ease;font-family:inherit}.btn-result-action:hover{color:var(--text);border-color:var(--accent);background:#3b82f60f}.btn-result-action .btn-icon{width:15px;height:15px;flex-shrink:0}.btn-result-action .btn-lock{width:12px;height:12px;opacity:.6;margin-left:2px}.icon-btn{display:inline-flex;align-items:center;justify-content:center;width:32px;height:30px;padding:0;background:transparent;border:1px solid var(--border);border-radius:var(--radius);color:var(--text-dim);cursor:pointer;transition:color .15s ease,border-color .15s ease,background .15s ease}.icon-btn:hover{color:var(--text);border-color:var(--accent);background:#3b82f614}.icon-btn svg{width:16px;height:16px}.icon-btn .icon-sun{display:block}.icon-btn .icon-moon,[data-theme=light] .icon-btn .icon-sun{display:none}[data-theme=light] .icon-btn .icon-moon{display:block}.toast{position:fixed;left:50%;bottom:calc(28px + env(safe-area-inset-bottom,0px));transform:translate(-50%) translateY(20px);padding:10px 18px;background:var(--surface);color:var(--text);border:1px solid var(--accent);border-radius:var(--radius);font-size:13px;font-weight:500;box-shadow:0 6px 24px #00000059;opacity:0;pointer-events:none;z-index:10000;transition:opacity .2s ease,transform .2s ease;max-width:90vw}.toast.toast-visible{opacity:1;transform:translate(-50%) translateY(0)}.toast.toast-error{border-color:var(--danger);color:var(--danger)}.toast.toast-progress{display:inline-flex;align-items:center;gap:10px}.toast-spinner{width:14px;height:14px;border-radius:50%;border:2px solid var(--text-dim);border-top-color:var(--accent);animation:toast-spin .8s linear infinite;flex:0 0 auto}@keyframes toast-spin{to{transform:rotate(360deg)}}[data-theme=light]{--bg: #f7f8fa;--surface: #ffffff;--surface2: #f1f3f6;--border: #d8dde5;--text: #111827;--text-dim: #5b6473;--accent: #2563eb;--accent-hover: #1d4ed8;--warn: #b45309;--danger: #dc2626;--ok: #047857;--deco-stop: #6366f1}[data-theme=light] body{background:var(--bg);color:var(--text)}[data-theme=light] .toast{box-shadow:0 6px 24px #0f172a2e}[data-theme=light] .btn-result-action:hover,[data-theme=light] .icon-btn:hover{background:#2563eb14}.btn-signin,.btn-account{font-size:12px;font-weight:600;color:var(--text);background:transparent;border:1px solid var(--border);border-radius:99px;padding:6px 14px;cursor:pointer;transition:background .15s,border-color .15s;white-space:nowrap}.btn-signin:hover,.btn-account:hover{background:var(--bg-elev, var(--surface));border-color:var(--text-dim)}.btn-account{background:var(--bg-elev, var(--surface));width:32px;height:32px;padding:0;display:inline-flex;align-items:center;justify-content:center}.btn-account svg{display:block}.oauth-buttons{display:flex;flex-direction:column;gap:10px;margin-top:18px}.oauth-btn{display:inline-flex;align-items:center;justify-content:center;gap:12px;width:100%;height:44px;padding:0 16px;border-radius:8px;font-size:14px;font-weight:600;cursor:pointer;transition:filter .12s ease,transform 80ms ease;border:1px solid var(--border, #d8d8d8);background:#fff;color:#1f1f1f}.oauth-btn:hover:not([disabled]){filter:brightness(.97)}.oauth-btn:active:not([disabled]){transform:scale(.99)}.oauth-btn[disabled]{opacity:.5;cursor:progress}.oauth-btn--apple{background:#000;color:#fff;border-color:#000}.oauth-btn--facebook{background:#1877f2;color:#fff;border-color:#1877f2}.oauth-icon{width:18px;height:18px;flex:none}.hidden{display:none!important}.stripe-checkout-overlay{position:fixed;inset:0;z-index:10000;background:#0000008c;display:flex;align-items:flex-start;justify-content:center;padding:24px 16px;overflow-y:auto;backdrop-filter:blur(2px)}.stripe-checkout-panel{position:relative;width:100%;max-width:520px;background:#fff;border-radius:12px;box-shadow:0 20px 60px #00000059;margin-top:4vh;padding:16px}.stripe-checkout-close{position:absolute;top:8px;right:8px;width:32px;height:32px;border-radius:50%;border:none;background:transparent;color:#555;font-size:24px;line-height:1;cursor:pointer;z-index:1}.stripe-checkout-close:hover{background:#0000000f}.stripe-checkout-mount{min-height:480px}body.dive-logs-open .layout,body.dive-logs-open .app-header{display:none!important}.dive-logs-page{position:fixed;inset:0;background:var(--bg);color:var(--text);z-index:900;overflow-y:auto;box-sizing:border-box}.dive-logs-page.hidden{display:none}.dive-logs-shell{max-width:880px;margin:0 auto;padding:24px clamp(16px,4vw,32px) 80px}.dive-logs-header{display:flex;align-items:center;gap:14px;padding:4px 0 28px;flex-wrap:wrap}.dive-logs-title{flex:1;min-width:0}.dive-logs-title h2{margin:0;font-size:26px;font-weight:700;letter-spacing:-.01em}.dive-logs-subtitle{margin:2px 0 0;font-size:13px;color:var(--text-dim)}.dive-logs-back{background:transparent;border:1px solid var(--border);color:var(--text-dim);width:38px;height:38px;border-radius:10px;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;transition:background .12s,color .12s,border-color .12s}.dive-logs-back:hover{background:var(--surface2);color:var(--text);border-color:var(--text-dim)}.dive-logs-actions{display:flex;gap:8px;flex-wrap:wrap}.dive-logs-actions .btn-secondary,.dive-logs-actions .btn-activate{display:inline-flex;align-items:center;gap:6px}.btn-secondary{padding:9px 14px;font-size:13px;font-weight:500;color:var(--text);background:var(--surface2);border:1px solid var(--border);border-radius:8px;cursor:pointer}.btn-secondary:hover{background:var(--surface)}.dive-logs-empty{padding:80px 20px;text-align:center;color:var(--text-dim);display:flex;flex-direction:column;align-items:center;gap:8px}.dive-logs-empty h3{margin:8px 0 0;font-size:18px;font-weight:600;color:var(--text)}.dive-logs-empty p{margin:0;max-width:360px}.dive-logs-spinner{width:28px;height:28px;border:2px solid var(--border);border-top-color:var(--accent);border-radius:50%;animation:dl-spin .8s linear infinite}@keyframes dl-spin{to{transform:rotate(360deg)}}.dive-logs-year{margin-bottom:24px}.dive-logs-year-heading{margin:0 0 10px;padding:0 4px;font-size:11px;font-weight:600;letter-spacing:.12em;text-transform:uppercase;color:var(--text-dim)}.dive-logs-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:8px}.dive-log-row{display:flex;align-items:center;gap:18px;padding:16px 18px;background:var(--surface);border:1px solid var(--border);border-radius:12px;transition:border-color .12s,background .12s,transform .12s}.dive-log-row:hover{border-color:var(--text-dim);background:var(--surface2)}.dive-log-row-date{flex-shrink:0;width:56px;text-align:center;padding-right:18px;border-right:1px solid var(--border);line-height:1.1}.dive-log-row-day{font-size:24px;font-weight:700;color:var(--text);font-variant-numeric:tabular-nums}.dive-log-row-mon{font-size:11px;text-transform:uppercase;letter-spacing:.08em;color:var(--text-dim);margin-top:2px}.dive-log-row-time{margin-top:6px;font-size:11px;color:var(--text-dim);font-variant-numeric:tabular-nums}.dive-log-row-main{flex:1;min-width:0}.dive-log-row-title{display:flex;align-items:center;gap:8px;font-size:16px;font-weight:600;color:var(--text)}.dive-log-row-title strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:600}.dive-log-row-sub{margin-top:2px;font-size:12px;color:var(--text-dim);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.dive-log-row-tag{font-size:10px;font-weight:600;text-transform:uppercase;letter-spacing:.06em;padding:3px 9px;border-radius:4px;background:var(--surface2);color:var(--text-dim);border:1px solid var(--border)}.dive-log-row-tag--uddf{background:var(--surface2);color:var(--text-dim);border-color:var(--border)}.dive-log-row-tag--mode{background:#3b82f61f;color:var(--accent, #3b82f6);border-color:#3b82f659;text-transform:uppercase;font-weight:600}.dive-log-row-tag--mode-oc{background:var(--surface2);color:var(--text-dim);border-color:var(--border)}.dive-log-row-meta{display:flex;flex-wrap:wrap;gap:10px;margin-top:12px}.dive-log-row-tag--site{display:inline-flex;align-items:center;gap:5px;text-transform:none;letter-spacing:normal;font-size:11px;font-weight:500;padding:3px 10px;color:var(--text)}.dive-log-row-tag--site svg{flex:0 0 auto;color:var(--accent)}.dive-log-row-tag--coord{display:inline-flex;align-items:center;gap:6px;text-transform:none;letter-spacing:normal;font-size:11px;font-weight:500;padding:3px 10px;color:var(--text);font-variant-numeric:tabular-nums}.dive-log-row-tag--coord svg{flex:0 0 auto;color:var(--text-dim);opacity:.85}.dive-log-row-stats{display:flex;gap:18px;margin-top:10px;flex-wrap:wrap}.dive-stat{display:inline-flex;align-items:baseline;gap:3px;font-variant-numeric:tabular-nums}.dive-stat-val{font-size:15px;font-weight:600;color:var(--text)}.dive-stat-unit{font-size:11px;color:var(--text-dim);margin-right:4px}.dive-stat-lbl{font-size:10px;text-transform:uppercase;letter-spacing:.08em;color:var(--text-dim)}.dive-log-row-actions{display:flex;align-items:center;gap:6px;flex-shrink:0}.dive-log-link,.dive-log-del{display:inline-flex;align-items:center;justify-content:center;width:32px;height:32px;background:transparent;color:var(--text-dim);border:1px solid var(--border);border-radius:8px;cursor:pointer;text-decoration:none;padding:0;transition:color .12s,border-color .12s,background .12s}.dive-log-link:hover{color:var(--accent);border-color:var(--accent);background:#22d3ee14}.dive-log-del:hover{color:var(--danger);border-color:var(--danger);background:#ef444414}@media (max-width: 600px){.dive-logs-shell{padding:16px 12px 60px}.dive-logs-title h2{font-size:22px}.dive-log-row{padding:12px 14px;gap:14px}.dive-log-row-date{width:44px;padding-right:14px}.dive-log-row-day{font-size:20px}.dive-log-row-stats{gap:14px}.dive-log-row-actions{gap:4px}.dive-logs-header{flex-wrap:nowrap;gap:10px}}.dive-logs-actions{flex-wrap:nowrap;gap:6px}.dive-logs-actions .btn-secondary,.dive-logs-actions .btn-activate{padding:8px 10px}.dive-logs-action-label{display:none}.dive-form{display:flex;flex-direction:column;gap:12px}.dive-form label{display:flex;flex-direction:column;font-size:13px;color:var(--text-dim);gap:4px}.dive-form input,.dive-form textarea{padding:10px 12px;background:var(--surface2);border:1px solid var(--border);border-radius:8px;color:var(--text);font-size:14px;font-family:inherit}.dive-form input:focus,.dive-form textarea:focus{border-color:var(--accent);outline:none}.dive-form .form-row{display:grid;grid-template-columns:1fr 1fr;gap:12px}.dive-form-circuit{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:4px}.dive-form-circuit-lbl{font-size:12px;color:var(--text-dim);text-transform:uppercase;letter-spacing:.04em}.segmented{display:inline-flex;background:var(--surface2);border:1px solid var(--border);border-radius:8px;padding:2px;position:relative}.segmented input[type=radio]{position:absolute;opacity:0;pointer-events:none}.segmented label{padding:6px 14px;font-size:13px;font-weight:500;color:var(--text-dim);cursor:pointer;border-radius:6px;transition:background .15s ease,color .15s ease;user-select:none}.segmented label:hover{color:var(--text)}.segmented input[type=radio]:checked+label{background:var(--bg);color:var(--text);box-shadow:0 1px 2px #00000014}.segmented input[type=radio]:focus-visible+label{outline:2px solid var(--accent, #3b82f6);outline-offset:1px}.dive-form-actions{display:flex;gap:8px;justify-content:flex-end;margin-top:8px}@media (max-width: 600px){.dive-form .form-row{grid-template-columns:1fr}.dive-log-row{flex-wrap:wrap}}.account-menu{position:fixed;top:64px;right:12px;min-width:240px;background:var(--surface);border:1px solid var(--border);border-radius:12px;padding:6px;z-index:950;box-shadow:0 12px 32px #00000073;display:flex;flex-direction:column;gap:2px}.account-menu.hidden{display:none}.account-menu-header{padding:10px 12px 12px;border-bottom:1px solid var(--border);margin-bottom:4px}.account-menu-name{font-weight:600;font-size:14px;color:var(--text);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.account-menu-email{font-size:12px;color:var(--text-dim);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;margin-top:2px}.account-menu-item{display:flex;align-items:center;gap:10px;padding:9px 12px;background:transparent;border:none;border-radius:8px;color:var(--text);font-size:14px;text-align:left;cursor:pointer;width:100%;text-decoration:none}a.account-menu-item:link,a.account-menu-item:visited{color:var(--text)}.account-menu-item:hover{background:var(--surface2)}.account-menu-item.hidden{display:none}.account-menu-item svg{flex-shrink:0;color:var(--text-dim)}.account-menu-item:hover svg{color:var(--text)}.account-menu-item--danger{color:var(--danger)}.account-menu-item--danger svg{color:var(--danger)}.account-menu-item--danger:hover{background:#ef44441f}.account-menu-divider{height:1px;background:var(--border);margin:4px 0}@media (max-width: 600px){.account-menu{right:8px;left:8px;min-width:0}}@media (max-width: 600px){.profile-page .profile-shell{padding:12px 12px 80px}.profile-page .profile-topbar{gap:6px;padding:8px 10px}.profile-brand-text{font-size:15px}.profile-brand-mark{display:none}.profile-back{width:32px;height:32px;border-radius:8px;flex:0 0 32px}.profile-topbar .header-toggles{gap:4px;flex-wrap:nowrap}.profile-topbar .icon-btn,.profile-topbar .btn-account,.profile-topbar .profile-account-btn{width:32px;height:32px;padding:0;flex:0 0 32px}.profile-topbar .icon-btn svg,.profile-topbar .btn-account svg{width:16px;height:16px}}@media (max-width: 380px){.profile-brand{display:none}}body.profile-page-open>#loading-overlay,body.profile-page-open>.app-header,body.profile-page-open>.layout,body.profile-page-open>.disclaimer,body.profile-page-open>footer{display:none!important}.profile-page{position:fixed;inset:0;background:var(--bg);color:var(--text);z-index:900;overflow-y:auto}.profile-page.hidden{display:none}.profile-page .profile-shell{max-width:880px;margin:0 auto;padding:16px clamp(16px,4vw,32px) 80px}.profile-page .profile-topbar{gap:12px}.profile-page .profile-topbar h1{margin:0}.profile-page .profile-brand{text-decoration:none}.profile-brand{font-size:16px;font-weight:600;color:var(--text);text-decoration:none;letter-spacing:.2px;white-space:nowrap;display:inline-flex;align-items:center;gap:8px}.profile-brand h1{white-space:nowrap}.profile-brand-mark{display:none}.profile-brand-text{font-size:17px;font-weight:700;letter-spacing:.02em}.profile-brand-accent{color:var(--accent, #13a3c2)}.profile-brand-white{color:#fff}.profile-brand:hover{color:var(--accent, var(--text))}.profile-back{width:38px;height:38px;border-radius:10px;border:1px solid var(--border);background:transparent;color:var(--text-dim);cursor:pointer;display:inline-flex;align-items:center;justify-content:center}.profile-back:hover{background:var(--surface);color:var(--text)}.profile-page .profile-header{display:flex;gap:20px;padding:8px 0 24px;align-items:flex-start;flex-wrap:wrap;border-bottom:1px solid var(--border);margin-bottom:24px}.profile-avatar{width:96px;height:96px;border-radius:50%;overflow:hidden;background:var(--surface);border:1px solid var(--border);display:flex;align-items:center;justify-content:center;font-size:36px;font-weight:600;color:var(--text-dim);flex-shrink:0}.profile-avatar img{width:100%;height:100%;object-fit:cover}.profile-avatar-editable{cursor:pointer;position:relative}.profile-avatar-editable:hover .profile-avatar-edit-overlay,.profile-avatar-editable:focus-visible .profile-avatar-edit-overlay{opacity:1}.profile-avatar-editable:focus-visible{outline:2px solid var(--accent, #3b82f6);outline-offset:2px}.profile-avatar-edit-overlay{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;background:#0000008c;color:#fff;opacity:0;transition:opacity .15s ease;pointer-events:none}.profile-avatar-edit{display:flex;gap:12px;align-items:center;margin-bottom:4px}.profile-avatar-wrap{width:160px;height:160px;flex-shrink:0;position:relative}.profile-avatar-preview{width:100%;height:100%;border-radius:50%;object-fit:cover;background:var(--surface);border:1px solid var(--border)}.profile-avatar-preview.hidden{display:none}.avatar-cropper{width:100%;height:auto;display:flex;flex-direction:column;gap:8px}.avatar-cropper-stage{position:relative;width:160px;height:160px;border-radius:50%;overflow:hidden;background:#000;border:1px solid var(--border);touch-action:none;cursor:grab;user-select:none}.avatar-cropper-stage-dragging{cursor:grabbing}.avatar-cropper-img{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);pointer-events:none;-webkit-user-drag:none;max-width:none}.avatar-cropper-mask{position:absolute;inset:0;border-radius:50%;pointer-events:none;box-shadow:inset 0 0 0 2px #fff9}.avatar-cropper-controls{display:flex;align-items:center;gap:8px}.avatar-cropper-zoom{flex:1;width:100%}.profile-avatar-edit-controls{display:flex;flex-direction:column;gap:4px;align-items:flex-start}.profile-identity{flex:1;min-width:0}.profile-identity h1{font-size:28px;font-weight:700;margin:0 0 6px;line-height:1.2}.profile-meta{display:flex;flex-wrap:wrap;align-items:center;gap:6px 8px;color:var(--text-dim);font-size:13px}.profile-meta .profile-loc,.profile-meta .profile-since{display:inline-flex;align-items:center;gap:4px}.profile-handle{color:var(--text-dim)}.profile-dot{color:var(--text-dim);opacity:.5}.profile-bio{margin:12px 0 0;line-height:1.55;max-width:60ch;color:var(--text)}.profile-bio-empty{color:var(--text-dim);font-style:italic}.profile-edit-btn{display:inline-flex;align-items:center;gap:6px}.profile-feed-btn.is-active{color:var(--accent, #0e6fa8);background:#0e6fa81a}.profile-feed-page{padding:0 12px}.profile-feed-section{padding:0}.profile-feed-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:10px}.profile-feed-item{display:grid;grid-template-columns:48px 1fr;gap:12px;align-items:start;padding:14px;background:var(--surface, rgba(255, 255, 255, .03));border:1px solid var(--border, rgba(255, 255, 255, .08));border-radius:12px;transition:border-color .15s ease,background .15s ease}.profile-feed-item:hover{border-color:#13a3c259}.profile-feed-avatar{position:relative;width:48px;height:48px;flex:0 0 48px}.profile-feed-avatar img,.profile-feed-avatar>span:not(.profile-feed-kind){width:100%;height:100%;border-radius:50%;object-fit:cover;display:flex;align-items:center;justify-content:center;font-weight:700;font-size:18px;background:var(--surface2, rgba(255, 255, 255, .06));color:var(--text, #fff)}.profile-feed-kind{position:absolute;right:-4px;bottom:-4px;width:22px;height:22px;border-radius:50%;background:linear-gradient(135deg,#0e6fa8,#13a3c2);border:2px solid var(--bg, #0a121b);color:#fff;display:flex;align-items:center;justify-content:center}.profile-feed-kind svg{width:12px;height:12px}.profile-feed-item--cert .profile-feed-kind{background:linear-gradient(135deg,#c08a2a,#e8b651)}.profile-feed-body{min-width:0;display:flex;flex-direction:column;gap:4px}.profile-feed-line{display:flex;flex-wrap:wrap;align-items:baseline;gap:6px;font-size:14px;line-height:1.3}.profile-feed-line strong{font-weight:700;color:var(--text, #fff)}.profile-feed-handle{color:var(--text-dim, #94a3b8);text-decoration:none;font-size:13px}.profile-feed-handle:hover{color:#13a3c2;text-decoration:underline}.profile-feed-when{margin-left:auto;font-size:12px;color:var(--text-dim, #94a3b8);white-space:nowrap;flex:0 0 auto}.profile-feed-text{font-size:14px;line-height:1.45;color:var(--text, #e2e8f0)}.profile-feed-text strong{color:#13a3c2;font-weight:600}.profile-feed-stats{display:block;margin-top:2px;font-size:12px;color:var(--text-dim, #94a3b8)}.profile-feed-more{margin-top:14px;display:flex;justify-content:center}@media (max-width: 480px){.profile-feed-page{padding:0 8px}.profile-feed-item{padding:12px;gap:10px;grid-template-columns:40px 1fr}.profile-feed-avatar{width:40px;height:40px;flex-basis:40px}.profile-feed-line{font-size:13.5px}.profile-feed-when{width:100%;margin-left:0;order:99}}.profile-feed-link-section{padding:0}.profile-feed-link-card{display:flex;align-items:center;gap:14px;width:100%;padding:14px 16px;background:var(--surface, #fff);border:1px solid var(--border, rgba(0, 0, 0, .08));border-radius:12px;cursor:pointer;font:inherit;color:inherit;text-align:left;transition:border-color .15s ease,transform .05s ease,background .15s ease}.profile-feed-link-card:hover{border-color:var(--accent, #0e6fa8);background:var(--surface-hover, rgba(14, 111, 168, .04))}.profile-feed-link-card:active{transform:translateY(1px)}.profile-feed-link-icon{flex:0 0 40px;height:40px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:linear-gradient(135deg,#0e6fa8,#13a3c2);color:#fff}.profile-feed-link-text{flex:1;display:flex;flex-direction:column;gap:2px;min-width:0}.profile-feed-link-text strong{font-size:15px}.profile-feed-link-text span{font-size:13px;color:var(--text-muted, #6b7280)}.profile-feed-link-chevron{font-size:22px;line-height:1;color:var(--text-muted, #6b7280);flex:0 0 auto}.profile-follow-btn{display:inline-flex;align-items:center;justify-content:center;gap:6px;padding:8px 16px;font-size:13px;font-weight:600;font-family:inherit;line-height:1;border-radius:999px;border:1px solid transparent;cursor:pointer;white-space:nowrap;transition:background .15s ease,border-color .15s ease,color .15s ease,transform .05s ease;user-select:none}.profile-follow-btn:active{transform:translateY(1px)}.profile-follow-btn:disabled{opacity:.6;cursor:progress}.profile-follow-btn--follow{background:var(--accent, #3b82f6);color:#fff;border-color:var(--accent, #3b82f6)}.profile-follow-btn--follow:hover{filter:brightness(1.08)}.profile-follow-btn--following{background:var(--surface);color:var(--text);border-color:var(--border)}.profile-follow-btn--following .profile-follow-label-hover{display:none}.profile-follow-btn--following:hover{background:#dc26261a;border-color:#dc262673;color:#fca5a5}.profile-follow-btn--following:hover .profile-follow-label-default{display:none}.profile-follow-btn--following:hover .profile-follow-label-hover{display:inline}.profile-follow-btn--sm{padding:5px 12px;font-size:12px}.profile-buddies-counts{display:inline-flex;align-items:baseline;gap:4px;color:var(--text-dim);font-size:13px}.profile-buddies-counts strong{color:var(--text);font-weight:700}button.profile-buddies-pill{align-items:center;gap:6px;padding:4px 12px;font-family:inherit;font-size:13px;line-height:1;color:var(--text, #fff);background:linear-gradient(135deg,#0e6fa833,#13a3c233);border:1px solid rgba(19,163,194,.45);border-radius:999px;cursor:pointer;transition:background .15s ease,border-color .15s ease,transform .05s ease}button.profile-buddies-pill:hover{background:linear-gradient(135deg,#0e6fa852,#13a3c252);border-color:#13a3c2bf}button.profile-buddies-pill:active{transform:translateY(1px)}button.profile-buddies-pill strong{font-weight:700;color:var(--text, #fff)}.profile-buddies-pill-icon{color:#13a3c2;flex:0 0 auto}.profile-modal-overlay{position:fixed;inset:0;background:#0000008c;backdrop-filter:blur(4px);-webkit-backdrop-filter:blur(4px);display:flex;align-items:center;justify-content:center;z-index:9000;padding:24px}.profile-buddies-modal{background:var(--surface, #0f1924);border:1px solid var(--border, rgba(255, 255, 255, .08));border-radius:16px;width:min(560px,100%);max-height:min(80vh,720px);display:flex;flex-direction:column;box-shadow:0 24px 64px #00000073}.profile-modal-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:16px 20px;border-bottom:1px solid var(--border, rgba(255, 255, 255, .08))}.profile-modal-head h2{margin:0;font-size:18px;font-weight:700}.profile-modal-close{background:transparent;border:none;color:var(--text-dim, #94a3b8);cursor:pointer;font-size:24px;line-height:1;padding:4px 8px;border-radius:6px}.profile-modal-close:hover{background:#ffffff0f;color:var(--text, #fff)}.profile-modal-body{padding:16px 20px;overflow-y:auto}.profile-modal-body .profile-buddies-list{margin:0}.profile-buddies-sep{margin:0 4px;opacity:.6}.profile-buddy-search{margin-bottom:16px}.profile-buddy-search--popover{position:fixed;top:64px;right:16px;width:min(420px,calc(100vw - 32px));margin:0;padding:12px;background:var(--surface);border:1px solid var(--border);border-radius:12px;box-shadow:0 10px 30px #00000059;z-index:1000}.profile-search-btn[aria-expanded=true]{background:var(--surface2);color:var(--accent, #3b82f6)}.profile-buddy-search-input-wrap{position:relative;display:flex;align-items:center}.profile-buddy-search-icon{position:absolute;left:12px;top:50%;transform:translateY(-50%);color:var(--text-dim);pointer-events:none}.profile-buddy-search-input{width:100%;padding:10px 36px;font-size:14px;font-family:inherit;color:var(--text);background:var(--surface);border:1px solid var(--border);border-radius:10px;outline:none;box-sizing:border-box}.profile-buddy-search-input:focus{border-color:var(--accent, #3b82f6)}.profile-buddy-search-input::-webkit-search-cancel-button{display:none}.profile-buddy-search-clear{position:absolute;right:8px;top:50%;transform:translateY(-50%);width:22px;height:22px;border:none;background:var(--surface2);color:var(--text-dim);font-size:18px;line-height:1;border-radius:50%;cursor:pointer;display:flex;align-items:center;justify-content:center}.profile-buddy-search-clear:hover{color:var(--text);background:var(--border)}.profile-buddy-search-bar{display:flex;align-items:stretch;gap:8px}.profile-buddy-search-bar .profile-buddy-search-input-wrap{flex:1 1 auto;min-width:0}.profile-buddy-search-filters-toggle{display:inline-flex;align-items:center;gap:6px;padding:0 12px;height:auto;min-height:36px;border:1px solid var(--border);border-radius:10px;background:var(--surface);color:var(--text-dim);font-size:13px;font-family:inherit;cursor:pointer;white-space:nowrap}.profile-buddy-search-filters-toggle:hover{color:var(--text);border-color:var(--text-dim)}.profile-buddy-search-filters-toggle.is-active{color:var(--accent, #3b82f6);border-color:var(--accent, #3b82f6);background:color-mix(in srgb,var(--accent, #3b82f6) 8%,var(--surface))}.profile-buddy-search-filters{margin-top:10px;padding:12px;background:var(--surface);border:1px solid var(--border);border-radius:10px}.profile-buddy-search-filters-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 12px}.profile-buddy-search-filters-grid label{display:flex;flex-direction:column;gap:4px;font-size:12px;color:var(--text-dim)}.profile-buddy-search-filters-grid input,.profile-buddy-search-filters-grid select{padding:7px 9px;font-size:13px;font-family:inherit;color:var(--text);background:var(--bg, var(--surface));border:1px solid var(--border);border-radius:8px;outline:none}.profile-buddy-search-filters-grid input:focus,.profile-buddy-search-filters-grid select:focus{border-color:var(--accent, #3b82f6)}.profile-buddy-search-filters-actions{display:flex;justify-content:flex-end;margin-top:10px}.profile-buddy-search-filters-clear{background:transparent;border:none;padding:4px 8px;color:var(--text-dim);font-size:12px;font-family:inherit;cursor:pointer;text-decoration:underline}.profile-buddy-search-filters-clear:hover{color:var(--text)}.profile-buddy-meta{margin-top:2px;font-size:11px;color:var(--text-dim);line-height:1.4;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}@media (max-width: 480px){.profile-buddy-search-filters-grid{grid-template-columns:1fr}.profile-buddy-search-filters-toggle span{display:none}}.buddy-qr-overlay{position:fixed;inset:0;z-index:1100;background:#070c14b8;display:flex;align-items:center;justify-content:center;padding:16px;backdrop-filter:blur(4px)}body.buddy-qr-open{overflow:hidden}.buddy-qr-card{width:min(420px,100%);max-height:calc(100vh - 32px);background:var(--surface);color:var(--text);border:1px solid var(--border);border-radius:16px;box-shadow:0 24px 60px #00000073;display:flex;flex-direction:column;overflow:hidden}.buddy-qr-head{display:flex;align-items:center;justify-content:space-between;padding:14px 16px;border-bottom:1px solid var(--border)}.buddy-qr-head h2{margin:0;font-size:16px;font-weight:600}.buddy-qr-close{width:32px;height:32px;border:none;background:transparent;color:var(--text-dim);font-size:24px;line-height:1;border-radius:8px;cursor:pointer}.buddy-qr-close:hover{background:var(--surface2, var(--border));color:var(--text)}.buddy-qr-tabs{display:flex;gap:4px;padding:8px;border-bottom:1px solid var(--border);background:var(--bg, var(--surface))}.buddy-qr-tab{flex:1 1 0;display:inline-flex;align-items:center;justify-content:center;gap:6px;padding:10px 12px;font-size:13px;font-family:inherit;font-weight:500;color:var(--text-dim);background:transparent;border:1px solid transparent;border-radius:8px;cursor:pointer}.buddy-qr-tab:hover{color:var(--text)}.buddy-qr-tab.is-active{color:var(--accent, #3b82f6);background:var(--surface);border-color:var(--border)}.buddy-qr-body{padding:16px;overflow-y:auto}.buddy-qr-help{margin:0 0 14px;color:var(--text-dim);font-size:13px;line-height:1.5}.buddy-qr-canvas-wrap{position:relative;margin:0 auto;width:100%;max-width:320px;aspect-ratio:1 / 1;background:#fff;border-radius:12px;overflow:hidden;display:flex;align-items:center;justify-content:center}.buddy-qr-canvas-wrap canvas{display:block;width:100%;height:100%}.buddy-qr-status{position:absolute;inset:auto 8px 8px;padding:8px 10px;background:#070c14c7;color:#fff;border-radius:8px;font-size:12px;text-align:center;pointer-events:none}.buddy-qr-status.is-error{background:#b42030eb}.buddy-qr-actions{display:flex;justify-content:flex-end;margin-top:14px}.buddy-qr-video-wrap{position:relative;width:100%;max-width:360px;margin:0 auto;aspect-ratio:1 / 1;background:#000;border-radius:12px;overflow:hidden}.buddy-qr-video-wrap video{width:100%;height:100%;object-fit:cover;display:block}.buddy-qr-scan-frame{position:absolute;inset:14%;border:2px solid rgba(255,255,255,.85);border-radius:14px;box-shadow:0 0 0 9999px #00000040;pointer-events:none}.profile-buddy-qr-btn svg{color:var(--text-dim)}.profile-buddy-qr-btn:hover svg{color:var(--text)}.profile-buddy-search-status{margin-top:10px;padding:14px;text-align:center;color:var(--text-dim);font-size:13px;background:var(--surface);border:1px dashed var(--border);border-radius:10px}.profile-buddy-search-results{list-style:none;margin:10px 0 0;padding:0;display:flex;flex-direction:column;gap:6px;max-height:360px;overflow-y:auto}.profile-buddies-section .profile-buddies-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.profile-buddies-col-h{margin:0 0 10px;font-size:13px;font-weight:600;color:var(--text-dim);text-transform:uppercase;letter-spacing:.06em;display:flex;align-items:baseline;gap:8px}.profile-buddies-count{color:var(--text);font-weight:700;font-size:14px;letter-spacing:0;text-transform:none}.profile-buddies-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:8px}.profile-buddy-row{display:grid;grid-template-columns:36px 1fr auto;align-items:center;gap:12px;padding:10px 12px;background:var(--surface);border:1px solid var(--border);border-radius:10px;cursor:pointer}.profile-buddy-row:hover{border-color:var(--accent, #3b82f6)}.profile-buddy-avatar{width:36px;height:36px;border-radius:50%;background:var(--surface2);color:var(--text);display:flex;align-items:center;justify-content:center;font-weight:700;font-size:14px;overflow:hidden}.profile-buddy-avatar img{width:100%;height:100%;object-fit:cover}.profile-buddy-avatar.profile-buddy-avatar--xs{width:20px;height:20px;font-size:11px;flex:0 0 20px}.profile-dive-row--tagged{cursor:pointer}.profile-dive-row--tagged:hover{border-color:var(--accent, #3b82f6)}.profile-tagged-attrib{display:flex;align-items:center;gap:8px;margin-top:8px;padding:6px 10px;border-radius:999px;background:var(--surface2);color:var(--text-muted, #888);font-size:12px;line-height:1.2;width:fit-content;max-width:100%;min-width:0}.profile-tagged-attrib strong{color:var(--text);font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.profile-tagged-attrib-text{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.profile-tagged-attrib-chev{flex:0 0 14px;opacity:.6}.profile-buddy-id{min-width:0}.profile-buddy-name{font-size:14px;font-weight:600;color:var(--text);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.profile-buddy-handle{font-size:12px;color:var(--text-dim);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.profile-buddy-chip{font-size:10px;font-weight:600;text-transform:uppercase;letter-spacing:.06em;padding:3px 8px;border-radius:999px;background:var(--surface2);color:var(--text-dim);border:1px solid var(--border);white-space:nowrap}.profile-buddy-chip--mutual{background:#22c55e1f;color:#4ade80;border-color:#22c55e59}.profile-buddy-chip--pending{background:#f59e0b1f;color:#fbbf24;border-color:#f59e0b59}.profile-buddy-chip--followback{background:#3b82f61f;color:var(--accent, #3b82f6);border-color:#3b82f659}.profile-empty-tile--small{padding:18px 12px;font-size:13px}@media (max-width: 640px){.profile-buddies-section .profile-buddies-grid{grid-template-columns:1fr}}.profile-page .profile-stats{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin-bottom:32px}.profile-stat-card{padding:16px;background:var(--surface);border:1px solid var(--border);border-radius:12px;text-align:center}.profile-stat-num{font-size:22px;font-weight:700;line-height:1.1}.profile-stat-num span{font-size:13px;font-weight:500;color:var(--text-dim);margin-left:2px}.profile-stat-lbl{margin-top:4px;font-size:11px;text-transform:uppercase;letter-spacing:.06em;color:var(--text-dim)}.profile-page .profile-section{margin-bottom:32px}.profile-page .profile-section-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:20px}.profile-page .profile-section-head h2{font-size:18px;font-weight:600;margin:0}.profile-section-actions{display:inline-flex;gap:8px;align-items:center}.profile-section-actions .btn-secondary,.profile-section-actions .btn-activate{display:inline-flex;align-items:center;gap:6px;padding:8px 10px}.profile-section-actions-label{display:none}.profile-page .profile-dives-section .profile-section-head{border-bottom:1px solid var(--border);margin-bottom:14px;padding-bottom:0;align-items:stretch;flex-wrap:wrap}.profile-tabs{display:inline-flex;gap:24px;align-items:stretch;flex:1 1 auto;min-width:0}.profile-tabs .profile-tab{appearance:none;background:transparent;border:0;border-bottom:2px solid transparent;color:var(--text-muted, #888);cursor:pointer;display:inline-flex;align-items:center;gap:8px;padding:12px 4px;margin-bottom:-1px;font:inherit;font-size:13px;font-weight:600;letter-spacing:.04em;text-transform:uppercase;transition:color .15s ease,border-color .15s ease}.profile-tabs .profile-tab:hover{color:var(--text)}.profile-tabs .profile-tab.is-active{color:var(--text);border-bottom-color:var(--text)}.profile-tabs .profile-tab svg{flex:0 0 14px;opacity:.85}.profile-tab-count{font-size:12px;font-weight:600;color:var(--text-muted, #888);letter-spacing:0;text-transform:none;padding:1px 7px;border-radius:999px;background:var(--surface2)}.profile-tabs .profile-tab.is-active .profile-tab-count{color:var(--text)}.profile-section-add{display:inline-flex;align-items:center;gap:6px}.profile-dives-filters{display:flex;flex-direction:column;gap:12px;margin:0 0 14px}.profile-dives-filters--collapsed{flex-direction:row;align-items:center;gap:8px;margin-bottom:12px}.profile-dives-filters-row{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.profile-filters-toggle{appearance:none;background:var(--surface2);border:1px solid var(--border);border-radius:999px;color:var(--text);cursor:pointer;display:inline-flex;align-items:center;gap:6px;padding:6px 12px;font:inherit;font-size:12px;font-weight:600;letter-spacing:.02em;transition:background .15s ease,border-color .15s ease}.profile-filters-toggle:hover{border-color:var(--text-muted, #888)}.profile-filters-toggle svg{flex:0 0 14px;opacity:.8}.profile-filters-clear{appearance:none;background:transparent;border:0;color:var(--text-muted, #888);cursor:pointer;font:inherit;font-size:12px;text-decoration:underline;padding:4px 6px}.profile-filters-clear:hover{color:var(--text)}.profile-dives-filters-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:10px 12px;padding:12px;background:var(--surface2);border:1px solid var(--border);border-radius:10px}.profile-filter{display:flex;flex-direction:column;gap:4px;min-width:0}.profile-filter>span{font-size:11px;font-weight:600;color:var(--text-muted, #888);letter-spacing:.04em;text-transform:uppercase}.profile-filter input,.profile-filter select{width:100%;background:var(--surface);border:1px solid var(--border);border-radius:6px;color:var(--text);font:inherit;font-size:13px;padding:6px 8px;box-sizing:border-box}.profile-filter input:focus,.profile-filter select:focus{outline:2px solid var(--accent, #5aa9e6);outline-offset:-1px;border-color:transparent}.profile-dives-filters-actions{display:flex;justify-content:flex-end;gap:8px}.profile-filter--wide{grid-column:1 / -1}.profile-buddy-picker{position:relative}.profile-buddy-picker-box{display:flex;flex-wrap:wrap;gap:4px;padding:4px 6px;min-height:32px;background:var(--surface);border:1px solid var(--border);border-radius:6px;align-items:center}.profile-buddy-picker-box:focus-within{outline:2px solid var(--accent, #5aa9e6);outline-offset:-1px;border-color:transparent}.profile-buddy-picker-chips{display:contents}.profile-buddy-pill{display:inline-flex;align-items:center;gap:4px;padding:2px 4px 2px 8px;border-radius:999px;background:var(--accent, #5aa9e6);color:#fff;font-size:12px;line-height:1}.profile-buddy-pill-x{appearance:none;background:#fff3;border:0;color:inherit;cursor:pointer;font-size:14px;line-height:1;width:18px;height:18px;border-radius:999px;padding:0;display:inline-flex;align-items:center;justify-content:center}.profile-buddy-pill-x:hover{background:#ffffff59}.profile-buddy-picker-input{flex:1 1 120px;min-width:100px;border:0;background:transparent;color:var(--text);font:inherit;font-size:13px;outline:none;padding:4px 2px}.profile-buddy-picker-results{position:absolute;z-index:20;top:calc(100% + 2px);left:0;right:0;max-height:240px;overflow-y:auto;background:var(--surface);border:1px solid var(--border);border-radius:6px;box-shadow:0 6px 18px #00000040;padding:4px}.profile-buddy-picker-row{appearance:none;background:transparent;border:0;color:var(--text);cursor:pointer;display:flex;align-items:baseline;gap:6px;padding:6px 8px;border-radius:4px;width:100%;text-align:left;font:inherit;font-size:13px}.profile-buddy-picker-row:hover{background:var(--surface2)}.profile-buddy-picker-label{font-weight:500}.profile-buddy-picker-sub{color:var(--text-muted, #888);font-size:12px}.profile-buddy-picker-empty,.profile-buddy-picker-loading{padding:8px 10px;color:var(--text-muted, #888);font-size:12px}.profile-abilities-list{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:6px}.profile-ability{font-size:12px;line-height:1;padding:6px 11px;border-radius:999px;background:var(--surface-2, rgba(127, 127, 127, .12));color:var(--text);border:1px solid var(--border);white-space:nowrap}.profile-cert-list{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:14px}.profile-cert-card{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:16px;padding:16px 18px;background:var(--surface);border:1px solid var(--border);border-radius:10px}.profile-cert-agency{width:56px;height:56px;border-radius:8px;display:flex;align-items:center;justify-content:center;font-weight:700;font-size:13px;letter-spacing:.05em;color:#fff;background:#333;text-transform:uppercase;text-align:center;line-height:1;padding:4px}.profile-cert-agency--padi{background:#003a70;color:#000}.profile-cert-agency--ssi{background:#00529b}.profile-cert-agency--tdi{background:#111;border:1px solid #444}.profile-cert-agency--sdi{background:#0a7eb4}.profile-cert-agency--gue{background:#2a7a3b}.profile-cert-agency--naui{background:#f1c40f;color:#111}.profile-cert-agency--cmas{background:#1f3a8a}.profile-cert-agency--iantd{background:#6a1b9a}.profile-cert-agency--raid{background:#c0392b}.profile-cert-agency--bsac{background:#036}.profile-cert-logo{width:100%;height:100%;object-fit:contain;border-radius:8px;background:#fff;padding:4px;box-sizing:border-box}.profile-cert-agency:has(.profile-cert-logo){background:#fff;padding:0}.profile-cert-agency:has(.profile-cert-logo) .profile-cert-agency-text{display:none}.profile-cert-tags{grid-column:2;margin-top:12px;display:flex;flex-wrap:wrap;gap:6px}.profile-cert-tag{font-size:11px;line-height:1;padding:5px 10px;border-radius:999px;background:var(--surface-2, rgba(127, 127, 127, .12));color:var(--text-dim);border:1px solid var(--border);white-space:nowrap}.profile-cert-limits{border:1px solid var(--border);border-radius:8px;padding:8px 10px 10px;margin:0}.profile-cert-limits>legend{padding:0 4px;font-size:12px;color:var(--text-dim);font-weight:600;text-transform:uppercase;letter-spacing:.04em}.profile-cert-limits-grid{display:flex;flex-wrap:wrap;gap:6px;margin-top:4px}.profile-cert-limit{position:relative;display:inline-flex;cursor:pointer;user-select:none}.profile-cert-limit input[type=checkbox]{position:absolute;opacity:0;width:0;height:0;pointer-events:none}.profile-cert-limit span{display:inline-block;padding:4px 11px;border-radius:999px;border:1px solid var(--border);font-size:12px;font-weight:500;line-height:1.4;color:var(--text-dim);background:transparent;transition:background .12s,color .12s,border-color .12s}.profile-cert-limit:has(input:checked) span{background:var(--accent);border-color:var(--accent);color:#fff}.profile-cert-limit:hover span{border-color:var(--accent);color:var(--text)}.profile-cert-limit:has(input:checked):hover span{color:#fff}.profile-cert-name{font-weight:600;line-height:1.25}.profile-cert-meta{margin-top:4px;font-size:12px;color:var(--text-dim);display:flex;flex-wrap:wrap;gap:4px 6px;align-items:center}.profile-cert-meta-instructor,.profile-cert-meta-shop{display:inline-flex;align-items:center;gap:4px}.profile-cert-meta-icon{flex-shrink:0;opacity:.85}.profile-cert-actions{display:inline-flex;gap:4px}.profile-icon-btn{width:32px;height:32px;border-radius:8px;border:1px solid var(--border);background:transparent;color:var(--text-dim);cursor:pointer;display:inline-flex;align-items:center;justify-content:center;text-decoration:none;transition:background .12s,color .12s}.profile-icon-btn:hover{background:var(--surface);color:var(--text)}.profile-icon-btn--danger:hover{background:#dc26261f;color:#dc2626;border-color:#dc2626}.profile-year+.profile-year{margin-top:18px}.profile-year-heading{font-size:13px;font-weight:600;color:var(--text-dim);text-transform:uppercase;letter-spacing:.08em;line-height:20px;margin:0;padding:8px 4px 12px;position:sticky;top:0;background:var(--bg);z-index:3}.profile-month+.profile-month{margin-top:14px}.profile-month-heading{font-size:12px;font-weight:600;color:var(--text-dim);text-transform:uppercase;letter-spacing:.06em;line-height:18px;margin:-1px 0 6px;padding:6px 4px 8px;position:sticky;top:39px;background:var(--bg);z-index:2}.profile-dive-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:14px}.profile-dive-row{display:grid;grid-template-columns:64px 1fr auto;gap:22px;align-items:center;padding:20px 22px;background:var(--surface);border:1px solid var(--border);border-radius:10px;cursor:pointer}.profile-dive-row:hover{border-color:var(--accent, #3b82f6)}.profile-dive-date{text-align:center;color:var(--text-dim);line-height:1.1}.profile-dive-day{font-size:22px;font-weight:700;color:var(--text)}.profile-dive-mon{font-size:11px;text-transform:uppercase;letter-spacing:.06em;margin-top:2px}.profile-dive-time{font-size:11px;margin-top:4px;opacity:.8}.profile-dive-main{min-width:0}.profile-dive-title{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.profile-dive-title strong{font-size:15px;font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:100%}.profile-dive-sub{margin-top:2px;font-size:12px;color:var(--text-dim)}.profile-dive-stats{margin-top:16px;display:flex;gap:26px;flex-wrap:wrap}.profile-dive-actions{display:inline-flex;gap:6px;align-items:center}.profile-empty{text-align:center;padding:80px 20px;color:var(--text-dim)}.profile-empty h3{color:var(--text);margin:0 0 8px}.profile-empty-tile{padding:32px 16px;text-align:center;background:var(--surface);border:1px dashed var(--border);border-radius:12px;color:var(--text-dim)}.profile-spinner{width:28px;height:28px;border-radius:50%;border:3px solid var(--border);border-top-color:var(--accent, #4a9eff);margin:0 auto 12px;animation:profile-spin .7s linear infinite}@keyframes profile-spin{to{transform:rotate(360deg)}}.profile-dives-more{display:flex;align-items:center;justify-content:center;gap:10px;padding:16px 0 4px;color:var(--text-muted, #888);font-size:14px}.profile-spinner.profile-spinner--inline{width:18px;height:18px;border-width:2px;margin:0}.dive-detail-header{margin-bottom:12px;padding-right:72px;position:relative}.dive-detail-header .dive-detail-edit{position:absolute;top:0;right:36px}.dive-detail-header .modal-title{margin:0 0 4px}.dive-detail-meta{display:flex;flex-wrap:wrap;gap:4px 6px;align-items:center;font-size:13px;color:var(--text-dim)}.dive-detail-stats{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:16px}.dive-detail-stats .dive-stat{flex:1 1 100px;min-width:100px;background:var(--surface-2, rgba(127, 127, 127, .08));border-radius:8px;padding:10px 12px;display:grid;grid-template-columns:auto auto;grid-template-rows:auto auto;column-gap:4px}.dive-detail-stats .dive-stat-val{font-weight:700;font-size:22px;line-height:1}.dive-detail-stats .dive-stat-unit{align-self:end;font-size:12px;color:var(--text-dim)}.dive-detail-stats .dive-stat-lbl{grid-column:1 / -1;font-size:11px;color:var(--text-dim);text-transform:uppercase;letter-spacing:.04em;margin-top:2px}.dive-detail-chart{margin:12px 0;background:var(--surface-2, rgba(127, 127, 127, .06));border-radius:8px;padding:8px;overflow-x:auto}.dive-detail-loading,.dive-detail-empty{text-align:center;padding:40px 20px;color:var(--text-dim);font-size:14px}.dive-chart{width:100%;height:auto;display:block}.dive-chart-grid{stroke:var(--border);stroke-width:.5;stroke-dasharray:2 3;opacity:.6}.dive-chart-axis{fill:var(--text-dim);font-size:10px;font-family:inherit}.dive-chart-area{fill:var(--accent, #4a9eff);fill-opacity:.1;stroke:none}.dive-chart-temp{fill:none;stroke:#f59e0b;stroke-width:1.2;stroke-dasharray:4 3;opacity:.75}.dive-chart-cursor-v,.dive-chart-cursor-h{stroke:#ffffff8c;stroke-width:1;stroke-dasharray:3 3}.dive-chart-cursor-bg{fill:#0f141eeb;stroke:#ffffff24;stroke-width:1}.dive-chart-cursor-dot{stroke:#ffffffd9;stroke-width:1.5}.dive-chart-cursor-label{fill:#e2e8f0;font-size:11px;font-family:ui-monospace,Cascadia Code,Source Code Pro,monospace;dominant-baseline:auto}.dive-chart-hit{fill:none}.dive-gas-swatch{display:inline-block;width:10px;height:10px;border-radius:50%;flex-shrink:0;margin-right:2px}.dive-gas-temp-swatch{flex-shrink:0;margin-right:2px;align-self:center}.dive-detail-gases,.dive-detail-switches{margin-top:16px}.dive-detail-gases h4,.dive-detail-switches h4{margin:0 0 6px;font-size:12px;text-transform:uppercase;letter-spacing:.04em;color:var(--text-dim)}.dive-gas-list{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:6px}.dive-gas-list li{display:inline-flex;align-items:center;gap:6px;background:var(--surface-2, rgba(127, 127, 127, .08));padding:4px 10px;border-radius:999px;font-size:13px}.dive-gas-name{font-weight:600}.dive-gas-mix{color:var(--text-dim);font-size:12px}.dive-switch-list{list-style:none;margin:0;padding:0;display:grid;gap:4px}.dive-switch-list li{display:grid;grid-template-columns:64px 72px auto 1fr;gap:6px;align-items:baseline;font-size:13px;padding:4px 0;border-bottom:1px solid var(--border)}.dive-switch-list li:last-child{border-bottom:none}.dive-switch-time{font-variant-numeric:tabular-nums;color:var(--text-dim)}.dive-switch-depth{font-variant-numeric:tabular-nums}.dive-switch-arrow{color:var(--text-dim)}.dive-switch-mix{font-weight:600}@media (max-width: 600px){.profile-page .profile-header{gap:14px}.profile-avatar{width:72px;height:72px;font-size:28px}.profile-identity h1{font-size:22px}.profile-page .profile-stats{grid-template-columns:repeat(2,1fr);gap:8px}.profile-stat-card{padding:12px 8px}.profile-stat-num{font-size:18px}.profile-cert-list{grid-template-columns:1fr}.profile-cert-card{gap:12px;padding:14px}.profile-dive-row{grid-template-columns:44px 1fr;grid-template-rows:auto auto;column-gap:14px;row-gap:10px;padding:14px;align-items:start}.profile-dive-date{text-align:left;padding-top:2px}.profile-dive-day{font-size:20px}.profile-dive-mon,.profile-dive-time{font-size:10px}.profile-dive-title strong{font-size:14px;white-space:normal}.dive-log-row-meta{gap:6px;margin-top:8px}.dive-log-row-tag{padding:2px 7px}.dive-log-row-tag--site,.dive-log-row-tag--coord{padding:2px 8px;gap:5px}.profile-dive-stats{margin-top:12px;gap:16px}.profile-dive-actions{grid-column:1 / -1;justify-self:end;flex-wrap:wrap;margin-top:4px}}.ccr-checklist-progress{display:flex;align-items:center;gap:10px}.ccr-checklist-bar{flex:1;height:6px;background:#ffffff14;border-radius:999px;overflow:hidden;max-width:320px}.ccr-checklist-bar-fill{height:100%;background:var(--accent, #3b82f6);transition:width .2s ease}.ccr-checklist-count{font-size:12px;color:var(--muted, #9ca3af);font-variant-numeric:tabular-nums}.ccr-checklist-section-count{font-size:12px;color:var(--muted, #9ca3af);font-variant-numeric:tabular-nums;margin-left:auto}.ccr-checklist-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:6px}.ccr-checklist-item label{display:flex;align-items:flex-start;gap:10px;padding:10px 12px;border:1px solid var(--border, rgba(255, 255, 255, .08));border-radius:var(--radius, 8px);cursor:pointer;transition:background .12s ease,border-color .12s ease}.ccr-checklist-item label:hover{background:#ffffff08}.ccr-checklist-item input[type=checkbox]{margin-top:2px;width:16px;height:16px;flex-shrink:0;accent-color:var(--accent, #3b82f6);cursor:pointer}.ccr-checklist-text{flex:1;font-size:14px;line-height:1.4}.ccr-checklist-hint{display:block;margin-top:4px;font-size:12px;color:var(--muted, #9ca3af);line-height:1.4}.ccr-checklist-item-done .ccr-checklist-text{text-decoration:line-through;color:var(--muted, #9ca3af)}.ccr-checklist-item-done label{background:#3b82f60f;border-color:#3b82f640}.profile-page .profile-signin{align-self:center;line-height:1;display:inline-flex;align-items:center;height:32px}.account-menu-row{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:8px 12px 4px}.account-menu-row-label{font-size:12px;color:var(--text-dim);text-transform:uppercase;letter-spacing:.04em}.account-menu-row-toggle{margin:0}.profile-page .profile-theme-toggle,.profile-page .profile-account-btn{align-self:center}.leaderboard-shell{max-width:880px;margin:0 auto;padding:0 16px 56px}.leaderboard-page{margin-top:18px}.leaderboard-head h1{margin:0 0 6px;font-size:28px;letter-spacing:-.01em}.leaderboard-sub{margin:0 0 18px;color:var(--text-dim);font-size:14px}.leaderboard-tabs{display:flex;flex-wrap:wrap;gap:6px;border-bottom:1px solid var(--border);margin-bottom:14px;padding-bottom:6px}.leaderboard-tab{background:transparent;border:1px solid transparent;color:var(--text-dim);padding:8px 12px;border-radius:999px;font:inherit;font-size:13px;font-weight:500;cursor:pointer;line-height:1;transition:background .15s ease,color .15s ease,border-color .15s ease}.leaderboard-tab:hover{color:var(--text);background:var(--surface)}.leaderboard-tab.is-active{background:var(--accent, #2b7cff);color:#fff;border-color:var(--accent, #2b7cff)}.leaderboard-tab-long{display:none}@media (min-width: 640px){.leaderboard-tab-short{display:none}.leaderboard-tab-long{display:inline}}.leaderboard-status{padding:28px 14px;text-align:center;color:var(--text-dim);background:var(--surface);border:1px dashed var(--border);border-radius:12px}.leaderboard-status--error{border-color:var(--danger, #b04646);color:var(--danger, #b04646)}.leaderboard-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:6px}.leaderboard-row{display:grid;grid-template-columns:44px 1fr auto auto;align-items:center;gap:12px;padding:10px 12px;border:1px solid var(--border);border-radius:12px;background:var(--surface);transition:background .15s ease}.leaderboard-row:hover{background:var(--surface-hover, var(--surface))}.leaderboard-row.is-self{border-color:var(--accent, #2b7cff);box-shadow:0 0 0 1px var(--accent, #2b7cff) inset}.leaderboard-rank{display:flex;align-items:center;justify-content:center;font-variant-numeric:tabular-nums;font-weight:600;color:var(--text-dim);font-size:16px}.leaderboard-medal{font-size:22px;line-height:1}.leaderboard-rank-num{min-width:28px;text-align:center}.leaderboard-id{display:flex;align-items:center;gap:12px;text-decoration:none;color:inherit;min-width:0}.leaderboard-avatar{width:38px;height:38px;border-radius:50%;background:var(--surface-2, var(--border));overflow:hidden;display:flex;align-items:center;justify-content:center;color:var(--text);font-weight:600;font-size:15px;flex-shrink:0}.leaderboard-avatar img{width:100%;height:100%;object-fit:cover}.leaderboard-name-wrap{min-width:0}.leaderboard-name{font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.leaderboard-handle{font-size:12px;color:var(--text-dim);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.leaderboard-score{font-variant-numeric:tabular-nums;font-weight:600;font-size:14px;white-space:nowrap}.leaderboard-actions{display:flex;align-items:center;justify-content:flex-end;min-width:32px}.leaderboard-you{font-size:11px;color:var(--text-dim);text-transform:uppercase;letter-spacing:.06em}.profile-leaderboard-btn svg{color:var(--text-dim)}.profile-leaderboard-btn:hover svg{color:var(--text)}
