: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; }
.instance-config-pending #login-view { visibility: hidden; }
.shell { width: min(1180px, calc(100% - 32px)); margin: 0 auto; padding: 32px 0 60px; }
.shell:has(#app-view:not(.hidden)[data-role="operator"]),
.shell:has(#app-view:not(.hidden)[data-role="boss"]),
.shell:has(#app-view:not(.hidden)[data-role="manager"]) { width: min(1480px, calc(100% - 32px)); }
.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; }
.gooey-button { position: relative; z-index: 1; isolation: isolate; display: inline-flex; align-items: center; justify-content: center; gap: 8px; overflow: hidden; min-width: 114px; min-height: 48px; padding: 12px 18px; border: 2px solid var(--brand); border-radius: 10px; background: #f5f7ff; color: var(--brand-dark); transition: color .5s ease, border-color .5s ease, box-shadow .25s ease, transform .18s ease; }
.gooey-button__label { position: relative; z-index: 2; }
.gooey-button__blobs { position: absolute; z-index: 1; inset: -3px; overflow: hidden; filter: url(#gooey-add-button-filter); pointer-events: none; }
.gooey-button__blobs i { position: absolute; bottom: 0; width: 36%; height: 110%; border-radius: 50%; background: var(--brand); transform: scale(1.45) translateY(125%) translateZ(0); transition: transform .62s cubic-bezier(.22, .8, .24, 1); }
.gooey-button__blobs i:nth-child(1) { left: -6%; }
.gooey-button__blobs i:nth-child(2) { left: 31%; transition-delay: 60ms; }
.gooey-button__blobs i:nth-child(3) { left: 68%; transition-delay: 25ms; }
.gooey-button:hover:not(:disabled), .gooey-button:focus-visible { border-color: var(--brand-dark); color: #fff; box-shadow: 0 8px 18px rgba(40, 85, 217, .2); }
.gooey-button:hover:not(:disabled) .gooey-button__blobs i, .gooey-button:focus-visible .gooey-button__blobs i { transform: scale(1.45) translateY(0) translateZ(0); }
.gooey-button:focus-visible { outline: 3px solid rgba(40, 85, 217, .18); outline-offset: 3px; }
.gooey-button:active:not(:disabled) { transform: translateY(1px); }
.logout-button { position: relative; display: flex; align-items: center; justify-content: flex-start; flex: 0 0 auto; width: 45px; height: 45px; padding: 0; overflow: hidden; border: 0; border-radius: 50%; background: #ff4141; color: #fff; box-shadow: 2px 2px 10px rgba(0, 0, 0, .2); transition: width .3s ease, border-radius .3s ease, box-shadow .3s ease, transform .16s ease; }
.logout-button__sign { display: flex; align-items: center; justify-content: center; flex: 0 0 45px; width: 45px; height: 45px; transition: transform .3s ease; }
.logout-button__sign svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.1; stroke-linecap: round; stroke-linejoin: round; }
.logout-button__text { position: absolute; right: 13px; width: 0; overflow: hidden; opacity: 0; color: #fff; font-size: 15px; font-weight: 700; white-space: nowrap; transition: width .3s ease, opacity .2s ease; }
.logout-button:hover, .logout-button:focus-visible { width: 112px; border-radius: 24px; background: #e83232; box-shadow: 3px 5px 14px rgba(180, 35, 24, .24); }
.logout-button:hover .logout-button__sign, .logout-button:focus-visible .logout-button__sign { transform: translateX(2px); }
.logout-button:hover .logout-button__text, .logout-button:focus-visible .logout-button__text { width: 46px; opacity: 1; }
.logout-button:focus-visible { outline: 3px solid rgba(255, 65, 65, .24); outline-offset: 3px; }
.logout-button:active { transform: translate(2px, 2px); }
.gooey-filter-defs { position: absolute; width: 0; height: 0; overflow: hidden; pointer-events: none; }
@media (prefers-reduced-motion: reduce) { .gooey-button, .gooey-button__blobs i, .logout-button, .logout-button__sign, .logout-button__text { transition-duration: .01ms; } }
.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; }
.standalone-instance .login-brand img, .standalone-instance .login-mobile-brand { display: none !important; }
.standalone-instance .login-brand { gap: 0; }
.b-login-aquarium, .b-login-watermark { display: none; }
html[data-instance="b"] body { background: #58bfd3; }
html[data-instance="b"] .shell:has(#login-view:not(.hidden)) { width: 100%; max-width: none; padding: 0; }
html[data-instance="b"] .login-experience { position: relative; isolation: isolate; display: grid; grid-template-columns: minmax(0, 1fr); min-height: 100vh; place-items: center; overflow: hidden; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
html[data-instance="b"] .b-login-aquarium { position: fixed; z-index: 0; inset: 0; display: block; width: 100%; height: 100%; image-rendering: pixelated; pointer-events: none; }
html[data-instance="b"] .shell { position: relative; z-index: 1; }
html[data-instance="b"] .b-login-watermark { position: absolute; z-index: 1; top: 28px; left: 32px; display: flex; align-items: center; gap: 10px; color: rgba(4, 58, 72, .72); pointer-events: none; }
html[data-instance="b"] .b-login-watermark span { display: grid; width: 34px; height: 34px; place-items: center; border: 1px solid rgba(255, 255, 255, .52); border-radius: 50%; background: rgba(255, 255, 255, .24); font-weight: 800; }
html[data-instance="b"] .b-login-watermark small { font-size: 11px; font-weight: 800; letter-spacing: 0; }
html[data-instance="b"] .login-scene { display: none; }
html[data-instance="b"] .login-auth-panel { position: relative; z-index: 2; display: grid; width: min(430px, calc(100vw - 36px)); min-height: 0; max-height: calc(100vh - 48px); padding: 38px 36px 30px; overflow-y: auto; border: 1px solid rgba(255, 255, 255, .76); border-radius: 8px; background: rgba(255, 255, 255, .76); box-shadow: 0 26px 70px rgba(0, 70, 88, .24), inset 0 1px rgba(255, 255, 255, .82); backdrop-filter: blur(18px); }
html[data-instance="b"] .login-auth-inner { width: 100%; }
html[data-instance="b"] .login-auth-inner::before { display: block; width: 44px; height: 4px; margin: 0 0 22px; border-radius: 2px; background: #087d91; content: ''; }
html[data-instance="b"] .login-auth-inner .eyebrow { color: #087d91; }
html[data-instance="b"] .login-auth-inner > h1 { color: #073b49; }
html[data-instance="b"] .login-auth-panel .auth-tabs { margin-top: 24px; background: rgba(225, 245, 248, .72); }
html[data-instance="b"] .login-auth-panel .auth-tab.active { color: #07596a; }
html[data-instance="b"] .login-auth-panel .auth-form input,
html[data-instance="b"] .login-auth-panel .auth-form select { border-color: rgba(7, 89, 106, .22); background: rgba(255, 255, 255, .76); }
html[data-instance="b"] .login-auth-panel .auth-form input:focus,
html[data-instance="b"] .login-auth-panel .auth-form select:focus { border-color: #07869c; outline-color: rgba(7, 134, 156, .16); }
html[data-instance="b"] .login-submit { background: #087d91; }
html[data-instance="b"] .login-submit:hover { background: #056779; }
html[data-instance="b"] .login-auth-foot { position: static; margin-top: 24px; color: #427681; text-align: center; }
@media (max-width: 560px) {
  html[data-instance="b"] .login-auth-panel { width: min(410px, calc(100vw - 28px)); min-height: 0; margin: 14px; padding: 30px 22px 24px; place-items: center; }
  html[data-instance="b"] .login-auth-inner { max-width: none; margin-top: 0; }
  html[data-instance="b"] .b-login-watermark { top: 18px; left: 20px; }
}
.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; }
.workspace-panel-enter { animation: workspace-panel-enter 180ms cubic-bezier(.22, 1, .36, 1) both; }
@keyframes workspace-panel-enter { from { opacity: .42; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
.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(3, minmax(0, 1fr)); gap: 8px; margin: 0 0 22px; padding: 0; list-style: none; }
.review-progress::before { position: absolute; left: 16.6667%; right: 16.6667%; 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; }
.app-bounce-loader { display: grid; place-items: center; justify-content: center; gap: 10px; min-height: 88px; padding: 10px; color: var(--muted); font-size: 13px; }
.app-loader-circles { position: relative; display: block; width: 200px; height: 64px; z-index: 1; }
.app-loader-circles i { position: absolute; top: 0; left: 15%; width: 20px; height: 20px; border-radius: 50%; background: #344054; transform-origin: 50%; animation: circle7124 .5s alternate infinite ease; }
.app-loader-circles i:nth-child(2) { left: 45%; animation-delay: .2s; }
.app-loader-circles i:nth-child(3) { right: 15%; left: auto; animation-delay: .3s; }
.app-loader-circles b { position: absolute; top: 62px; left: 15%; z-index: -1; width: 20px; height: 4px; border-radius: 50%; background: rgba(16, 24, 40, .38); filter: blur(1px); transform-origin: 50%; animation: shadow046 .5s alternate infinite ease; }
.app-loader-circles b:nth-child(5) { left: 45%; animation-delay: .2s; }
.app-loader-circles b:nth-child(6) { right: 15%; left: auto; animation-delay: .3s; }
.app-loader-label { line-height: 1; }
.app-bounce-loader.is-compact { display: inline-block; min-height: 0; padding: 0; color: currentColor; }
.app-bounce-loader.is-compact .app-loader-circles { width: 34px; height: 14px; }
.app-bounce-loader.is-compact .app-loader-circles i { left: 0; width: 6px; height: 6px; background: #344054; animation-name: circle7124Compact; }
.app-bounce-loader.is-compact .app-loader-circles i:nth-child(2) { left: 14px; }
.app-bounce-loader.is-compact .app-loader-circles i:nth-child(3) { right: 0; left: auto; }
.app-bounce-loader.is-compact .app-loader-circles b { top: 13px; left: 0; width: 6px; height: 2px; background: #101828; opacity: .35; }
.app-bounce-loader.is-compact .app-loader-circles b:nth-child(5) { left: 14px; }
.app-bounce-loader.is-compact .app-loader-circles b:nth-child(6) { right: 0; left: auto; }
@keyframes circle7124 { 0% { top: 60px; height: 5px; border-radius: 50px 50px 25px 25px; transform: scaleX(1.7); } 40% { height: 20px; border-radius: 50%; transform: scaleX(1); } 100% { top: 0; } }
@keyframes circle7124Compact { 0% { top: 12px; height: 2px; border-radius: 5px; transform: scaleX(1.5); } 40% { height: 6px; border-radius: 50%; transform: scaleX(1); } 100% { top: 0; } }
@keyframes shadow046 { 0% { transform: scaleX(1.5); } 40% { transform: scaleX(1); opacity: .7; } 100% { transform: scaleX(.2); opacity: .4; } }
@media (prefers-reduced-motion: reduce) { .app-loader-circles i, .app-loader-circles b { animation-duration: 1.2s; } }
.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; }
.history-import-card { display: grid; gap: 18px; padding: 20px; border: 1px solid var(--line); border-radius: 14px; background: #fbfcff; }
.history-import-controls { display: grid; grid-template-columns: 180px auto; gap: 14px; align-items: end; justify-content: start; }
.history-import-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; padding: 0; list-style: none; counter-reset: none; }
.history-import-steps li { padding: 10px 12px; border-bottom: 3px solid #e4e7ec; color: var(--muted); font-size: 13px; font-weight: 700; text-align: center; }
.history-import-steps li.is-active { border-color: var(--brand); color: var(--brand); }
.history-import-dropzone { display: grid; justify-items: center; gap: 7px; padding: 24px; border: 2px dashed #cbd5e1; border-radius: 10px; background: #fff; color: var(--muted); text-align: center; cursor: pointer; transition: border-color .2s ease, background-color .2s ease, box-shadow .2s ease; }
.history-import-dropzone:hover, .history-import-dropzone:focus-visible, .history-import-dropzone.is-dragging { border-color: var(--brand); background: #f5f8ff; box-shadow: 0 0 0 3px rgba(47, 102, 208, .08); outline: none; }
.history-import-dropzone strong { color: var(--ink); font-size: 15px; }
.history-import-dropzone > span { font-size: 12px; }
.history-import-upload-icon { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: #edf3ff; color: var(--brand); font-size: 22px !important; font-weight: 700; }
.history-import-file-card { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 14px; border: 1px solid #dce3f5; border-radius: 9px; background: #fff; }
.history-import-file-type { display: grid; place-items: center; width: 44px; height: 38px; border-radius: 7px; background: #eaf7ef; color: #087443; font-size: 11px; font-weight: 800; }
.history-import-file-info { display: grid; min-width: 0; gap: 3px; }
.history-import-file-info strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.history-import-file-info small { color: var(--muted); }
.history-import-progress { height: 7px; overflow: hidden; border-radius: 999px; background: #e9edf5; }
.history-import-progress span { display: block; width: 0; height: 100%; border-radius: inherit; background: var(--brand); transition: width .2s ease; }
.history-import-note { margin: 0; padding: 10px 12px; border-left: 3px solid #84adff; background: #f5f8ff; color: #475467; font-size: 13px; line-height: 1.6; }
.history-import-summary { display: flex; flex-wrap: wrap; gap: 10px; color: var(--muted); }
.history-import-summary span { padding: 8px 11px; border: 1px solid #dce3f5; border-radius: 9px; background: #fff; }
.history-import-row-warning { background: #fffaf3; }
.history-import-row-error { background: #fff1f3; }
.history-import-card .tag { display: inline-flex; margin: 2px 4px 2px 0; padding: 3px 7px; border-radius: 999px; font-size: 12px; white-space: nowrap; }
.history-import-card .history-action-buy { color: #175cd3; background: #eff8ff; }
.history-import-card .history-action-sell { color: #b54708; background: #fff6ed; }
.history-import-card .history-action-t { color: #6941c6; background: #f4f3ff; }
.history-import-card .history-action-none { color: #667085; background: #f2f4f7; }
.history-import-editor { display: grid; gap: 12px; }
.history-import-record { border: 1px solid #dce3f5; border-radius: 10px; background: #fff; overflow: hidden; }
.history-import-record.has-error { border-color: #fda29b; }
.history-import-record.is-conflict { opacity: .72; background: #f9fafb; }
.history-import-record-main { display: grid; grid-template-columns: 34px 150px minmax(170px, 1fr) 150px 150px 110px; gap: 10px; align-items: end; padding: 12px; }
.history-import-record-main > label { min-width: 0; }
.history-import-record-main input[type="checkbox"] { width: auto; align-self: center; }
.history-import-record-profit { display: grid; gap: 7px; color: var(--muted); font-size: 12px; font-weight: 600; }
.history-import-record-profit strong { min-height: 42px; padding: 10px 12px; border: 1px solid #e4e7ec; border-radius: 8px; background: #f9fafb; color: var(--ink); font-size: 14px; }
.history-import-checks { display: flex; flex-wrap: wrap; align-items: center; gap: 9px 16px; padding: 10px 12px; border-top: 1px solid #eef0f4; background: #fcfcfd; color: #475467; font-size: 12px; }
.history-import-check-label { color: #344054; font-weight: 800; }
.history-import-checks strong { font-variant-numeric: tabular-nums; }
.history-import-capital-action { display: inline-grid; grid-template-columns: auto minmax(190px, 1fr); align-items: center; gap: 8px; }
.history-import-capital-action select { min-width: 190px; padding: 7px 9px; font-size: 12px; }
.history-import-risk-ack { display: inline-flex; align-items: center; gap: 7px; color: #b54708; font-weight: 700; }
.history-import-risk-ack input { width: auto; }
.history-import-record details { border-top: 1px solid #eef0f4; }
.history-import-record summary { padding: 10px 14px; color: var(--brand); font-weight: 700; cursor: pointer; }
.history-import-detail-list { display: grid; gap: 10px; padding: 0 12px 12px; }
.history-import-detail { display: grid; grid-template-columns: 120px minmax(140px, .8fr) 110px repeat(2, minmax(140px, 1fr)) 90px; gap: 9px; align-items: end; padding: 10px; border: 1px solid #e4e7ec; border-radius: 8px; background: #f9fafb; }
.history-import-detail .history-import-logic { grid-column: span 2; }
.history-import-detail-remove { color: #b42318; }
.history-import-record-warning { margin: 0; padding: 0 12px 12px; color: #b54708; font-size: 12px; }
.history-import-save-bar { position: sticky; bottom: 12px; z-index: 4; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 16px; border: 1px solid #b2ccff; border-radius: 10px; background: rgba(239, 248, 255, .96); box-shadow: 0 10px 28px rgba(16, 24, 40, .12); backdrop-filter: blur(8px); }
@media (max-width: 760px) { .history-import-controls { grid-template-columns: 1fr; } }
@media (max-width: 1100px) { .history-import-record-main, .history-import-detail { grid-template-columns: repeat(2, minmax(0, 1fr)); } .history-import-detail .history-import-logic { grid-column: span 1; } }
.monthly-report-panel { padding-bottom: 110px; }
.yield-daily-toolbar { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; margin-top: 2px; padding: 12px 14px; border: 1px solid #e0e5ed; border-radius: 7px; background: #f8fafc; }
.yield-daily-presets { display: inline-flex; gap: 2px; padding: 3px; border: 1px solid #dce2eb; border-radius: 6px; background: #fff; }
.yield-daily-presets button { height: 34px; padding: 0 12px; border-radius: 4px; background: transparent; color: #667085; font-size: 12px; }
.yield-daily-presets button:hover { background: #f2f4f7; color: #344054; }
.yield-daily-presets button.is-active { background: #263c62; color: #fff; }
.yield-daily-date-fields { display: flex; align-items: center; gap: 8px; }
.yield-daily-date-fields label { display: grid; gap: 3px; color: #667085; font-size: 10px; font-weight: 700; }
.yield-daily-date-fields input { width: 154px; height: 38px; padding: 7px 10px; background: #fff; font-size: 13px; }
.yield-daily-date-fields > span { padding-top: 17px; color: #98a2b3; font-size: 12px; }
.yield-daily-date-fields .primary { width: auto; height: 38px; margin-left: 4px; padding: 0 22px; border-radius: 5px; }
.yield-daily-report-legend { display: flex; justify-content: flex-end; gap: 16px; padding-top: 10px; color: #667085; font-size: 11px; }
.yield-daily-report-legend span { display: inline-flex; align-items: center; gap: 5px; }
.yield-daily-report-legend i { width: 9px; height: 9px; border-radius: 2px; }
.yield-legend-positive { background: #fde2df; } .yield-legend-negative { background: #d8f4e5; } .yield-legend-missing { background: #eaecf0; }
.yield-daily-report-summary { display: flex; flex-wrap: wrap; gap: 0; min-height: 52px; padding: 11px 0; color: var(--muted); }
.yield-daily-report-summary span { display: flex; align-items: baseline; gap: 5px; min-width: 122px; padding: 6px 16px; border-left: 1px solid #e4e7ec; }
.yield-daily-report-summary span:first-child { padding-left: 0; border-left: 0; }
.yield-daily-report-summary strong { color: #24364f; font-size: 18px; font-variant-numeric: tabular-nums; }
.yield-daily-report-summary small { font-size: 11px; }
.yield-daily-report-summary .has-missing strong { color: #b54708; }
.yield-daily-report-summary .all-submitted strong { color: #087443; }
.yield-daily-report-summary .review-only-count strong { color: #9a6700; }
.yield-daily-report-table td.is-review-only { background: #fffaeb; }
#admin-yield-daily-report-panel { padding: 22px; }
.yield-daily-report-grid { display: grid; gap: 24px; }
.yield-month-block { min-width: 0; }
.yield-month-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 0 0 7px; }
.yield-month-heading h3 { margin: 0; color: #24364f; font-size: 15px; }
.yield-month-heading span { color: #667085; font-size: 11px; }
.yield-month-table-frame { width: 100%; overflow: hidden; border: 1px solid #ccd5e2; border-radius: 6px; background: #fff; box-shadow: 0 6px 18px rgba(16, 24, 40, .05); }
.yield-daily-report-table { width: 100%; margin: 0; border-collapse: separate; border-spacing: 0; table-layout: fixed; }
.yield-daily-report-table col.yield-name-col { width: 78px; }
.yield-daily-report-table col.yield-total-col { width: 62px; }
.yield-daily-report-table th, .yield-daily-report-table td { min-width: 0; height: 34px; padding: 3px 1px; overflow: hidden; border-right: 1px solid #e4e7ec; border-bottom: 1px solid #e4e7ec; background: #fff; color: #344054; font-size: clamp(8px, .56vw, 10px); text-align: center; text-overflow: clip; vertical-align: middle; white-space: nowrap; }
.yield-daily-report-table thead th { background: #263c62; color: #fff; font-weight: 800; }
.yield-daily-report-table thead tr:first-child th { height: 29px; }
.yield-daily-report-table thead tr:nth-child(2) th { height: 23px; background: #eff3f8; color: #667085; font-size: clamp(7px, .5vw, 9px); }
.yield-daily-report-table .yield-sticky-name { padding-left: 6px; text-align: left; text-overflow: ellipsis; }
.yield-daily-report-table .yield-sticky-total { background: #f3f6fa; font-size: clamp(9px, .65vw, 12px); font-weight: 800; }
.yield-daily-report-table thead .yield-sticky-name, .yield-daily-report-table thead .yield-sticky-total { background: #263c62; color: #fff; }
.yield-daily-report-table tbody tr:nth-child(even) > * { background: #f9fbfe; }
.yield-daily-report-table tbody tr:nth-child(even) > .yield-sticky-total { background: #edf2f8; }
.yield-daily-report-table .yield-daily-rate { padding: 3px 1px; font-variant-numeric: tabular-nums; }
.yield-rate-value { display: block; width: 100%; min-width: 0; padding: 3px 0; overflow: hidden; border-radius: 3px; font-size: inherit; font-weight: 800; text-overflow: clip; white-space: nowrap; }
.yield-rate-value.is-positive { background: #fef0ee; color: #b42318; }
.yield-rate-value.is-negative { background: #eaf8f1; color: #087443; }
.yield-rate-value.is-flat { background: #f2f4f7; color: #475467; }
.yield-rate-value.is-missing { background: transparent; color: #98a2b3; font-size: clamp(7px, .48vw, 9px); font-weight: 600; }
@media (max-width: 900px) { .yield-daily-toolbar { align-items: stretch; flex-direction: column; } .yield-daily-date-fields { flex-wrap: wrap; } }
@media (max-width: 760px) { .yield-daily-presets { overflow-x: auto; } .yield-daily-date-fields { display: grid; grid-template-columns: 1fr 1fr; } .yield-daily-date-fields > span { display: none; } .yield-daily-date-fields label, .yield-daily-date-fields input { width: 100%; } .yield-daily-date-fields .primary { grid-column: 1 / -1; width: 100%; margin: 0; } #admin-yield-daily-report-panel { padding: 12px 7px; } .yield-daily-report-table col.yield-name-col { width: 58px; } .yield-daily-report-table col.yield-total-col { width: 48px; } .yield-daily-report-table .yield-sticky-name { padding-left: 3px; } }
.monthly-report-filters { display: grid; grid-template-columns: 180px minmax(220px, 320px) auto; gap: 14px; align-items: end; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.monthly-report-summary { display: flex; flex-wrap: wrap; gap: 10px; min-height: 36px; padding: 14px 0; color: var(--muted); }
.monthly-report-cos-notice { margin-top: 14px; padding: 10px 12px; border: 1px solid #fedf89; border-radius: 6px; background: #fffaeb; color: #93370d; font-size: 12px; line-height: 1.6; }
.monthly-report-summary span { padding: 7px 10px; border: 1px solid #dce3f5; border-radius: 7px; background: #f8faff; font-size: 12px; }
.monthly-report-stage { display: grid; gap: 30px; }
.monthly-report-employee { display: grid; gap: 14px; padding-top: 8px; }
.monthly-report-employee + .monthly-report-employee { padding-top: 26px; border-top: 2px solid #dce3f5; }
.monthly-report-employee-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.monthly-report-employee-heading > div:first-child { display: grid; gap: 3px; }
.monthly-report-employee-heading span { color: var(--muted); font-size: 12px; }
.monthly-report-employee-heading h3 { margin: 0; font-size: 20px; }
.monthly-report-employee-heading h3 small { color: var(--muted); font-size: 13px; font-weight: 600; }
.monthly-report-metrics { display: grid; grid-template-columns: repeat(4, minmax(115px, 1fr)); gap: 1px; overflow: hidden; border: 1px solid var(--line); border-radius: 7px; background: var(--line); }
.monthly-report-metrics > span { display: grid; gap: 3px; min-width: 115px; padding: 9px 12px; background: #fff; }
.monthly-report-metrics small { color: var(--muted); font-size: 11px; }
.monthly-report-metrics strong { font-size: 14px; }
.monthly-report-stock-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.monthly-report-stock { display: grid; grid-template-columns: minmax(0, 58%) minmax(0, 42%); min-width: 0; min-height: 390px; overflow: hidden; border: 1px solid #d7deea; border-radius: 8px; background: #fff; }
.monthly-report-structured { display: grid; align-content: start; min-width: 0; border-right: 1px solid #d7deea; }
.monthly-report-stock-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 72px; padding: 13px 16px; background: #eef3fb; }
.monthly-report-stock-heading > div { display: grid; gap: 3px; min-width: 0; }
.monthly-report-stock-heading h4 { margin: 0; overflow-wrap: anywhere; font-size: 17px; }
.monthly-report-stock-index { color: var(--brand-dark) !important; font-size: 11px !important; font-weight: 800; letter-spacing: .08em; }
.monthly-report-fields { display: grid; margin: 0; }
.monthly-report-fields > div { display: grid; grid-template-columns: 90px minmax(0, 1fr); min-height: 84px; border-top: 1px solid #e4e7ec; }
.monthly-report-fields dt { display: grid; place-items: center; margin: 0; padding: 12px 10px; background: #f8fafc; color: var(--muted); font-size: 12px; font-weight: 700; text-align: center; }
.monthly-report-fields dd { display: grid; align-content: center; gap: 6px; margin: 0; padding: 12px 14px; overflow-wrap: anywhere; }
.monthly-report-fields dd > span { display: grid; grid-template-columns: 42px minmax(0, 1fr); gap: 7px; }
.monthly-report-fields dd b { color: var(--muted); font-size: 11px; }
.monthly-report-logic { padding-top: 5px; border-top: 1px dashed #e4e7ec; }
.monthly-report-image-panel { position: relative; display: grid; place-items: center; min-width: 0; min-height: 390px; overflow: hidden; background: #f3f5f8; outline: none; transition: background-color .18s ease, box-shadow .18s ease; }
.monthly-report-image-panel:focus-visible { box-shadow: inset 0 0 0 2px #84adff; }
.monthly-report-image-panel.is-dragging { background: #edf3ff; box-shadow: inset 0 0 0 3px var(--brand); }
.monthly-report-drop-overlay { position: absolute; inset: 14px; z-index: 4; display: none; place-content: center; justify-items: center; gap: 5px; border: 2px dashed #5b7fe8; border-radius: 7px; background: rgba(239, 244, 255, .95); color: var(--brand-dark); pointer-events: none; }
.monthly-report-drop-overlay span { color: var(--muted); font-size: 12px; }
.monthly-report-image-panel.is-dragging .monthly-report-drop-overlay { display: grid; }
.monthly-report-image-preview { position: absolute; inset: 0; display: grid; place-items: center; width: 100%; height: 100%; padding: 18px 18px 70px; overflow: hidden; border: 0; border-radius: 0; background: #f3f5f8; }
.monthly-report-image-preview img { display: block; width: 100%; height: 100%; max-width: 100%; max-height: 100%; object-fit: contain; object-position: center center; }
.monthly-report-image-error { display: grid; place-items: center; height: 100%; padding: 24px; color: #b42318; font-size: 13px; font-weight: 700; text-align: center; }
.monthly-report-image-preview:hover { background: #edf1f6; }
.monthly-report-image-empty { display: grid; justify-items: center; gap: 10px; color: var(--muted); }
.monthly-report-image-empty span { font-size: 48px; font-weight: 300; }
.monthly-report-image-actions { position: absolute; right: 14px; bottom: 14px; left: 14px; display: flex; align-items: center; justify-content: flex-end; gap: 12px; min-height: 44px; padding: 6px 8px 6px 14px; border: 1px solid rgba(208, 213, 221, .9); border-radius: 7px; background: rgba(255, 255, 255, .94); box-shadow: 0 8px 22px rgba(16, 24, 40, .12); backdrop-filter: blur(8px); }
.monthly-report-image-actions small { margin-right: auto; color: var(--muted); }
.monthly-image-confirm-dialog { width: min(980px, calc(100vw - 32px)); max-width: 980px; max-height: 92vh; overflow: auto; }
.monthly-image-confirm-layout { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 18px; margin-top: 14px; }
.monthly-image-confirm-preview { display: grid; place-items: center; min-height: 420px; overflow: hidden; border: 1px solid #d7deea; border-radius: 8px; background: #f3f5f8; }
.monthly-image-confirm-preview img { display: block; width: 100%; max-height: 64vh; object-fit: contain; }
.monthly-image-confirm-meta { display: grid; align-content: start; gap: 12px; margin: 0; }
.monthly-image-confirm-meta > div { display: grid; gap: 5px; padding: 12px; border: 1px solid #e4e7ec; border-radius: 7px; background: #f8fafc; }
.monthly-image-confirm-meta dt { color: var(--muted); font-size: 11px; font-weight: 700; }
.monthly-image-confirm-meta dd { margin: 0; overflow-wrap: anywhere; line-height: 1.55; }
.monthly-report-date-dock { position: sticky; bottom: 12px; z-index: 5; display: grid; grid-template-columns: 42px 160px minmax(0, 1fr) 42px; gap: 10px; align-items: end; margin-top: 28px; padding: 12px; border: 1px solid #cfd8e8; border-radius: 8px; background: rgba(255, 255, 255, .96); box-shadow: 0 12px 32px rgba(16, 24, 40, .14); backdrop-filter: blur(10px); }
.monthly-report-date-dock > button { width: 42px; height: 42px; padding: 0; font-size: 19px; }
.monthly-report-date-list { display: flex; gap: 6px; min-width: 0; padding: 2px 0; overflow-x: auto; }
.monthly-report-date-button { flex: 0 0 auto; min-width: 58px; height: 38px; padding: 0 9px; border: 1px solid #dce3f5; border-radius: 6px; background: #f7f9ff; color: var(--muted); font-size: 12px; }
.monthly-report-date-button.is-active { border-color: var(--brand); background: var(--brand); color: #fff; box-shadow: 0 5px 12px rgba(40, 85, 217, .22); }
.monthly-report-save-bar { position: sticky; bottom: 86px; z-index: 6; display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 12px; padding: 12px 16px; border: 1px solid #b2ccff; border-radius: 8px; background: rgba(239, 248, 255, .97); box-shadow: 0 10px 28px rgba(16, 24, 40, .13); }
@media (max-width: 1180px) { .monthly-report-stock-list { grid-template-columns: 1fr; } .monthly-report-stock { grid-template-columns: minmax(300px, 38%) minmax(0, 62%); } }
@media (max-width: 1100px) { .monthly-report-stock { grid-template-columns: 1fr; } .monthly-report-structured { border-right: 0; border-bottom: 1px solid #d7deea; } .monthly-report-image-panel { min-height: 440px; } .monthly-report-employee-heading { align-items: stretch; flex-direction: column; } }
@media (max-width: 760px) { .monthly-report-filters, .monthly-report-date-dock, .monthly-image-confirm-layout { grid-template-columns: 1fr; } .monthly-report-date-dock > button { display: none; } .monthly-report-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); } .monthly-report-stock { min-height: 0; } .monthly-report-image-panel { min-height: 360px; } .monthly-report-image-actions { align-items: stretch; flex-direction: column; } .monthly-report-image-actions small { margin: 0; } .monthly-report-save-bar { bottom: 12px; align-items: stretch; flex-direction: column; } .monthly-image-confirm-preview { min-height: 280px; } }
.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) auto; gap: 6px; align-items: center; min-width: 330px; 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); } .delete-ledger-image { padding-inline: 9px; color: #b42318; white-space: nowrap; } .delete-ledger-image:hover { background: #fff1f0; } .image-progress { grid-column: 1 / -1; min-height: 14px; color: var(--muted); font-size: 11px; line-height: 1.2; overflow-wrap: anywhere; }
.image-progress.is-recognizing { display: flex; align-items: center; gap: 7px; }
@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(180px, .85fr) minmax(200px, 1fr) minmax(390px, 1.5fr); align-items: end; gap: 14px; margin-top: 18px; }
.export-date-range { display: grid; grid-template-columns: minmax(150px, 1fr) auto minmax(150px, 1fr); align-items: end; gap: 10px; min-width: 0; margin: 0; padding: 10px 12px 12px; border: 1px solid #d9e0eb; border-radius: 8px; background: rgba(255, 255, 255, .82); }
.export-date-range legend { padding: 0 6px; color: #344054; font-size: 12px; font-weight: 800; }
.export-date-range label { display: grid; gap: 4px; min-width: 0; color: #667085; font-size: 11px; }
.export-date-range label > span { font-weight: 700; }
.export-date-range input { width: 100%; min-width: 0; }
.export-date-range > i { align-self: center; padding-top: 20px; color: #98a2b3; font-size: 12px; font-style: normal; }
.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); }
.export-record-actions { display: flex; align-items: center; gap: 10px; white-space: nowrap; }
.export-delete-button { color: #b42318; }
.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; }
.period-profit-view-controls { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin: 12px 0; }
.period-profit-mode { display: inline-flex; flex: 0 0 auto; gap: 3px; padding: 3px; border: 1px solid #d0d5dd; border-radius: 7px; background: #f2f4f7; }
.period-profit-mode button { min-height: 34px; padding: 6px 12px; border: 0; border-radius: 5px; background: transparent; color: #475467; font-size: 13px; font-weight: 650; cursor: pointer; }
.period-profit-mode button.active { background: #fff; color: #175cd3; box-shadow: 0 1px 3px rgba(16, 24, 40, .16); }
.period-profit-mode button:focus-visible { outline: 2px solid #84adff; outline-offset: 2px; }
.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: #667085; stroke-width: 2; stroke-dasharray: 5 4; }
.chart-zero-label { fill: #344054; font-weight: 800; }
.chart-axis-mark { stroke: #98a2b3; stroke-width: 1; }
.chart-axis-label { fill: #667085; font-size: 12px; }
.profit-series-line { fill: none; stroke-width: 2.25; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; opacity: 0; animation: reveal-profit-line 520ms ease-out var(--series-delay) forwards; }
.company-profit-line { stroke-width: 3.5; }
.profit-series-dot { stroke: #fff; stroke-width: 2; vector-effect: non-scaling-stroke; opacity: 0; transform-box: fill-box; transform-origin: center; transition: opacity .16s ease, transform .16s ease; }
.profit-series-dot.is-extreme, .series-focused .profit-series-dot { opacity: 1; }
.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; }
.period-profit-chart.is-all-series [data-series-id]:not(.series-company) { opacity: .38; }
.period-profit-chart svg.has-series-focus [data-series-id]:not(.series-focused) { opacity: .1; }
.period-profit-chart svg.has-series-focus [data-series-id].series-focused { opacity: 1; }
[data-series-id].series-hidden { opacity: 0 !important; pointer-events: none; }
.chart-hover-guide { stroke: #98a2b3; stroke-width: 1; stroke-dasharray: 3 4; opacity: 0; pointer-events: none; }
.chart-hover-guide.is-visible { opacity: .8; }
.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; }
.chart-tooltip-list { display: grid; min-width: 220px; max-height: 220px; margin-top: 5px; overflow: auto; }
.chart-tooltip-list span { display: grid; grid-template-columns: 8px minmax(84px, 1fr) auto; align-items: center; gap: 7px; padding: 4px 5px; border-radius: 4px; }
.chart-tooltip-list span.is-current { background: #f2f4f7; }
.chart-tooltip-list i { width: 7px; height: 7px; border-radius: 50%; background: var(--tooltip-color); }
.chart-tooltip-list em { overflow: hidden; color: #475467; font-style: normal; text-overflow: ellipsis; white-space: nowrap; }
.period-profit-legend { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 10px; margin-top: 12px; }
.period-profit-selection { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 52px; padding: 9px 12px; border: 1px solid #e4e7ec; border-radius: 7px; background: #fff; }
.period-profit-selection > div:first-child { display: grid; gap: 2px; }
.period-profit-selection strong { color: #344054; font-size: 13px; }
.period-profit-selection span { color: var(--muted); font-size: 11px; }
.period-profit-selection-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.period-profit-selection-actions button { min-height: 32px; padding: 6px 11px; border: 1px solid #d0d5dd; border-radius: 5px; background: #fff; color: #475467; font-size: 12px; font-weight: 700; }
.period-profit-selection-actions button:hover { border-color: #98a2b3; background: #f8fafc; color: #101828; }
.period-profit-selection-actions button.is-active { border-color: #344054; background: #344054; color: #fff; }
.profit-legend-item { display: grid; gap: 4px; padding: 12px; border: 1px solid var(--line); border-radius: 7px; background: #f8fafc; cursor: pointer; }
.profit-legend-company { border-color: #cfd5df; background: #fff; cursor: default; }
.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); } }
@media (prefers-reduced-motion: reduce) { .profit-series-line { animation: none; opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .workspace-panel-enter { animation: 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(1200px, calc(100% - 32px)); height: min(88vh, 900px); max-width: none; max-height: none; padding: 0; border: 0; border-radius: 7px; overflow: hidden; background: #111; overscroll-behavior: contain; }
.image-preview[open] { display: grid; grid-template-rows: minmax(0, 1fr) auto; }
.image-preview::backdrop { background: rgba(0, 0, 0, .72); }
.image-preview-viewport { position: relative; min-width: 0; min-height: 0; overflow: hidden; cursor: zoom-in; touch-action: none; user-select: none; overscroll-behavior: contain; }
.image-preview-viewport.is-zoomed { cursor: grab; }
.image-preview-viewport.is-dragging { cursor: grabbing; }
.image-preview img { position: absolute; top: 50%; left: 50%; display: block; max-width: none; max-height: none; object-fit: contain; transform-origin: center; will-change: transform; pointer-events: none; }
.image-preview-controls { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; min-height: 58px; padding: 7px 10px; border-top: 1px solid #303030; background: #181818; }
.image-preview-toolbar { grid-column: 2; display: flex; align-items: center; gap: 5px; color: #fff; }
.image-preview-toolbar output { min-width: 54px; color: #fff; text-align: center; font-size: 13px; font-variant-numeric: tabular-nums; }
.image-preview-tool, .image-close { display: grid; place-items: center; width: 38px; height: 38px; padding: 0; border: 1px solid rgba(255, 255, 255, .28); border-radius: 6px; background: rgba(0, 0, 0, .68); color: #fff; font-size: 22px; line-height: 1; }
.image-preview-tool:hover, .image-close:hover { border-color: rgba(255, 255, 255, .7); background: rgba(255, 255, 255, .16); }
.image-close { grid-column: 3; justify-self: end; }
#review-form input::placeholder,
#review-form textarea::placeholder,
#ledger-form input::placeholder,
#ledger-form textarea::placeholder {
  color: #a9b5bf;
  font-weight: 400;
  opacity: 1;
}
.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-capital-flow { min-width: 210px; }
.performance-capital-flow > strong { color: #175cd3 !important; }
.performance-capital-flow > strong.capital-flow-out { color: #b54708 !important; }
.performance-capital-flow > strong.capital-flow-none { color: #667085 !important; font-weight: 600; }
.performance-account-range { min-width: 230px; }
.performance-account-range > strong span { padding: 0 5px; color: #98a2b3; font-weight: 500; }
.capital-flow-gap { display: block; width: max-content; margin-top: 5px; padding: 2px 7px; border-radius: 4px; background: #fff6ed; color: #b54708; font-size: 11px; }
.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; }
.history-principal-correction { margin: 14px 0 18px; padding: 12px 14px; border: 1px solid #f0c7c7; border-radius: 8px; background: #fffafa; }
.history-principal-correction > summary { cursor: pointer; color: #9b1c1c; font-weight: 800; }
.history-principal-correction .principal-event-form { grid-template-columns: minmax(150px, .8fr) minmax(180px, .9fr) minmax(280px, 1.5fr) minmax(220px, 1fr) auto; }
.history-principal-confirm { display: flex; min-height: 44px; flex-direction: row; align-items: center; gap: 8px; font-weight: 700; }
.history-principal-confirm input { width: 18px; height: 18px; flex: 0 0 auto; }
.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-complete { background: #f7fcf8; }
.submission-matrix .matrix-row-complete:hover { background: #ecfdf3; }
.submission-matrix .matrix-row-pending { background: #fffbf2; }
.submission-matrix .matrix-row-pending:hover { background: #fff5df; }
.submission-matrix .matrix-row-empty { background: #fafbff; }
.submission-matrix .matrix-row-empty:hover { background: #f1f4fc; }
.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; border-radius: 10px; overflow: hidden; }
.forecast-accuracy-table th, .forecast-accuracy-table td { font-size: 13px; }
.forecast-accuracy-table th { background: #f8faff; color: var(--muted); font-size: 12px; font-weight: 700; }
.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-ledger-state.is-review-only { color: #9a6700; }
.daily-holding-capital { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; border-bottom: 1px solid #e4e7ec; background: #e4e7ec; }
.daily-holding-capital span { display: grid; gap: 2px; padding: 10px 16px; background: #fffcf5; }
.daily-holding-capital small { color: #7a5d16; font-size: 10px; }
.daily-holding-capital strong { color: #694f12; font-size: 14px; font-variant-numeric: tabular-nums; }
.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; }
.required-mark { display: inline-block; margin-left: 4px; color: #b42318; font-size: 10px; font-weight: 800; }
.user-form button:disabled { cursor: not-allowed; opacity: .48; }

/* 员工贡献区保留核心结果，隐藏容易与收益混淆的辅助列。 */
.performance-panel .performance-column-hidden,
.performance-panel table tr > :nth-child(2),
.performance-panel table tr > :nth-child(3),
.performance-panel table tr > :nth-child(5) { display: none; }
.performance-panel table th,
.performance-panel table td { padding: 10px 12px; }

@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)); } .export-date-range { grid-column: 1 / -1; } .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; } .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, .period-profit-view-controls { display: grid; align-items: stretch; } .period-profit-mode { display: grid; grid-template-columns: 1fr 1fr; } .period-profit-mode button { padding-inline: 6px; } .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; } }
@media (max-width: 520px) { .export-date-range { grid-template-columns: 1fr; } .export-date-range > i { display: none; } }

.workspace-nav { overflow-x: auto; }
.alpha-workbench-link { padding: 8px 11px; border: 1px solid #b8c9f3; border-radius: 6px; background: #f4f7ff; color: var(--brand); font-weight: 700; text-decoration: none; white-space: nowrap; }
.alpha-workbench-link:hover { border-color: var(--brand); background: #eaf0ff; }
#app-view[data-role="manager"] .monthly-report-image-actions,
#app-view[data-role="manager"] .monthly-report-save-bar { display: none; }
#app-view[data-role="manager"] .monthly-report-image-preview { padding: 18px; }

/* Employee modes: same data contract, deliberately different visual language. */
.employee-mode-banner { margin: 6px 0 0; color: var(--muted); font-size: 13px; font-weight: 700; }
.employee-daily-yield-panel { order: -1; margin: -8px 0 24px; padding: 18px; border: 1px solid #d9e3ff; border-radius: 16px; background: linear-gradient(135deg, #f7f9ff, #fff); }
.employee-daily-yield-panel .subhead { margin-bottom: 12px; }
.employee-daily-yield-toolbar { display: flex; align-items: end; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; }
.employee-daily-yield-toolbar label { display: grid; gap: 5px; color: var(--muted); font-size: 12px; font-weight: 700; }
.employee-daily-yield-toolbar > span { padding-bottom: 12px; color: var(--muted); }
.employee-daily-yield-table { min-width: 0; }
.employee-daily-yield-table td, .employee-daily-yield-table th { padding: 9px 12px; }
.employee-daily-yield-matrix { min-width: max-content; }
.employee-daily-yield-matrix .employee-yield-name { position: sticky; left: 0; z-index: 1; min-width: 132px; background: #fff; }
.employee-daily-yield-matrix .employee-yield-date { min-width: 76px; text-align: center; }
.employee-daily-yield-matrix .employee-yield-date small { display: block; margin-top: 2px; color: var(--muted); font-size: 10px; font-weight: 500; }
.employee-daily-yield-matrix td { min-width: 76px; text-align: center; }
.employee-daily-yield-matrix td small { display: block; margin-top: 2px; color: var(--muted); font-size: 10px; }
.employee-yield-missing { color: #98a2b3; background: #fafafa; font-size: 11px; }
.employee-daily-yield-table tbody tr.is-missing { color: #98a2b3; background: #fafafa; }
.employee-daily-yield-table tbody tr.is-missing:hover { background: #f5f6f8; }
.employee-type-filter-bar { display: flex; justify-content: flex-end; margin: -8px 0 12px; }
.strategy-summary { display:grid; grid-template-columns:repeat(4,minmax(130px,1fr)); gap:12px; margin:0 0 18px; }
.strategy-summary-item { display:flex; align-items:baseline; justify-content:space-between; gap:10px; padding:14px 16px; border:1px solid #dbe5f2; border-radius:14px; background:rgba(255,255,255,.78); color:#60758e; }
.strategy-summary-item strong { color:#1f3c61; font-size:24px; }.strategy-summary-item.is-good strong { color:#17835a; }
.strategy-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; }
.strategy-member-card { overflow:hidden; border:1px solid #d9e4f1; border-radius:16px; background:rgba(255,255,255,.9); box-shadow:0 8px 24px rgba(47,75,110,.08); }
.strategy-member-card.is-empty { opacity:.82; }.strategy-member-heading { display:flex; align-items:flex-start; justify-content:space-between; gap:12px; padding:16px 18px 13px; border-bottom:1px solid #e5ebf3; background:linear-gradient(110deg,#f7fbff,#edf5fc); }
.strategy-member-heading strong { color:#193b61; font-size:19px; }.strategy-member-heading small { display:block; margin-top:2px; color:#8092a8; font-size:12px; }.strategy-member-status { text-align:right; color:#2c7b5d; font-size:13px; font-weight:700; }.strategy-member-card.is-empty .strategy-member-status { color:#a36b38; }.strategy-member-status small { color:#8395aa; font-weight:500; }
.strategy-member-body { display:grid; grid-template-columns:1fr 1fr; gap:12px; padding:16px 18px; }.strategy-member-body section { min-width:0; }.strategy-member-body h4 { margin:0 0 6px; color:#54708e; font-size:12px; letter-spacing:.04em; }.strategy-member-body p { min-height:44px; max-height:104px; overflow:auto; margin:0; color:#2f4c69; white-space:pre-wrap; word-break:break-word; line-height:1.6; }.strategy-targets-view { display:flex; flex-wrap:wrap; gap:6px; min-height:44px; align-content:flex-start; }.strategy-target-chip { display:inline-flex; padding:5px 9px; border-radius:999px; color:#285c8d; background:#eaf3fc; border:1px solid #d4e5f4; font-size:12px; }.strategy-empty { color:#9aa8b8; font-size:13px; }
.strategy-member-footer { display:flex; justify-content:space-between; gap:12px; padding:10px 18px; border-top:1px solid #e5ebf3; color:#8393a6; font-size:12px; }
.inline-date-field { display:flex; align-items:center; gap:8px; color:#52708e; font-size:13px; font-weight:700; }.inline-date-field input { margin-left:4px; }
@media (max-width:900px) { .strategy-grid { grid-template-columns:1fr; } .strategy-summary { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media (max-width:620px) { .strategy-member-body { grid-template-columns:1fr; } .strategy-summary { grid-template-columns:1fr 1fr; } .strategy-member-footer { flex-direction:column; gap:4px; } }
.trial-capital-note { margin-left: 12px; padding: 8px 12px; border: 1px solid rgba(40, 120, 232, .16); border-radius: 999px; background: rgba(255, 255, 255, .48); color: var(--brand-dark); font-size: 12px; font-weight: 700; }
.employee-type-filter-bar label { display: inline-grid; grid-template-columns: auto minmax(140px, 180px); align-items: center; gap: 8px; color: var(--muted); font-size: 12px; font-weight: 700; }
#app-view[data-employee-type="new"] { --brand: #7d5a3c; --brand-dark: #5b402b; --surface: #fffdf8; --line: #e3d5c2; background: #f4efe6; }
#app-view[data-employee-type="new"] { --color-bark: #5c4033; --color-cream: #faf6f1; --color-linen: #e9e0d4; --color-sage: #8b9d77; --color-terracotta: #d4a373; color: var(--color-bark); background: var(--color-cream); font-family: -apple-system, 'Segoe UI', sans-serif; }
#app-view[data-employee-type="new"] h1, #app-view[data-employee-type="new"] h2, #app-view[data-employee-type="new"] h3, #app-view[data-employee-type="new"] h4 { color: var(--color-bark); font-family: Georgia, 'Songti SC', serif; font-weight: 500; letter-spacing: -.01em; }
#app-view[data-employee-type="new"] .eyebrow { color: var(--color-sage); letter-spacing: .14em; }
#app-view[data-employee-type="new"] .topbar, #app-view[data-employee-type="new"] .panel-heading { border-color: rgba(92, 64, 51, .16); }
#app-view[data-employee-type="new"] .workspace-nav { border-bottom-color: rgba(92, 64, 51, .18); }
#app-view[data-employee-type="new"] .nav-tab { color: rgba(92, 64, 51, .72); border-radius: 999px 999px 0 0; }
#app-view[data-employee-type="new"] .nav-tab.active { color: var(--color-bark); background: rgba(139, 157, 119, .16); border-bottom-color: var(--color-sage); }
#app-view[data-employee-type="new"] .panel { border-radius: 32px 24px 36px 20px; background: var(--color-linen); box-shadow: 0 8px 24px rgba(92, 64, 51, .08); }
#app-view[data-employee-type="new"] .primary, #app-view[data-employee-type="new"] .secondary { border-radius: 999px; border-color: transparent; background: var(--color-bark); color: var(--color-cream); transition: background-color .3s ease-out; }
#app-view[data-employee-type="new"] .primary:hover, #app-view[data-employee-type="new"] .secondary:hover { background: #765242; transform: none; }
#app-view[data-employee-type="new"] input, #app-view[data-employee-type="new"] textarea, #app-view[data-employee-type="new"] select { border: 1px solid rgba(92, 64, 51, .2); border-radius: 20px; padding: 14px 18px; color: var(--color-bark); background: var(--color-cream); }
#app-view[data-employee-type="new"] input:focus, #app-view[data-employee-type="new"] textarea:focus, #app-view[data-employee-type="new"] select:focus { border-color: var(--color-sage); box-shadow: 0 0 0 3px rgba(139, 157, 119, .2); outline: none; }
#app-view[data-employee-type="new"] .panel { border-radius: 32px 24px 36px 20px; background: var(--color-linen); box-shadow: 0 8px 24px rgba(92, 64, 51, .08); }
#app-view[data-employee-type="new"] #employee-ledger-panel { background: linear-gradient(145deg, #fffaf1 0%, #f5eee2 100%); }
#app-view[data-employee-type="new"] .employee-mode-banner { color: #7d5a3c; }
#app-view[data-employee-type="new"] .employee-daily-yield-panel { border-color: #d8c4a9; background: #f2e8d8; border-radius: 20px 12px 24px 14px; }
#app-view[data-employee-type="new"] .employee-daily-yield-table th { background: #e9dcc9; color: #6c5038; }
#app-view[data-employee-type="new"] .employee-daily-yield-table td { border-color: #eadfce; }
#app-view[data-employee-type="new"] .entry-section, #app-view[data-employee-type="new"] .account-funds { border-color: #d8c4a9; background: rgba(255, 252, 245, .84); }
#app-view[data-employee-type="new"] input, #app-view[data-employee-type="new"] textarea, #app-view[data-employee-type="new"] select { border-color: #d8c4a9; background: #fffdf8; }
@media (max-width: 760px) { .employee-daily-yield-toolbar { align-items: stretch; } .employee-daily-yield-toolbar label { flex: 1 1 140px; } .employee-daily-yield-toolbar button { width: 100%; } }
.meeting-layout { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(280px, .8fr); gap: 18px; align-items: start; }
.meeting-editor { display: grid; gap: 14px; padding: 18px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.meeting-meta { display: grid; grid-template-columns: repeat(2, minmax(160px, 1fr)); gap: 12px; }
.meeting-editor > label { display: grid; gap: 7px; color: #344054; font-weight: 600; }
.meeting-editor textarea { resize: vertical; line-height: 1.65; }
.meeting-editor textarea[readonly], .meeting-editor input[readonly] { background: #f8fafc; color: #344054; }
.meeting-dropzone { display: grid; min-height: 190px; place-items: center; align-content: center; gap: 8px; padding: 26px; border: 2px dashed #b8c5d8; border-radius: 8px; background: #f8fafc; color: var(--muted); text-align: center; transition: border-color .2s ease, background .2s ease, box-shadow .2s ease; }
.meeting-dropzone strong { color: var(--ink); font-size: 18px; }
.meeting-dropzone.is-dragging, .meeting-dropzone:focus-visible { border-color: var(--brand); background: #eef4ff; box-shadow: 0 0 0 4px rgba(36,88,198,.12); outline: none; }
.meeting-dropzone button { margin-top: 8px; }
.meeting-file-detail { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); overflow: hidden; border: 1px solid var(--line); border-radius: 7px; background: #fff; }
.meeting-file-detail > div { display: grid; gap: 3px; min-width: 0; padding: 11px 12px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.meeting-file-detail > div:nth-child(2n) { border-right: 0; }
.meeting-file-detail > div:nth-last-child(-n+2) { border-bottom: 0; }
.meeting-file-detail span { color: var(--muted); font-size: 11px; }
.meeting-file-detail strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.meeting-file-detail > .empty { grid-column: 1 / -1; margin: 0; padding: 20px; text-align: center; }
.meeting-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; }
.meeting-history { min-width: 0; padding: 16px; border: 1px solid var(--line); border-radius: 8px; background: #f8fafc; }
.meeting-list { display: grid; gap: 8px; max-height: 620px; overflow-y: auto; }
.meeting-list-item { display: grid; gap: 5px; width: 100%; padding: 11px 12px; border: 1px solid #d7deea; border-radius: 7px; background: #fff; color: var(--ink); text-align: left; }
.meeting-list-item:hover { border-color: #9db4f5; background: #f7f9ff; }
.meeting-list-item > span { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.meeting-list-item em { padding: 2px 7px; border-radius: 4px; background: #eef3ff; color: var(--brand); font-size: 11px; font-style: normal; }
.meeting-list-item strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.meeting-list-item small { color: var(--muted); }
@media (max-width: 900px) { .meeting-layout, .meeting-meta, .meeting-file-detail { grid-template-columns: 1fr; } .meeting-file-detail > div { border-right: 0; } .meeting-file-detail > div:nth-last-child(-n+2) { border-bottom: 1px solid var(--line); } .meeting-file-detail > div:last-child { border-bottom: 0; } .meeting-list { max-height: 360px; } }

/* ---- 一键置顶按钮（所有页面共用） ---- */
.back-to-top {
  position: fixed; right: 28px; bottom: 36px; z-index: 999;
  width: 48px; height: 48px; border: 0; border-radius: 50%;
  background: linear-gradient(135deg, #3d6a4a, #1f4d32);
  color: #fff; cursor: pointer;
  box-shadow: 0 6px 18px rgba(31, 77, 50, .32), 0 2px 4px rgba(0, 0, 0, .12);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transform: translateY(16px) scale(.92);
  transition: opacity .28s ease, transform .28s cubic-bezier(.22, 1, .36, 1), box-shadow .28s ease;
  pointer-events: none;
}
.back-to-top::before { content: "↑"; font-size: 22px; font-weight: 700; line-height: 1; }
.back-to-top:hover { transform: translateY(0) scale(1.04); box-shadow: 0 10px 26px rgba(31, 77, 50, .42); }
.back-to-top.show { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }
html[data-theme="victorian"] .back-to-top {
  background: linear-gradient(135deg, #8b6914, #5a4207);
  box-shadow: 0 6px 18px rgba(90, 66, 7, .32), 0 2px 4px rgba(0, 0, 0, .12);
}
html[data-theme="victorian"] .back-to-top:hover { box-shadow: 0 10px 26px rgba(90, 66, 7, .42); }
@media (max-width: 620px) { .back-to-top { right: 18px; bottom: 22px; width: 42px; height: 42px; } .back-to-top::before { font-size: 20px; } }

/* ---- B 实例：登录后的员工录入界面沿用像素水族背景 ---- */
html[data-instance="b"] body:has(#app-view[data-role="employee"]:not(.hidden)) { background: #58bfd3; }
html[data-instance="b"] body:has(#app-view[data-role="employee"]:not(.hidden)) .shell { position: relative; z-index: 1; }

html[data-instance="b"] body:has(#app-view[data-role="employee"]:not(.hidden)) .topbar {
  padding: 14px 18px;
  border: 1px solid rgba(255, 255, 255, .72);
  border-radius: 18px;
  background: rgba(255, 255, 255, .62);
  box-shadow: 0 16px 40px -24px rgba(4, 60, 80, .5), inset 0 1px 0 rgba(255, 255, 255, .9);
  backdrop-filter: blur(18px) saturate(135%);
  -webkit-backdrop-filter: blur(18px) saturate(135%);
}
html[data-instance="b"] body:has(#app-view[data-role="employee"]:not(.hidden)) .workspace-nav { border-bottom: 0; }
html[data-instance="b"] body:has(#app-view[data-role="employee"]:not(.hidden)) .nav-tab.active {
  background: rgba(255, 255, 255, .92);
  color: #07596a;
  box-shadow: inset 0 -2px #087d91;
}

html[data-instance="b"] body:has(#app-view[data-role="employee"]:not(.hidden)) .panel {
  border: 1px solid rgba(255, 255, 255, .72);
  background: rgba(255, 255, 255, .8);
  box-shadow: 0 26px 64px -32px rgba(4, 60, 80, .55), inset 0 1px 0 rgba(255, 255, 255, .92);
  backdrop-filter: blur(20px) saturate(130%);
  -webkit-backdrop-filter: blur(20px) saturate(130%);
}
html[data-instance="b"] body:has(#app-view[data-role="employee"]:not(.hidden)) .panel .eyebrow { color: #087d91; }
html[data-instance="b"] body:has(#app-view[data-role="employee"]:not(.hidden)) .panel-heading h2 { color: #073b49; }
html[data-instance="b"] body:has(#app-view[data-role="employee"]:not(.hidden)) .section-field {
  border-color: rgba(7, 89, 106, .16);
  background: rgba(240, 251, 253, .72);
}
html[data-instance="b"] body:has(#app-view[data-role="employee"]:not(.hidden)) .review-form input,
html[data-instance="b"] body:has(#app-view[data-role="employee"]:not(.hidden)) .review-form select,
html[data-instance="b"] body:has(#app-view[data-role="employee"]:not(.hidden)) .review-form textarea {
  border-color: rgba(7, 89, 106, .2);
  background: rgba(255, 255, 255, .88);
}
html[data-instance="b"] body:has(#app-view[data-role="employee"]:not(.hidden)) .primary { background: #087d91; }
html[data-instance="b"] body:has(#app-view[data-role="employee"]:not(.hidden)) .primary:hover { background: #056779; }
@media (prefers-reduced-motion: reduce) {
  html[data-instance="b"] body:has(#app-view[data-role="employee"]:not(.hidden)) .panel { backdrop-filter: none; -webkit-backdrop-filter: none; }
}
