/* app-shell: the workspace-only styles carved out of public-shell so the
   home page stops shipping them (~142KB of a 180KB file was app-only).
   Loaded by public/app.html only, and always AFTER public-shell - the
   rules here consume the shared :root tokens that file defines. Regions
   are in their original public-shell order, so relative cascade within
   this file is unchanged. */
#theme-fade-overlay {
  position: fixed; inset: 0; z-index: 2147483000;
  background: var(--bg); opacity: 0; pointer-events: none;
  transition: opacity 0.2s ease;
}
#theme-fade-overlay.theme-fade--on { opacity: 1; pointer-events: auto; }

#lang-fade-overlay {
  position: fixed; inset: 0; z-index: 2147483000;
  background: var(--bg); opacity: 0; pointer-events: none;
  display: flex; align-items: center; justify-content: center;
  transition: opacity 0.2s ease;
}
#lang-fade-overlay.lang-fade--on { opacity: 1; pointer-events: auto; }
#lang-fade-overlay .lfx-row { display: flex; align-items: center; gap: 26px; }
#lang-fade-overlay .lfx-token { font-family: var(--sans, sans-serif); font-weight: 700; font-size: 52px; line-height: 1; color: var(--text); opacity: 0; }
#lang-fade-overlay .lfx-arrow { font-family: var(--sans, sans-serif); font-weight: 700; font-size: 34px; line-height: 1; letter-spacing: -6px; color: var(--gold); opacity: 0; }
#lang-fade-overlay.lang-fade--on .lfx-from  { animation: langTokenIn 0.5s cubic-bezier(.2,.7,.2,1) both; }
#lang-fade-overlay.lang-fade--on .lfx-arrow { animation: langArrowIn 0.5s ease both 0.12s; }
#lang-fade-overlay.lang-fade--on .lfx-to    { animation: langTokenIn 0.5s cubic-bezier(.2,.7,.2,1) both 0.22s; }
@keyframes langTokenIn { 0% { opacity: 0; transform: translateY(8px) scale(0.86); } 100% { opacity: 1; transform: none; } }
@keyframes langArrowIn { 0% { opacity: 0; transform: translateX(-10px); } 55% { opacity: 1; } 100% { opacity: 0.9; transform: translateX(0); } }
#currency-flag-overlay {
  position: fixed; inset: 0; z-index: 2147483000;
  background: var(--bg); opacity: 0; pointer-events: none;
  display: flex; align-items: center; justify-content: center;
  transition: opacity 0.2s ease;
}
#currency-flag-overlay.currency-flag--on { opacity: 1; pointer-events: auto; }
#currency-flag-overlay .cfx-row { display: flex; align-items: center; gap: 26px; }
#currency-flag-overlay .cfx-flag {
  line-height: 1; opacity: 0;
  filter: drop-shadow(0 6px 18px rgba(0,0,0,0.45));
}
#currency-flag-overlay .cfx-flag svg {
  display: block; width: 64px; height: auto;
  border-radius: 4px; overflow: hidden;
  border: 1px solid rgba(255,255,255,0.12);
}
#currency-flag-overlay .cfx-arrow {
  font-size: 34px; line-height: 1; color: var(--gold); opacity: 0;
  font-family: var(--sans, sans-serif); font-weight: 700;
}
#currency-flag-overlay.currency-flag--on .cfx-from  { animation: cfxFlagIn 0.5s cubic-bezier(.2,.7,.2,1) both; }
#currency-flag-overlay.currency-flag--on .cfx-arrow { animation: cfxArrowIn 0.5s ease both 0.12s; }
#currency-flag-overlay.currency-flag--on .cfx-to    { animation: cfxFlagIn 0.5s cubic-bezier(.2,.7,.2,1) both 0.22s; }
@keyframes cfxFlagIn  { 0% { opacity: 0; transform: translateY(8px) scale(0.86); } 100% { opacity: 1; transform: none; } }
@keyframes cfxArrowIn { 0% { opacity: 0; transform: translateX(-10px); } 55% { opacity: 1; } 100% { opacity: 0.9; transform: translateX(0); } }
@media (prefers-reduced-motion: reduce) {
  #currency-flag-overlay, #currency-flag-overlay .cfx-flag, #currency-flag-overlay .cfx-arrow { transition: none; animation: none; }
}
.dash-header-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.dash-top-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.dash-top-actions #journal-refresh-btn { height: 32px; }
.be-anchor { position: relative; display: inline-flex; }
.be-chip {
  display: inline-flex; align-items: center; gap: 5px;
  height: 32px; padding: 0 11px;
  background: none; border: 1px solid var(--border);
  border-radius: 3px; cursor: pointer; color: var(--muted);
  font-family: var(--sans, sans-serif); font-size: 11px; font-weight: 600;
  letter-spacing: 0.04em; white-space: nowrap; flex-shrink: 0;
  transition: color 0.15s, border-color 0.15s;
}
.be-chip:hover { color: var(--text); border-color: var(--muted); }
.be-chip.be-on { border-color: color-mix(in srgb, var(--gold) 55%, var(--border)); }
.be-chip .be-chip-val { font-weight: 700; }
.be-chip.be-on .be-chip-val { color: var(--gold); }
.be-pop {
  position: absolute; top: calc(100% + 8px); right: 0; z-index: 1500;
  width: 256px; padding: 14px; background: var(--surface); border: 1px solid var(--border);
  border-radius: 6px; box-shadow: 0 12px 32px rgba(0,0,0,0.4);
  display: none; flex-direction: column; gap: 12px;
}
.be-pop.be-open { display: flex; }
.be-pop-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
/* The pre-trade gate switch, in the Playbook section where the checklist is
   edited. Same shape as .be-pop-row so the two settings read as one family. */
.psc-gate-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--border); }
.psc-gate-label { font-family: var(--sans); font-size: 12px; color: var(--muted); line-height: 1.35; }
.psc-gate-row .be-switch[disabled] { opacity: .55; cursor: not-allowed; }
.be-pop-label { font-family: var(--sans); font-size: 12px; font-weight: 600; color: var(--text); letter-spacing: 0.02em; }
.be-switch { position: relative; width: 40px; height: 22px; flex-shrink: 0; border: 1px solid var(--border); border-radius: 999px; background: var(--bg); cursor: pointer; transition: background 0.15s, border-color 0.15s; }
.be-switch::after { content: ''; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 999px; background: var(--muted); transition: transform 0.15s, background 0.15s; }
.be-switch.be-switch-on { background: color-mix(in srgb, var(--gold) 30%, var(--bg)); border-color: var(--gold); }
.be-switch.be-switch-on::after { transform: translateX(18px); background: var(--gold); }
.be-input-wrap { display: inline-flex; align-items: center; gap: 4px; border: 1px solid var(--border); border-radius: 3px; padding: 6px 8px; background: var(--bg); }
.be-input-wrap .be-cur { color: var(--gold); font-weight: 700; font-size: 13px; line-height: 1; }
.be-input { width: 62px; border: none; background: none; color: var(--text); font-family: var(--sans); font-size: 13px; outline: none; -moz-appearance: textfield; }
.be-input::-webkit-outer-spin-button, .be-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.be-hint { font-family: var(--sans); font-size: 11px; line-height: 1.5; color: var(--muted); }
@media (prefers-reduced-motion: reduce) { .be-chip, .be-switch, .be-switch::after { transition: none; } }
#resend-verification-email:disabled {
  background: color-mix(in srgb, var(--text) 84%, var(--gold) 16%);
  color: var(--bg);
  border-color: color-mix(in srgb, var(--text) 70%, var(--gold) 30%);
  opacity: 0.9;
  filter: none;
  cursor: not-allowed;
}
#resend-verification-email:disabled span { color: inherit; }


html.a2-legacy-reveal-ready .reveal { opacity: 0; transition: opacity 0.7s ease-out; }
html.a2-legacy-reveal-ready .reveal.in,
html.a2-legacy-reveal-ready body.a2-v25-ready .page:not([hidden]) .reveal { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  html.a2-legacy-reveal-ready .reveal { opacity: 1 !important; transition: none !important; }
}
.mobile-pts-banner {
  display: none;
}
@media (max-width: 767px) {
  .mobile-pts-banner {
    display: flex; align-items: center; justify-content: space-between;
    padding: 12px 16px; margin-bottom: 20px;
    background: var(--surface); border: 1px solid var(--border);
    border-left: 3px solid var(--gold); border-radius: 4px;
  }
  .mobile-pts-banner[hidden] { display: none !important; }
  .mobile-pts-banner-label {
    font-family: var(--sans); font-size: 11px; font-weight: 600;
    letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted);
  }
  .mobile-pts-banner-value {
    font-family: var(--serif); font-size: 1.75rem;
    color: var(--gold); line-height: 1;
  }
  .mobile-pts-banner-suffix {
    font-family: var(--sans); font-size: 11px; color: var(--muted);
    margin-top: 2px;
  }
}
.faq-header { margin-bottom: 56px; max-width: 720px; }



.rewards-layout {
  display: grid; gap: 24px; grid-template-columns: 1fr; padding: 48px 0;
}
@media (min-width: 1024px) { .rewards-layout { grid-template-columns: 260px 1fr; gap: 40px; } }

.points-sidebar {
  background: var(--surface); border: 1px solid var(--border); border-radius: 4px;
  padding: 32px 24px;
  display: flex; flex-direction: column; align-items: center;
  gap: 14px; text-align: center; align-self: start;
}
@media (min-width: 1024px) {
  .points-sidebar { position: sticky; top: calc(var(--nav-h) + 16px); }
}
.points-icon { width: 44px; height: 44px; color: var(--muted); }
.points-label {
  font-family: var(--sans); font-size: 10px; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted);
}
.points-value { font-family: var(--serif); font-size: 3rem; color: var(--gold); font-weight: 400; line-height: 1; }


.pts-history-section {
  margin-top: 28px; padding-top: 20px;
  border-top: 1px solid var(--border);
}
.pts-history-label {
  font-family: var(--sans); font-size: 10px; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted);
  margin-bottom: 12px;
}
.pts-history-list {
  display: flex; flex-direction: column; gap: 8px;
  max-height: 220px; overflow-y: auto;
}
.pts-history-item {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  font-family: var(--sans); font-size: 12px;
}
.pts-history-amount {
  font-family: var(--serif); font-size: 1rem;
  min-width: 48px; text-align: right; flex: 0 0 auto;
}
.pts-history-amount.pos { color: var(--green); }
.pts-history-amount.neg { color: var(--red); }
.pts-history-desc { color: var(--text); flex: 1 1 120px; min-width: 0; overflow-wrap: anywhere; }
.pts-history-date { color: var(--muted); font-size: 11px; white-space: nowrap; }
.pts-history-note{color:var(--gold);font-size:11px;width:100%;padding-left:56px;overflow-wrap:anywhere}
.pts-history-empty { color: var(--muted); font-size: 12px; font-style: normal; }


.redemption-status-section {
  margin-top: 32px;
}
.redemption-status-list {
  display: flex; flex-direction: column; gap: 10px; margin-top: 12px;
}
.redemption-status-item {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 4px;
}
.redemption-status-badge {
  font-family: var(--sans); font-size: 10px; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  padding: 3px 8px; border-radius: 2px; white-space: nowrap;
}
.redemption-status-badge.pending  { background: rgba(201,168,76,0.12); color: var(--gold); border: 1px solid rgba(201,168,76,0.3); }
.redemption-status-badge.fulfilled { background: rgba(0,200,150,0.1); color: var(--green); border: 1px solid rgba(0,200,150,0.3); }
.redemption-status-badge.rejected { background: rgba(255,77,77,0.08); color: var(--red); border: 1px solid rgba(255,77,77,0.2); }
.redemption-status-info { flex: 1; }
.redemption-status-name { font-family: var(--sans); font-size: 13px; color: var(--text); font-weight: 500; }
.redemption-status-meta { font-family: var(--sans); font-size: 11px; color: var(--muted); margin-top: 2px; }
.redemption-status-note{font-family:var(--sans);font-size:11px;color:var(--gold);margin-top:4px}
.redemption-status-empty { color: var(--muted); font-size: 12px; font-style: normal; margin-top: 8px; }
.rewards-data-status {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  margin: 20px 0 0; padding: 13px 15px; border: 1px solid rgba(201,168,76,.34);
  border-radius: 4px; background: rgba(201,168,76,.08); color: var(--text);
  font-size: .84rem; line-height: 1.55;
}
.rewards-data-status[hidden] { display: none; }
.rewards-data-status[data-state="error"] { border-color: rgba(255,77,77,.32); background: rgba(255,77,77,.06); }
.rewards-data-status-copy { flex: 1; min-width: 0; }
@media (max-width: 639px) {
  .rewards-data-status { align-items: stretch; flex-direction: column; }
  .rewards-data-status .btn { width: 100%; justify-content: center; }
}
.points-suffix {
  font-family: var(--sans); font-size: 10.5px; font-weight: 500;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted);
}
.points-divider { width: 100%; height: 1px; background: var(--border); margin: 4px 0; }
.points-hint { font-size: 0.8125rem; color: var(--muted); line-height: 1.5; }

.rewards-main > section + section { margin-top: 64px; }
.rewards-intro { margin-bottom: 40px; }
.rewards-intro h1 { margin-bottom: 16px; }


.step {
  background: var(--surface); padding: 24px 22px;
  display: flex; flex-direction: column; gap: 10px;
  min-height: 170px;
}


.shop-section h2 { margin-bottom: 12px; }
.shop-section .muted-intro { margin-top: 0; margin-bottom: 24px; font-size: 0.9rem; color: var(--muted); }
.shop-grid { display: grid; gap: 12px; grid-template-columns: 1fr; margin-top: 24px; }
@media (min-width: 640px)  { .shop-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .shop-grid { grid-template-columns: repeat(4, 1fr); } }


.redeem-section { margin: 32px 0 48px; }
.redeem-card {
  background: var(--surface-raised);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 36px 40px;
  position: relative;
  overflow: hidden;
}
.redeem-card::before {
  content: '';
  position: absolute; left: 0; top: 0; bottom: 0;
  width: 2px;
  background: var(--gold);
}
.redeem-header { margin-bottom: 28px; max-width: 640px; }
.gold-text { color: var(--gold); }
.redeem-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  color: var(--text);
  line-height: 1.2;
  margin-top: 10px;
  margin-bottom: 10px;
}
.redeem-sub {
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.65;
}
.redeem-form { display: flex; flex-direction: column; gap: 20px; }
.redeem-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
@media (min-width: 680px) {
  .redeem-row { grid-template-columns: 1fr 1fr; }
}
.redeem-field { display: flex; flex-direction: column; gap: 8px; }
.redeem-label {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.redeem-field input[type="text"],
.redeem-field input[type="number"],
.redeem-field select,
.redeem-field textarea {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 4px;
  padding: 12px 14px;
  font-family: var(--sans);
  font-size: 0.9375rem;
  transition: border-color 0.15s;
  font-family: inherit;
  resize: vertical;
  width: 100%;
  box-sizing: border-box;
}
.redeem-field select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23928f89'><path d='M4 6l4 4 4-4z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
  cursor: pointer;
}
.redeem-field select option {
  background: var(--surface);
  color: var(--text);
}
.redeem-field input:focus,
.redeem-field select:focus,
.redeem-field textarea:focus {
  outline: none;
  border-color: var(--text);
}
.redeem-field input::placeholder,
.redeem-field textarea::placeholder {
  color: var(--faint);
}
.redeem-footnote {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.5;
}
.redeem-info-icon {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  margin-top: 2px;
}
.btn-redeem {
  align-self: flex-start;
  min-width: 260px;
}
.redeem-success {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  background: rgba(0, 200, 150, 0.08);
  border: 1px solid var(--green);
  border-radius: 4px;
  color: var(--green);
  font-size: 0.9375rem;
}
.redeem-success .icon { width: 18px; height: 18px; flex-shrink: 0; }
.redeem-error {
  padding: 14px 16px;
  background: rgba(255, 77, 77, 0.08);
  border: 1px solid var(--red);
  border-radius: 4px;
  color: var(--red);
  font-size: 0.9375rem;
}
.shop-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 4px;
  padding: 16px;
  display: flex; flex-direction: column; gap: 8px;
  min-height: 150px; transition: border-color 0.2s;
}
.shop-card:hover { border-color: var(--muted); }
.shop-card-firm {
  font-family: var(--sans); font-size: 10.5px; font-weight: 500;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted);
}
.shop-card-name { font-family: var(--serif); font-size: 1.15rem; color: var(--text); font-weight: 400; line-height: 1.1; }
.shop-card-pts { font-family: var(--serif); font-size: 1.9rem; color: var(--gold); font-weight: 400; line-height: 1; margin-top: auto; }
.shop-card-pts-label {
  font-family: var(--sans); font-size: 9.5px; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-top: -2px;
}
.shop-card-cta { margin-top: 10px; width: 100%; }
.shop-tabs {
  display: flex; flex-wrap: nowrap; gap: 8px;
  margin: 4px 0 16px; padding-bottom: 4px;
  overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none;
}
.shop-tabs::-webkit-scrollbar { display: none; }
.shop-tab {
  flex: 0 0 auto; white-space: nowrap; cursor: pointer;
  min-height: 44px; padding: 8px 14px; border-radius: 999px;
  border: 1px solid var(--border); background: transparent;
  font-family: var(--sans); font-size: 12px; font-weight: 500;
  letter-spacing: 0.04em; color: var(--muted);
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}
.shop-tab:hover { color: var(--text); border-color: var(--muted); }
.shop-tab.active { color: var(--gold); border-color: var(--gold); background: rgba(201,168,76,.10); }
.shop-card[hidden] { display: none; }


.trade-modal-overlay {
  position: fixed; inset: 0; z-index: 800;
  background: rgba(0,0,0,0.72); backdrop-filter: blur(3px);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  opacity: 0; pointer-events: none;
  transition: opacity 0.18s;
}
.trade-modal-overlay.open { opacity: 1; pointer-events: all; }
.trade-modal {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 4px; width: 100%; max-width: 660px;
  max-height: 90vh; display: flex; flex-direction: column;
  transform: translateY(14px);
  transition: transform 0.18s;
}
.trade-modal-overlay.open .trade-modal { transform: translateY(0); }
.trade-modal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 22px; border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.trade-modal-title {
  font-family: var(--serif); font-size: 1.2rem; font-weight: 400; color: var(--text);
}
.trade-modal-close {
  background: none; border: 1px solid var(--border); border-radius: 3px;
  color: var(--muted); cursor: pointer; padding: 4px 9px; font-size: 16px; line-height: 1;
  transition: color 0.15s, border-color 0.15s;
}
.trade-modal-close:hover { color: var(--text); border-color: var(--muted); }
.trade-modal-body { overflow-y: auto; padding: 22px; flex: 1; }


.dash-top-row {
  display: flex; align-items: flex-start; justify-content: space-between;
  margin-bottom: 22px; gap: 16px; flex-wrap: wrap;
}
.btn-log-trade {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 20px; background: var(--gold); color: #0a0a09;
  border: none; border-radius: 3px; cursor: pointer;
  font-family: var(--sans); font-size: 12px; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  transition: opacity 0.15s; flex-shrink: 0;
}
.btn-log-trade:hover { opacity: 0.88; }
html.light .btn-log-trade { color: #1a1a17; }


.modal-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: var(--overlay-bg);
  display: none; align-items: center; justify-content: center;
  padding: 20px;
}
.modal-overlay.open { display: flex; }
.modal {
  background: var(--bg); border: 1px solid var(--border); border-radius: 4px;
  width: 100%; max-width: 520px;
  max-height: 92vh; overflow-y: auto; position: relative;
}
.modal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 28px; border-bottom: 1px solid var(--border);
}
.modal-title { font-family: var(--serif); font-size: 1.5rem; color: var(--text); font-weight: 400; }
.modal-close {
  width: 36px; height: 36px;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--muted); border: 1px solid var(--border); border-radius: 3px;
}
.modal-close:hover { color: var(--text); border-color: var(--muted); }
.modal-body { padding: 24px 28px 28px; }


.full-restore-modal { max-width: 640px; }
.full-restore-copy { margin: 0; color: var(--muted); line-height: 1.6; }
.full-restore-options { margin: 18px 0; padding: 0; border: 0; display: grid; gap: 10px; }
.full-restore-options legend { margin-bottom: 10px; color: var(--text); font-weight: 600; }
.full-restore-options label { display: flex; align-items: flex-start; gap: 9px; color: var(--text); }
.full-restore-options label small { display: block; margin-top: 2px; color: var(--muted); }
.full-restore-counts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.full-restore-counts > div { padding: 14px; border: 1px solid var(--border); border-radius: 3px; background: var(--surface); }
.full-restore-counts span, .full-restore-counts strong { display: block; }
.full-restore-counts span { color: var(--muted); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em; }
.full-restore-counts strong { margin-top: 6px; color: var(--text); font-family: var(--serif); font-size: 1.5rem; }
#full-restore-warning { min-height: 1.5em; margin: 16px 0 0; color: var(--gold); line-height: 1.5; }
.full-restore-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 20px; }
@media (max-width: 519px) {
  .full-restore-counts { grid-template-columns: 1fr; }
  .full-restore-actions { align-items: stretch; flex-direction: column-reverse; }
}

.form-grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (max-width: 519px) { .form-grid.two, .dash-sidebar .form-grid.two { grid-template-columns: 1fr; } }
@media (min-width: 520px) { .form-grid.two { grid-template-columns: 1fr 1fr; } }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field-label {
  font-family: var(--sans); font-size: 10.5px; font-weight: 500;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted);
  display: flex; align-items: center; gap: 4px; min-height: 18px;
}
.field-label .auto-tag { text-transform: none; letter-spacing: 0; color: var(--faint); font-weight: 400; font-size: 10px; }
.form-submit-row { display: flex; gap: 12px; margin-top: 24px; flex-wrap: wrap; }
.form-submit-row .btn { flex: 1; min-width: 160px; }

.form-success {
  text-align: center; padding: 32px 16px;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
}
.form-success .icon { width: 36px; height: 36px; color: var(--muted); }
.form-success-title { font-family: var(--serif); font-size: 1.5rem; color: var(--text); font-weight: 400; }
.form-success-body  { font-size: 0.9rem; color: var(--muted); line-height: 1.6; }


.segmented {
  display: flex; border: 1px solid var(--border);
  border-radius: 3px; overflow: hidden;
}
.seg-btn {
  flex: 1; padding: 10px 14px;
  font-family: var(--sans); font-size: 10.5px; font-weight: 500;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted);
  border-right: 1px solid var(--border);
  background: transparent; transition: background 0.15s, color 0.15s;
}
.seg-btn:last-child { border-right: 0; }
.seg-btn.selected { background: var(--text); color: var(--bg); }
.seg-btn:hover:not(.selected) { color: var(--text); }


.checkbox-grid { display: grid; gap: 8px; grid-template-columns: repeat(2, 1fr); }
.chk {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 12px; border: 1px solid var(--border); border-radius: 3px;
  font-size: 0.8rem; color: var(--muted); cursor: pointer;
  user-select: none; background: var(--surface);
}
.chk input { accent-color: var(--text); width: 13px; height: 13px; }
.chk.checked { color: var(--text); border-color: var(--muted); }


.stars { display: inline-flex; gap: 4px; }
.star {
  width: 22px; height: 22px; padding: 0;
  color: var(--faint); transition: color 0.15s;
}
.star svg { width: 100%; height: 100%; display: block; stroke: currentColor; fill: none; stroke-width: 1.5; }
.star.on { color: var(--text); }
.star.on svg { fill: currentColor; }


.dash-banner {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 4px; padding: 14px 18px; margin-bottom: 24px;
  flex-wrap: wrap;
}
.dash-banner-text { font-size: 0.85rem; color: var(--muted); }
.dash-banner-actions { display: flex; gap: 8px; flex-shrink: 0; }

.dash-header { margin-bottom: 28px; }
.dash-header h1 { margin-bottom: 12px; }


.dash-preview-banner {
  background: var(--surface-raised);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 28px 32px;
  margin-bottom: 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
  overflow: hidden;
}
.dash-preview-banner::before {
  content: '';
  position: absolute; left: 0; top: 0; bottom: 0;
  width: 2px;
  background: var(--gold);
}
@media (min-width: 720px) {
  .dash-preview-banner { flex-direction: row; align-items: center; justify-content: space-between; gap: 32px; }
}
.dash-preview-content { flex: 1; }
.dash-preview-title {
  font-family: var(--serif);
  font-size: clamp(1.25rem, 2.2vw, 1.625rem);
  font-weight: 400;
  color: var(--text);
  line-height: 1.2;
  margin-top: 10px;
  margin-bottom: 10px;
}
.dash-preview-sub {
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.6;
  max-width: 540px;
}
.dash-preview-actions { flex-shrink: 0; }


@media (min-width: 1400px) {
  #dashboard > .container {
    max-width: 1400px;
    padding: 0 28px;
  }
}

.dash-layout { display: block; }


.dash-main { display: flex; flex-direction: column; gap: 32px; }


.kpi-grid {
  display: grid; gap: 1px;
  background: var(--border); border: 1px solid var(--border);
  border-radius: 4px; overflow: hidden;
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 900px)  { .kpi-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1200px) { .kpi-grid { grid-template-columns: repeat(5, 1fr); } }
@media (min-width: 640px)  { .kpi-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .kpi-grid { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1400px) { .kpi-grid { grid-template-columns: repeat(5, 1fr); } }

.quick-filters {
  display: flex; flex-wrap: wrap; gap: 6px;
  margin-bottom: 10px;
}
.quick-filter-btn {
  font-family: var(--sans); font-size: 11px; font-weight: 500;
  letter-spacing: 0.1em; text-transform: uppercase;
  padding: 5px 12px; border-radius: 3px;
  border: 1px solid var(--border); color: var(--muted);
  background: none; cursor: pointer;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}
.quick-filter-btn:hover { color: var(--text); border-color: var(--muted); }
.custom-date-range {
  display: none; align-items: center; gap: 6px; flex-wrap: wrap;
}
.custom-date-range.visible { display: flex; }
.custom-date-range input[type="date"] {
  padding: 5px 8px; font-size: 11px; font-family: var(--sans);
  background: var(--bg); border: 1px solid var(--border);
  border-radius: 3px; color: var(--text); width: 130px;
}
.custom-date-range input[type="date"]:focus { outline: none; border-color: var(--gold); }
.custom-date-range-sep {
  font-size: 11px; color: var(--muted);
}
.custom-date-range-apply {
  padding: 5px 10px; font-family: var(--sans); font-size: 10px;
  font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  background: none; border: 1px solid var(--gold); border-radius: 3px;
  color: var(--gold); cursor: pointer;
  transition: background 0.15s;
}
.custom-date-range-apply:hover { background: rgba(201,168,76,0.1); }
.quick-filter-btn.active {
  color: var(--gold); border-color: var(--gold);
  background: rgba(201,168,76,0.08);
}


.journal-view-switch {
  display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px;
}
.journal-view-btn {
  font-family: var(--sans); font-size: 11px; font-weight: 500;
  letter-spacing: 0.1em; text-transform: uppercase;
  padding: 5px 12px; border-radius: 3px;
  border: 1px solid var(--border); color: var(--muted);
  background: none; cursor: pointer;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}
.journal-view-btn:hover { color: var(--text); border-color: var(--muted); }
.journal-view-btn.active {
  color: var(--gold); border-color: var(--gold);
  background: rgba(201,168,76,0.08);
}
.journal-cards-empty {
  padding: 48px 24px; text-align: center; color: var(--muted);
  font-family: var(--sans); font-size: 13px; line-height: 1.6;
}
.journal-filter-empty {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 12px; min-height: 96px; color: var(--muted); text-align: center;
  font-family: var(--sans); font-size: 13px; line-height: 1.6;
}
.journal-filter-empty .btn { min-height: 40px; white-space: normal; }
#dashboard .log-section .log-table-wrap[hidden],
#journal-cards-view[hidden] { display: none !important; }


.journal-cards-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px; padding: 8px 20px 16px;
}
.journal-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 10px;
  overflow: hidden; display: flex; flex-direction: column;
  transition: border-color 0.18s, box-shadow 0.18s;
}
.journal-card:hover { border-color: var(--gold); box-shadow: 0 6px 24px rgba(0,0,0,0.28); }
.journal-card .journal-card-cover {
  width: 100%; height: auto; aspect-ratio: 16 / 10; display: block;
  border: 0; border-radius: 0; padding: 0; overflow: hidden;
  background: var(--surface-raised);
}
.journal-card .journal-card-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.journal-card .journal-card-cover-empty {
  display: flex; align-items: center; justify-content: center; cursor: default;
  overflow: hidden;
  background: linear-gradient(135deg, var(--surface-raised), var(--surface));
}
.journal-card-cover-empty span {
  font-family: var(--serif); font-size: 58px; color: var(--muted); letter-spacing: 0.04em;
  text-align: center; line-height: 1;
}
.journal-card-body { padding: 12px 13px 14px; display: flex; flex-direction: column; gap: 6px; }
.journal-card-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.journal-card-symbol { font-family: var(--sans); font-weight: 700; font-size: 13px; color: var(--text); letter-spacing: 0.04em; }
.journal-card-badge {
  font-family: var(--sans); font-size: 9px; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; padding: 2px 7px; border-radius: 3px; border: 1px solid var(--border);
}
.journal-card-badge.win  { color: var(--green); border-color: rgba(0,200,150,0.4); background: rgba(0,200,150,0.08); }
.journal-card-badge.loss { color: var(--red);   border-color: rgba(255,77,77,0.4);  background: rgba(255,77,77,0.08); }
.journal-card-badge.flat { color: var(--muted); }
.journal-card-date { font-family: var(--sans); font-size: 11px; color: var(--muted); }
.journal-card-nums { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-top: 2px; }
.journal-card-pnl { font-family: var(--serif); font-size: 1.25rem; line-height: 1; }
.journal-card-pnl.profit { color: var(--green); }
.journal-card-pnl.loss   { color: var(--red); }
.journal-card-pnl.flat   { color: var(--muted); }
.journal-card-rr { font-family: var(--sans); font-size: 12px; font-weight: 600; color: var(--muted); }
.journal-card-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 2px; }
.journal-card-tag {
  font-family: var(--sans); font-size: 10px; color: var(--muted);
  border: 1px solid var(--border); border-radius: 999px; padding: 2px 9px;
}


.account-toggle {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 14px; flex-wrap: wrap;
}
.account-toggle-label {
  font-family: var(--sans); font-size: 11px; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted);
}
.account-toggle-btn {
  font-family: var(--sans); font-size: 11px; font-weight: 500;
  letter-spacing: 0.08em; padding: 5px 12px; border-radius: 3px;
  border: 1px solid var(--border); color: var(--muted);
  background: none; cursor: pointer;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}
.account-toggle-btn:hover { color: var(--text); border-color: var(--muted); }
.account-toggle-btn.active {
  color: var(--gold); border-color: var(--gold);
  background: rgba(201,168,76,0.08);
}
.pac-selector {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
  margin-bottom: 20px; padding: 12px 16px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 4px;
}
.pac-selector-label {
  font-family: var(--sans); font-size: 10px; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted);
  margin-right: 4px;
}
.pac-cb-label {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--sans); font-size: 12px; color: var(--muted);
  cursor: pointer; padding: 4px 10px;
  border: 1px solid var(--border); border-radius: 3px;
  transition: color 0.15s, border-color 0.15s;
}
.pac-cb-label:hover { color: var(--text); border-color: var(--muted); }
.pac-cb-label:has(input:checked) { color: var(--gold); border-color: var(--gold); background: rgba(201,168,76,0.06); }
.pac-cb { display: none; }

.per-account-grid {
  display: flex; flex-direction: column; gap: 28px; margin-top: 4px;
}
.per-account-block {
  border: 1px solid var(--border); border-radius: 4px; padding: 18px 20px;
}
.per-account-title {
  font-family: var(--sans); font-size: 11px; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 14px;
}

.period-summary {
  display: flex; flex-wrap: wrap; gap: 10px;
  margin-bottom: 20px;
  padding: 16px 20px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 4px;
}
.period-summary-label {
  font-family: var(--sans); font-size: 11px; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--gold); width: 100%; margin-bottom: 4px;
}
.period-stat {
  display: flex; flex-direction: column; gap: 2px;
  min-width: 90px; flex: 1;
}
.period-stat-label {
  font-family: var(--sans); font-size: 10px;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted);
}
.period-stat-value {
  font-family: var(--serif); font-size: 1.25rem; color: var(--text);
}
.period-stat-value.profit { color: var(--green); }
.period-stat-value.loss   { color: var(--red); }
.period-stat-value.gold   { color: var(--gold); }
#period-summary-strip[hidden] { display: none !important; }

.kpi-card {
  background: var(--bg); padding: 20px 18px;
  display: flex; flex-direction: column; gap: 8px;
  min-height: 100px;
}





.playbook-page-inner { max-width: 1200px; margin: 0 auto; padding: 32px 0; }
.playbook-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 28px; gap: 16px; flex-wrap: wrap; }
.playbook-title-wrap .page-title { font-family: var(--serif); font-size: 2rem; font-weight: 300; color: var(--text); margin: 0; }
.playbook-title-wrap .page-sub  { font-family: var(--sans); font-size: 12px; color: var(--muted); margin-top: 4px; letter-spacing: 0.04em; }
.playbook-grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 600px)  { .playbook-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .playbook-grid { grid-template-columns: 1fr 1fr 1fr; } }


.pb-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 8px;
  padding: 20px; cursor: pointer; transition: border-color 0.18s, box-shadow 0.18s;
  display: flex; flex-direction: column; gap: 14px; position: relative;
}
.pb-card:hover { border-color: var(--gold); box-shadow: 0 6px 24px rgba(0,0,0,0.28); }
.pb-card-top   { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.pb-card-left  { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; }
.pb-card-icon  { width: 42px; height: 42px; border-radius: 10px; background: var(--bg); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; font-size: 1.5rem; flex-shrink: 0; }
.pb-card-name  { font-family: var(--serif); font-size: 1.05rem; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pb-card-count { font-family: var(--sans); font-size: 10px; font-weight: 700; letter-spacing: 0.1em; color: var(--gold); margin-top: 2px; }
.pb-card-menu  { background: none; border: none; cursor: pointer; color: var(--muted); font-size: 20px; line-height: 1; padding: 2px 6px; border-radius: 4px; flex-shrink: 0; transition: color 0.15s; }
.pb-card-menu:hover { color: var(--text); }
.pb-card-mid   { display: flex; align-items: center; gap: 16px; }
.pb-donut-wrap { position: relative; width: 54px; height: 54px; flex-shrink: 0; }
.pb-donut-wrap svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.pb-donut-pct  { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-family: var(--sans); font-size: 9.5px; font-weight: 700; color: var(--text); }
.pb-stats      { display: flex; gap: 20px; flex-wrap: wrap; }
.pb-stat-lbl   { font-family: var(--sans); font-size: 9px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-bottom: 2px; }
.pb-stat-val   { font-family: var(--serif); font-size: 1.1rem; color: var(--text); }
.pb-stat-val.profit { color: var(--green); }
.pb-stat-val.loss   { color: var(--red); }
.pb-card-desc  { font-family: var(--sans); font-size: 12px; color: var(--muted); line-height: 1.55; }
.pb-card-badge { font-family: var(--sans); font-size: 10px; color: var(--muted); letter-spacing: 0.06em; display: flex; align-items: center; gap: 4px; }


.pb-add-card {
  background: transparent; border: 2px dashed var(--border); border-radius: 8px;
  min-height: 160px; display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 8px; cursor: pointer; transition: border-color 0.18s, color 0.18s;
  color: var(--muted); padding: 20px;
}
.pb-add-card:hover { border-color: var(--gold); color: var(--gold); }
.pb-add-icon { font-size: 2rem; line-height: 1; }
.pb-add-label{ font-family: var(--sans); font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }


.pb-empty { text-align: center; padding: 72px 20px; }
.pb-empty-icon { font-size: 3.5rem; margin-bottom: 14px; }
.pb-empty-title{ font-family: var(--serif); font-size: 1.3rem; color: var(--text); margin-bottom: 6px; font-weight: 300; }
.pb-empty-sub  { font-family: var(--sans); font-size: 13px; color: var(--muted); }
.pb-bridge-chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 16px auto 20px; max-width: 520px; }
.pb-bridge-chip { font-family: var(--sans); font-size: 12px; color: var(--text); padding: 5px 12px; border: 1px solid var(--border); border-radius: 999px; background: rgba(201,168,76,0.06); overflow-wrap: anywhere; }


.pb-modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.72); z-index: 2500;
  display: flex; align-items: center; justify-content: center; padding: 16px;
  opacity: 0; transition: opacity 0.2s; pointer-events: none;
}
.pb-modal-overlay.open { opacity: 1; pointer-events: all; }
.pb-modal {
  background: var(--surface); border: 1px solid var(--border); border-radius: 10px;
  width: 100%; max-width: 880px; max-height: 90vh; overflow-y: auto;
  transform: translateY(14px); transition: transform 0.2s; display: flex; flex-direction: column;
}
.pb-modal-overlay.open .pb-modal { transform: translateY(0); }
.pb-modal-hdr {
  display: flex; justify-content: space-between; align-items: center;
  padding: 22px 28px 16px; border-bottom: 1px solid var(--border); flex-shrink: 0; gap: 12px;
}
.pb-modal-icon-big { font-size: 2.2rem; }
.pb-modal-name { font-family: var(--serif); font-size: 1.4rem; color: var(--text); }
.pb-modal-sub  { font-family: var(--sans); font-size: 11px; color: var(--muted); margin-top: 2px; }
.pb-modal-close{ background: none; border: 1px solid var(--border); color: var(--muted); cursor: pointer; padding: 4px 10px; font-size: 13px; border-radius: 4px; transition: color 0.15s; }
.pb-modal-close:hover { color: var(--text); }
.pb-modal-body { padding: 24px 28px 32px; display: flex; flex-direction: column; gap: 24px; }


.pb-kpi-grid { display: grid; gap: 12px; grid-template-columns: repeat(2,1fr); }
@media (min-width: 560px) { .pb-kpi-grid { grid-template-columns: repeat(4,1fr); } }
.pb-kpi-card { background: var(--bg); border: 1px solid var(--border); border-radius: 6px; padding: 14px 16px; }
.pb-kpi-lbl  { font-family: var(--sans); font-size: 9.5px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.pb-kpi-val  { font-family: var(--serif); font-size: 1.45rem; color: var(--text); }
.pb-kpi-val.profit { color: var(--green); }
.pb-kpi-val.loss   { color: var(--red); }


.pb-sec-label { font-family: var(--sans); font-size: 10px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.pb-trade-row {
  display: grid; grid-template-columns: 100px 1fr 44px 80px 88px 80px;
  gap: 8px; padding: 10px 0; border-bottom: 1px solid var(--border);
  font-family: var(--sans); font-size: 12px; color: var(--text); align-items: center;
}
.pb-trade-row:last-child { border-bottom: none; }
.pb-trade-row.hdr { color: var(--muted); font-size: 9px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
.pb-tr-pnl.profit { color: var(--green); font-weight: 600; }
.pb-tr-pnl.loss   { color: var(--red);   font-weight: 600; }
.pb-tr-dir.long   { color: var(--text); }
.pb-tr-dir.short  { color: var(--muted); }


.pb-create-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.72); z-index: 2700;
  display: flex; align-items: center; justify-content: center; padding: 16px;
  opacity: 0; transition: opacity 0.2s; pointer-events: none;
}
.pb-create-overlay.open { opacity: 1; pointer-events: all; }
.pb-create-panel {
  background: var(--surface); border: 1px solid var(--border); border-radius: 10px;
  width: 100%; max-width: 460px; padding: 28px;
  transform: translateY(12px); transition: transform 0.2s;
  /* The overlay is fixed and does not scroll, so an unbounded panel puts the
     footer buttons below the fold on a short screen with no way to reach
     them, no Escape and no backdrop close. Bound it to the viewport (the
     overlay pads 16px each side) and let the panel scroll. */
  max-height: calc(100vh - 32px);
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
  overscroll-behavior: contain;
}
.pb-create-overlay.open .pb-create-panel { transform: translateY(0); }
/* Seven dialogs open on these two transitions and none of them was covered.
   The panel must still land in its open position, so neutralise the motion
   rather than the transform. */
@media (prefers-reduced-motion: reduce) {
  .pb-create-overlay,
  .pb-create-panel { transition: none; }
  .pb-create-panel { transform: none; }
}
.pb-create-hdr { font-family: var(--serif); font-size: 1.2rem; color: var(--text); margin-bottom: 20px; }
.pb-emoji-row  { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.pb-emoji-btn  { font-size: 1.25rem; padding: 5px 7px; border-radius: 6px; cursor: pointer; border: 1px solid var(--border); background: var(--bg); transition: border-color 0.15s; line-height: 1; }
.pb-emoji-btn:hover, .pb-emoji-btn.on { border-color: var(--gold); background: rgba(201,168,76,0.12); }
.pb-create-footer { display: flex; gap: 10px; margin-top: 22px; }


.pb-ctx {
  position: fixed; z-index: 3600; background: var(--surface); border: 1px solid var(--border);
  border-radius: 6px; padding: 4px; min-width: 140px;
  box-shadow: 0 8px 28px rgba(0,0,0,0.45);
  opacity: 0; transform: scale(0.95); transform-origin: top right;
  transition: opacity 0.12s, transform 0.12s; pointer-events: none;
}
.pb-ctx.open { opacity: 1; transform: scale(1); pointer-events: all; }
.pb-ctx-item { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 4px; cursor: pointer; font-family: var(--sans); font-size: 13px; color: var(--text); transition: background 0.1s; white-space: nowrap; width: 100%; text-align: left; background: none; border: none; }
.pb-ctx-item:hover { background: var(--surface-raised); }
.pb-ctx-item.danger { color: var(--red); }


.pb-login-banner {
  background: rgba(201,168,76,0.08); border: 1px solid rgba(201,168,76,0.25);
  border-radius: 8px; padding: 14px 20px; margin-bottom: 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}
.pb-login-banner-text { font-family: var(--sans); font-size: 13px; color: var(--text); }
.pb-login-banner-text strong { color: var(--gold); }
.pb-login-banner-sub { font-family: var(--sans); font-size: 11px; color: var(--muted); margin-top: 2px; }


.pb-sample-tag {
  font-family: var(--sans); font-size: 9px; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--gold); background: rgba(201,168,76,0.12);
  border: 1px solid rgba(201,168,76,0.25); border-radius: 3px; padding: 2px 6px;
}


.pb-modal-tabs { display: flex; gap: 0; border-bottom: 1px solid var(--border); padding: 0 28px; flex-shrink: 0; }
.pb-modal-tab {
  font-family: var(--sans); font-size: 11px; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--muted); padding: 12px 0; margin-right: 24px;
  border-bottom: 2px solid transparent; cursor: pointer; transition: color 0.15s, border-color 0.15s;
  background: none; border-top: none; border-left: none; border-right: none;
}
.pb-modal-tab:hover { color: var(--text); }
.pb-modal-tab.active { color: var(--gold); border-bottom-color: var(--gold); }


.pb-checklist { display: flex; flex-direction: column; gap: 0; }
.pb-cl-item {
  display: flex; align-items: flex-start; gap: 12px; padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.pb-cl-item:last-child { border-bottom: none; }
.pb-cl-check {
  width: 18px; height: 18px; border-radius: 4px; border: 1.5px solid var(--border);
  background: var(--bg); cursor: pointer; flex-shrink: 0; margin-top: 1px;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.15s, border-color 0.15s;
}
.pb-cl-check.checked { background: var(--green); border-color: var(--green); }
.pb-cl-check.checked::after { content: '✓'; font-size: 11px; color: var(--bg); font-weight: 700; }
.pb-cl-text { flex: 1; font-family: var(--sans); font-size: 13px; color: var(--text); line-height: 1.5; padding-top: 1px; }
.pb-cl-text.checked { color: var(--muted); text-decoration: line-through; }
.pb-cl-del { background: none; border: none; cursor: pointer; color: var(--muted); font-size: 16px; padding: 0 2px; opacity: 0; transition: opacity 0.15s; flex-shrink: 0; }
/* The delete button stays in the tab order, so keyboard focus must never land
   on it while it is invisible. */
.pb-cl-item:hover .pb-cl-del,
.pb-cl-item:focus-within .pb-cl-del { opacity: 1; }
.pb-cl-del:hover { color: var(--red); }
.pb-cl-add-row { display: flex; gap: 8px; margin-top: 14px; }
.pb-cl-add-row input { flex: 1; }
.pb-cl-empty { font-family: var(--sans); font-size: 13px; color: var(--muted); padding: 24px 0; text-align: center; }
.pb-cl-progress { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.pb-cl-progress-bar { flex: 1; height: 4px; background: var(--faint); border-radius: 2px; overflow: hidden; }
.pb-cl-progress-fill { height: 100%; background: var(--green); border-radius: 2px; transition: width 0.3s ease; }
.pb-cl-progress-txt { font-family: var(--sans); font-size: 11px; color: var(--muted); font-weight: 600; flex-shrink: 0; }
.pb-cl-reset { font-family: var(--sans); font-size: 11px; color: var(--muted); background: none; border: none; cursor: pointer; text-decoration: underline; padding: 0; }
.pb-cl-reset:hover { color: var(--text); }



.cal-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 4px; padding: 20px;
}
.cal-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 16px;
}
.cal-title {
  font-family: var(--serif); font-style: normal; font-size: 1.125rem;
  font-weight: 400; color: var(--text);
}
.cal-month-label {
  font-family: var(--sans); font-size: 11px; font-weight: 600;
  letter-spacing: 0.08em; color: var(--muted);
}
.cal-nav { display: flex; gap: 6px; }
.cal-nav-btn {
  background: none; border: 1px solid var(--border); border-radius: 3px;
  color: var(--muted); cursor: pointer; padding: 3px 8px; font-size: 12px;
  transition: color 0.15s, border-color 0.15s;
}
.cal-nav-btn:hover { color: var(--text); border-color: var(--muted); }
.cal-grid {
  display: grid; grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}
.cal-dow {
  font-family: var(--sans); font-size: 9px; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--muted); text-align: center; padding: 4px 0 8px;
}
.cal-cell {
  min-height: 106px; border-radius: 3px;
  border: 1px solid transparent;
  display: flex; flex-direction: column;
  align-items: stretch; justify-content: flex-start;
  padding: 10px; position: relative;
  font-family: var(--sans);
}
.cal-cell[type="button"] {
  width: 100%;
  appearance: none;
  color: inherit;
  text-align: left;
}
.cal-cell.empty { background: none; }
.cal-cell.has-trades { border-color: var(--border); background: var(--bg); }
.cal-cell.profit-day { border-color: rgba(0,200,150,0.18); background: rgba(0,200,150,0.04); }
.cal-cell.loss-day   { border-color: rgba(255,77,77,0.18);  background: rgba(255,77,77,0.04); }
.cal-cell.today-cell { border-color: var(--gold) !important; }
.cal-day-num {
  font-size: 11px; font-weight: 600; color: var(--muted);
  line-height: 1; margin-bottom: 6px; align-self: flex-start;
}
.cal-pnl {
  font-family: var(--serif); font-size: 28px; font-weight: 400; letter-spacing: -0.01em; text-align: left; line-height: 1.05; margin: 6px 0 4px;
}
.cal-pnl.profit { color: var(--green); }
.cal-pnl.loss   { color: var(--red); }
.cal-pnl.flat   { color: var(--muted); }
.cal-pnl-cur { font-size: 0.62em; font-weight: 400; opacity: 0.6; margin-right: 1px; vertical-align: baseline; }
.cal-month-total {
  margin-top: 12px; text-align: right;
  font-family: var(--sans); font-size: 11px; color: var(--muted);
}
.cal-month-total strong { font-family: var(--serif); font-size: 1rem; }
.cal-month-total strong.profit { color: var(--green); }
.cal-month-total strong.loss   { color: var(--red); }


.cal-cell.has-trades, .cal-cell.profit-day, .cal-cell.loss-day { cursor: pointer; }
.cal-cell.has-trades:hover, .cal-cell.profit-day:hover, .cal-cell.loss-day:hover { border-color: rgba(201,168,76,0.4); }
.cal-cell-head { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-bottom: 2px; }
.cal-sym { font-family: var(--sans); font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); background: none; padding: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cal-dot { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; display: inline-block; }
.cal-dot-win  { background: var(--green); }
.cal-dot-loss { background: var(--red); }
.cal-dot-flat { background: var(--muted); }
.cal-cell-meta { font-family: var(--sans); font-size: 10px; color: var(--muted); letter-spacing: 0.04em; margin-top: auto; }
@media (max-width: 560px) {
  .cal-grid { grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 3px; }
  .cal-grid > * { min-width: 0; }
  .cal-cell { min-width: 0; min-height: 88px; padding: 6px 3px; }
  .cal-day-num { font-size: 10px; }
  .cal-cell-head { gap: 2px; }
  .cal-sym { font-size: 8px; letter-spacing: 0; }
  .cal-dot { width: 5px; height: 5px; }
  .cal-pnl { font-size: 12px; margin: 5px 0 4px; white-space: nowrap; }
  .cal-cell-meta { font-size: 7px; letter-spacing: 0; white-space: nowrap; }
}


.cal-day-modal-overlay {
  position: fixed; inset: 0; background: var(--overlay-bg);
  z-index: 1500; display: flex; align-items: center; justify-content: center;
  padding: 16px; opacity: 0; transition: opacity 0.18s; pointer-events: none;
}
.cal-day-modal-overlay.open { opacity: 1; pointer-events: all; }
.cal-day-modal {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 6px; width: 100%; max-width: 1100px; max-height: 92vh;
  overflow-y: auto; display: flex; flex-direction: column;
  transform: translateY(12px); transition: transform 0.18s;
}
.cal-day-modal-overlay.open .cal-day-modal { transform: translateY(0); }
.cal-day-modal-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 20px 28px 16px; border-bottom: 1px solid var(--border); flex-shrink: 0; gap: 12px;
}
.cal-day-modal-title { font-family: var(--serif); font-size: 1.35rem; font-weight: 400; color: var(--text); }
.cal-day-modal-pnl { font-family: var(--serif); font-size: 1.15rem; font-weight: 400; }
.cal-day-modal-pnl.profit { color: var(--green); }
.cal-day-modal-pnl.loss   { color: var(--red); }
.cal-day-modal-header-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.cal-day-share-btn {
  background: none; border: 1px solid var(--border); border-radius: 3px;
  color: var(--muted); cursor: pointer; padding: 4px 12px; font-size: 12px;
  font-family: var(--sans); font-weight: 600; letter-spacing: 0.05em;
  transition: color 0.15s, border-color 0.15s; display: flex; align-items: center; gap: 5px;
}
.cal-day-share-btn:hover { color: var(--text); border-color: var(--muted); }
.cal-day-modal-close {
  background: none; border: 1px solid var(--border); border-radius: 3px;
  color: var(--muted); cursor: pointer; padding: 4px 10px; font-size: 13px;
  transition: color 0.15s, border-color 0.15s; flex-shrink: 0;
}
.cal-day-modal-close:hover { color: var(--text); border-color: var(--muted); }
.cal-day-modal-stats {
  display: flex; gap: 32px; padding: 16px 28px;
  border-bottom: 1px solid var(--border); flex-wrap: wrap;
}
.cal-day-stat { display: flex; flex-direction: column; gap: 2px; }
.cal-day-stat-label { font-family: var(--sans); font-size: 9px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.cal-day-stat-value { font-family: var(--serif); font-size: 1.2rem; color: var(--text); }
.cal-day-stat-value.profit { color: var(--green); }
.cal-day-stat-value.loss   { color: var(--red); }
.cal-day-modal-table-wrap { overflow-x: auto; padding: 0 28px 28px; }
.cal-day-pnl-chart-wrap {
  padding: 0 28px 4px; border-bottom: 1px solid var(--border);
  height: 140px; position: relative;
}
.cal-day-pnl-chart-wrap canvas { width: 100% !important; height: 100% !important; }
.cal-day-table { width: 100%; font-size: 0.85rem; border-collapse: collapse; margin-top: 16px; }
.cal-day-table th { font-family: var(--sans); font-size: 9px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid var(--border); padding: 6px 12px 8px; text-align: left; }
.cal-day-table td { padding: 11px 12px; border-bottom: 1px solid var(--faint); font-family: var(--sans); color: var(--text); }
.cal-day-table tr:last-child td { border-bottom: none; }
.cal-day-table .pnl.profit { color: var(--green); }
.cal-day-table .pnl.loss   { color: var(--red); }
.cal-day-table .dir.long   { color: var(--text); }
.cal-day-table .dir.short  { color: var(--muted); }


.share-toast {
  position: fixed; bottom: 28px; left: 50%; transform: translateX(-50%) translateY(20px);
  background: var(--text); color: var(--bg); font-family: var(--sans); font-size: 12px;
  font-weight: 600; letter-spacing: 0.05em; padding: 8px 18px; border-radius: 4px;
  opacity: 0; transition: opacity 0.2s, transform 0.2s; z-index: 9999; pointer-events: none;
}
.share-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }


.share-preview-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.82);
  z-index: 3000; display: flex; align-items: center; justify-content: center;
  padding: 16px; opacity: 0; transition: opacity 0.2s; pointer-events: none;
}
.share-preview-overlay.open { opacity: 1; pointer-events: all; }
.share-preview-panel {
  background: #111110; border: 1px solid #252522; border-radius: 12px;
  display: flex; flex-direction: column; align-items: center; gap: 0;
  width: min(520px, calc(100vw - 32px));
  max-height: 94vh; overflow: hidden;
  transform: translateY(16px) scale(0.97); transition: transform 0.2s;
  box-shadow: 0 32px 80px rgba(0,0,0,0.8);
}
.share-preview-overlay.open .share-preview-panel { transform: translateY(0) scale(1); }
.share-preview-header {
  width: 100%; display: flex; justify-content: space-between; align-items: center;
  padding: 14px 20px 10px; border-bottom: 1px solid #252522; flex-shrink: 0;
}
.share-preview-header-title {
  font-family: var(--sans); font-size: 11px; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase; color: #6e6b65;
}
.share-preview-close {
  background: none; border: none; cursor: pointer; color: #6e6b65;
  font-size: 18px; line-height: 1; padding: 0; transition: color 0.15s;
}
.share-preview-close:hover { color: #f2efe9; }
.share-preview-canvas-wrap {
  flex: 1; overflow-y: auto; overflow-x: hidden; padding: 16px 20px;
  display: flex; justify-content: center; min-height: 0; width: 100%;
}
.share-preview-canvas-wrap canvas {
  width: 100% !important;
  max-width: 460px !important;
  height: auto !important;
  max-height: 72vh;
  border-radius: 10px; display: block;
  box-shadow: 0 12px 48px rgba(0,0,0,0.6);
  object-fit: contain;
}
.share-preview-footer {
  width: 100%; display: flex; gap: 10px; padding: 12px 20px 16px;
  border-top: 1px solid #252522; flex-shrink: 0;
}
.share-preview-btn {
  flex: 1; padding: 12px 0; border-radius: 6px; cursor: pointer;
  font-family: var(--sans); font-size: 13px; font-weight: 600;
  letter-spacing: 0.06em; border: none; transition: opacity 0.15s;
}
.share-preview-btn:hover { opacity: 0.85; }
.share-preview-btn.cancel { background: #252522; color: #a09d97; }
.share-preview-btn.download { background: var(--gold); color: #0b0b09; }


.share-type-row { display:flex; gap:10px; margin-bottom:12px; }
.share-type-btn { flex:1; padding:12px 20px; border:1px solid var(--border); background:transparent; color:var(--muted); border-radius:8px; font-size:14px; font-family:var(--sans); letter-spacing:0.08em; cursor:pointer; transition:border-color 0.15s, background 0.15s, color 0.15s; min-width:72px; }
.share-type-btn:hover { border-color:var(--muted); color:var(--text); }
.share-type-btn.active { border-color:var(--gold); background:rgba(201,168,76,0.12); color:var(--gold); font-weight:600; }
.cal-day-share-wrap { display:flex; flex-direction:column; gap:10px; }

@media (max-width: 560px) {
  .cal-day-modal-overlay { padding: 8px; }
  .cal-day-modal { max-height: calc(100dvh - 16px); }
  .cal-day-modal-header {
    flex-direction: column;
    align-items: stretch;
    padding: 16px;
  }
  .cal-day-modal-header-actions {
    width: 100%;
    align-items: flex-start;
  }
  .cal-day-share-wrap {
    flex: 1 1 auto;
    min-width: 0;
  }
  .share-type-row { gap: 6px; margin-bottom: 8px; }
  .share-type-btn { min-width: 0; padding: 10px 6px; font-size: 12px; }
  .cal-day-share-btn { width: 100%; min-height: 40px; justify-content: center; }
  .cal-day-modal-close { min-width: 40px; min-height: 40px; }
  .cal-day-modal-stats { gap: 18px; padding: 14px 16px; }
  .cal-day-pnl-chart-wrap { padding-inline: 16px; }
  .cal-day-modal-table-wrap { padding-inline: 16px; padding-bottom: 20px; }
}


.psc-card { background:var(--surface); border:1px solid var(--border); border-radius:10px; margin-bottom:28px; overflow:hidden; }
.psc-hdr { display:flex; align-items:center; justify-content:space-between; padding:16px 20px; gap:12px; cursor:pointer; }
.psc-hdr-left { display:flex; align-items:center; gap:14px; }
.psc-icon { width:20px; height:20px; color:var(--gold); flex-shrink:0; }
.psc-title { font-family:var(--serif); font-size:1.05rem; color:var(--text); }
.psc-sub { font-size:12px; color:var(--muted); margin-top:2px; }
.psc-hdr-right { display:flex; align-items:center; gap:10px; flex-shrink:0; }
.psc-progress-wrap { display:flex; align-items:center; gap:8px; }
.psc-progress-bar { width:80px; height:5px; background:var(--border); border-radius:3px; overflow:hidden; }
.psc-progress-fill { height:100%; background:var(--gold); border-radius:3px; transition:width 0.3s; }
.psc-progress-txt { font-size:11px; color:var(--muted); white-space:nowrap; }
.psc-body { border-top:1px solid var(--border); padding:16px 20px 20px; }
.psc-list { display:flex; flex-direction:column; gap:6px; margin-bottom:14px; position:relative; }
.psc-item { display:flex; align-items:center; gap:12px; padding:10px 12px; background:var(--bg); border:1px solid var(--border); border-radius:6px; transition:background 0.15s, border-color 0.15s, transform 0.22s cubic-bezier(.34,1.45,.64,1), box-shadow 0.2s ease; }
.psc-item.done { background:rgba(0,200,150,0.04); border-color:rgba(0,200,150,0.2); }
.psc-item.done .psc-item-text { text-decoration:line-through; color:var(--muted); }
.psc-check { width:18px; height:18px; border-radius:4px; border:1.5px solid var(--border); cursor:pointer; flex-shrink:0; display:flex; align-items:center; justify-content:center; transition:background 0.15s, border-color 0.15s; background:transparent; }
.psc-check.checked { background:var(--gold); border-color:var(--gold); }
.psc-check.checked::after { content:'✓'; font-size:11px; color:#0b0b09; font-weight:700; }
.psc-item-text { flex:1; font-size:14px; color:var(--text); }
.psc-item-del { background:none; border:none; color:var(--muted); cursor:pointer; padding:2px 6px; font-size:15px; opacity:0.5; transition:opacity 0.15s; }
.psc-item-del:hover { opacity:1; color:var(--red); }
.psc-item-grip { background:none; border:none; color:var(--muted); cursor:grab; font-size:14px; line-height:1; padding:4px 6px; flex-shrink:0; touch-action:none; opacity:0.55; transition:opacity 0.15s, color 0.15s; -webkit-user-select:none; user-select:none; }
.psc-item-grip:hover { opacity:1; color:var(--text); }
.psc-item.is-dragging {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.14), rgba(255,255,255,0) 46%),
    rgba(255,255,255,0.10);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
          backdrop-filter: blur(14px) saturate(150%);
  border-color: rgba(255,255,255,0.22);
  position: relative;
  z-index: 3;
  transition: box-shadow 0.18s ease, background 0.15s, border-color 0.15s;
  box-shadow:
    0 16px 34px rgba(0,0,0,0.50),
    0 0 0 1px rgba(201,168,76,0.18),
    inset 0 1px 0 rgba(255,255,255,0.30),
    inset 0 -1px 0 rgba(255,255,255,0.05);
  opacity: 1;
  will-change: transform;
}
html.light .psc-item.is-dragging {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.60), rgba(255,255,255,0.10) 46%),
    rgba(255,255,255,0.42);
  -webkit-backdrop-filter: blur(14px) saturate(125%);
          backdrop-filter: blur(14px) saturate(125%);
  border-color: rgba(160,124,56,0.32);
  box-shadow:
    0 16px 34px rgba(80,62,35,0.22),
    0 0 0 1px rgba(160,124,56,0.14),
    inset 0 1px 0 rgba(255,255,255,0.80);
}
.psc-item.is-dragging .psc-item-grip { cursor:grabbing; }
.psc-item.psc-shift { box-shadow: 0 6px 16px rgba(0,0,0,0.28); z-index: 2; }
html.light .psc-item.psc-shift { box-shadow: 0 6px 16px rgba(80,62,35,0.12); }
.psc-add-row { display:flex; gap:8px; align-items:center; }
.psc-add-input { flex:1; background:var(--bg); border:1px solid var(--border); border-radius:6px; padding:8px 12px; color:var(--text); font-size:13px; outline:none; transition:border-color 0.15s; }
.psc-add-input:focus { border-color:var(--gold); }


.accounts-inner { max-width:1100px; margin:0 auto; padding:32px 0; }
.a2-settings-writer-notice {
  display:flex; align-items:flex-start; gap:12px; margin:-12px 0 24px; padding:14px 16px;
  border:1px solid rgba(201,168,76,0.34); border-left:3px solid var(--gold); border-radius:10px;
  background:linear-gradient(135deg,rgba(201,168,76,0.10),rgba(201,168,76,0.035));
  color:var(--text); box-shadow:0 12px 32px rgba(0,0,0,0.12);
}
.a2-settings-writer-notice[hidden] { display:none !important; }
.a2-settings-writer-notice[data-state="unsupported"],
.a2-settings-writer-notice[data-state="load-failed"],
.a2-settings-writer-notice[data-state="conflict"] {
  border-color:rgba(224,82,82,0.38); border-left-color:var(--red);
  background:linear-gradient(135deg,rgba(224,82,82,0.10),rgba(224,82,82,0.03));
}
.a2-settings-writer-icon {
  display:grid; place-items:center; flex:0 0 30px; width:30px; height:30px; border-radius:999px;
  background:rgba(201,168,76,0.14); color:var(--gold); font-size:15px; font-weight:700;
}
.a2-settings-writer-notice[data-state="unsupported"] .a2-settings-writer-icon,
.a2-settings-writer-notice[data-state="load-failed"] .a2-settings-writer-icon,
.a2-settings-writer-notice[data-state="conflict"] .a2-settings-writer-icon { background:rgba(224,82,82,0.14); color:var(--red); }
.a2-settings-writer-copy { display:none; min-width:0; flex:1; }
.a2-settings-writer-notice[data-state="waiting"] [data-writer-copy="waiting"],
.a2-settings-writer-notice[data-state="loading"] [data-writer-copy="loading"],
.a2-settings-writer-notice[data-state="unsupported"] [data-writer-copy="unsupported"],
.a2-settings-writer-notice[data-state="load-failed"] [data-writer-copy="load-failed"],
.a2-settings-writer-notice[data-state="conflict"] [data-writer-copy="conflict"] { display:block; }
.a2-settings-writer-copy strong { display:block; margin:1px 0 3px; font-size:13px; letter-spacing:0.02em; }
.a2-settings-writer-copy > span { display:block; color:var(--muted); font-size:12px; line-height:1.55; overflow-wrap:anywhere; }
/* Keep keyboard-focused recovery controls below the fixed header and workspace bar.
   72px covers the current 59px desktop / 55px mobile bar plus focus clearance. */
.a2-settings-writer-retry,
.a2-settings-superseded-action,
.a2-settings-superseded-dismiss { scroll-margin-top:calc(var(--nav-h) + 72px); }
.a2-settings-writer-retry {
  flex:0 0 auto; align-self:center; min-height:38px; padding:8px 12px; border:1px solid rgba(201,168,76,0.46);
  border-radius:8px; background:rgba(201,168,76,0.10); color:var(--text); font:600 12px/1 var(--sans);
  cursor:pointer;
}
.a2-settings-writer-retry:hover { border-color:var(--gold); background:rgba(201,168,76,0.16); }
.a2-settings-writer-retry:focus-visible { outline:2px solid var(--gold); outline-offset:2px; }
.a2-settings-writer-retry[hidden] { display:none !important; }
/* The superseded-settings row. Deliberately quieter than the writer notice
   above it: that one reports a state the owner has to clear, this one reports
   something that already went well and only offers to undo itself. */
.a2-settings-superseded {
  display:flex; align-items:center; gap:12px; margin:-8px 0 24px; padding:12px 14px;
  border:1px solid var(--border); border-left:3px solid rgba(201,168,76,0.55); border-radius:10px;
  background:var(--surface); color:var(--text); flex-wrap:wrap;
}
.a2-settings-superseded[hidden] { display:none !important; }
.a2-settings-superseded-icon {
  display:grid; place-items:center; flex:0 0 30px; width:30px; height:30px; border-radius:999px;
  background:rgba(201,168,76,0.12); color:var(--gold); font-size:15px; font-weight:700;
}
.a2-settings-superseded-copy { flex:1 1 240px; min-width:0; color:var(--muted); font-size:12px; line-height:1.55; overflow-wrap:anywhere; }
.a2-settings-superseded-action {
  flex:0 0 auto; min-height:38px; padding:8px 12px; border:1px solid rgba(201,168,76,0.46);
  border-radius:8px; background:rgba(201,168,76,0.10); color:var(--text); font:600 12px/1 var(--sans);
  cursor:pointer;
}
.a2-settings-superseded-action:hover { border-color:var(--gold); background:rgba(201,168,76,0.16); }
.a2-settings-superseded-action:focus-visible { outline:2px solid var(--gold); outline-offset:2px; }
.a2-settings-superseded-dismiss {
  flex:0 0 auto; display:grid; place-items:center; width:32px; height:32px; padding:0;
  border:0; border-radius:8px; background:transparent; color:var(--muted); font-size:18px; line-height:1;
  cursor:pointer;
}
.a2-settings-superseded-dismiss:hover { color:var(--text); }
.a2-settings-superseded-dismiss:focus-visible { outline:2px solid var(--gold); outline-offset:2px; }
@media (max-width:640px) {
  .a2-settings-superseded { padding:11px 12px; gap:10px; }
  .a2-settings-superseded-copy { font-size:11px; }
  .a2-settings-superseded-action { flex:1 1 100%; margin-left:42px; }
}
#accounts [data-settings-writer-disabled="1"] { opacity:0.52 !important; cursor:not-allowed !important; transform:none !important; box-shadow:none !important; }
html.light .a2-settings-writer-notice,
html[data-theme="light"] .a2-settings-writer-notice,
body.light .a2-settings-writer-notice { box-shadow:0 10px 24px rgba(80,62,35,0.08); }
@media (max-width:640px) {
  .a2-settings-writer-notice { margin:-8px 0 20px; padding:13px 14px; flex-wrap:wrap; }
  .a2-settings-writer-copy strong { font-size:12px; }
  .a2-settings-writer-copy > span { font-size:11px; }
  .a2-settings-writer-retry { width:auto; margin-left:42px; }
}
.acm-summary-strip { display:grid; grid-template-columns:repeat(2,1fr); gap:14px; margin-bottom:28px; }
@media (min-width:640px) { .acm-summary-strip { grid-template-columns:repeat(4,1fr); } }
.acm-sum-card { background:var(--surface); border:1px solid var(--border); border-radius:8px; padding:16px 18px; }
.acm-sum-label { font-size:11px; letter-spacing:0.12em; color:var(--muted); margin-bottom:6px; }
.acm-sum-value { font-family:var(--serif); font-size:1.5rem; color:var(--text); }
.acm-grid { display:grid; gap:18px; grid-template-columns:1fr; }
@media (min-width:700px) { .acm-grid { grid-template-columns:repeat(2,1fr); } }
@media (min-width:1100px) { .acm-grid { grid-template-columns:repeat(3,1fr); } }
.acm-card { background:var(--surface); border:1px solid var(--border); border-radius:10px; padding:22px; display:flex; flex-direction:column; gap:14px; }
.acm-card-hdr { display:flex; justify-content:space-between; align-items:flex-start; }
.acm-card-name { font-family:var(--serif); font-size:1.15rem; color:var(--text); }
.acm-card-firm { font-size:11px; color:var(--muted); margin-top:3px; letter-spacing:0.06em; }
.acm-badge { font-size:10px; letter-spacing:0.1em; padding:3px 8px; border-radius:20px; font-weight:600; flex-shrink:0; }
.acm-badge.active { background:rgba(0,200,150,0.12); color:#00c896; border:1px solid rgba(0,200,150,0.25); }
.acm-badge.passed { background:rgba(201,168,76,0.12); color:var(--gold); border:1px solid rgba(201,168,76,0.25); }
.acm-badge.failed { background:rgba(224,82,82,0.12); color:var(--red); border:1px solid rgba(224,82,82,0.25); }
.acm-badge.withdrawn { background:rgba(255,255,255,0.06); color:var(--muted); border:1px solid var(--border); }
.acm-kpis { display:grid; grid-template-columns:repeat(3,1fr); gap:10px; }
.acm-kpi { background:var(--bg); border:1px solid var(--border); border-radius:6px; padding:10px 12px; }
.acm-kpi-label { font-size:10px; letter-spacing:0.1em; color:var(--muted); margin-bottom:4px; }
.acm-kpi-value { font-size:1.05rem; font-family:var(--serif); color:var(--text); }
.acm-kpi-value.profit { color:#00c896; }
.acm-kpi-value.loss { color:var(--red); }
.acm-bars { display:flex; flex-direction:column; gap:8px; }
.acm-bar-row { display:flex; flex-direction:column; gap:4px; }
.acm-bar-labels { display:flex; justify-content:space-between; font-size:11px; color:var(--muted); }
.acm-bar-track { height:6px; background:var(--border); border-radius:3px; overflow:hidden; }
.acm-bar-fill { height:100%; border-radius:3px; transition:width 0.4s; }
.acm-bar-fill.profit { background:#00c896; }
.acm-bar-fill.warn { background:var(--gold); }
.acm-bar-fill.danger { background:var(--red); }
.acm-wds { border-top:1px solid var(--border); padding-top:12px; }
.acm-wd-title { font-size:11px; letter-spacing:0.1em; color:var(--muted); margin-bottom:8px; }
.acm-wd-list { display:flex; flex-direction:column; gap:4px; max-height:90px; overflow-y:auto; }
.acm-wd-row { display:flex; justify-content:space-between; align-items:center; font-size:12px; padding:4px 8px; background:var(--bg); border-radius:4px; }
.acm-wd-date { color:var(--muted); }
.acm-wd-amt { color:#00c896; }
.acm-wd-del { background:none; border:none; color:var(--muted); cursor:pointer; font-size:13px; padding:0 4px; opacity:0.5; }
.acm-wd-del:hover { opacity:1; color:var(--red); }
.acm-card-actions { display:flex; gap:8px; }
.acm-card-actions button { flex:1; font-size:11px; padding:7px 0; letter-spacing:0.06em; }
.acm-empty { text-align:center; padding:60px 20px; color:var(--muted); font-size:14px; grid-column:1/-1; }
.acm-card-name[contenteditable] { outline:none; border-radius:4px; padding:2px 4px; margin:-2px -4px; transition:background 0.15s; cursor:text; }
.acm-card-name[contenteditable]:hover { background:rgba(255,255,255,0.05); }
.acm-card-name[contenteditable]:focus { background:rgba(201,168,76,0.08); box-shadow:0 0 0 1px rgba(201,168,76,0.3); }
.acm-equity-section { margin-top:28px; border:1px solid var(--border); border-radius:14px; background:var(--surface); padding:22px; }
.acm-equity-head { display:flex; justify-content:space-between; gap:18px; align-items:flex-start; margin-bottom:18px; }
.acm-equity-head .btn { white-space:nowrap; flex-shrink:0; }
.acm-equity-kicker { color:var(--gold); font-size:11px; letter-spacing:0.14em; text-transform:uppercase; margin-bottom:7px; }
.acm-equity-head h2 { margin:0; font-family:var(--serif); font-size:1.65rem; font-weight:400; color:var(--text); }
.acm-equity-head p { margin:6px 0 0; color:var(--muted); font-size:13px; line-height:1.55; max-width:760px; }
.acm-equity-grid { display:grid; grid-template-columns:1fr; gap:16px; }
@media (min-width:900px) { .acm-equity-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } }
.acm-equity-card { border:1px solid var(--border); border-radius:12px; background:var(--bg); padding:16px; min-width:0; }
.acm-equity-top { display:flex; justify-content:space-between; gap:12px; align-items:flex-start; margin-bottom:13px; }
.acm-equity-name { font-family:var(--serif); color:var(--text); font-size:1.18rem; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.acm-equity-sub { color:var(--muted); font-size:11px; margin-top:2px; }
.acm-equity-value { font-family:var(--serif); font-size:1.45rem; color:var(--text); text-align:right; white-space:nowrap; }
.acm-equity-value.profit { color:var(--green); }
.acm-equity-value.loss { color:var(--red); }
.acm-equity-kpis { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px; margin-bottom:12px; }
.acm-equity-kpi { border:1px solid var(--border); border-radius:8px; padding:9px 10px; background:rgba(255,255,255,0.015); min-width:0; }
.acm-equity-kpi span { display:block; color:var(--muted); font-size:9px; letter-spacing:0.1em; text-transform:uppercase; margin-bottom:4px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.acm-equity-kpi b { display:block; color:var(--text); font-size:13px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.acm-equity-kpi b.profit { color:var(--green); }
.acm-equity-kpi b.loss { color:var(--red); }
.acm-equity-chart { height:190px; position:relative; }
.acm-equity-actions { display:flex; gap:8px; flex-wrap:wrap; margin-top:12px; }
.acm-equity-actions .btn { font-size:10px; letter-spacing:0.08em; padding:8px 10px; }
.acm-equity-note { margin-top:10px; color:var(--muted); font-size:11px; line-height:1.55; border-top:1px solid var(--border); padding-top:10px; }
.acm-equity-empty { color:var(--muted); border:1px dashed var(--border); border-radius:12px; padding:22px; text-align:center; font-size:13px; grid-column:1/-1; }



.rc-card { background:var(--surface); border:1px solid var(--border); border-radius:10px; margin-bottom:24px; overflow:hidden; }
.rc-hdr { display:flex; align-items:center; justify-content:space-between; padding:14px 20px; cursor:pointer; gap:12px; }
.rc-hdr-left { display:flex; align-items:center; gap:14px; }
.rc-icon { width:18px; height:18px; color:var(--gold); flex-shrink:0; }
.rc-title { font-family:var(--serif); font-size:1rem; color:var(--text); }
.rc-sub { font-size:11px; color:var(--muted); margin-top:2px; }
.rc-body { padding:0 20px 20px; border-top:1px solid var(--border); }
.rc-grid { display:grid; grid-template-columns:repeat(2,1fr); gap:12px; padding-top:16px; margin-bottom:16px; }
@media(min-width:700px){ .rc-grid { grid-template-columns:repeat(4,1fr); } }
.rc-field { display:flex; flex-direction:column; gap:5px; }
.rc-label { font-size:10px; letter-spacing:0.12em; color:var(--muted); text-transform:uppercase; }
.rc-input { background:var(--bg); border:1px solid var(--border); border-radius:6px; padding:8px 10px; color:var(--text); font-size:13px; outline:none; transition:border-color 0.15s; width:100%; box-sizing:border-box; color-scheme:dark; }
.rc-input:focus { border-color:var(--gold); }
.rc-results { display:grid; grid-template-columns:repeat(2,1fr); gap:10px; margin-bottom:14px; }
@media(min-width:600px){ .rc-results { grid-template-columns:repeat(4,1fr); } }
.rc-result-card { background:var(--bg); border:1px solid var(--border); border-radius:8px; padding:12px 14px; }
.rc-result-card.rc-main { border-color:rgba(201,168,76,0.3); background:rgba(201,168,76,0.04); }
.rc-result-label { font-size:10px; letter-spacing:0.1em; color:var(--muted); margin-bottom:6px; text-transform:uppercase; }
.rc-result-value { font-family:var(--serif); font-size:1.3rem; color:var(--text); }
.rc-result-value.gold { color:var(--gold); }
.rc-result-value.loss { color:var(--red); }
.rc-footer-row { display:flex; align-items:center; justify-content:flex-end; }


.journal-inner { max-width:1200px; margin:0 auto; padding:32px 0; }
.jnl-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(300px,1fr)); gap:16px; }
.jnl-card { background:var(--surface); border:1px solid var(--border); border-radius:10px; padding:20px; cursor:pointer; transition:border-color 0.15s, transform 0.15s, box-shadow 0.15s; display:flex; flex-direction:column; gap:10px; }
.jnl-card:hover { border-color:rgba(201,168,76,0.4); transform:translateY(-1px); box-shadow:0 4px 20px rgba(0,0,0,0.3); }
.jnl-card-date { font-size:12px; letter-spacing:0.08em; color:var(--muted); }
.jnl-card-preview { font-size:14px; color:var(--text); line-height:1.5; flex:1; display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical; overflow:hidden; }
.jnl-card-footer { display:flex; align-items:center; gap:8px; flex-wrap:wrap; margin-top:4px; }
.jnl-card-empty { grid-column:1/-1; padding:60px 20px; text-align:center; color:var(--muted); }

.jnl-modal-panel { max-width:620px; width:94vw; max-height:90vh; display:flex; flex-direction:column; }
.jnl-modal-body { flex:1; overflow-y:auto; display:flex; flex-direction:column; gap:14px; padding:4px 2px; }
.jnl-modal-row { display:flex; gap:12px; align-items:flex-start; flex-wrap:wrap; }

.jnl-date-input { background:var(--bg); border:1px solid var(--border); border-radius:6px; padding:8px 12px; color:var(--text); font-size:14px; outline:none; color-scheme:dark; }
.jnl-date-input:focus { border-color:var(--gold); }
.jnl-bias-seg { display:flex; gap:6px; flex-wrap:wrap; }
.jnl-bias-btn { background:var(--bg); border:1px solid var(--border); border-radius:20px; padding:6px 14px; font-size:12px; color:var(--muted); cursor:pointer; transition:border-color 0.15s, background 0.15s, color 0.15s; }
.jnl-bias-btn:hover { border-color:var(--muted); color:var(--text); }
.jnl-bias-btn.active { border-color:var(--gold); color:var(--gold); background:rgba(201,168,76,0.08); }
.jnl-mood-stars { display:flex; gap:4px; }
.jnl-mood-star { background:none; border:1px solid transparent; border-radius:8px; font-size:22px; cursor:pointer; opacity:0.4; transition:opacity 0.12s, border-color 0.12s, transform 0.12s, background 0.12s; padding:5px 8px; }
.jnl-mood-star:hover { opacity:0.8; border-color:var(--border); }
.jnl-mood-star.active { opacity:1; transform:scale(1.12); border-color:var(--gold); background:rgba(201,168,76,0.08); }
.jnl-textarea { background:var(--bg); border:1px solid var(--border); border-radius:8px; padding:10px 12px; color:var(--text); font-size:14px; resize:vertical; outline:none; font-family:var(--sans); line-height:1.6; transition:border-color 0.15s; width:100%; box-sizing:border-box; }
.jnl-textarea:focus { border-color:var(--gold); }
.jnl-bias-tag { font-size:10px; padding:2px 7px; border-radius:10px; }
.jnl-bias-tag.bullish { background:rgba(0,200,150,0.12); color:#00c896; }
.jnl-bias-tag.bearish { background:rgba(224,82,82,0.12); color:var(--red); }
.jnl-bias-tag.neutral { background:rgba(255,255,255,0.06); color:var(--muted); }
.jnl-mood-display { font-size:14px; }





.score-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 6px; padding: 20px 24px; margin-bottom: 16px;
  display: flex; align-items: center; gap: 24px; flex-wrap: wrap;
}
.score-radar-wrap { width: 150px; height: 150px; flex-shrink: 0; position: relative; }
.score-radar-wrap canvas { width: 100% !important; height: 100% !important; }
.score-main { flex: 1; min-width: 160px; display: flex; flex-direction: column; gap: 4px; }
.score-title-row { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; }
.score-title { font-family: var(--sans); font-size: 10px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }
.score-beta-badge { font-family: var(--sans); font-size: 8px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; background: var(--gold); color: var(--bg); padding: 2px 6px; border-radius: 3px; }
.score-number { font-family: var(--serif); font-size: 3.2rem; font-weight: 400; line-height: 1; letter-spacing: -0.02em; }
.score-number.excellent { color: var(--green); }
.score-number.good      { color: var(--gold); }
.score-number.average   { color: var(--text); }
.score-number.poor      { color: var(--red); }
.score-grade { font-family: var(--sans); font-size: 11px; color: var(--muted); margin-top: 2px; }
.score-info-btn {
  background: none; border: none; cursor: pointer; padding: 0 0 0 2px;
  color: var(--muted); font-size: 1rem; line-height: 1; opacity: 0.7;
  transition: opacity 0.15s; flex-shrink: 0;
}
.score-info-btn:hover { opacity: 1; color: var(--text); }


.score-info-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.55); z-index: 2000;
  display: flex; align-items: center; justify-content: center; padding: 16px;
  opacity: 0; transition: opacity 0.18s; pointer-events: none;
}
.score-info-overlay.open { opacity: 1; pointer-events: all; }
.score-info-panel {
  background: var(--surface); border: 1px solid var(--border); border-radius: 6px;
  width: 100%; max-width: 560px; max-height: 88vh; overflow-y: auto;
  transform: translateY(12px); transition: transform 0.18s; padding: 28px 28px 24px;
}
.score-info-overlay.open .score-info-panel { transform: translateY(0); }
.score-info-header {
  display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px;
}
.score-info-title {
  font-family: var(--serif); font-size: 1.2rem; font-weight: 400; color: var(--text);
}
.score-info-close {
  background: none; border: none; cursor: pointer; color: var(--muted);
  font-size: 1.4rem; line-height: 1; padding: 0; opacity: 0.7; transition: opacity 0.15s;
}
.score-info-close:hover { opacity: 1; }
.score-info-body { font-family: var(--sans); font-size: 13px; color: var(--muted); line-height: 1.65; }
.score-info-body p { margin: 0 0 12px; }
.score-info-body strong { color: var(--text); }
.score-info-table { width: 100%; border-collapse: collapse; margin: 12px 0 16px; font-size: 12px; }
.score-info-table th, .score-info-table td { padding: 7px 10px; text-align: left; border-bottom: 1px solid var(--border); }
.score-info-table th { font-weight: 700; color: var(--text); letter-spacing: 0.05em; font-size: 10.5px; text-transform: uppercase; }
.score-info-grades { display: flex; flex-direction: column; gap: 5px; margin: 10px 0 16px; }
.score-info-grade-row { display: flex; align-items: center; gap: 10px; font-size: 12px; }
.score-info-grade-dot { width: 5px; height: 5px; border-radius: 50%; flex-shrink: 0; }

.score-breakdown { display: flex; flex-direction: column; gap: 7px; flex: 1; min-width: 160px; }
.score-item { display: flex; align-items: center; gap: 8px; }
.score-item-label { font-family: var(--sans); font-size: 10px; color: var(--muted); width: 110px; flex-shrink: 0; }
.score-item-bar-wrap { flex: 1; height: 4px; background: var(--faint); border-radius: 2px; overflow: hidden; }
.score-item-bar { height: 100%; border-radius: 2px; transition: width 0.6s ease; }
.score-item-val { font-family: var(--sans); font-size: 10px; font-weight: 600; min-width: 28px; text-align: right; }

.kpi-label {
  font-family: var(--sans); font-size: 10.5px; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted);
}
.kpi-value { font-family: var(--serif); font-size: 1.85rem; color: var(--text); font-weight: 400; line-height: 1.1; }
.kpi-value.profit { color: var(--green); }
.kpi-value.loss   { color: var(--red); }
.kpi-value.gold   { color: var(--gold); }


.charts-grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 900px) { .charts-grid { grid-template-columns: 1fr 1fr; } }
.chart-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 4px; padding: 20px;
  display: flex; flex-direction: column;
}
.chart-card h3 {
  font-family: var(--serif); font-style: normal; font-weight: 400;
  font-size: 1.125rem; color: var(--text); margin-bottom: 16px;
}
.chart-wrap { position: relative; height: 240px; width: 100%; }
@media (min-width: 900px) { .chart-wrap { height: 260px; } }


.log-section {
  background: var(--surface); border: 1px solid var(--border); border-radius: 4px;
}
.log-header {
  display: flex; flex-direction: column; gap: 12px;
  padding: 16px 20px; border-bottom: 1px solid var(--border);
}
@media (min-width: 900px) {
  .log-header { flex-direction: row; align-items: flex-start; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
}
.log-header h3 { font-family: var(--serif); font-style: normal; font-weight: 400; font-size: 1.375rem; color: var(--text); white-space: nowrap; }
#sync-status:not([hidden]) {
  white-space: normal; overflow-wrap: anywhere; line-height: 1.4;
  text-transform: none; letter-spacing: 0.04em;
}
@media (max-width: 640px) {
  #sync-status:not([hidden]) { display: block; max-width: 100%; margin: 8px 0 0; }
}
.log-filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.log-btn-row  { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 8px; }
.log-filters select, .log-filters input {
  padding: 7px 10px; font-size: 0.8rem; width: auto; min-width: 100px;
}

.log-table-wrap { overflow-x: auto; }
.log-table { width: 100%; font-size: 0.85rem; table-layout: fixed; }
.log-table th:nth-child(1)  { width: 42px;  }
.log-table th:nth-child(2)  { width: 96px;  }
.log-table th:nth-child(3)  { width: 90px;  }
.log-table th:nth-child(4)  { width: 50px;  }
.log-table th:nth-child(5)  { width: 36px;  }
.log-table th:nth-child(6)  { width: 88px;  }
.log-table th:nth-child(7)  { width: 120px; }
.log-table th:nth-child(8)  { width: 78px;  }
.log-table th:nth-child(9)  { width: 54px;  }
.log-table th:nth-child(10) { width: 120px; }
.log-table th:nth-child(11) { width: 58px;  }
.log-table th:nth-child(12) { width: 76px;  }
.log-table th:nth-child(13) { width: 96px;  }
.log-table th:nth-child(14) { width: 88px;  }
.log-table th {
  text-align: left; background: var(--bg);
  padding: 11px 14px; border-bottom: 1px solid var(--border);
  font-family: var(--sans); font-size: 10px; font-weight: 500;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted);
  cursor: pointer; user-select: none; white-space: nowrap; overflow: hidden;
}
.log-table th:hover { color: var(--text); }
.log-table th .sort-indicator { color: var(--faint); margin-left: 4px; }
.log-table th.sort-asc .sort-indicator,
.log-table th.sort-desc .sort-indicator { color: var(--text); }
.log-table td.session-cell { font-size:10px; letter-spacing:0.04em; color:var(--muted); }
.log-table td.rating-cell  { overflow:visible; white-space:nowrap; letter-spacing:2px; }
.log-table td.image-count-cell { text-align:center; color:var(--muted); font-size:11px; }
.log-table td.image-count-cell.has-images { color:var(--gold); }
.log-table td {
  padding: 12px 14px; border-bottom: 1px solid var(--border);
  color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.log-table tr.row-main { cursor: pointer; transition: background 0.15s; }
.log-table tr.row-main:hover { background: var(--surface-raised); }
.log-table tr:last-child td { border-bottom: 0; }
.log-table .pnl.profit { color: var(--green); }
.log-table .pnl.loss   { color: var(--red); }
.log-table .dir.long   { color: var(--text); }
.log-table .dir.short  { color: var(--muted); }
.log-table th.bulk-select-th, .log-table td.bulk-select-cell { text-align:center; padding-left:10px; padding-right:10px; overflow:visible; }
.log-table th.bulk-select-th { cursor:default; }
.log-table th.bulk-select-th:hover { color:var(--muted); }
.log-table .bulk-row-checkbox, #bulk-select-visible { width:15px; height:15px; accent-color:var(--gold); cursor:pointer; }
.log-table .bulk-row-checkbox:disabled { opacity:.32; cursor:not-allowed; }
.log-table tr.row-main.bulk-selected td { background:rgba(201,168,76,0.07); }
.bulk-tools { display:flex; align-items:center; justify-content:space-between; gap:10px; flex-wrap:wrap; padding:10px 12px; margin-top:10px; border:1px solid var(--border); border-radius:4px; background:rgba(201,168,76,0.045); }
.bulk-tools-left, .bulk-tools-right { display:flex; align-items:center; gap:8px; flex-wrap:wrap; }
.bulk-count { font-family:var(--sans); font-size:11px; color:var(--muted); letter-spacing:.06em; text-transform:uppercase; }
.bulk-danger { color:var(--red); border-color:var(--red) !important; }
.bulk-danger:hover { background:rgba(255,77,77,.08); }
.bulk-warning { color:var(--gold); font-family:var(--sans); font-size:11px; }
.bulk-tools[hidden] { display:none !important; }


.commission-tools { display:flex; flex-direction:column; gap:8px; padding:10px 12px; margin-top:10px; border:1px solid var(--border); border-radius:4px; background:rgba(201,168,76,0.045); }
.commission-tools-row { display:flex; align-items:center; gap:8px; flex-wrap:wrap; }
.commission-tools-label { font-family:var(--sans); font-size:11px; color:var(--muted); letter-spacing:.06em; text-transform:uppercase; }
.commission-tools input[type="number"] { width:90px; padding:6px 8px; font-family:var(--sans); font-size:12px; color:var(--text); background:var(--surface); border:1px solid var(--border); border-radius:3px; }
.commission-tools input[type="number"]:focus-visible { outline:1px solid var(--gold); outline-offset:1px; }
.comm-auto-label { display:inline-flex; align-items:center; gap:6px; font-family:var(--sans); font-size:11px; color:var(--muted); cursor:pointer; user-select:none; }
.comm-auto-label input { width:13px; height:13px; accent-color:var(--gold); cursor:pointer; }
.commission-toast { position:fixed; left:50%; bottom:28px; transform:translateX(-50%); z-index:9999; max-width:min(92vw,460px); padding:10px 16px; font-family:var(--sans); font-size:12.5px; line-height:1.5; color:var(--text); background:var(--surface); border:1px solid var(--gold); border-radius:4px; box-shadow:0 8px 28px rgba(0,0,0,.35); opacity:0; transition:opacity .18s ease; pointer-events:none; }
.commission-toast.visible { opacity:1; }
@media (prefers-reduced-motion: reduce) { .commission-toast { transition:none; } }
@media (max-width:480px) { .commission-tools-row .btn { flex:1 1 auto; } }


.log-table td.setup-cell { max-width:180px; white-space:normal; overflow-wrap:anywhere; }


.field-help { font-family:var(--sans); font-size:11px; line-height:1.5; color:var(--muted); margin-top:6px; }


.acm-hidden-bar { grid-column: 1 / -1; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-family: var(--sans); font-size: 11.5px; color: var(--muted); padding: 10px 12px; border: 1px dashed var(--border); border-radius: 8px; }
.acm-unhide-btn { font-family: var(--sans); font-size: 11px; color: var(--text); padding: 3px 10px; border: 1px solid var(--border); border-radius: 999px; background: transparent; cursor: pointer; }
.acm-unhide-btn:hover, .acm-unhide-btn:focus-visible { border-color: var(--muted); }
.trade-image-uploader {
  border: 1px dashed var(--border);
  border-radius: 16px;
  padding: 12px;
  background: rgba(201,168,76,0.04);
}
.trade-image-top { display:flex; align-items:flex-start; justify-content:space-between; gap:12px; margin-bottom:10px; }
.trade-image-copy { color:var(--muted); font-size:11px; line-height:1.55; font-family:var(--sans); }
.trade-image-actions { display:flex; gap:8px; flex-wrap:wrap; justify-content:flex-end; }
.trade-image-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(86px,1fr)); gap:10px; }
.trade-image-thumb {
  position:relative; min-height:72px; border:1px solid var(--border); border-radius:14px;
  overflow:hidden; background:var(--bg); display:flex; align-items:center; justify-content:center;
}
.trade-image-thumb img { width:100%; height:86px; object-fit:cover; display:block; cursor:pointer; }
.trade-image-thumb .trade-image-placeholder { color:var(--muted); font-size:10px; padding:8px; text-align:center; }
.trade-image-remove {
  position:absolute; top:5px; right:5px; width:22px; height:22px; border-radius:999px;
  border:1px solid rgba(255,255,255,0.22); background:rgba(0,0,0,0.62); color:#fff;
  cursor:pointer; font-size:14px; line-height:18px; display:flex; align-items:center; justify-content:center;

  z-index:6; pointer-events:auto;
}
.trade-image-remove:hover { background:rgba(224,82,82,0.9); }
.trade-image-meta { position:absolute; left:6px; bottom:5px; padding:2px 6px; border-radius:999px; background:rgba(0,0,0,0.58); color:#fff; font-size:9px; }
.trade-image-count { display:inline-flex; align-items:center; justify-content:center; min-width:42px; padding:4px 8px; border:1px solid var(--border); border-radius:999px; color:var(--gold); font-size:10px; font-weight:700; letter-spacing:.08em; }
.trade-image-toolbar { position:absolute; left:5px; top:5px; display:flex; gap:4px; z-index:2; }
.trade-image-order { width:22px; height:22px; border-radius:999px; border:1px solid rgba(255,255,255,0.22); background:rgba(0,0,0,0.62); color:#fff; cursor:pointer; font-size:12px; line-height:18px; display:flex; align-items:center; justify-content:center; }
.trade-image-order:disabled { opacity:.28; cursor:not-allowed; }
.trade-image-note { grid-column:1/-1; width:calc(100% - 12px); margin:0 6px 6px; min-height:30px; border:1px solid var(--border); border-radius:8px; background:rgba(0,0,0,.22); color:var(--text); padding:6px 8px; font-size:10px; resize:vertical; }
.trade-image-thumb.with-note { display:grid; grid-template-rows:auto auto; align-items:stretch; }
.trade-image-thumb.with-note > .trade-image-preview-wrap { min-height:86px; display:flex; align-items:center; justify-content:center; overflow:hidden; position:relative; }
.trade-image-thumb.with-note img { height:86px; }
.trade-image-hint { color:var(--muted); font-size:10px; margin-top:8px; }
.trade-image-error { color:var(--red); font-size:11px; margin-top:8px; }
.trade-row-images { display:flex; flex-wrap:wrap; gap:8px; margin:8px 0 2px; }
.trade-row-image-btn { border:1px solid var(--border); background:var(--bg); border-radius:12px; padding:0; overflow:hidden; width:84px; height:64px; cursor:pointer; }
.trade-row-image-btn img { width:100%; height:100%; object-fit:cover; display:block; }
.trade-row-image-btn .trade-image-placeholder { font-size:10px; color:var(--muted); padding:8px; }
.trade-img-modal-overlay {
  position:fixed; inset:0; z-index:12000; background:rgba(0,0,0,0.78); backdrop-filter:blur(8px);
  display:flex; align-items:center; justify-content:center; padding:24px;
}
.trade-img-modal-overlay[hidden] { display:none; }
.trade-img-modal-panel { position:relative; max-width:min(1180px,96vw); max-height:90vh; min-width:min(360px,88vw); text-align:center; overflow:visible; padding:0 64px; }
.trade-img-modal-panel img { max-width:100%; max-height:86vh; border-radius:18px; border:1px solid rgba(255,255,255,0.18); box-shadow:0 18px 70px rgba(0,0,0,0.5); background:#080806; display:none; }
.trade-img-modal-panel img.is-loaded { display:block; }
.trade-img-modal-status { min-height:120px; min-width:min(360px,88vw); display:flex; align-items:center; justify-content:center; border:1px solid rgba(255,255,255,0.16); border-radius:18px; background:#080806; color:#fff; font-size:13px; padding:22px; box-shadow:0 18px 70px rgba(0,0,0,0.5); }
.trade-img-modal-caption { margin-top:10px; color:#f0ede8; font-size:13px; line-height:1.5; text-align:center; min-height:18px; }
.trade-img-nav { position:absolute; top:50%; transform:translateY(-50%); width:46px; height:46px; border-radius:999px; border:1px solid rgba(255,255,255,.25); background:rgba(0,0,0,.64); color:#fff; cursor:pointer; font-size:24px; display:flex; align-items:center; justify-content:center; z-index:8; pointer-events:auto; user-select:none; -webkit-user-select:none; touch-action:manipulation; }
.trade-img-nav:hover { background:rgba(201,168,76,.85); color:#080806; }
.trade-img-nav.prev { left:10px; }
.trade-img-nav.next { right:10px; }
.trade-img-nav:disabled { opacity:.25; cursor:not-allowed; }
.pause-custom-row { display:grid; grid-template-columns:minmax(0,1fr) 190px; gap:10px; margin:8px 0 14px; align-items:stretch; }
.pause-custom-row input { width:100%; min-height:54px; border:1px solid var(--border); border-radius:14px; background:var(--bg); color:var(--text); padding:12px 14px; font:inherit; }
.pause-custom-row input:focus { outline:none; border-color:var(--gold); }
.pause-custom-btn { display:flex; flex-direction:column; justify-content:center; }
.pause-impact { border:1px solid rgba(224,82,82,.28); background:linear-gradient(135deg,rgba(224,82,82,.12),rgba(201,168,76,.06)); border-radius:18px; padding:14px 16px; margin:14px 0; box-shadow:inset 0 0 0 1px rgba(255,255,255,.02); }
.pause-impact-title { color:#ffd3d3; font-size:12px; font-weight:800; letter-spacing:.08em; text-transform:uppercase; margin-bottom:6px; }
.pause-impact-body { color:var(--text); font-size:13px; line-height:1.65; }
.pause-methods { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; margin:12px 0 4px; }
.pause-method { border:1px solid var(--border); border-radius:12px; padding:10px; background:rgba(255,255,255,.02); }
.pause-method b { display:block; color:var(--gold); font-size:12px; margin-bottom:4px; }
.pause-method span { color:var(--muted); font-size:12px; line-height:1.55; }
.pause-modal-overlay { position:fixed; inset:0; z-index:1001100; background:radial-gradient(circle at top, rgba(224,82,82,.14), rgba(0,0,0,.86) 42%), rgba(0,0,0,.86); backdrop-filter:blur(14px); display:flex; align-items:center; justify-content:center; padding:22px; }
.pause-modal-overlay[hidden]{display:none!important;}
.pause-modal-panel { width:min(720px,94vw); max-height:90vh; overflow:auto; background:linear-gradient(180deg, rgba(28,16,16,.98), rgba(14,14,12,.98) 18%, rgba(18,18,16,.98)); border:1px solid rgba(224,82,82,.34); border-radius:24px; padding:24px; box-shadow:0 30px 100px rgba(0,0,0,.68), 0 0 0 1px rgba(224,82,82,.08); position:relative; }
.pause-modal-panel::before { content:''; display:block; height:4px; border-radius:999px; background:linear-gradient(90deg, rgba(224,82,82,.18), rgba(224,82,82,.85), rgba(201,168,76,.85)); margin:-6px 0 14px; box-shadow:0 0 24px rgba(224,82,82,.22); }
.pause-modal-panel.is-active { border-color:rgba(224,82,82,.56); box-shadow:0 30px 100px rgba(0,0,0,.72), 0 0 0 1px rgba(224,82,82,.18), 0 0 34px rgba(224,82,82,.18); }
/* Clear the panel's gradient bar (bottom edge y=22) instead of sitting on it,
   and take the round shape the other modal close buttons use. */
.pause-modal-dismiss { position:absolute; top:32px; right:12px; z-index:2; width:44px; height:44px; padding:0; font-size:22px; border-radius:999px; }
.pause-kicker { color:#ffb7b7; font-size:11px; letter-spacing:.18em; text-transform:uppercase; margin-bottom:8px; font-weight:800; }
.pause-modal-panel h2 { margin:0 0 8px; padding-inline-end:48px; font-family:var(--serif); font-size:2.05rem; font-weight:400; color:var(--text); }
.pause-modal-panel p { color:var(--muted); font-size:13px; line-height:1.6; margin:0 0 14px; }
.pause-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; margin:14px 0; }
.pause-choice { border:1px solid var(--border); border-radius:16px; background:linear-gradient(180deg, rgba(255,255,255,.02), rgba(0,0,0,.08)); color:var(--text); padding:12px; text-align:left; cursor:pointer; transition:transform .16s ease,border-color .16s ease, box-shadow .16s ease; }
.pause-choice:hover { transform:translateY(-1px); border-color:rgba(224,82,82,.44); box-shadow:0 10px 24px rgba(0,0,0,.22); }
.pause-choice b { display:block; font-family:var(--serif); font-size:1.45rem; font-weight:400; color:#ffd27a; }
.pause-choice span { color:var(--muted); font-size:11px; }
.pause-breathe { border:1px solid rgba(224,82,82,.28); border-radius:18px; padding:18px; background:linear-gradient(180deg, rgba(52,8,8,.5), rgba(0,0,0,.12)); text-align:center; margin:14px 0; position:relative; overflow:hidden; }
.pause-breathe::after { content:''; position:absolute; inset:-30%; background:radial-gradient(circle, rgba(224,82,82,.18), transparent 55%); opacity:.45; animation:a2-alarm-glow 2.2s ease-in-out infinite; pointer-events:none; }
.pause-circle { position:relative; width:136px; height:136px; margin:10px auto; border-radius:50%; border:1px solid rgba(224,82,82,.55); display:grid; place-items:center; color:#ffd27a; font-family:var(--serif); font-size:1.4rem; animation:a2-breathe 8s ease-in-out infinite; box-shadow:0 0 0 10px rgba(224,82,82,.06), inset 0 0 26px rgba(201,168,76,.05); }
.pause-circle::before, .pause-circle::after { content:''; position:absolute; inset:-10px; border-radius:50%; border:1px solid rgba(224,82,82,.22); opacity:0; transform:scale(.92); }
.pause-circle.active { animation:a2-heartbeat 1.05s ease-in-out infinite; color:#ffe5a8; text-shadow:0 0 14px rgba(224,82,82,.12); }
.pause-circle.active::before { animation:a2-heart-ring 1.05s ease-out infinite; }
.pause-circle.active::after { animation:a2-heart-ring 1.05s ease-out .28s infinite; }
@keyframes a2-breathe { 0%,100%{ transform:scale(.84); opacity:.72;} 50%{ transform:scale(1.08); opacity:1;} }
@keyframes a2-heartbeat { 0%{ transform:scale(.96);} 14%{ transform:scale(1.05);} 28%{ transform:scale(.99);} 42%{ transform:scale(1.08);} 70%{ transform:scale(.98);} 100%{ transform:scale(.96);} }
@keyframes a2-heart-ring { 0%{ opacity:.46; transform:scale(.88);} 70%{ opacity:0; transform:scale(1.28);} 100%{ opacity:0; transform:scale(1.34);} }
@keyframes a2-alarm-glow { 0%,100%{ opacity:.22; transform:scale(.96);} 50%{ opacity:.56; transform:scale(1.06);} }
.pause-hard-warning { border:1px solid rgba(224,82,82,.45); background:linear-gradient(135deg, rgba(224,82,82,.18), rgba(92,8,8,.08)); border-radius:16px; padding:12px 14px; color:#fff0f0; font-size:12px; line-height:1.65; margin:12px 0 10px; box-shadow:0 0 24px rgba(224,82,82,.08); }
.pause-hard-warning b { display:block; color:#ffd7d7; margin-bottom:4px; font-size:12px; letter-spacing:.04em; }
.pause-hard-warning.ended { border-color:rgba(201,168,76,.38); background:linear-gradient(135deg, rgba(201,168,76,.12), rgba(0,0,0,.08)); color:#f0ede8; }
.pause-checklist { display:grid; gap:8px; margin:12px 0; }
.pause-checklist label { display:flex; gap:9px; align-items:flex-start; border:1px solid var(--border); border-radius:12px; padding:10px; background:rgba(255,255,255,.015); color:var(--text); font-size:13px; transition:border-color .16s ease, background .16s ease; }
.pause-checklist label:has(input:checked) { border-color:rgba(201,168,76,.45); background:rgba(201,168,76,.06); }
.pause-actions { display:flex; gap:10px; flex-wrap:wrap; justify-content:flex-end; margin-top:16px; }
.pause-actions .btn[disabled] { opacity:.38; cursor:not-allowed; filter:grayscale(.15); pointer-events:none; }
.pause-status-pill { display:inline-flex; align-items:center; gap:6px; padding:6px 10px; border-radius:999px; border:1px solid rgba(224,82,82,.42); color:#ffd1d1; background:rgba(224,82,82,.08); font-size:11px; margin-bottom:8px; }
.pause-protocol { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; margin:14px 0; }
.pause-step { border:1px solid var(--border); border-radius:14px; background:rgba(255,255,255,.018); padding:12px; }
.pause-step b { display:block; color:var(--text); font-size:13px; margin-bottom:5px; }
.pause-step span { color:var(--muted); font-size:12px; line-height:1.5; }
.pause-note { width:100%; min-height:88px; resize:vertical; border:1px solid var(--border); border-radius:14px; background:var(--bg); color:var(--text); padding:12px; font:inherit; margin-top:8px; }
.pause-note-label { display:block; color:var(--muted); font-size:12px; line-height:1.5; margin-top:8px; }
.pause-guard { border:1px solid rgba(224,82,82,.4); background:linear-gradient(135deg, rgba(224,82,82,.14), rgba(201,168,76,.06)); border-radius:14px; padding:12px; color:#ffe8e8; font-size:12px; line-height:1.6; margin:12px 0; }
.pause-lock-note { display:flex; align-items:flex-start; gap:10px; border:1px dashed rgba(224,82,82,.52); border-radius:14px; background:linear-gradient(135deg, rgba(224,82,82,.09), rgba(90,8,8,.05)); padding:12px 13px; margin:10px 0 12px; color:#ffd8d8; font-size:12px; line-height:1.65; box-shadow:0 0 0 1px rgba(224,82,82,.05), 0 0 24px rgba(224,82,82,.06); }
.pause-lock-note b { color:#fff2f2; display:block; margin-bottom:2px; }
.pause-modal-overlay::before { content:''; position:absolute; inset:0; pointer-events:none; background:repeating-linear-gradient(-45deg, rgba(224,82,82,.04) 0 14px, transparent 14px 28px); opacity:.55; animation:a2-alert-scan 12s linear infinite; }
.pause-modal-panel.is-active h2 { color:#fff3f3; text-shadow:0 0 18px rgba(224,82,82,.18), 0 0 32px rgba(224,82,82,.08); animation:a2-title-alert 2.6s ease-in-out infinite; }
.pause-modal-panel.is-active .pause-kicker { border-color:rgba(224,82,82,.46); color:#ffd4d4; box-shadow:0 0 22px rgba(224,82,82,.08); }
@keyframes a2-alert-scan { 0%{ transform:translateY(-2%);} 50%{ transform:translateY(2%);} 100%{ transform:translateY(-2%);} }
@keyframes a2-title-alert { 0%,100%{ opacity:1; } 50%{ opacity:.9; } }
.pause-return-gate { border:1px solid rgba(224,82,82,.34); border-radius:18px; padding:14px; margin:12px 0; background:linear-gradient(180deg, rgba(32,10,10,.52), rgba(255,255,255,.02)); box-shadow:0 0 26px rgba(224,82,82,.05); }
.pause-return-gate.ready { border-color:rgba(201,168,76,.45); box-shadow:0 0 28px rgba(201,168,76,.06); background:linear-gradient(180deg, rgba(36,24,8,.36), rgba(255,255,255,.02)); }
.pause-return-head { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:8px; margin-bottom:10px; }
.pause-return-head b { color:#fff2f2; font-size:13px; letter-spacing:.02em; }
.pause-return-head span { color:var(--muted); font-size:12px; }
.pause-return-grid { display:grid; gap:10px; }
.pause-q { display:grid; gap:6px; }
.pause-q > span { color:#f3ece1; font-size:12px; line-height:1.55; }
.pause-q textarea, .pause-q select { width:100%; border:1px solid var(--border); border-radius:12px; background:rgba(7,7,7,.72); color:var(--text); padding:11px 12px; font:inherit; }
.pause-q textarea { min-height:74px; resize:vertical; }
.pause-q textarea:focus, .pause-q select:focus { outline:none; border-color:rgba(224,82,82,.45); box-shadow:0 0 0 3px rgba(224,82,82,.08); }
.pause-return-progress { margin-top:10px; font-size:12px; color:#ffd6d6; border-top:1px solid rgba(255,255,255,.06); padding-top:10px; }
.pause-return-gate.ready .pause-return-progress { color:#e7cf8b; }
#a2-pause-dock { position:fixed; left:18px; bottom:18px; z-index:999790; display:flex; align-items:center; gap:10px; border:1px solid rgba(201,168,76,.68); background:linear-gradient(135deg,rgba(18,18,16,.96),rgba(7,7,6,.96)); color:var(--text); border-radius:999px; padding:10px 14px; box-shadow:0 18px 44px rgba(0,0,0,.45); cursor:pointer; max-width:min(360px,calc(100vw - 36px)); }
#a2-pause-dock:hover { transform:translateY(-1px); border-color:var(--gold); }
#a2-pause-dock.active { border-color:rgba(224,82,82,.72); box-shadow:0 18px 44px rgba(0,0,0,.55), 0 0 0 1px rgba(224,82,82,.16), 0 0 24px rgba(224,82,82,.14); }
#a2-pause-dock .pause-dock-title { font-size:12px; font-weight:800; letter-spacing:.02em; white-space:nowrap; }
#a2-pause-dock .pause-dock-sub { font-size:11px; color:var(--muted); margin-top:2px; max-width:260px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
@media(max-width:760px){.pause-modal-overlay{padding:8px}.pause-modal-panel{max-height:calc(100dvh - 16px)}.pause-grid,.pause-protocol,.pause-custom-row,.pause-methods{grid-template-columns:1fr}.trade-img-modal-panel{padding:0 10px}.trade-img-nav.prev{left:8px}.trade-img-nav.next{right:8px}#a2-pause-dock{left:12px;bottom:12px;padding:9px 12px}#a2-pause-dock .pause-dock-sub{max-width:190px}}
.trade-img-modal-status[hidden] { display:none; }
.trade-img-modal-close {
  position:absolute; top:-14px; right:-14px; width:36px; height:36px; border-radius:999px;
  border:1px solid rgba(255,255,255,0.22); background:#111; color:#fff; cursor:pointer; font-size:18px;
}
@media (max-width: 680px) {
  .trade-image-top { flex-direction:column; }
  .trade-image-actions { width:100%; justify-content:flex-start; }
  .trade-image-grid { grid-template-columns:repeat(auto-fill,minmax(74px,1fr)); }
}


.pnl-scale-cell { vertical-align: middle; }
.pnl-scale-wrap {
  display: flex; align-items: center; gap: 6px; width: 120px;
}
.pnl-scale-bar-outer {
  flex: 1; height: 20px; display: flex; align-items: center;
  position: relative; border-radius: 2px; overflow: hidden;
  background: transparent;
}

.pnl-scale-left  { height: 100%; background: rgba(200,60,60,0.13); border-radius: 2px 0 0 2px; flex-shrink: 0; }
.pnl-scale-right { height: 100%; background: rgba(0,180,120,0.13); border-radius: 0 2px 2px 0; flex-shrink: 0; }

.pnl-scale-realized {
  position: absolute; top: 50%; transform: translateY(-50%);
  height: 5px; border-radius: 2px; min-width: 3px;
  transition: width 0.3s ease, left 0.3s ease;
}
.pnl-scale-realized.profit { background: var(--green); }
.pnl-scale-realized.loss   { background: var(--red); }

.pnl-scale-bar-outer::after {
  content: ''; position: absolute; left: 50%; top: 20%; height: 60%;
  width: 1px; background: var(--border); transform: translateX(-50%);
}

.pnl-scale-none { color: var(--faint); font-size: 11px; letter-spacing: 0.05em; }


.scale-tooltip {
  position: fixed; z-index: 4000; pointer-events: none;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 5px; padding: 8px 12px; min-width: 160px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.45);
  font-family: var(--sans); font-size: 11px; line-height: 1.7;
  opacity: 0; transition: opacity 0.12s;
}
.scale-tooltip.visible { opacity: 1; }
.scale-tooltip-row { display: flex; justify-content: space-between; gap: 16px; }
.scale-tooltip-label { color: var(--muted); letter-spacing: 0.06em; text-transform: uppercase; font-size: 9.5px; font-weight: 600; }
.scale-tooltip-val   { color: var(--text); font-weight: 500; }
.scale-tooltip-val.profit { color: var(--green); }
.scale-tooltip-val.loss   { color: var(--red); }
.scale-tooltip-divider { border: none; border-top: 1px solid var(--border); margin: 5px 0; }

.row-details-cell { padding: 0 !important; }
.row-details {
  background: var(--bg); padding: 20px 28px;
  border-top: 1px solid var(--border);
  display: grid; gap: 14px; grid-template-columns: 1fr;
}
@media (min-width: 640px) { .row-details { grid-template-columns: 1fr 1fr; } }
.detail-label {
  font-family: var(--sans); font-size: 9.5px; font-weight: 500;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted);
  margin-bottom: 4px;
}
.detail-value { font-size: 0.9rem; color: var(--text); line-height: 1.55; }
.log-empty { padding: 48px 24px; text-align: center; color: var(--muted); }


.row-actions {
  display: flex;
  gap: 8px;
  padding: 16px 28px 20px;
  background: var(--bg);
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}
.row-actions .btn { flex: 0 0 auto; }
.row-actions .btn .icon { width: 13px; height: 13px; }
.row-delete-btn:hover { border-color: var(--red); color: var(--red); }
.login-gate-section {
  min-height: calc(100vh - var(--nav-h));
  display: flex; align-items: center; justify-content: center;
  padding: 60px 20px;
}
.login-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 48px 40px;
  width: 100%; max-width: 420px;
  text-align: center;
}
.login-logo {
  font-family: var(--serif); font-size: 2.5rem; font-weight: 400;
  color: var(--text); letter-spacing: -0.02em; margin-bottom: 28px;
}
.login-title {
  font-family: var(--serif); font-size: 1.5rem; color: var(--text);
  font-weight: 400; font-style: normal; margin-bottom: 8px;
}
.login-sub {
  color: var(--muted); font-size: 0.9rem; line-height: 1.55;
  margin-bottom: 32px;
}
#login-form { text-align: left; display: flex; flex-direction: column; gap: 16px; }


.auth-divider { display: flex; align-items: center; gap: 12px; margin: 4px 0; }
.auth-divider-line { flex: 1; height: 1px; background: var(--border); }
.auth-divider-text {
  font-family: var(--sans);
  font-size: 11px; font-weight: 500;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--muted);
}
.btn-google {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 10px;
}
.login-submit { margin-top: 8px; width: 100%; }
.login-foot {
  color: var(--muted); font-size: 0.85rem;
  margin-top: 28px; padding-top: 24px;
  border-top: 1px solid var(--border);
}
.login-foot.split {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.forgot-sent-email {
  margin-top: 10px;
  font-family: var(--serif);
  font-style: normal;
  color: var(--text);
  font-size: 1rem;
  word-break: break-all;
}
.forgot-success .icon { width: 40px; height: 40px; color: var(--muted); }

.auth-switch-link {
  color: var(--text);
  border-bottom: 1px solid var(--border);
  padding-bottom: 2px;
  transition: border-color 0.15s, color 0.15s;
  cursor: pointer;
}
.auth-switch-link:hover { border-bottom-color: var(--text); }

.auth-error {
  background: var(--surface-raised);
  color: var(--muted);
  border: 1px solid var(--border);
  border-left: 2px solid var(--text);
  padding: 10px 14px;
  font-size: 0.85rem;
  font-style: italic;
  border-radius: 2px;
  line-height: 1.4;
}

.nav-user { display: inline-flex; align-items: center; gap: 8px; }
.nav-user-email {
  font-family: var(--sans); font-size: 11px; font-weight: 500;
  letter-spacing: 0.02em; color: var(--muted);
  max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  display: none;
}
@media (min-width: 900px) { .nav-user-email { display: inline-block; } }


.list-manage-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 16px; height: 16px; flex-shrink: 0;
  font-size: 11px; color: var(--muted); background: none;
  border: none; cursor: pointer; border-radius: 2px;
  transition: color 0.15s; padding: 0;
}
.list-manage-btn:hover { color: var(--text); }


#trade-form .list-manage-btn{
  width:auto; height:auto;
  padding:3px 7px;
  font-size:14px; line-height:1; letter-spacing:0; vertical-align:middle;
  color:var(--gold);
  background:transparent;
  border:1px solid var(--border); border-radius:6px;
  transition:color .15s ease, border-color .15s ease, background .15s ease;
}
#trade-form .list-manage-btn:hover{
  color:var(--gold); border-color:var(--gold); background:rgba(201,168,76,.08);
}

.lm-overlay {

  position: fixed; inset: 0; z-index: 3200;
  background: var(--overlay-bg); backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
.lm-overlay[hidden] { display: none !important; }
.lm-panel {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 6px; width: 100%; max-width: 400px;
  padding: 24px 20px 20px; display: flex; flex-direction: column; gap: 14px;
}
.lm-title { font-family: var(--serif); font-size: 1.15rem; color: var(--text); }
.lm-list { display: flex; flex-direction: column; gap: 5px; max-height: 260px; overflow-y: auto; }
.lm-row {
  display: flex; align-items: center; gap: 8px;
  padding: 5px 10px; border: 1px solid var(--border);
  border-radius: 3px; background: var(--surface-raised);
}
.lm-name { flex: 1; font-size: 0.875rem; color: var(--text); }
.lm-del {
  display: inline-flex; align-items: center; justify-content: center;
  width: 20px; height: 20px; font-size: 14px; color: var(--muted);
  cursor: pointer; border-radius: 3px; background: none; border: none;
  transition: color 0.15s, background 0.15s; flex-shrink: 0;
}
.lm-del:hover { color: var(--red); background: rgba(255,77,77,0.1); }
.lm-add-row { display: flex; gap: 8px; }
.lm-add-row input {
  flex: 1; padding: 8px 10px;
  background: var(--bg); border: 1px solid var(--border);
  border-radius: 3px; font-size: 0.875rem; color: var(--text);
}
.lm-add-row input:focus { outline: 0; border-color: var(--text); }
.lm-footer { display: flex; justify-content: flex-end; gap: 8px; }


.pnl-mode-toggle {
  display: inline-flex; align-items: center; gap: 0;
  border: 1px solid var(--border); border-radius: 3px;
  overflow: hidden; margin-left: auto; flex-shrink: 0;
}
.pnl-mode-btn {
  font-family: var(--sans); font-size: 9px; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  padding: 3px 8px; cursor: pointer;
  background: none; border: none; color: var(--muted);
  transition: background 0.12s, color 0.12s;
  line-height: 1.6; white-space: nowrap;
}
.pnl-mode-btn.active { background: var(--text); color: var(--bg); }
.pnl-mode-btn:hover:not(.active) { color: var(--text); }


.pv-overlay {
  position: fixed; inset: 0; z-index: 1200;
  background: var(--overlay-bg); backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
.pv-overlay[hidden] { display: none !important; }
.pv-panel {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 6px; width: 100%; max-width: 360px;
  padding: 24px 20px 20px; display: flex; flex-direction: column; gap: 14px;
}
.pv-title { font-family: var(--serif); font-size: 1.1rem; color: var(--text); }
.pv-sub   { font-size: 0.8125rem; color: var(--muted); margin-top: -6px; }
.pv-row   { display: flex; gap: 8px; align-items: center; }
.pv-row input {
  flex: 1; padding: 9px 10px;
  background: var(--bg); border: 1px solid var(--border);
  border-radius: 3px; font-size: 0.9rem; color: var(--text);
}
.pv-row input:focus { outline: 0; border-color: var(--text); }
.pv-footer { display: flex; justify-content: flex-end; gap: 8px; }


.comm-breakdown-header { margin-bottom: 40px; }

.comm-donut {
  position: relative;
  width: 160px; height: 160px;
  flex-shrink: 0;
}
.comm-legend-item {
  display: flex; align-items: flex-start; gap: 12px;
}

.rewards-preview-notice{border:1px solid rgba(201,168,76,.42);background:linear-gradient(135deg,rgba(201,168,76,.12),rgba(255,255,255,.025));border-left:3px solid var(--gold);border-radius:18px;padding:18px 20px;margin:22px 0 24px;box-shadow:0 18px 45px rgba(0,0,0,.14)}
.rewards-preview-kicker{color:var(--gold);font-size:11px;text-transform:uppercase;letter-spacing:.16em;margin-bottom:8px;font-weight:700}.rewards-preview-title{font-size:1.15rem;color:var(--text);font-weight:700;margin-bottom:6px}.rewards-preview-notice p{margin:0;color:var(--muted);font-size:13px;line-height:1.65}


#transparency .a2-charity-vote{
  max-width:920px; margin:28px auto 0; padding:26px 26px 24px;
  background:var(--surface); border:1px solid var(--border);
  border-radius:12px;
  box-shadow:0 1px 0 rgba(255,255,255,.02) inset, 0 22px 48px -30px rgba(0,0,0,.75);
}
#transparency .a2-charity-head{
  display:grid; grid-template-columns:minmax(0,1fr) auto; gap:20px; align-items:start;
  padding-bottom:18px; margin-bottom:20px; border-bottom:1px solid var(--border);
}
#transparency .a2-charity-title{
  font-family:var(--display, Georgia, serif); color:var(--text); font-size:clamp(1.7rem,3vw,2.35rem);
  line-height:1.08; letter-spacing:-.01em; margin:10px 0 12px; font-variant-numeric:lining-nums;
}
#transparency .a2-charity-copy{ color:var(--muted); font-size:.92rem; line-height:1.65; max-width:640px; margin:0 0 9px; }
#transparency .a2-charity-copy:last-of-type{ margin-bottom:0; }
#transparency .a2-charity-amount{
  justify-self:end; min-width:158px; padding:14px 18px; border:1px solid rgba(0,200,150,.32);
  border-radius:10px; text-align:right; background:rgba(0,200,150,.06);
}
#transparency .a2-charity-amount-label{
  display:block; color:var(--muted); font-size:.68rem; letter-spacing:.14em; text-transform:uppercase;
}
#transparency .a2-charity-amount-num{
  display:block; margin-top:5px; color:var(--green); font-family:var(--display, Georgia, serif);
  font-size:1.72rem; line-height:1; font-variant-numeric:lining-nums tabular-nums;
}
#transparency .a2-charity-options{ display:grid; gap:9px; }
#transparency .a2-charity-option{
  border:1px solid var(--border); border-radius:10px; background:rgba(255,255,255,.018);
  overflow:hidden; transition:border-color .16s ease, background .16s ease, transform .16s ease, box-shadow .16s ease;
}
#transparency .a2-charity-option:hover{ border-color:rgba(201,168,76,.62); background:rgba(201,168,76,.06); transform:translateY(-1px); box-shadow:0 14px 30px -24px rgba(0,0,0,.9); }
#transparency .a2-charity-option.is-selected{ border-color:var(--gold); background:rgba(201,168,76,.09); }
#transparency .a2-charity-pick{
  display:grid; grid-template-columns:54px minmax(0,1fr) minmax(74px,auto); gap:14px; align-items:center;
  width:100%; min-height:92px; padding:14px 16px; text-align:left;
}
#transparency .a2-charity-pick:active{ transform:translateY(1px); }
#transparency .a2-charity-pick:focus-visible{ outline:2px solid var(--gold); outline-offset:-2px; }
#transparency .a2-charity-pick[disabled],
#transparency #charity-vote-submit[disabled]{ cursor:not-allowed; opacity:.62; }
#transparency .a2-charity-logo{
  position:relative; display:flex; align-items:center; justify-content:center; width:50px; height:50px;
  border-radius:12px; border:1px solid rgba(201,168,76,.26); background:rgba(255,255,255,.035);
}
#transparency .a2-charity-logo img{ width:34px; height:34px; object-fit:contain; border-radius:6px; }
#transparency .a2-charity-letter{
  position:absolute; left:-6px; top:-6px; display:flex; align-items:center; justify-content:center;
  width:22px; height:22px; border-radius:999px; border:1px solid rgba(201,168,76,.42);
  background:var(--surface); color:var(--gold); font-weight:700; font-size:.72rem;
  transition:background .16s ease, color .16s ease, border-color .16s ease;
}
#transparency .a2-charity-option.is-selected .a2-charity-letter{ background:var(--gold); color:var(--bg); border-color:var(--gold); }
#transparency .a2-charity-main{ min-width:0; }
#transparency .a2-charity-name{ display:block; color:var(--text); font-weight:700; font-size:.95rem; line-height:1.35; }
#transparency .a2-charity-desc{ display:block; margin-top:4px; color:var(--muted); font-size:.82rem; line-height:1.45; }
#transparency .a2-charity-result{ text-align:right; color:var(--muted); font-variant-numeric:lining-nums tabular-nums; }
#transparency .a2-charity-pct{ display:block; color:var(--text); font-weight:700; font-size:1.05rem; }
#transparency .a2-charity-count{ display:block; margin-top:2px; font-size:.72rem; }
#transparency .a2-charity-meter{ grid-column:1/-1; height:4px; border-radius:999px; background:rgba(255,255,255,.07); overflow:hidden; }
#transparency .a2-charity-bar{
  display:block; width:0%; height:100%; border-radius:999px;
  background:linear-gradient(90deg,rgba(0,200,150,.55),var(--green)); transition:width .28s ease;
}
#transparency .a2-charity-option.is-selected .a2-charity-bar{ background:linear-gradient(90deg,rgba(0,200,150,.75),var(--green)); }
#transparency .a2-charity-link{
  display:inline-flex; align-items:center; gap:6px; margin:0 14px 14px 84px; color:var(--gold);
  font-size:.72rem; font-weight:700; letter-spacing:.1em; text-transform:uppercase; text-decoration:none;
  opacity:.82; transition:opacity .16s ease, color .16s ease;
}
#transparency .a2-charity-link .icon{ width:12px; height:12px; }
#transparency .a2-charity-link:hover{ color:var(--text); opacity:1; }
#transparency .a2-charity-actions{ display:flex; justify-content:flex-end; margin-top:18px; }
#transparency .a2-charity-live{
  display:flex; align-items:center; justify-content:space-between; gap:12px; margin-top:16px;
  padding-top:14px; border-top:1px solid var(--border);
  color:var(--muted); font-size:.82rem; line-height:1.5;
}
#transparency .a2-charity-status{ color:var(--muted); }
#transparency .a2-charity-total{ color:var(--text); font-weight:700; font-variant-numeric:lining-nums tabular-nums; }
html.light #transparency .a2-charity-option{ background:rgba(10,10,9,.018); }
html.light #transparency .a2-charity-option:hover{ background:rgba(160,120,48,.08); }
html.light #transparency .a2-charity-letter{ background:var(--surface); }
html.light #transparency .a2-charity-meter{ background:rgba(10,10,9,.08); }
#transparency .a2-charity-voted-badge{
  display:none; align-items:center; gap:7px; color:var(--green);
  font-size:.82rem; font-weight:700; letter-spacing:.04em;
}
#transparency .a2-charity-voted-badge .icon{ width:16px; height:16px; }
#transparency .a2-charity-vote.is-voted #charity-vote-submit{ display:none; }
#transparency .a2-charity-vote.is-voted .a2-charity-voted-badge{ display:inline-flex; }
#transparency .a2-charity-vote.is-voted .a2-charity-option:hover{ transform:none; box-shadow:none; }
#transparency .a2-charity-vote.is-voted .a2-charity-pick[disabled]{ opacity:1; cursor:default; }
@keyframes a2CharityConfirm{
  0%{ box-shadow:0 0 0 0 rgba(201,168,76,0); }
  35%{ box-shadow:0 0 0 3px rgba(201,168,76,.30); }
  100%{ box-shadow:0 0 0 0 rgba(201,168,76,0); }
}
@keyframes a2VotedBadgeIn{
  0%{ opacity:0; transform:translateY(5px) scale(.94); }
  100%{ opacity:1; transform:none; }
}
#transparency .a2-charity-vote.vote-just-submitted .a2-charity-option.is-selected{ animation:a2CharityConfirm .9s ease-out; }
#transparency .a2-charity-vote.vote-just-submitted .a2-charity-voted-badge{ animation:a2VotedBadgeIn .45s ease-out; }
@media (max-width:700px){
  #transparency .a2-charity-vote{ padding:20px; }
  #transparency .a2-charity-head{ grid-template-columns:1fr; }
  #transparency .a2-charity-amount{ justify-self:stretch; text-align:left; }
}
@media (max-width:430px){
  #transparency .a2-charity-pick{ grid-template-columns:46px minmax(0,1fr); gap:10px; padding:12px; }
  #transparency .a2-charity-logo{ width:44px; height:44px; }
  #transparency .a2-charity-logo img{ width:30px; height:30px; }
  #transparency .a2-charity-result{ grid-column:2; text-align:left; display:flex; gap:8px; align-items:baseline; }
  #transparency .a2-charity-link{ margin-left:68px; }
  #transparency .a2-charity-actions{ justify-content:stretch; }
  #transparency #charity-vote-submit{ width:100%; }
}
@media (prefers-reduced-motion:reduce){
  #transparency .a2-charity-option,
  #transparency .a2-charity-letter,
  #transparency .a2-charity-bar{ transition:none; }
  #transparency .a2-charity-vote.vote-just-submitted .a2-charity-option.is-selected,
  #transparency .a2-charity-vote.vote-just-submitted .a2-charity-voted-badge{ animation:none; }
}
#transparency .comm-breakdown-header .label,
#transparency .comm-breakdown-header .a2-tp-month,
#transparency .comm-breakdown-header .a2-tp-total-num,
#transparency .comm-breakdown-sub{
  transition: color .18s ease, text-shadow .18s ease;
}
#transparency .comm-breakdown-header .label:hover,
#transparency .comm-breakdown-header .a2-tp-month:hover,
#transparency .comm-breakdown-header .a2-tp-total-num:hover,
#transparency .comm-breakdown-sub:hover{
  color: var(--gold) !important;
  text-shadow: 0 0 8px rgba(201,168,76,.55), 0 0 18px rgba(201,168,76,.35), 0 0 30px rgba(201,168,76,.18);
}

.pb-empty-guide { color: var(--gold-soft); text-decoration: underline; text-underline-offset: 3px; }
.pb-empty-guide:hover, .pb-empty-guide:focus-visible { color: var(--gold); }

/* Split-safety: the reduced-motion kill switch for this overlay lives in
   public-shell, which now loads BEFORE this file - so the bare transition
   above would win at equal specificity. Re-assert the override here, at
   the end, where original file order effectively put it. */
@media (prefers-reduced-motion: reduce) {
  #lang-fade-overlay { transition: none; }
  #lang-fade-overlay .lfx-token, #lang-fade-overlay .lfx-arrow { animation: none; }
}

/* On small screens tools occupy their own row, never the page's tap targets.
   The existing desktop corner treatment remains within its original owners. */
#a2-workspace-tools { display: contents; }
body:has(#login-gate:not([hidden])) :is(#a2-workspace-tools,#a2-v314g-launch),
body:has(#a2-verify-action-overlay,#a2-reset-action-overlay) :is(#a2-workspace-tools,#a2-v314g-launch) { display: none !important; }
#a2-workspace-tools button:focus-visible { outline: 2px solid var(--gold,#c9a84c); outline-offset: 3px; }
@media (max-width: 760px) {
  #a2-workspace-tools { display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:start; gap:8px; margin:12px 16px 0; min-height:110px; }
  #a2-workspace-tools #a2-safe-sync-badge,
  #a2-workspace-tools #a2-v199-quick-dock { position:static !important; inset:auto !important; z-index:auto; width:100%; max-width:none; box-sizing:border-box; }
  #a2-workspace-tools #a2-v314g-launch { position:static !important; inset:auto !important; z-index:auto; order:0; min-height:48px; max-width:100px; padding:8px 10px; white-space:normal; }
  #a2-workspace-tools #a2-safe-sync-badge { order:0; flex-wrap:wrap; min-height:48px; padding:6px 8px; border-radius:14px; }
  #a2-workspace-tools #a2-safe-sync-badge .a2-sync-main { flex:1; }
  #a2-workspace-tools #a2-safe-sync-badge :is(.a2-sync-title,.a2-sync-meta,.a2-sync-failed) { white-space:normal; overflow:visible; text-overflow:clip; max-width:none; }
  #a2-workspace-tools #a2-safe-sync-badge[data-compact="0"] .a2-sync-actions { width:100%; justify-content:flex-end; }
  #a2-workspace-tools #a2-safe-sync-badge .a2-sync-actions button { min-width:44px; min-height:44px; }
  #a2-workspace-tools #a2-v199-quick-dock { order:1; grid-column:1 / -1; display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px !important; }
  #a2-workspace-tools #a2-v199-quick-dock .a2-v199-quick-btn { width:100% !important; min-width:0 !important; max-width:none !important; height:auto !important; min-height:46px !important; padding:10px 12px !important; justify-content:flex-start !important; overflow:visible !important; }
  #a2-workspace-tools #a2-v199-quick-dock .a2-v199-quick-btn .copy { width:auto !important; max-width:none !important; opacity:1 !important; transform:none !important; overflow:visible !important; pointer-events:auto !important; }
  #a2-workspace-tools #a2-v199-quick-dock .title { font-size:12px; white-space:normal; text-align:left; }
  #a2-workspace-tools #a2-v199-quick-dock .dot { width:6px; height:6px; }
}
