:root { color-scheme: light; --ink: #1d2939; --muted: #667085; --line: #e4e7ec; --surface: #fff; --bg: #f4f7fb; --brand: #2855d9; --brand-dark: #1d3fa5; --success: #087443; --warning: #b54708; }
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background: linear-gradient(180deg, #fff0df 0%, #fff8f0 38%, #fffaf7 100%); color: var(--ink); font: 15px/1.6 "Microsoft YaHei", "PingFang SC", sans-serif; }
.shell { width: min(1180px, calc(100% - 32px)); margin: 0 auto; padding: 32px 0 60px; }
.login-card { width: min(440px, 100%); margin: 9vh auto 0; padding: 36px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 18px 55px rgba(16, 24, 40, .08); }
.shell:has(#login-view:not(.hidden)) { width: min(1440px, calc(100% - 32px)); padding: 16px 0; }
.login-experience { display: grid; grid-template-columns: minmax(520px, 1.1fr) minmax(430px, .9fr); min-height: calc(100vh - 32px); overflow: hidden; border: 1px solid #dce2e7; border-radius: 18px; background: #fff; box-shadow: 0 22px 60px rgba(16, 24, 40, .12); }
.login-scene { --face-x: 0px; --face-y: 0px; --pupil-x: 0px; --pupil-y: 0px; --scene-lean: 0deg; position: relative; min-height: 720px; overflow: hidden; padding: 42px 46px; background: #173f43; color: #fff; }
.login-brand { position: relative; z-index: 5; display: flex; align-items: center; gap: 12px; width: fit-content; }
.login-brand img { width: 86px; height: 42px; border-radius: 6px; background: #fff; object-fit: cover; object-position: center 48%; }
.login-brand > div { display: grid; line-height: 1.15; }
.login-brand strong { font-size: 19px; }
.login-brand span { margin-top: 4px; color: rgba(255, 255, 255, .6); font-size: 9px; letter-spacing: 0; }
.login-scene-copy { position: relative; z-index: 5; margin-top: clamp(70px, 10vh, 120px); }
.login-scene-copy p { margin: 0 0 12px; color: #e4c85a; font-size: 11px; font-weight: 800; letter-spacing: 0; }
.login-scene-copy h1 { margin: 0; color: #fff; font-size: 54px; line-height: 1.16; letter-spacing: 0; }
.login-scene-copy > span { display: block; margin-top: 18px; color: rgba(255, 255, 255, .72); font-size: 14px; }
.login-characters { position: absolute; right: clamp(24px, 6vw, 90px); bottom: 0; z-index: 2; width: 520px; height: 350px; transform-origin: bottom center; transition: transform .45s cubic-bezier(.22, 1, .36, 1); }
.login-scene.is-typing .login-characters { transform: translateX(6px) skewX(var(--scene-lean)); }
.login-character { position: absolute; bottom: 0; transform-origin: bottom center; transition: height .55s cubic-bezier(.22, 1, .36, 1), transform .42s cubic-bezier(.22, 1, .36, 1); }
.character-tall { left: 82px; z-index: 1; width: 168px; height: 338px; border-radius: 14px 14px 0 0; background: #2d64cf; }
.character-dark { left: 244px; z-index: 2; width: 112px; height: 266px; border-radius: 10px 10px 0 0; background: #252c33; }
.character-sun { left: 0; z-index: 3; width: 225px; height: 164px; border-radius: 115px 115px 0 0; background: #e4c85a; }
.character-coral { left: 335px; z-index: 4; width: 148px; height: 218px; border-radius: 76px 76px 0 0; background: #e98268; }
.character-face { position: absolute; display: flex; gap: 24px; transform: translate(var(--face-x), var(--face-y)); transition: transform .12s ease-out; }
.character-tall .character-face { left: 47px; top: 43px; }
.character-dark .character-face { left: 27px; top: 36px; gap: 18px; }
.character-sun .character-face { left: 83px; top: 83px; gap: 28px; }
.character-coral .character-face { left: 51px; top: 51px; gap: 24px; }
.character-eye { display: grid; place-items: center; width: 20px; height: 20px; overflow: hidden; border-radius: 50%; background: #fff; transform-origin: center; transition: height .12s ease, transform .2s ease; }
.character-dark .character-eye { width: 17px; height: 17px; }
.character-eye b { width: 7px; height: 7px; border-radius: 50%; background: #20262c; transform: translate(var(--pupil-x), var(--pupil-y)); transition: opacity .08s ease, transform .12s ease-out; }
.character-dot { width: 11px; height: 11px; border-radius: 50%; background: #252c33; transform: translate(var(--pupil-x), var(--pupil-y)); transition: transform .12s ease-out; }
.login-character.is-blinking .character-eye { height: 2px; transform: translateY(9px); }
.login-character.is-blinking .character-eye b { opacity: 0; }
.login-scene.password-hidden .character-tall { height: 346px; transform: skewX(calc(-3deg + var(--scene-lean))) translateX(9px); }
.login-scene.password-hidden .character-dark { transform: skewX(calc(3deg + var(--scene-lean))) translateX(4px); }
.login-scene.password-hidden .character-tall .character-face { transform: translate(calc(var(--face-x) + 5px), calc(var(--face-y) + 8px)); }
.login-scene.password-hidden .character-dark .character-face { transform: translate(calc(var(--face-x) - 3px), calc(var(--face-y) - 5px)); }
.login-scene.password-hidden .character-sun .character-face { transform: translate(calc(var(--face-x) + 2px), calc(var(--face-y) - 2px)); }
.login-scene.password-hidden .character-coral .character-face { transform: translate(calc(var(--face-x) - 2px), calc(var(--face-y) - 2px)); }
.login-scene.password-visible .character-tall { transform: skewX(calc(-1deg + var(--scene-lean))); }
.login-scene.password-visible .character-dark { transform: skewX(calc(1deg + var(--scene-lean))); }
.login-scene.password-visible .character-face { transform: translate(var(--face-x), var(--face-y)); }
.login-scene.password-visible .character-eye b, .login-scene.password-visible .character-dot { transform: translate(var(--pupil-x), var(--pupil-y)); }
.login-scene.password-visible.is-peeking .character-tall .character-face { transform: translate(8px, 5px); }
.login-scene.password-visible.is-peeking .character-eye b, .login-scene.password-visible.is-peeking .character-dot { transform: translate(4px, 4px); }
.login-scene.is-looking-at-each-other .character-tall { transform: skewX(-5deg) translateX(12px); }
.login-scene.is-looking-at-each-other .character-dark { transform: skewX(6deg) translateX(5px); }
.login-scene.is-looking-at-each-other .character-tall .character-face { transform: translate(10px, 18px); }
.login-scene.is-looking-at-each-other .character-dark .character-face { transform: translate(-4px, -15px); }
.login-scene.is-looking-at-each-other .character-tall .character-eye b { transform: translate(4px, 4px); }
.login-scene.is-looking-at-each-other .character-dark .character-eye b { transform: translate(-4px, -4px); }
.login-scene.is-register .login-characters { transform: scale(.94); }
.login-scene-note { position: absolute; left: 46px; bottom: 24px; z-index: 6; margin: 0; color: rgba(255, 255, 255, .48); font-size: 11px; }
.login-auth-panel { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); place-items: center; min-width: 0; padding: 44px clamp(34px, 5vw, 76px); overflow-y: auto; background: #fff; }
.login-auth-inner { width: min(100%, 410px); min-width: 0; justify-self: center; }
.login-auth-inner > h1 { margin: 7px 0 5px; font-size: 34px; letter-spacing: 0; }
.login-auth-inner .eyebrow { letter-spacing: 0; }
.login-mobile-brand { display: none; }
.login-auth-panel .auth-tabs { margin-top: 30px; }
.login-auth-panel .auth-form label { font-size: 13px; }
.login-auth-panel .auth-form input, .login-auth-panel .auth-form select { min-height: 46px; }
.login-password-field .password-toggle { width: 96px; }
.login-submit { width: 100%; min-height: 48px; margin-top: 4px; }
.login-auth-foot { position: absolute; bottom: 18px; margin: 0; color: #98a2b3; font-size: 11px; }
@media (prefers-reduced-motion: reduce) { .login-character, .login-characters, .character-face, .character-eye, .character-eye b, .character-dot { animation: none; transition: none; } }
@media (max-width: 1050px) {
  .shell:has(#login-view:not(.hidden)) { width: min(720px, calc(100% - 28px)); }
  .login-experience { grid-template-columns: 1fr; min-height: calc(100vh - 28px); }
  .login-scene { display: none; }
  .login-auth-panel { min-height: calc(100vh - 28px); padding: 48px; }
  .login-mobile-brand { display: block; width: 116px; height: 56px; margin-bottom: 34px; overflow: hidden; border-radius: 6px; }
  .login-mobile-brand img { width: 100%; height: 100%; object-fit: cover; object-position: center 48%; }
}
@media (max-width: 1220px) and (min-width: 1051px) {
  .login-scene-copy h1 { font-size: 44px; }
  .login-characters { right: 8px; transform: scale(.9); transform-origin: bottom right; }
}
@media (max-width: 560px) {
  .shell:has(#login-view:not(.hidden)) { width: 100%; padding: 0; }
  .login-experience { min-height: 100vh; border: 0; border-radius: 0; box-shadow: none; }
  .login-auth-panel { width: 100%; max-width: 100vw; min-width: 0; min-height: 100vh; padding: 30px 20px 56px; overflow-x: hidden; place-items: start stretch; }
  .login-auth-inner { width: 100%; max-width: calc(100vw - 40px); min-width: 0; margin-top: 4vh; justify-self: stretch; }
  .login-auth-inner .auth-tabs, .login-auth-inner .auth-form, .login-auth-inner label { min-width: 0; }
  .login-auth-inner .auth-tab { min-width: 0; }
  .login-auth-inner > h1 { font-size: 30px; }
  .login-mobile-brand { margin-bottom: 28px; }
  .login-password-field .password-toggle { width: 82px; }
  .login-password-field .password-toggle-label { font-size: 11px; }
  .verification-row { grid-template-columns: 1fr; }
  .verification-row button { width: 100%; }
}
.brand-mark { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--brand); color: white; font-size: 23px; font-weight: 700; }
.eyebrow { margin: 0 0 6px; color: var(--brand); font-size: 11px; letter-spacing: .14em; font-weight: 700; }
h1, h2, h3, h4 { margin: 0; line-height: 1.3; } h1 { margin: 10px 0; font-size: clamp(28px, 4vw, 42px); } h2 { font-size: 24px; } h3 { font-size: 19px; } h4 { font-size: 15px; }
.muted { color: var(--muted); } .error { min-height: 22px; margin: 10px 0 0; color: #b42318; }
form { display: grid; gap: 16px; } label { display: grid; gap: 7px; color: #344054; font-weight: 600; }
input, textarea, select, button { font: inherit; } input, textarea, select { width: 100%; border: 1px solid #d0d5dd; border-radius: 7px; padding: 10px 12px; background: #fff; color: var(--ink); } input:focus, textarea:focus, select:focus { outline: 3px solid rgba(40, 85, 217, .15); border-color: var(--brand); } textarea { resize: vertical; min-height: 120px; }
input:focus::placeholder, textarea:focus::placeholder { color: transparent; }
button { border: 0; border-radius: 9px; padding: 10px 15px; cursor: pointer; font-weight: 700; } button.primary { background: var(--brand); color: white; } button.primary:hover { background: var(--brand-dark); } button.secondary { background: #eef2ff; color: var(--brand-dark); } button.ghost { padding: 7px 12px; background: transparent; color: var(--brand); }
button:disabled { cursor: not-allowed; opacity: .5; } button.danger { background: #fff1f0; color: #b42318; }
.hidden { display: none !important; } .topbar, .panel-heading, .session, .actions, .filters { display: flex; align-items: center; justify-content: space-between; gap: 16px; } .topbar { margin-bottom: 24px; }
.workspace-nav { display: flex; gap: 4px; margin-bottom: 14px; border-bottom: 1px solid var(--line); } .nav-tab { border-radius: 7px 7px 0 0; background: transparent; color: var(--muted); } .nav-tab.active { background: var(--surface); color: var(--brand); box-shadow: inset 0 -2px var(--brand); }
.nav-tab { transition: color .2s ease, transform .2s ease, background-color .2s ease; } .nav-tab:hover { color: var(--brand); transform: translateY(-2px); }
.panel { padding: 26px; background: var(--surface); border: 0; border-radius: 18px; box-shadow: 0 18px 48px rgba(16, 24, 40, .07), 0 2px 8px rgba(16, 24, 40, .04); } .panel-heading { margin-bottom: 24px; }
.review-form { display: block; } .review-meta { display: grid; grid-template-columns: minmax(220px, 1fr) 220px; gap: 14px; margin-bottom: 22px; } .review-meta input[readonly] { background: #f2f4f7; } .section-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; } .section-field { padding: 16px; background: #f8faff; border: 1px solid #e3e9ff; border-radius: 7px; } .section-field span { min-height: 44px; color: #344054; }
.actions { justify-content: flex-end; margin-top: 22px; } .status { color: var(--success); font-size: 13px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.review-excel-tools { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.review-excel-tools button { min-width: 190px; }
.review-submit-actions { gap: 14px; }
.review-submit-actions > button { width: auto; min-width: 112px; }
.review-progress { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 0 0 22px; padding: 0; list-style: none; }
.review-progress::before { position: absolute; left: 12.5%; right: 12.5%; top: 17px; height: 2px; background: #e4e7ec; content: ''; }
.review-progress li { position: relative; z-index: 1; display: grid; justify-items: center; gap: 6px; color: #98a2b3; font-size: 12px; text-align: center; }
.review-progress li span { display: grid; place-items: center; width: 34px; height: 34px; border: 2px solid #e4e7ec; border-radius: 50%; background: #fff; font-weight: 800; }
.review-progress li.is-current { color: var(--brand); }
.review-progress li.is-current span { border-color: #a9bdfc; background: #eef2ff; }
.review-progress li.is-complete { color: var(--success); }
.review-progress li.is-complete span { border-color: var(--success); background: #ecfdf3; }
.button-spinner { width: 17px; height: 17px; flex: 0 0 17px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: button-spinner-rotate .7s linear infinite; }
@keyframes button-spinner-rotate { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .button-spinner { animation-duration: 1.4s; } }
.subhead, .trade-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.trade-editor, .entry-section, .performance-panel { margin-top: 30px; padding-top: 26px; border-top: 1px solid var(--line); }
.trade-rows { display: grid; gap: 10px; margin-top: 18px; }
.trade-row { display: grid; grid-template-columns: 105px 100px minmax(120px, .8fr) minmax(180px, 1.5fr) repeat(3, minmax(90px, .7fr)) 42px; gap: 9px; align-items: end; padding: 12px; background: #f8fafc; border: 1px solid var(--line); border-radius: 7px; }
.trade-row label { min-width: 0; font-size: 12px; }
.trade-row textarea { min-height: 42px; height: 42px; padding-block: 8px; } .remove-trade, .remove-row { width: 42px; height: 42px; padding: 0; background: #fff1f0; color: #b42318; font-size: 19px; }
.detail-rows { display: grid; gap: 10px; margin-top: 18px; }
.detail-row { display: grid; grid-template-columns: 34px minmax(160px, .7fr) minmax(260px, 1.5fr) 42px; gap: 10px; align-items: end; padding: 12px; background: #f8fafc; border: 1px solid var(--line); border-radius: 7px; }
.row-number { display: grid; place-items: center; width: 28px; height: 42px; color: var(--muted); font-weight: 700; }
.detail-row textarea { min-height: 72px; }
.subsection-heading { margin-top: 24px; }
.input-grid { display: grid; gap: 14px; margin-top: 18px; } .two-columns { grid-template-columns: repeat(2, minmax(0, 1fr)); } .three-columns { grid-template-columns: repeat(3, minmax(0, 1fr)); } .four-columns { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.compact-grid { margin-top: 18px; }
.account-funds { padding: 18px; background: #f8fafc; border: 1px solid var(--line); border-radius: 7px; } .ledger-remark, #ledger-remark { display: none !important; }
.ledger-detail-rows { display: grid; gap: 12px; margin-top: 18px; }
.week-ledger-cards { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.week-ledger-card { display: grid; gap: 14px; min-width: 0; padding: 16px; border: 1px solid var(--line); border-radius: 15px; background: #fff; box-shadow: 0 8px 20px rgba(16, 24, 40, .05); transform: translateY(0); animation: week-card-in .42s cubic-bezier(.22, 1, .36, 1) both; transition: transform .24s ease, box-shadow .24s ease, border-color .24s ease; }
.week-ledger-card:nth-child(2) { animation-delay: 60ms; } .week-ledger-card:nth-child(3) { animation-delay: 120ms; } .week-ledger-card:nth-child(4) { animation-delay: 180ms; } .week-ledger-card:nth-child(5) { animation-delay: 240ms; }
.week-ledger-card:hover { transform: translateY(-5px); border-color: #a9bdfc; box-shadow: 0 16px 30px rgba(40, 85, 217, .13); }
.week-ledger-card.is-empty { background: #f8fafc; }
.week-ledger-card-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.week-ledger-date { color: var(--ink); font-weight: 700; }
.week-ledger-state { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); font-size: 12px; white-space: nowrap; }
.week-ledger-card.has-data .week-ledger-state { color: var(--success); }
.week-ledger-card.has-data .week-ledger-state::before { content: '✓'; display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: #ecfdf3; font-weight: 800; }
.week-ledger-card.is-empty .week-ledger-state::before { content: '○'; font-size: 17px; }
.week-ledger-metrics { display: grid; gap: 9px; }
.week-ledger-metrics span { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.week-ledger-metrics small { color: var(--muted); font-size: 11px; }
.week-ledger-metrics b { overflow: hidden; color: var(--ink); font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.week-ledger-edit { display: inline-flex; align-items: center; justify-content: center; gap: 6px; width: 100%; padding: 9px 10px; border: 1px solid #d9e3ff; border-radius: 9px; background: #f7f9ff; color: var(--brand-dark); font-size: 12px; transition: transform .2s ease, background-color .2s ease; }
.week-ledger-edit:hover { background: #eef2ff; transform: scale(1.03); }
.week-ledger-icon { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
@keyframes week-card-in { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: translateY(0) scale(1); } }
@media (prefers-reduced-motion: reduce) { .week-ledger-card { animation: none; } }
.ledger-edit-check { min-height: 24px; margin: 12px 0 0; }
.ledger-detail-row { display: grid; gap: 12px; min-width: 0; padding: 14px; background: #f8fafc; border: 1px solid var(--line); border-radius: 12px; overflow: visible; box-shadow: 0 4px 12px rgba(16, 24, 40, .035); }
.ledger-detail-head { display: grid; grid-template-columns: 32px minmax(130px, .75fr) minmax(150px, .9fr) minmax(370px, 1.8fr) 42px; gap: 10px; align-items: end; min-width: 0; }
.ledger-detail-head > label, .ledger-action-field, .ledger-action-fields > label { min-width: 0; }
.ledger-action-field { display: grid; gap: 7px; color: #344054; font-weight: 600; }
.ledger-action-selector { display: grid; grid-template-columns: repeat(4, minmax(74px, 1fr)); gap: 6px; padding: 4px; border: 1px solid #dce3f5; border-radius: 10px; background: #fff; }
.ledger-action-option { display: inline-flex; align-items: center; justify-content: center; gap: 5px; min-width: 0; padding: 8px 9px; border: 1px solid transparent; border-radius: 7px; background: transparent; color: var(--muted); font-size: 13px; white-space: nowrap; transition: color .2s ease, background-color .2s ease, border-color .2s ease, transform .24s cubic-bezier(.22, 1, .36, 1), box-shadow .24s ease; }
.ledger-action-option b { font-size: 15px; line-height: 1; }
.ledger-action-option:hover { color: var(--brand); background: #f4f6ff; transform: translateY(-2px); }
.ledger-action-option.is-selected { color: #fff; background: var(--brand); border-color: var(--brand); box-shadow: 0 6px 14px rgba(40, 85, 217, .22); transform: scale(1.025); }
.ledger-action-option.action-sell.is-selected { background: #b54708; border-color: #b54708; box-shadow: 0 6px 14px rgba(181, 71, 8, .2); }
.ledger-action-option.action-t.is-selected { background: #6941c6; border-color: #6941c6; box-shadow: 0 6px 14px rgba(105, 65, 198, .2); }
.ledger-action-option.action-none.is-selected { background: #667085; border-color: #667085; box-shadow: 0 6px 14px rgba(102, 112, 133, .2); }
.ledger-action-body { display: grid; gap: 0; min-width: 0; }
.ledger-action-fields, .ledger-no-action { display: grid; grid-template-columns: minmax(260px, 1.7fr) minmax(130px, .65fr) minmax(180px, .9fr); gap: 12px; max-height: 0; padding: 0 12px; overflow: hidden; opacity: 0; transform: translateY(-8px) scale(.99); pointer-events: none; border: 0 solid transparent; transition: max-height .38s cubic-bezier(.22, 1, .36, 1), padding .3s ease, margin .3s ease, opacity .24s ease, transform .38s cubic-bezier(.22, 1, .36, 1), border-width .2s ease; }
.ledger-action-fields.is-visible { max-height: 220px; margin-top: 8px; padding: 12px; opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; border-width: 1px; border-color: #dfe6f6; border-radius: 10px; background: #fff; }
.ledger-action-fields textarea { min-height: 64px; height: 64px; }
.ledger-buy-fields.is-visible { border-left: 4px solid var(--brand); }
.ledger-sell-fields.is-visible { border-left: 4px solid #b54708; }
.ledger-no-action { grid-template-columns: 36px 1fr; align-items: center; color: var(--muted); }
.ledger-no-action.is-visible { max-height: 100px; margin-top: 8px; padding: 12px 14px; opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; border-width: 1px; border-color: #e4e7ec; border-radius: 10px; background: #f9fafb; }
.ledger-no-action > span { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: #eaecf0; font-weight: 800; }
.ledger-no-action p, .ledger-no-action small { margin: 0; }
.ledger-no-action p { display: grid; }
.ledger-no-action small { color: var(--muted); font-weight: 400; }
.ledger-detail-foot { display: flex; align-items: stretch; justify-content: flex-end; gap: 12px; min-width: 0; }
.ledger-admin-fields { display: grid; grid-template-columns: repeat(2, minmax(170px, 1fr)); gap: 12px; flex: 1; }
.image-control { position: relative; display: grid; grid-template-columns: auto minmax(90px, 150px); gap: 6px; align-items: center; min-width: 250px; min-height: 64px; padding: 8px; border: 1px dashed #b7c4e8; border-radius: 8px; background: #fbfcff; } .image-control.is-dragging { border-color: var(--brand); background: #eef2ff; } .image-thumb { position: relative; width: 100%; height: 54px; padding: 0; overflow: visible; background: #fff; border: 1px solid var(--line); } .image-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; } .image-thumb:hover img { position: absolute; right: 0; bottom: 60px; z-index: 20; width: min(420px, 70vw); height: auto; max-height: 360px; object-fit: contain; background: #111; box-shadow: 0 14px 36px rgba(16, 24, 40, .28); } .image-progress { grid-column: 1 / -1; min-height: 14px; color: var(--muted); font-size: 11px; line-height: 1.2; overflow-wrap: anywhere; }
@media (prefers-reduced-motion: reduce) { .ledger-action-option, .ledger-action-fields, .ledger-no-action { transition: none; } }
.review-detail-dialog { width: min(1120px, calc(100vw - 32px)); max-height: 88vh; overflow: auto; }
.ledger-filters { display: grid; grid-template-columns: minmax(180px, 1fr) 180px 180px; gap: 12px; margin-bottom: 18px; }
.export-center { margin: 0 0 24px; padding: 22px; border: 0; border-radius: 16px; background: linear-gradient(145deg, #f7f9ff, #ffffff); box-shadow: 0 14px 34px rgba(40, 85, 217, .09), inset 0 1px 0 rgba(255, 255, 255, .9); scroll-margin-top: 18px; }
.export-security-note { color: var(--success); font-size: 12px; font-weight: 700; }
.export-grid { display: grid; grid-template-columns: minmax(170px, 1fr) minmax(190px, 1fr) 150px 150px 160px; gap: 12px; margin-top: 18px; }
.export-help-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 14px; }
.export-help-grid > div { min-height: 80px; padding: 12px; border: 1px solid var(--line); border-radius: 7px; background: #fff; }
.export-help-grid strong, .export-help-grid span { display: block; }
.export-help-grid strong { color: var(--brand-dark); }
.export-help-grid span { margin-top: 4px; color: var(--muted); font-size: 12px; }
.export-scope-readout { display: grid; align-content: end; gap: 4px; min-height: 45px; padding: 8px 12px; border-radius: 9px; background: rgba(255, 255, 255, .8); box-shadow: inset 0 0 0 1px rgba(208, 213, 221, .7); }
.export-scope-readout span { color: var(--muted); font-size: 12px; }
.export-scope-readout strong { color: var(--brand-dark); }
.export-actions { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 16px; }
.export-actions p { margin: 0; }
.export-actions > div { display: flex; gap: 8px; flex: 0 0 auto; }
.export-history-heading { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.export-file-name { display: block; width: 270px; max-width: 270px; overflow: hidden; white-space: nowrap; vertical-align: bottom; }
.export-file-name > span { display: inline-block; min-width: 100%; white-space: nowrap; }
.export-file-name.is-long:hover > span { animation: export-file-marquee 5.8s ease-in-out infinite; }
@keyframes export-file-marquee { 0%, 12% { transform: translateX(0); } 45%, 58% { transform: translateX(calc(var(--file-shift) * -1)); } 88%, 100% { transform: translateX(0); } }
@media (prefers-reduced-motion: reduce) { .export-file-name.is-long:hover > span { animation: none; } }
.export-file-meta { display: block; color: var(--muted); font-size: 11px; }
.export-state-replaced { color: var(--muted); }
.pagination { display: flex; align-items: center; justify-content: flex-end; gap: 10px; margin-top: 12px; } .pagination span { min-width: 110px; color: var(--muted); text-align: center; font-size: 13px; }
.ledger-summary-panel { margin-bottom: 22px; padding: 16px; border: 1px solid var(--line); border-radius: 7px; background: #f8fafc; }
.summary-tables { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, .9fr); gap: 18px; margin-top: 16px; }
.period-profit-panel { margin-top: 34px; padding: 24px; border: 0; border-radius: 16px; background: #fbfcff; box-shadow: 0 14px 34px rgba(16, 24, 40, .06); }
.period-profit-filters { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 18px 0; }
.filter-context { color: var(--muted); font-size: 13px; }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin: 22px 0 16px; padding: 4px; background: #f2f4f7; border-radius: 7px; }
.auth-tab { border: 0; background: transparent; min-height: 40px; color: #667085; font-weight: 700; cursor: pointer; }
.auth-tab.active { background: #fff; color: #101828; box-shadow: 0 1px 3px rgba(16, 24, 40, .12); }
.auth-form { display: grid; gap: 14px; }
.verification-row { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 10px; }
.approval-actions { display: flex; gap: 8px; min-width: 150px; }
.registration-approval-panel { margin-bottom: 18px; padding: 16px; border: 1px solid #fdb022; border-radius: 7px; background: #fffcf5; }
.pending-count { display: inline-grid; place-items: center; min-width: 25px; height: 25px; margin-left: 6px; padding: 0 7px; border-radius: 50%; background: #f2f4f7; color: var(--muted); font-size: 13px; vertical-align: 2px; }
.pending-count.has-pending { background: #d92d20; color: #fff; }
.pending-registrations { display: grid; gap: 9px; margin-top: 14px; }
.pending-registration-item { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px; border: 1px solid #f2d49b; border-radius: 7px; background: #fff; }
.pending-registration-item > div:first-child { display: flex; flex-wrap: wrap; align-items: center; gap: 5px 18px; }
.pending-registration-item span { color: var(--muted); font-size: 12px; }
.period-company-profit { min-height: 24px; margin-bottom: 8px; color: var(--muted); }
.period-profit-chart { position: relative; min-height: 360px; margin-top: 16px; border: 0; border-radius: 14px; background: #fff; box-shadow: inset 0 0 0 1px rgba(228, 231, 236, .7), 0 8px 24px rgba(16, 24, 40, .05); overflow: visible; }
.period-profit-chart svg { display: block; width: 100%; min-height: 360px; aspect-ratio: 1000 / 410; overflow: visible; }
.chart-grid-line { stroke: #e9edf3; stroke-width: 1; }
.chart-zero-line { stroke: #98a2b3; stroke-width: 1.5; stroke-dasharray: 5 5; }
.chart-axis-mark { stroke: #98a2b3; stroke-width: 1; }
.chart-axis-label { fill: #667085; font-size: 12px; }
.profit-series-line { fill: none; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; opacity: 0; animation: reveal-profit-line 520ms ease-out var(--series-delay) forwards; }
.profit-series-dot { stroke: #fff; stroke-width: 2; vector-effect: non-scaling-stroke; opacity: 0; transform-box: fill-box; transform-origin: center; animation: reveal-profit-point 280ms ease-out var(--point-delay) forwards; }
.profit-series-hit { fill: transparent; cursor: crosshair; }
.profit-series-hit:focus { outline: none; stroke: var(--brand); stroke-width: 2; }
[data-series-id] { transition: opacity .2s ease; }
[data-series-id].series-hidden { opacity: .08; pointer-events: none; }
.chart-tooltip { position: absolute; z-index: 4; display: grid; min-width: 190px; gap: 2px; padding: 10px 12px; border: 1px solid #d0d5dd; border-radius: 7px; background: rgba(255, 255, 255, .98); box-shadow: 0 10px 28px rgba(16, 24, 40, .16); color: #475467; font-size: 12px; pointer-events: none; transform: translate(-50%, calc(-100% - 14px)); }
.chart-tooltip.align-left { transform: translate(0, calc(-100% - 14px)); }
.chart-tooltip.align-right { transform: translate(-100%, calc(-100% - 14px)); }
.chart-tooltip strong { color: var(--ink); font-size: 14px; }
.chart-tooltip span { display: flex; justify-content: space-between; gap: 14px; }
.period-profit-legend { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 10px; margin-top: 12px; }
.profit-legend-item { display: grid; gap: 4px; padding: 12px; border: 1px solid var(--line); border-radius: 7px; background: #f8fafc; cursor: pointer; }
.profit-legend-item > strong { font-size: 18px; }
.profit-legend-item > span:last-child { color: var(--muted); font-size: 12px; }
.legend-heading { display: flex; align-items: center; gap: 7px; }
.legend-heading input { width: 16px; height: 16px; margin: 0; accent-color: var(--legend-color); }
.legend-heading i { width: 18px; height: 4px; border-radius: 2px; background: var(--legend-color); }
.legend-heading small { color: var(--muted); font-size: 11px; }
@keyframes reveal-profit-line { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: translateY(0); } }
@keyframes reveal-profit-point { from { opacity: 0; transform: scale(.2); } to { opacity: 1; transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .profit-series-line, .profit-series-dot { animation: none; opacity: 1; transform: none; } }
.ledger-initial-form { display: grid; grid-template-columns: minmax(180px, 1fr) repeat(3, minmax(150px, .8fr)) auto; align-items: end; gap: 10px; margin-bottom: 8px; padding: 14px; background: #f8fafc; border: 1px solid var(--line); border-radius: 7px; } .ledger-initial-form + .status { display: block; min-height: 24px; margin-bottom: 14px; }
.profit-up { color: #b42318; } .profit-down { color: #087443; }
.review-ledger-summary { margin-bottom: 28px; padding: 18px; border: 1px solid var(--line); border-radius: 7px; background: #f8fafc; }
.five-columns { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.readonly-metric { min-height: 78px; padding: 12px; border: 1px solid var(--line); border-radius: 7px; background: #fff; }
.readonly-metric span { display: block; color: var(--muted); font-size: 12px; }
.readonly-metric strong { display: block; margin-top: 6px; font-size: 18px; }
.review-ledger-details { display: grid; gap: 10px; margin-top: 12px; }
.review-ledger-item { border: 1px solid var(--line); border-radius: 7px; background: #fff; overflow: hidden; }
.review-ledger-item summary { display: grid; grid-template-columns: minmax(140px, 1fr) repeat(4, minmax(100px, 150px)); gap: 12px; padding: 13px 15px; cursor: pointer; }
.review-ledger-item-body { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) 150px; gap: 10px; padding: 0 15px 15px; border-top: 1px solid var(--line); }
.review-ledger-item-body p { margin: 12px 0 0; color: #475467; white-space: pre-wrap; }
.review-ledger-item-body b { display: block; margin-bottom: 4px; color: var(--ink); }
.review-image-button { display: grid; gap: 5px; margin-top: 12px; padding: 0 0 6px; border: 1px solid var(--line); background: #fff; color: var(--brand); }
.review-image-button img { width: 100%; height: 76px; object-fit: cover; }
.ledger-check { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px 20px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.check-ok { color: var(--success); font-weight: 700; } .check-warning { color: var(--warning); font-weight: 700; }
.image-preview { width: min(1000px, calc(100% - 32px)); padding: 0; border: 0; border-radius: 7px; background: #111; } .image-preview::backdrop { background: rgba(0, 0, 0, .72); } .image-preview img { display: block; width: 100%; max-height: 85vh; object-fit: contain; } .image-close { position: absolute; top: 8px; right: 8px; z-index: 1; width: 38px; height: 38px; padding: 0; background: rgba(0, 0, 0, .68); color: #fff; font-size: 22px; }
.forecast-compact-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 16px; }
.forecast-field { min-width: 0; margin: 0; padding: 9px 12px 12px; border: 1px solid #d9e3ff; border-radius: 10px; background: #fff; } .forecast-field legend { padding: 0 5px; color: var(--brand-dark); font-size: 13px; font-weight: 700; } .forecast-field-locked { border-color: #d0d5dd; background: #f8fafc; } .forecast-field-locked .segmented label { cursor: not-allowed; opacity: .64; } .forecast-field-locked .segmented label:has(input:checked) { opacity: 1; }
.forecast-field .segmented { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.forecast-field .segmented label { display: grid; min-width: 0; place-items: center; padding: 7px 10px; border-radius: 7px; font-size: 13px; box-shadow: none; }
.forecast-field .segmented:has(label:hover) { gap: 6px; }
.forecast-field .segmented:has(label:hover) label:not(:hover) { transform: none; }
.segmented { display: flex; flex-wrap: wrap; gap: 10px; transition: gap .28s ease; } .segmented label { display: block; cursor: pointer; padding: 10px 16px; border: 1px solid #d9e3ff; border-radius: 12px; background: rgba(255, 255, 255, .9); color: #344054; box-shadow: 0 3px 8px rgba(40, 85, 217, .07); transform: scale(1); transition: transform .28s cubic-bezier(.22, 1, .36, 1), box-shadow .28s ease, border-color .28s ease, background-color .28s ease, color .28s ease; } .segmented input { position: absolute; opacity: 0; pointer-events: none; } .segmented label:hover { transform: scale(1.08) translateY(-2px); border-color: #8da8ff; box-shadow: 0 10px 20px rgba(40, 85, 217, .18); z-index: 1; } .segmented:has(label:hover) { gap: 13px; } .segmented:has(label:hover) label:not(:hover) { transform: scale(.96); } .segmented label:has(input:checked) { border-color: var(--brand); background: linear-gradient(135deg, #4c72e8, var(--brand)); color: #fff; box-shadow: 0 8px 18px rgba(40, 85, 217, .3); animation: forecast-select .46s cubic-bezier(.22, 1, .36, 1); }
@keyframes forecast-select { 0% { transform: scale(.9); } 55% { transform: scale(1.1); } 100% { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .segmented label, .segmented { transition: none; } .segmented label:has(input:checked) { animation: none; } }
.empty-note { margin: 14px 0 0; color: var(--muted); }
.compact-field { display: grid; grid-template-columns: auto 110px; align-items: center; }
.performance-panel { margin-top: 34px; padding: 24px; background: linear-gradient(145deg, #ffffff, #fbfcff); }
.performance-panel .table-wrap { margin-top: 18px; border-radius: 14px; box-shadow: 0 10px 26px rgba(16, 24, 40, .05); overflow: auto; }
.performance-controls { display: grid; grid-template-columns: 180px 160px 160px auto; align-items: end; gap: 10px; }
.performance-controls label { font-size: 12px; }
.performance-controls select, .performance-controls input { padding: 8px 10px; }
.section-lead { margin: 6px 0 0; color: var(--muted); font-size: 13px; }
.performance-range-summary { margin-top: 16px; padding: 11px 14px; border-radius: 10px; background: #eef2ff; color: #344054; font-size: 13px; }
.performance-panel tbody td { vertical-align: middle; }
.performance-panel tbody td > strong { display: block; color: #1d2939; font-size: 14px; }
.performance-panel tbody td.profit-up > strong { color: var(--danger); }
.performance-panel tbody td.profit-down > strong { color: var(--success); }
.performance-contribution { min-width: 190px; background: #fcfcfd; }
.performance-contribution strong { font-size: 16px !important; }
.principal-management-panel { margin: 24px 0; padding: 20px; border: 1px solid #d9e3ff; border-radius: 14px; background: #fbfcff; }
.principal-current-summary { min-width: 220px; padding: 10px 14px; border-radius: 10px; background: #eef4ff; color: var(--brand-dark); font-weight: 700; text-align: right; }
.principal-event-form { display: grid; grid-template-columns: minmax(180px, 1fr) minmax(150px, .8fr) minmax(180px, .9fr) minmax(260px, 1.5fr) auto; align-items: end; gap: 12px; margin: 16px 0 8px; }
.principal-event-form button { min-height: 44px; white-space: nowrap; }
.principal-event-form input[type="date"] { border-color: #f2c185; background: #fffaf3; }
.principal-change-add { color: var(--danger); font-weight: 800; }
.principal-change-withdraw { color: var(--success); font-weight: 800; }
.principal-log-reason { min-width: 210px; white-space: normal; }
.filters { justify-content: flex-start; margin-bottom: 18px; } .filters label { min-width: 210px; }
.table-wrap { overflow-x: auto; } table { width: 100%; border-collapse: separate; border-spacing: 0; } th, td { padding: 13px 12px; text-align: left; border-bottom: 1px solid rgba(228, 231, 236, .72); white-space: nowrap; } tbody tr:hover { background: #fafbff; } td.wrap-cell { min-width: 220px; white-space: normal; } td small { display: block; color: var(--muted); font-size: 11px; } th { color: var(--muted); font-size: 12px; background: #f8faff; } th:first-child { border-radius: 10px 0 0 0; } th:last-child { border-radius: 0 10px 0 0; } .badge { display: inline-block; padding: 3px 9px; border-radius: 999px; font-size: 12px; } .badge.submitted { background: #ecfdf3; color: var(--success); } .badge.draft { background: #fff6ed; color: var(--warning); } .badge.missing { background: #f2f4f7; color: #475467; } .submission-action-badge { display: inline-block; margin: 2px 4px 2px 0; padding: 4px 9px; border-radius: 999px; font-size: 12px; font-weight: 700; } .submission-action-badge.action-buy { background: #e8f1ff; color: #175cd3; } .submission-action-badge.action-sell { background: #fff0e6; color: #c4320a; } .submission-action-badge.action-t { background: #f0e9ff; color: #6941c6; } .submission-action-badge.action-none { background: #f2f4f7; color: #667085; } .link-button { padding: 0; background: transparent; color: var(--brand); } .empty { padding: 28px 10px; color: var(--muted); text-align: center; }
.app-toast { position: fixed; left: 50%; bottom: 28px; z-index: 20; max-width: min(90vw, 420px); padding: 12px 18px; border-radius: 10px; background: #152238; color: #fff; box-shadow: 0 12px 30px rgba(15, 23, 42, .2); opacity: 0; pointer-events: none; transform: translate(-50%, 12px); transition: opacity .2s ease, transform .2s ease; }
.app-toast.visible { opacity: 1; transform: translate(-50%, 0); }
.app-toast.error { background: #b42318; }
.app-toast.warning { background: #b54708; }
.detail { margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line); } .detail-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; } .detail section { margin-top: 20px; } .detail p { margin: 6px 0 0; padding: 12px; background: #f8fafc; border-radius: 8px; white-space: normal; }
.period-hint { margin: -8px 0 0; color: var(--muted); font-size: 13px; }
.user-management { margin-top: 34px; padding-top: 28px; border-top: 1px solid var(--line); } .user-form { display: grid; grid-template-columns: repeat(4, minmax(150px, 1fr)); align-items: end; gap: 12px; margin: 18px 0 8px; } .user-form button { min-height: 45px; }
.edit-user-panel { margin-top: 20px; padding: 16px; border: 1px solid #cbd7f5; border-radius: 7px; background: #f8faff; }
.edit-user-form { margin-top: 14px; }
.account-dialog { width: min(760px, calc(100vw - 32px)); max-width: 760px; border: 0; border-radius: 14px; padding: 24px; color: var(--ink); box-shadow: 0 24px 70px rgba(15, 23, 42, .28); }
.account-dialog::backdrop { background: rgba(15, 23, 42, .48); }
.excel-import-preview-dialog { width: min(1120px, calc(100vw - 32px)); max-width: 1120px; max-height: 88vh; overflow: auto; }
.import-preview-note { margin: 14px 0; padding: 12px 14px; border-left: 4px solid #f2994a; background: #fffaf3; color: #475467; }
.excel-import-preview-dialog .import-value { min-width: 260px; max-width: 380px; color: #344054; line-height: 1.55; white-space: pre-wrap; }
.excel-import-preview-dialog .import-value.is-empty { color: #98a2b3; }
.excel-import-preview-dialog tr.is-unchanged { opacity: .58; }
.excel-import-preview-dialog input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--brand); }
.review-checklist-dialog { width: min(680px, calc(100vw - 32px)); max-width: 680px; }
.review-checklist-summary { display: grid; gap: 3px; margin: 16px 0; padding: 14px 16px; border-left: 4px solid var(--success); background: #ecfdf3; }
.review-checklist-summary.has-warning { border-color: #f2994a; background: #fffaf3; }
.review-checklist-summary.has-error { border-color: #d92d20; background: #fef3f2; }
.review-checklist-summary span { color: #667085; font-size: 13px; }
.review-checklist-items { display: grid; gap: 8px; max-height: 54vh; margin: 0; padding: 0; overflow: auto; list-style: none; }
.review-checklist-items li { display: grid; grid-template-columns: 30px 1fr; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid #e4e7ec; border-radius: 8px; }
.review-checklist-items li > span { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: #ecfdf3; color: var(--success); font-weight: 900; }
.review-checklist-items li.check-warning > span { background: #fff6ed; color: #b54708; }
.review-checklist-items li.check-error > span { background: #fef3f2; color: #b42318; }
.review-checklist-items li div { display: grid; gap: 2px; }
.review-checklist-items small { color: #667085; white-space: normal; }
.submission-matrix .matrix-row-attention { background: #fffcf5; }
.submission-matrix .matrix-row-attention:hover { background: #fff8eb; }
.matrix-actions { display: flex; align-items: center; gap: 8px; }
.matrix-action-divider { color: #d0d5dd; }
.error-dialog { width: min(520px, calc(100vw - 32px)); }
.error-dialog-message { margin: 14px 0 0; padding: 14px; border-radius: 10px; background: #fff1f0; color: #b42318; white-space: pre-wrap; }
.account-dialog .subhead { margin-bottom: 4px; }
.admin-earnings-note { margin: 18px 0; padding: 18px 20px; border: 1px solid #d9e3ff; border-radius: 12px; background: linear-gradient(135deg, #f7f9ff, #ffffff); }
.admin-earnings-note h3 { margin: 4px 0 6px; }
.admin-earnings-note p:last-child { margin: 0; color: var(--muted); }
.dashboard-earnings-grid { display: grid; grid-template-columns: repeat(2, minmax(280px, 1fr)); gap: 14px; margin: 18px 0 22px; }
.dashboard-carousel { min-width: 0; user-select: none; }
.dashboard-carousel.is-previous-zone { cursor: w-resize; background: #fff; box-shadow: -12px 0 18px -7px rgba(242, 153, 74, .38), 0 12px 28px rgba(16, 24, 40, .07); }
.dashboard-carousel.is-next-zone { cursor: e-resize; background: #fff; box-shadow: 12px 0 18px -7px rgba(242, 153, 74, .38), 0 12px 28px rgba(16, 24, 40, .07); }
.dashboard-carousel:focus-visible { outline: 3px solid rgba(242, 153, 74, .35); outline-offset: 3px; }
.dashboard-earnings-card { position: relative; min-height: 338px; overflow: hidden; padding: 16px; border: 1px solid #e4e7ec; border-radius: 18px; background: #fff; box-shadow: 0 12px 28px rgba(16, 24, 40, .07); animation: dashboard-card-in .45s cubic-bezier(.22, 1, .36, 1) both; }
.dashboard-earnings-card::after { position: absolute; right: -24px; top: -30px; width: 100px; height: 100px; border-radius: 50%; background: rgba(242, 153, 74, .16); content: ''; }
.dashboard-earnings-card.company-card { border-color: #f2c185; background: linear-gradient(135deg, #fffaf3, #fff); }
.dashboard-card-heading { display: flex; align-items: baseline; justify-content: space-between; min-height: 32px; gap: 12px; margin-bottom: 10px; color: #344054; font-weight: 800; }
.dashboard-card-heading small { overflow: hidden; color: #667085; font-weight: 600; text-align: right; text-overflow: ellipsis; white-space: nowrap; }
.dashboard-card-metrics { display: grid; grid-template-columns: 1fr; gap: 6px; }
.dashboard-metric { display: flex; align-items: center; justify-content: space-between; min-width: 0; min-height: 54px; gap: 16px; padding: 8px 32px; border: 1px solid transparent; border-radius: 12px; background: rgba(248, 250, 252, .9); transition: border-color .2s ease, background-color .2s ease; }
.dashboard-metric.is-profit-up { border-color: rgba(180, 35, 24, .13); background: rgba(254, 243, 242, .92); }
.dashboard-metric.is-profit-down { border-color: rgba(8, 116, 67, .14); background: rgba(236, 253, 243, .9); }
.dashboard-metric.is-profit-up span { color: #912018; }
.dashboard-metric.is-profit-down span { color: #05603a; }
.dashboard-metric span, .dashboard-metric strong { display: block; }
.dashboard-metric span { color: #667085; font-size: 11px; }
.dashboard-metric strong { overflow: hidden; color: #1d2939; font-size: 18px; text-align: right; text-overflow: ellipsis; white-space: nowrap; }
.export-center input[type="date"], .performance-panel input[type="date"], .period-profit-panel input[type="date"] { border-color: #f2c185; background: linear-gradient(180deg, #fffaf3, #fff); }
.review-ledger-item-no-action { border-color: #f2c185; background: #fffaf3; }
.employee-review-insights { margin-top: 24px; padding-top: 22px; border-top: 1px solid #e4e7ec; }
.forecast-accuracy-card { display: grid; min-width: 210px; padding: 14px 18px; border: 1px solid #f2c185; border-radius: 14px; background: #fffaf3; }
.forecast-accuracy-card strong { color: #b54708; font-size: 25px; }
.forecast-accuracy-card span { margin-top: 3px; color: #667085; font-size: 12px; }
.forecast-accuracy-table { margin-top: 14px; }
.forecast-rate { display: grid; gap: 6px; width: 112px; }
.forecast-rate strong { font-size: 14px; }
.forecast-rate i { display: block; width: 100%; height: 5px; overflow: hidden; border-radius: 999px; background: #eaecf0; }
.forecast-rate i span { display: block; height: 100%; border-radius: inherit; background: #f2994a; }
.forecast-latest { display: flex; align-items: center; gap: 8px; }
.forecast-latest > span:first-child { color: #475467; font-size: 12px; }
.employee-review-insights > .subsection-heading { margin-top: 30px; }
#admin-ledger-panel:not(.hidden) { display: flex; flex-direction: column; }
#admin-ledger-panel > .panel-heading { order: 0; }
#admin-ledger-panel > .admin-earnings-note { order: 1; }
#admin-ledger-panel > .dashboard-summary-panel { order: 3; }
#admin-ledger-panel > .performance-panel { order: 4; }
#admin-ledger-panel > .period-profit-panel { order: 5; }
#admin-ledger-panel > .export-center { order: 8; }
@keyframes dashboard-card-in { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes dashboard-slide-left { from { opacity: .45; transform: translateX(22px); } to { opacity: 1; transform: translateX(0); } }
@keyframes dashboard-slide-right { from { opacity: .45; transform: translateX(-22px); } to { opacity: 1; transform: translateX(0); } }
.dashboard-carousel.is-sliding-left #dashboard-employee-card { animation: dashboard-slide-left .3s cubic-bezier(.22, 1, .36, 1); }
.dashboard-carousel.is-sliding-right #dashboard-employee-card { animation: dashboard-slide-right .3s cubic-bezier(.22, 1, .36, 1); }
.stock-link { padding: 0; border: 0; background: transparent; color: var(--brand); font: inherit; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.stock-link:hover { color: #173fba; }
.daily-holdings-panel { margin-top: 24px; padding-top: 22px; border-top: 1px solid #e4e7ec; }
.daily-holdings-date { color: #667085; font-size: 13px; font-weight: 700; }
.daily-holdings-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 14px; }
.daily-holding-card { min-width: 0; overflow: hidden; border: 1px solid #e4e7ec; border-radius: 12px; background: #fff; box-shadow: 0 8px 22px rgba(16, 24, 40, .045); }
.daily-holding-card-heading { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 13px 16px; border-bottom: 1px solid #e4e7ec; background: #f8fafc; }
.daily-holding-card-heading > div { display: flex; align-items: baseline; gap: 8px; min-width: 0; }
.daily-holding-card-heading strong { color: #1d2939; font-size: 16px; }
.daily-holding-card-heading small { color: #667085; }
.daily-holding-card-heading > span { font-size: 13px; font-weight: 700; white-space: nowrap; }
.daily-holding-stocks { display: grid; }
.daily-holding-stock { display: grid; grid-template-columns: minmax(130px, 1fr) 70px minmax(110px, .8fr) minmax(100px, .7fr); align-items: center; gap: 12px; width: 100%; min-height: 66px; padding: 10px 16px; border: 0; border-bottom: 1px solid #eef1f5; border-radius: 0; background: #fff; color: #344054; text-align: left; transition: background-color .18s ease, transform .18s ease; }
.daily-holding-stock:last-child { border-bottom: 0; }
.daily-holding-stock:hover { background: #fffaf3; transform: translateX(2px); }
.daily-stock-identity { display: grid; min-width: 0; }
.daily-stock-identity small { color: #667085; font-size: 11px; }
.daily-stock-identity strong { overflow: hidden; margin-top: 2px; color: #2855d9; font-size: 15px; text-decoration: underline; text-overflow: ellipsis; text-underline-offset: 3px; white-space: nowrap; }
.daily-action-badge { justify-self: start; padding: 4px 8px; border-radius: 999px; background: #f2f4f7; color: #475467; font-size: 11px; font-weight: 700; white-space: nowrap; }
.daily-action-badge.action-buy { background: #fef3f2; color: #b42318; }
.daily-action-badge.action-sell { background: #ecfdf3; color: #087443; }
.daily-action-badge.action-t { background: #eef4ff; color: #2855d9; }
.daily-stock-result { display: grid; min-width: 0; color: #344054; font-size: 13px; font-weight: 700; }
.daily-stock-result small { color: #98a2b3; font-size: 10px; font-weight: 600; }
.daily-stock-result b { overflow: hidden; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.daily-stock-profit { display: grid; justify-items: end; font-size: 14px; font-weight: 800; white-space: nowrap; }
.daily-stock-profit small { color: #98a2b3; font-size: 10px; font-weight: 600; }
.daily-ledger-state { font-size: 12px; font-weight: 700; }
.daily-ledger-state.is-missing { color: #b42318; }
.daily-holding-empty { margin: 0; padding: 20px 16px; color: #667085; font-size: 13px; text-align: center; }
.stock-detail-dialog { width: min(1100px, calc(100vw - 32px)); }
.employee-ledger-range-dialog { width: min(1220px, calc(100vw - 32px)); max-height: 90vh; overflow: auto; }
.employee-detail-link { padding: 0; border: 0; background: transparent; color: var(--brand); font: inherit; font-weight: 800; text-align: left; cursor: pointer; }
.employee-detail-link:hover { color: #173fba; text-decoration: underline; text-underline-offset: 3px; }
.employee-ledger-range-summary { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin: 16px 0 22px; }
.employee-ledger-range-day { margin-top: 20px; padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: #fbfcff; }
.employee-ledger-range-day h4 { margin: 0 0 12px; color: var(--brand-dark); }
.employee-ledger-range-day table { background: #fff; }
.employee-ledger-range-day .wrap-cell { min-width: 180px; }
.employee-ledger-range-image { max-width: 86px; max-height: 48px; border-radius: 6px; object-fit: cover; vertical-align: middle; cursor: zoom-in; }
.password-field { display: flex; align-items: stretch; }
.password-field input { min-width: 0; flex: 1; border-radius: 7px 0 0 7px; }
.password-toggle { display: inline-flex; align-items: center; justify-content: center; gap: 5px; width: 72px; border: 1px solid var(--line); border-left: 0; border-radius: 0 7px 7px 0; padding: 0 8px; background: #f8fafc; color: var(--muted); cursor: pointer; }
.password-toggle:hover { color: var(--ink); background: #eef2ff; }
.eye-icon { width: 19px; height: 19px; overflow: visible; }
.eye-icon path, .eye-icon circle { fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.eye-pupil { fill: currentColor !important; transform-box: fill-box; transform-origin: center; transition: transform .28s cubic-bezier(.22, 1, .36, 1); }
.eye-slash { stroke-dasharray: 25; stroke-dashoffset: 0; transform-origin: center; transition: stroke-dashoffset .32s cubic-bezier(.22, 1, .36, 1), opacity .2s ease, transform .32s cubic-bezier(.22, 1, .36, 1); }
.password-toggle.is-visible .eye-slash { stroke-dashoffset: 25; opacity: 0; transform: rotate(-12deg) scale(.72); }
.password-toggle.is-visible .eye-pupil { transform: scale(1.22); }
.password-toggle-label { font-size: 12px; font-weight: 700; white-space: nowrap; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.user-form button:disabled { cursor: not-allowed; opacity: .48; }
@media (max-width: 1100px) { .ledger-detail-head { grid-template-columns: 32px repeat(2, minmax(0, 1fr)) 42px; } .ledger-action-field { grid-column: 2 / 4; grid-row: 2; } .remove-row { grid-column: 4; grid-row: 1; } .ledger-action-fields { grid-template-columns: minmax(220px, 1.5fr) repeat(2, minmax(130px, .8fr)); } .image-control { min-height: auto; } }
@media (max-width: 1000px) { .trade-row { grid-template-columns: repeat(3, minmax(130px, 1fr)) 42px; } .user-form, .four-columns, .five-columns, .ledger-initial-form, .export-grid, .week-ledger-cards { grid-template-columns: repeat(2, minmax(160px, 1fr)); } .review-ledger-item-body { grid-template-columns: repeat(2, minmax(0, 1fr)); } .daily-holdings-grid { grid-template-columns: 1fr; } .employee-ledger-range-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); } .principal-event-form { grid-template-columns: repeat(2, minmax(180px, 1fr)); } }
@media (max-width: 760px) { .export-file-name { width: min(270px, 65vw); max-width: 65vw; } .shell { width: min(100% - 20px, 680px); padding-top: 16px; } .login-card, .panel { padding: 20px; } .topbar, .subhead { align-items: flex-start; } .workspace-nav { overflow-x: auto; } .nav-tab { flex: 0 0 auto; } .section-grid, .user-form, .trade-row, .detail-row, .ledger-filters, .ledger-initial-form, .period-profit-filters, .performance-controls, .export-grid, .export-help-grid, .review-meta, .two-columns, .three-columns, .four-columns, .five-columns, .review-ledger-item-body, .review-ledger-item summary, .week-ledger-cards, .dashboard-earnings-grid, .forecast-compact-grid, .principal-event-form { grid-template-columns: 1fr; } .review-progress { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 14px; } .review-progress::before { display: none; } .review-excel-tools { display: grid; grid-template-columns: 1fr; } .review-excel-tools button { width: 100%; } .review-submit-actions { display: grid; grid-template-columns: 1fr 1fr; } .review-submit-actions > button { width: 100%; } .excel-import-preview-dialog .import-value { min-width: 220px; } .dashboard-card-metrics { grid-template-columns: 1fr; } .daily-holding-stock { grid-template-columns: minmax(120px, 1fr) auto; } .daily-stock-result, .daily-stock-profit { grid-column: 1 / -1; justify-items: start; } .ledger-detail-head, .ledger-action-fields, .ledger-admin-fields { grid-template-columns: 1fr; } .ledger-detail-head .row-number, .ledger-detail-head > label, .ledger-action-field, .ledger-detail-field, .ledger-detail-head .remove-row { grid-column: 1; grid-row: auto; } .ledger-action-selector { grid-template-columns: repeat(2, minmax(0, 1fr)); } .ledger-action-fields.is-visible { max-height: 430px; } .ledger-detail-foot { align-items: stretch; flex-direction: column; } .image-control { width: 100%; min-width: 0; } .period-profit-filters { display: grid; } .export-actions { align-items: stretch; flex-direction: column; } .export-actions > div { display: grid; grid-template-columns: 1fr 1fr; } .trade-actions { width: 100%; justify-content: flex-start; } .remove-trade, .remove-row { width: 100%; } .row-number { width: 100%; height: 24px; justify-content: start; } .topbar h1 { font-size: 28px; } .period-profit-chart, .period-profit-chart svg { min-height: 300px; } .pending-registration-item { align-items: flex-start; flex-direction: column; } .principal-current-summary { width: 100%; text-align: left; } }
