*{box-sizing:border-box}body{margin:0;background:#fff;color:#111827;font-family:-apple-system,BlinkMacSystemFont,"Apple SD Gothic Neo","Noto Sans KR",sans-serif}a{color:inherit;text-decoration:none}header{position:sticky;top:0;z-index:2;display:flex;align-items:center;justify-content:space-between;gap:18px;padding:15px 24px;border-bottom:1px solid #e5e7eb;background:rgba(255,255,255,.96)}.brand{font-weight:700;white-space:nowrap}nav{display:flex;align-items:center;gap:16px;color:#5f6b66;font-size:14px}.wrap{max-width:720px;margin:auto;padding:28px 24px 64px}.actions{margin-bottom:24px}.primary{display:inline-block;background:#111827;color:white;padding:10px 16px;border-radius:8px;font-weight:650}.cards{display:flex;flex-direction:column;gap:16px}.account{position:relative;display:block;border:1px solid #d9dee2;border-left:5px solid #0f766e;border-radius:12px;padding:20px 22px;box-shadow:0 4px 14px rgba(0,0,0,.07)}.account.infinite{border-left-color:#2563eb}.card-head{display:flex;justify-content:space-between;gap:12px}.card-head h2{font-size:18px;margin:0 0 5px}.card-head p{font-size:12px;color:#69756f;margin:0}.pending{align-self:flex-start;background:#fff7ed;color:#b45309;border-radius:999px;padding:4px 9px;font-size:12px}.stats{display:grid;grid-template-columns:1fr 1fr;gap:7px 16px;margin-top:18px;font-size:14px}.stats p{margin:0}.type{position:absolute;right:18px;bottom:16px;font-size:11px;color:#60706a}.archived,.empty{color:#69756f;font-size:14px}.login{min-height:100dvh;display:grid;place-items:center;padding:20px}.login-card{width:min(100%,380px);border:1px solid #d9dee2;border-radius:14px;padding:26px;box-shadow:0 8px 28px rgba(0,0,0,.08)}.login-card h1{font-size:20px;margin:0 0 22px}.kakao{display:block;text-align:center;background:#fee500;color:#191919;padding:13px;border-radius:8px;font-weight:700}.error{color:#dc2626;font-size:14px}@media(max-width:620px){header{align-items:flex-start;padding:14px 16px}.brand{font-size:15px}nav{gap:9px;font-size:12px;flex-wrap:wrap;justify-content:flex-end}.wrap{padding:22px 16px 50px}.account{padding:18px}.stats{grid-template-columns:1fr}.type{position:static;display:block;margin-top:14px}}
.detail-wrap{max-width:720px;margin:auto;padding:22px 24px 80px}.account-tabs{display:flex;gap:10px;overflow:auto;padding:0 0 20px;border-bottom:1px solid #e5e7eb}.tab-pill{flex:none;border:1px solid #d7dde2;border-radius:999px;padding:7px 14px;color:#66706d;font-size:14px}.tab-pill i,.account-title i{display:inline-block;width:8px;height:8px;border-radius:50%;background:#087d6d;margin-right:8px}.tab-pill.active{background:#b7e1d9;color:#08776a;border-color:#b7e1d9}.account-title{padding:28px 0 18px}.account-title h1{font-size:25px;margin:0 0 8px}.account-title p{margin:0;color:#69756f}.status-card,.profit-card{border:1px solid #d9dee2;border-radius:14px;padding:20px;box-shadow:0 2px 8px rgba(0,0,0,.03)}.status-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.status-grid>div,.profit-grid>div{background:#d8efea;border:1px solid #99cec3;border-radius:10px;padding:12px;min-width:0}.status-grid small,.profit-grid small{display:block;color:#66706d;margin-bottom:4px}.status-grid strong{display:block;font-size:16px;line-height:1.35;overflow-wrap:anywhere}.vline{display:flex;align-items:center;gap:10px;margin:24px 0 18px}.vline b{font-size:34px}.vline span{background:#2458ce;color:#fff;border-radius:999px;padding:5px 10px;font-size:13px}.status-card>p{margin:12px 0 0}.detail-nav,.sub-nav{display:flex;gap:10px;align-items:center;margin-top:22px;overflow:auto}.detail-nav a,.sub-nav a{white-space:nowrap;padding:10px 13px;color:#68706e}.detail-nav .selected{background:#a9ded4;color:#08776a;border-radius:9px}.sub-nav .selected2{background:#f1f3f5;color:#111827;border-radius:9px;font-weight:600}.profit-card{margin-top:22px}.profit-card h2{font-size:18px;margin:0 0 18px}.muted{color:#69756f;font-size:13px}.profit-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:16px}.profit-grid strong{font-size:17px}.fab{position:fixed;right:max(22px,calc((100vw - 720px)/2 + 22px));bottom:24px;width:54px;height:54px;border-radius:50%;background:#2458ce;color:#fff;display:grid;place-items:center;font-size:32px;box-shadow:0 5px 14px rgba(0,0,0,.18)}@media(max-width:620px){.detail-wrap{padding:18px 16px 76px}.status-card,.profit-card{padding:16px}.status-grid{gap:7px}.status-grid>div{padding:10px 9px}.status-grid strong{font-size:14px}.vline b{font-size:30px}.fab{right:18px}}
.stack-form{display:grid;gap:14px}.stack-form label{display:grid;gap:6px}.stack-form input,.stack-form select{font:inherit;padding:10px;border:1px solid #d9dddf;border-radius:8px;background:white}.stack-form button,.primary-link{display:inline-block;background:#2455c3;color:white;border:0;border-radius:9px;padding:11px 16px;text-decoration:none;font:inherit}.raw-data{display:none}
.reservation-content{margin-top:22px}.reservation-guide{color:#68716e;font-size:14px;line-height:1.65;margin:0 0 18px}.reservation-toolbar{display:flex;margin:0 0 14px}.reservation-list{display:flex;flex-direction:column;gap:10px}.reservation-row{border:1px solid #d9dee2;border-radius:10px;padding:13px;background:#fff}.reservation-info{display:flex;align-items:center;flex-wrap:wrap;gap:10px;font-size:14px}.reservation-info strong{font-weight:600}.trade-badge{display:inline-flex;align-items:center;border-radius:999px;padding:3px 8px;font-size:12px;font-weight:650}.trade-badge.buy{background:#dcfce7;color:#166534}.trade-badge.sell{background:#fee2e2;color:#991b1b}.tiny{font-size:12px}.reservation-actions{display:flex;align-items:flex-start;gap:8px;flex-wrap:wrap;margin-top:12px}.reservation-actions form{margin:0}.primary-button,.secondary-button,.ghost-button,.fill-details>summary{border:0;border-radius:8px;padding:9px 12px;font:inherit;font-weight:650;cursor:pointer}.primary-button{background:#111827;color:#fff}.secondary-button{background:#fff;color:#26312d;border:1px solid #d6dcda}.ghost-button{background:transparent;color:#68716e}.small{font-size:13px;padding:7px 10px}.secondary-button:disabled{opacity:.45;cursor:not-allowed}.fill-details{position:relative}.fill-details>summary{list-style:none}.fill-details>summary::-webkit-details-marker{display:none}.fill-details[open]{width:100%}.fill-details[open]>summary{display:inline-block;margin-bottom:10px}.fill-form{display:grid;gap:12px;border-top:1px solid #e5e7eb;padding-top:12px}.fill-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}.fill-grid label{display:grid;gap:5px;font-size:13px}.fill-grid input{min-width:0;width:100%;font:inherit;padding:9px;border:1px solid #d9dddf;border-radius:8px;background:white}.reservation-error{border:1px solid #fecaca;background:#fef2f2;color:#b91c1c;border-radius:8px;padding:9px 11px;font-size:13px}.cancelled-list{margin-top:20px;color:#68716e;font-size:13px}.cancelled-list>summary{cursor:pointer}.cancelled-list>div{display:flex;flex-direction:column;gap:7px;margin-top:9px}.cancelled-row{display:flex;align-items:center;flex-wrap:wrap;gap:8px;border:1px solid #e1e5e8;border-radius:8px;padding:9px}.reservation-toolbar .secondary-button{font-size:13px}@media(max-width:620px){.reservation-info{gap:8px}.reservation-actions{gap:6px}.fill-grid{grid-template-columns:1fr}.reservation-row{padding:12px}}

/* Account workspace — mirrors the reference tracker information hierarchy. */
:root{--ink:#111827;--muted:#68736f;--line:#dde3e5;--soft:#f6f8f8;--mint:#d9eee9;--mint-strong:#0f766e;--blue:#285fd1;--danger:#b42318;--warn:#9a6700}*{box-sizing:border-box}body{margin:0;color:var(--ink);background:#fff;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Noto Sans KR",sans-serif}.global-header{display:flex;align-items:center;justify-content:space-between;gap:22px;padding:18px max(24px,calc((100vw - 1080px)/2));border-bottom:1px solid #e8ebec;background:rgba(255,255,255,.96);position:sticky;top:0;z-index:20}.global-header .brand{font-weight:800;font-size:18px;color:var(--ink);white-space:nowrap}.global-header nav{display:flex;gap:22px;align-items:center;overflow:auto}.global-header nav a{color:#65706c;font-size:14px;white-space:nowrap}.account-page{max-width:760px;margin:0 auto;padding:22px 20px 92px}.account-switcher{display:flex;gap:9px;overflow-x:auto;padding:2px 0 18px;scrollbar-width:none}.account-switcher::-webkit-scrollbar,.primary-tabs::-webkit-scrollbar,.secondary-tabs::-webkit-scrollbar{display:none}.account-chip{display:flex;align-items:center;gap:9px;flex:0 0 auto;border:1px solid var(--line);border-radius:999px;padding:8px 12px;color:#53605c;background:#fff;min-width:128px}.account-chip.active{background:var(--mint);border-color:#9bcac0;color:#075e55}.account-chip .strategy-dot{width:8px;height:8px;background:#168577;border-radius:50%;flex:0 0 auto}.account-chip span:nth-child(2){display:grid;gap:1px}.account-chip b{font-size:13px}.account-chip small{font-size:11px;color:inherit;opacity:.76}.account-chip em{margin-left:auto;display:grid;place-items:center;min-width:19px;height:19px;padding:0 5px;border-radius:999px;background:#f59e0b;color:#fff;font-size:11px;font-style:normal}.account-heading{display:flex;justify-content:space-between;gap:18px;align-items:center;padding:10px 2px 14px}.account-heading h1{margin:0 0 5px;font-size:27px;letter-spacing:-.03em}.account-heading p{margin:0;color:var(--muted);font-size:14px}.strategy-tag{display:inline-flex;align-items:center;border-radius:999px;background:#e6f4f1;color:#08766a;padding:5px 9px;font-size:12px;font-weight:750;white-space:nowrap}.quick-status{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:7px;margin:6px 0 19px}.quick-status>div{background:#def1ed;border:1px solid #a9d5cc;border-radius:10px;padding:10px;min-width:0}.quick-status small,.summary-grid small,.price-panel small{display:block;color:#61706a;font-size:11px;margin-bottom:4px}.quick-status strong{font-size:13px;display:block;overflow-wrap:anywhere}.primary-tabs,.secondary-tabs{display:flex;gap:5px;overflow-x:auto;align-items:center}.primary-tabs{border-bottom:1px solid #e6e9ea;margin:2px 0 10px}.primary-tabs a,.secondary-tabs a{white-space:nowrap;color:#66716d;padding:10px 13px;font-size:14px}.primary-tabs a.active{color:#08766a;border-bottom:2px solid #168577;font-weight:750}.secondary-tabs{justify-content:flex-start;margin-bottom:18px}.secondary-tabs a.active{background:#f0f2f3;color:#111827;border-radius:9px;font-weight:700}.secondary-tabs .count{display:inline-grid;place-items:center;min-width:18px;height:18px;border-radius:999px;background:#f59e0b;color:#fff;font-size:10px;padding:0 4px}.account-content{min-height:260px}.page-stack{display:grid;gap:14px}.panel{border:1px solid var(--line);border-radius:13px;padding:17px;background:#fff;box-shadow:0 1px 3px rgba(15,23,42,.03)}.panel h2{font-size:17px;margin:0 0 14px}.panel-title,.price-panel{display:flex;align-items:center;justify-content:space-between;gap:16px}.panel-title h2,.panel-title p{margin:0}.panel-title p,.price-panel p{font-size:12px;color:var(--muted);margin:4px 0 0}.panel-title>strong,.price-panel strong{font-size:23px}.price-panel>div>strong{display:block;margin-top:3px}.summary-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.summary-grid.compact{grid-template-columns:repeat(3,minmax(0,1fr))}.summary-grid.two{grid-template-columns:repeat(2,minmax(0,1fr))}.summary-grid>div{border:1px solid #d8e1df;background:#f4faf8;border-radius:9px;padding:11px;min-width:0}.summary-grid strong{font-size:15px;display:block;overflow-wrap:anywhere}.summary-grid span{display:block;font-size:10px;color:var(--muted);margin-top:4px}.action-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.action-card{display:grid;gap:5px;padding:15px;border:1px solid var(--line);border-radius:12px;color:var(--ink);background:#fff}.action-card b{font-size:15px}.action-card span{font-size:12px;color:var(--muted);line-height:1.45}.notice{border-radius:9px;padding:10px 12px;font-size:13px;line-height:1.5}.notice a{text-decoration:underline}.notice.success{background:#ecfdf3;border:1px solid #a7e8c3;color:#087443}.notice.warning{background:#fff8e8;border:1px solid #f2d68e;color:#8b5d00}.notice.error{background:#fff1f1;border:1px solid #fecaca;color:#b42318}.notice.info{background:#eff6ff;border:1px solid #bfdbfe;color:#1e4f96}.button{display:inline-flex;align-items:center;justify-content:center;gap:5px;border:0;border-radius:8px;padding:9px 12px;font:inherit;font-size:13px;font-weight:700;cursor:pointer;text-decoration:none}.button.primary{background:#172033;color:#fff}.button.secondary{background:#fff;color:#27332e;border:1px solid #d3dbd8}.button.ghost{background:transparent;color:#63706b}.button.danger{background:#b42318;color:#fff}.button.danger-ghost{background:#fff1f1;color:#b42318;border:1px solid #fecaca}.button.small{padding:7px 9px;font-size:12px}.button.full{width:100%}.button.disabled,.button:disabled{opacity:.42;cursor:not-allowed}.inline-form{display:flex;align-items:end;gap:8px;flex-wrap:wrap;margin-top:12px}.inline-form label{display:grid;gap:5px;font-size:12px;flex:1;min-width:140px}.stack-form,.compact-form{display:grid;gap:12px}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 12px}.stack-form label,.compact-form label,.form-grid label{display:grid;gap:5px;font-size:12px;color:#4f5c57}.stack-form input,.stack-form select,.compact-form input,.compact-form select,.form-grid input,.form-grid select,.inline-form input,.inline-form select{width:100%;min-width:0;font:inherit;font-size:14px;padding:9px 10px;border:1px solid #d5dcda;border-radius:8px;background:#fff;color:#111827}.stack-form label small{font-size:10px;color:var(--muted)}.help,.empty{font-size:12px;color:var(--muted);line-height:1.6}.intro-help{margin:0}.empty{padding:18px 4px;text-align:center}.order-list,.trade-list,.reservation-list{display:grid;gap:8px}.order-row,.reservation-row,.cancelled-row{border:1px solid #e0e5e6;border-radius:9px;padding:10px 11px}.trade-row{border:1px solid var(--line);border-radius:12px;padding:14px}.order-row,.trade-row{display:flex;align-items:center;justify-content:space-between;gap:12px}.order-row>div,.trade-main{display:flex;align-items:center;gap:9px;min-width:0}.order-row>div{flex-wrap:wrap}.order-row b{font-size:13px}.order-row small,.trade-main small{display:block;font-size:11px;color:var(--muted);margin-top:2px}.trade-main>div{min-width:0}.trade-main b{display:block;font-size:13px}.muted-row{opacity:.54}.trade-badge{display:inline-flex;align-items:center;border-radius:999px;padding:3px 7px;font-size:11px;font-weight:750;white-space:nowrap}.trade-badge.buy{background:#dcfce7;color:#166534}.trade-badge.sell{background:#fee2e2;color:#991b1b}.trade-row details{font-size:12px;color:#5b6863}.trade-row details>summary,.details-summary{cursor:pointer;font-weight:650}.edit-form{margin-top:10px}.table-scroll{overflow-x:auto;border:1px solid #e1e5e6;border-radius:9px}table{border-collapse:collapse;width:100%;font-size:11px;white-space:nowrap}th,td{text-align:left;padding:9px;border-bottom:1px solid #e8ebec}th{color:#68736f;font-weight:650;background:#fafbfb}td small{display:block;color:var(--muted);margin-top:2px}.positive{color:#087443}.negative,.sell-text{color:#b42318}.inline-details{position:relative}.inline-details>summary{list-style:none}.inline-details>summary::-webkit-details-marker{display:none}.details-pop{position:absolute;right:0;top:42px;z-index:10;width:min(330px,80vw);padding:12px;background:#fff;border:1px solid var(--line);border-radius:10px;box-shadow:0 12px 30px rgba(15,23,42,.14)}.toolbar{display:flex;justify-content:flex-end}.reservation-info{display:flex;align-items:center;flex-wrap:wrap;gap:8px;font-size:13px}.reservation-actions{display:flex;gap:7px;flex-wrap:wrap;margin-top:10px}.reservation-actions form{margin:0}.fill-details{flex:0 0 auto}.fill-details[open]{width:100%}.fill-details>summary{list-style:none}.fill-form{display:grid;gap:10px;margin-top:10px;padding-top:10px;border-top:1px solid #e5e8e9}.muted{color:var(--muted)}.tiny{font-size:11px}.compact-top{margin-top:10px}.setting-row{display:flex;align-items:center;justify-content:space-between;gap:14px;border-top:1px solid #e9ecec;padding-top:13px;margin-top:13px}.setting-row b{font-size:13px}.setting-row p{font-size:11px;color:var(--muted);margin:3px 0 0}.toggle-button{border:1px solid #cdd5d2;background:#fff;color:#68736f;border-radius:999px;padding:7px 12px;font-weight:700}.toggle-button.on{background:#d9eee9;border-color:#9bcac0;color:#08766a}.danger-zone{border-color:#fecaca;background:#fffafa}.details-summary{padding:4px 0}.fab{position:fixed;right:max(20px,calc((100vw - 760px)/2 + 20px));bottom:22px;width:55px;height:55px;border-radius:50%;background:var(--blue);color:#fff;display:grid;place-items:center;font-size:31px;line-height:1;box-shadow:0 8px 22px rgba(37,99,235,.27);z-index:15}.form-grid .button{align-self:end}
@media(max-width:700px){.global-header{padding:14px 16px;align-items:flex-start}.global-header .brand{font-size:16px}.global-header nav{gap:14px;font-size:12px}.account-page{padding:17px 14px 82px}.account-heading h1{font-size:23px}.quick-status{grid-template-columns:repeat(2,minmax(0,1fr))}.quick-status>div:first-child{grid-column:auto}.summary-grid.compact{grid-template-columns:repeat(2,minmax(0,1fr))}.panel{padding:14px}.action-grid{grid-template-columns:1fr}.order-row,.trade-row{align-items:flex-start}.order-row>form{flex:0 0 auto}.form-grid{grid-template-columns:1fr}.setting-row{align-items:flex-start;flex-direction:column}.setting-row form{width:100%}.primary-tabs a,.secondary-tabs a{padding:9px 10px;font-size:13px}.fab{right:17px}.price-panel{align-items:flex-start}.global-header nav a:nth-child(1){display:none}}
@media(max-width:430px){.global-header{display:block}.global-header nav{margin-top:10px}.account-switcher{margin-left:-2px;margin-right:-2px}.account-heading{padding-top:4px}.summary-grid,.summary-grid.compact{grid-template-columns:1fr 1fr}.order-row{flex-direction:column}.order-row>form,.order-row .button{width:100%}.reservation-actions{display:grid;grid-template-columns:1fr 1fr}.reservation-actions .fill-details{grid-column:1/-1}.reservation-actions .button{width:100%}.panel-title{align-items:flex-start}.table-scroll{margin-left:-4px;margin-right:-4px}}
.first-cycle-guide{display:grid;gap:8px;margin-top:14px;border:1px dashed #a9c9c2;border-radius:10px;padding:13px;background:#f7fbfa}.first-cycle-guide p{margin:0;color:var(--muted);font-size:12px;line-height:1.55}.suggestion{display:grid;gap:3px;border-radius:8px;background:#fff;padding:10px;border:1px solid #dbe6e3}.suggestion small,.suggestion span{font-size:11px;color:var(--muted)}.suggestion strong{font-size:14px}.order-actions{display:grid;justify-items:end;gap:4px;flex:0 0 auto}.record-link{font-size:11px;color:var(--muted);text-decoration:underline}.order-row>div:first-child{display:flex;align-items:center;gap:9px;min-width:0}.order-row>div:first-child>div{min-width:0}.order-row-reserved{opacity:.7;background:var(--surface-subtle,#f8fafb);position:relative}.order-row-reserved::after{content:"예약됨";position:absolute;top:8px;right:10px;font-size:10px;color:var(--mint-strong,#0b766a);font-weight:700}.record-link-disabled{color:var(--muted,#66736d);text-decoration:none;cursor:not-allowed;opacity:.5}@media(max-width:430px){.order-actions{width:100%;justify-items:stretch}.record-link{text-align:center;padding:5px}.order-row>div:first-child{width:100%}}
.restart-panel{border-color:#b9ddd4;background:#f5fbf9}.restart-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:12px 0}.restart-actions form,.restart-actions button{width:100%}.price-history-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px}.price-history-grid>div{display:grid;gap:2px;border:1px solid var(--border);border-radius:8px;padding:9px;min-width:0}.price-history-grid span,.price-history-grid small{font-size:10px;color:var(--muted)}.price-history-grid strong{font-size:13px;overflow-wrap:anywhere}.grouped-trade{align-items:flex-start}.trade-details{width:min(100%,420px)}.trade-details>summary{text-align:right;cursor:pointer;font-size:12px;color:var(--muted);text-decoration:underline}.group-trade-items{display:grid;gap:10px;margin-top:8px}.group-trade-item{display:grid;gap:7px;border-top:1px solid var(--border);padding-top:9px}.group-trade-item p{margin:0;font-size:12px}.batch-actions{display:flex;justify-content:flex-end;margin-top:8px}.compact-panel{padding-bottom:14px}@media(max-width:600px){.price-history-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.restart-actions{grid-template-columns:1fr}.trade-details{width:100%}.trade-details>summary{text-align:left}}


/* Global product surfaces migrated from the reference tracker. */
.global-page{max-width:900px;margin:0 auto;padding:26px 20px 88px}.global-page h1{margin:0 0 6px;font-size:24px}.strategy-choice{display:grid;grid-template-columns:1fr 1fr;gap:12px}.wide-form{padding:20px}.back-link{display:inline-block;margin-bottom:10px;color:var(--muted);font-size:13px}.advanced-settings{border-top:1px solid var(--line);padding-top:12px}.advanced-settings>summary,.account-scope>summary,.add-broker>summary,.broker-card details>summary{cursor:pointer;font-weight:700;font-size:14px}.period-tabs{display:flex;gap:6px;overflow:auto;margin-bottom:12px}.pill{border:1px solid var(--line);background:#fff;border-radius:999px;padding:7px 11px;font:inherit;font-size:12px;white-space:nowrap;cursor:pointer}.pill.active{background:#172033;color:#fff;border-color:#172033}.scope-form{display:grid;gap:12px}.account-scope{border-top:1px solid var(--line);border-bottom:1px solid var(--line);padding:10px 0}.check-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;margin-top:10px}.check-grid label{font-size:12px}.period-nav{text-align:center;font-size:14px;font-weight:700}.analysis-total-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.analysis-total-grid>div{display:grid;gap:5px}.analysis-total-grid span,.currency-heading span{display:inline-flex;width:max-content;background:#eef1f2;color:#59645f;border-radius:5px;padding:3px 6px;font-size:11px;font-weight:800}.analysis-total-grid strong{font-size:27px}.analysis-currency{display:grid;gap:13px}.currency-heading{margin-top:5px}.analysis-summary{grid-template-columns:repeat(3,minmax(0,1fr))}.table-scroll{overflow:auto}.data-table{width:100%;border-collapse:collapse;font-size:12px;white-space:nowrap}.data-table th,.data-table td{border-bottom:1px solid var(--line);padding:8px 9px;text-align:right}.data-table th:first-child,.data-table td:first-child{text-align:left}.bar-chart{height:190px;display:flex;align-items:flex-end;gap:5px;overflow-x:auto;padding:10px 2px 0}.bar-item{height:100%;min-width:32px;flex:1 0 32px;display:grid;grid-template-rows:1fr 20px;gap:4px}.bar-track{display:flex;align-items:flex-end;justify-content:center;height:100%;border-bottom:1px solid #d7dcde}.bar{display:block;width:min(17px,68%);min-height:2px;background:#178675;border-radius:4px 4px 0 0}.bar.negative{background:#dc5b57}.dual-track{gap:2px}.dual-track .bar{width:42%}.dual-track .buy{background:#178675}.dual-track .sell{background:#e36c64}.bar-item small{font-size:9px;color:var(--muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-align:center}.account-pnl-list{display:grid;gap:8px}.account-pnl-list details{border:1px solid var(--line);border-radius:9px;padding:9px 11px}.account-pnl-list summary{display:flex;justify-content:space-between;gap:10px;cursor:pointer}.cycle-pnl-list{display:grid;gap:5px;margin-top:9px}.cycle-pnl-list a{display:flex;justify-content:space-between;gap:12px;font-size:12px;padding:6px;background:var(--soft);border-radius:6px}.broker-card{display:grid;gap:12px}.broker-card>form{justify-self:end}.broker-form{margin-top:12px}.button-row{display:flex;gap:7px;flex-wrap:wrap}.toss-options{display:grid;gap:5px;border-top:1px solid var(--line);padding-top:10px}.toss-option{display:flex;justify-content:space-between;gap:10px;border:1px solid var(--line);background:#fff;border-radius:7px;padding:8px 10px;text-align:left;cursor:pointer}.toss-option small{color:var(--muted)}.notification-settings{display:grid;gap:15px}.push-prefs{display:grid;gap:14px;border-top:1px solid var(--line);padding-top:14px}.push-prefs>label{display:flex;justify-content:space-between;align-items:center;gap:20px}.push-prefs span{display:grid;gap:3px}.push-prefs small{color:var(--muted);font-size:11px}.push-prefs input[type=checkbox]{width:22px;height:22px}.theme-toggle{border:1px solid var(--line);background:transparent;color:inherit;border-radius:999px;width:30px;height:30px;cursor:pointer}.app-footer{text-align:center;color:var(--muted);font-size:10px;padding:0 12px 18px}.metric-bar{height:5px;border-radius:999px;background:#e7eceb;overflow:hidden;margin-top:8px}.metric-bar>i{display:block;height:100%;background:#168577;border-radius:inherit}.account-card-meta{display:flex;gap:7px;flex-wrap:wrap;color:var(--muted);font-size:11px;margin-top:8px}.account-card-summary{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:12px}.account-card-summary>span{display:grid;gap:2px}.account-card-summary small{color:var(--muted);font-size:10px}.archived-section{margin-top:28px}.archived-section summary{cursor:pointer;font-size:13px;color:var(--muted);margin-bottom:12px}
html[data-theme="dark"]{color-scheme:dark;--ink:#eef2f7;--muted:#9ca8a3;--line:#374151;--soft:#1b2430;--mint:#173b37;--mint-strong:#5eead4;--blue:#82aaff;--danger:#fda4af;--warn:#facc15}html[data-theme="dark"] body,html[data-theme="dark"] .global-header,html[data-theme="dark"] header,html[data-theme="dark"] .panel,html[data-theme="dark"] .account,html[data-theme="dark"] .login-card,html[data-theme="dark"] .status-card,html[data-theme="dark"] .profit-card,html[data-theme="dark"] .reservation-row,html[data-theme="dark"] .account-chip,html[data-theme="dark"] input,html[data-theme="dark"] select,html[data-theme="dark"] .pill,html[data-theme="dark"] .toss-option{background:#111827;color:#eef2f7}html[data-theme="dark"] .summary-grid>div,html[data-theme="dark"] .quick-status>div,html[data-theme="dark"] .status-grid>div,html[data-theme="dark"] .profit-grid>div{background:#17312f;border-color:#315751}html[data-theme="dark"] .account-chip.active{background:#17433e}html[data-theme="dark"] .button.secondary,html[data-theme="dark"] .secondary-button{background:#111827;color:#eef2f7;border-color:#4b5563}html[data-theme="dark"] .notice.info{background:#172554;border-color:#1e40af;color:#bfdbfe}html[data-theme="dark"] .notice.warning{background:#422006;border-color:#854d0e;color:#fde68a}html[data-theme="dark"] .notice.error{background:#450a0a;border-color:#991b1b;color:#fecaca}html[data-theme="dark"] .notice.success{background:#052e16;border-color:#166534;color:#bbf7d0}
@media(max-width:700px){.global-page{padding:20px 14px 72px}.strategy-choice,.form-grid,.check-grid,.analysis-summary{grid-template-columns:1fr}.analysis-total-grid{grid-template-columns:1fr 1fr}.bar-chart{height:150px}.push-prefs>label{align-items:flex-start}.account-card-summary{grid-template-columns:1fr 1fr}}

.account-chart{height:150px}.band-chart,.timeline-chart{height:180px;display:flex;gap:5px;align-items:flex-end;overflow-x:auto;padding-top:10px}.band-point,.timeline-point{height:100%;min-width:32px;flex:1 0 32px;display:grid;grid-template-rows:1fr 20px;gap:4px}.band-track,.timeline-track{height:100%;position:relative;border-bottom:1px solid #d7dcde}.band-range{position:absolute;left:12%;width:76%;background:rgba(16,185,129,.08);border:1px solid rgba(16,185,129,.35);border-radius:5px}.eval-range{position:absolute;left:25%;width:50%;background:rgba(59,130,246,.18);border:1px solid rgba(59,130,246,.45);border-radius:4px}.v-mark{position:absolute;left:10%;width:80%;height:3px;background:#168577;border-radius:3px}.timeline-track{display:flex;align-items:flex-end;justify-content:center;gap:2px}.round-bar,.shares-bar{display:block;width:38%;border-radius:4px 4px 0 0}.round-bar{background:#168577}.shares-bar{background:#64748b}.band-point small,.timeline-point small{font-size:9px;color:var(--muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-align:center}

.goal-progress{border-top:1px solid var(--line);margin-top:10px;padding-top:10px;font-size:12px;display:grid;gap:4px}.goal-pace{font-weight:700;color:var(--mint-strong)}.price-periods{margin:0}.summary-grid.three{grid-template-columns:repeat(3,minmax(0,1fr))}

.realized-pnl{color:var(--mint-strong)}

/* Product UI refresh — mobile-first scanability for dense investment data. */
:root{
  --canvas:#f4f6f8;
  --surface:#ffffff;
  --surface-subtle:#f8fafb;
  --surface-strong:#eef2f3;
  --ink:#17211d;
  --muted:#66736d;
  --line:#d9e0dd;
  --line-strong:#c9d3cf;
  --mint:#e2f1ed;
  --mint-soft:#f1f8f6;
  --mint-strong:#0b766a;
  --blue:#2459c7;
  --danger:#b42318;
  --warn:#8a5b00;
  --shadow-sm:0 1px 2px rgba(15,23,42,.04),0 4px 14px rgba(15,23,42,.035);
  --shadow-md:0 8px 26px rgba(15,23,42,.08);
  --focus:0 0 0 3px rgba(36,89,199,.2);
}
html{background:var(--canvas);-webkit-text-size-adjust:100%}
body{background:var(--canvas);color:var(--ink);line-height:1.5;-webkit-font-smoothing:antialiased}
strong,b,.stats,.quick-status,.summary-grid,.analysis-total-grid,.data-table,.price-history-grid{font-variant-numeric:tabular-nums lining-nums}
a,button,input,select,summary{-webkit-tap-highlight-color:transparent}
a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible{outline:none;box-shadow:var(--focus);border-radius:8px}

/* Global navigation */
.global-header{
  min-height:64px;
  padding:12px max(20px,calc((100vw - 1040px)/2));
  gap:26px;
  background:rgba(255,255,255,.96);
  border-bottom:1px solid rgba(201,211,207,.82);
  box-shadow:0 1px 0 rgba(15,23,42,.02);
  backdrop-filter:saturate(140%) blur(10px);
  -webkit-backdrop-filter:saturate(140%) blur(10px);
}
.global-header .brand{font-size:17px;letter-spacing:-.025em;color:var(--ink)}
.global-header nav{gap:6px;flex-wrap:nowrap;scrollbar-width:none}
.global-header nav::-webkit-scrollbar{display:none}
.global-header nav a{
  min-height:40px;
  display:inline-flex;
  align-items:center;
  padding:0 9px;
  border-radius:9px;
  color:var(--muted);
  font-size:13px;
  font-weight:650;
}
.global-header nav a:hover{background:var(--surface-strong);color:var(--ink)}
.theme-toggle{flex:0 0 auto;width:40px;height:40px;border-color:transparent;background:transparent}
.theme-toggle:hover{background:var(--surface-strong)}

/* Main layout */
.wrap{max-width:780px;padding:30px 20px 88px}
.account-page{max-width:820px;padding:24px 20px 104px}
.global-page{max-width:960px;padding:30px 20px 96px}
.page-stack{gap:16px}
.global-page h1,.account-heading h1{letter-spacing:-.035em;color:var(--ink)}
.global-page h1{font-size:27px;margin-bottom:5px}
.help,.muted,.empty{color:var(--muted)}
.app-footer{color:#87918c}

/* Dashboard */
.actions{display:flex;justify-content:flex-start;margin-bottom:20px}
.actions .primary,.new-account{
  min-height:44px;
  display:inline-flex;
  align-items:center;
  padding:0 15px;
  border-radius:10px;
  background:var(--ink);
  box-shadow:var(--shadow-sm);
}
.cards{gap:12px}
.account{
  overflow:hidden;
  border:1px solid var(--line);
  border-left:4px solid var(--mint-strong);
  border-radius:15px;
  padding:20px 21px;
  background:var(--surface);
  box-shadow:var(--shadow-sm);
  transition:border-color .15s ease,box-shadow .15s ease,transform .15s ease;
}
.account.infinite{border-left-color:var(--blue)}
.account:hover{border-color:var(--line-strong);box-shadow:var(--shadow-md);transform:translateY(-1px)}
.card-head h2{font-size:19px;letter-spacing:-.02em}
.card-head p,.account-card-meta{color:var(--muted)}
.pending{background:#fff5dc;color:#8a5b00;border:1px solid #f0d58b;font-weight:700}
.account .stats{margin-top:15px;color:#35413c}
.account-card-summary{padding-top:12px;border-top:1px solid #edf0ef}
.account-card-summary small{font-size:11px;color:var(--muted)}
.account-card-summary b{font-size:17px;color:var(--ink)}
.metric-bar{height:6px;background:#e4eae8}
.metric-bar>i{background:var(--mint-strong)}
.account.infinite .metric-bar>i{background:var(--blue)}
.type{color:var(--muted);font-weight:700}
.archived-section{border-top:1px solid var(--line);padding-top:20px}

/* Account workspace */
.account-switcher{gap:8px;padding-bottom:16px}
.account-chip{
  min-width:136px;
  min-height:48px;
  padding:7px 11px;
  border-color:var(--line);
  background:var(--surface);
  box-shadow:0 1px 1px rgba(15,23,42,.02);
}
.account-chip.active{background:var(--mint);border-color:#a9cec6;color:#075e55}
.account-heading{padding:8px 2px 15px}
.account-heading h1{font-size:28px}
.strategy-tag{background:var(--mint);border:1px solid #b8d9d2;color:#086b61}
.quick-status{grid-template-columns:repeat(auto-fit,minmax(108px,1fr));gap:8px;margin:5px 0 18px}
.quick-status>div{
  padding:11px 12px;
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:11px;
  box-shadow:0 1px 2px rgba(15,23,42,.025);
}
.quick-status small,.summary-grid small,.price-panel small{color:var(--muted);font-size:11px}
.quick-status strong{font-size:14px;line-height:1.35;color:var(--ink)}
.primary-tabs{margin-bottom:10px;border-bottom-color:var(--line)}
.primary-tabs a,.secondary-tabs a{min-height:42px;display:inline-flex;align-items:center}
.primary-tabs a.active{color:var(--mint-strong);border-bottom-color:var(--mint-strong)}
.secondary-tabs{margin-bottom:18px;gap:4px}
.secondary-tabs a.active{background:var(--surface-strong);color:var(--ink)}

/* Surfaces and metric hierarchy */
.panel,.login-card,.status-card,.profit-card,.reservation-row,.order-row,.trade-row,.cancelled-row{
  background:var(--surface);
  border-color:var(--line);
  box-shadow:var(--shadow-sm);
}
.panel{border-radius:14px;padding:18px}
.panel h2{font-size:17px;letter-spacing:-.015em}
.price-panel{
  border-color:#cbd8d4;
  background:linear-gradient(135deg,#ffffff 0%,#f2f8f6 100%);
}
.price-panel>div>strong{font-size:28px;letter-spacing:-.025em;color:var(--ink)}
.summary-grid{gap:8px}
.summary-grid>div{
  padding:12px;
  background:var(--surface-subtle);
  border:1px solid #e0e6e4;
  border-radius:10px;
}
.summary-grid strong{font-size:16px;line-height:1.35;color:var(--ink)}
.analysis-summary>div:first-child,.analysis-total-grid>div{background:var(--surface);border-color:var(--line)}
.analysis-total-grid{gap:10px}
.analysis-total-grid>div{padding:14px;border:1px solid var(--line);border-radius:11px}
.analysis-total-grid strong{font-size:28px;letter-spacing:-.03em}
.currency-heading span,.analysis-total-grid span{background:var(--surface-strong);color:#53605a}
.action-grid{gap:9px}
.action-card{
  min-height:82px;
  position:relative;
  padding:14px 38px 14px 15px;
  border-color:var(--line);
  border-radius:12px;
  background:var(--surface);
  box-shadow:var(--shadow-sm);
}
.action-card::after{content:'›';position:absolute;right:15px;top:50%;transform:translateY(-50%);font-size:24px;color:#9aa39f;font-weight:400}
.action-card b{font-size:14px}
.action-card span{color:var(--muted)}

/* Controls */
.button,.primary-button,.secondary-button,.ghost-button,.fill-details>summary,.toggle-button{
  min-height:42px;
  border-radius:9px;
}
.button.primary,.primary-button{background:var(--ink)}
.button.secondary,.secondary-button{background:var(--surface);border-color:var(--line-strong);color:var(--ink)}
.button.ghost,.ghost-button{color:var(--muted)}
.button.small,.secondary-button.small{min-height:36px}
.pill{min-height:38px;padding:7px 12px;border-color:var(--line-strong);background:var(--surface);font-weight:650}
.pill.active{background:var(--ink);border-color:var(--ink)}
.stack-form input,.stack-form select,.compact-form input,.compact-form select,.form-grid input,.form-grid select,.inline-form input,.inline-form select,.fill-grid input{
  min-height:44px;
  border-color:var(--line-strong);
  background:var(--surface);
  color:var(--ink);
}
.stack-form input:focus,.stack-form select:focus,.compact-form input:focus,.compact-form select:focus,.form-grid input:focus,.form-grid select:focus,.inline-form input:focus,.inline-form select:focus,.fill-grid input:focus{outline:none;border-color:#7d9bdc;box-shadow:var(--focus)}

/* Dense data */
.table-scroll{border-color:var(--line);background:var(--surface)}
.data-table{font-size:12px;font-variant-numeric:tabular-nums lining-nums}
.data-table th{background:var(--surface-subtle);color:var(--muted);font-weight:700}
.data-table th,.data-table td{padding:10px 9px;border-bottom-color:#e7ebe9}
.data-table tbody tr:last-child td{border-bottom:0}
.positive,.realized-pnl{color:#087443;font-weight:650}
.negative,.sell-text{color:var(--danger);font-weight:650}
.price-history-grid>div{background:var(--surface-subtle);border:1px solid var(--line)}
.bar-track,.band-track,.timeline-track{border-bottom-color:var(--line-strong)}

/* Dark theme */
html[data-theme="dark"]{
  --canvas:#0d1318;
  --surface:#141c24;
  --surface-subtle:#18222c;
  --surface-strong:#202b35;
  --ink:#eef4f1;
  --muted:#9caaa4;
  --line:#2f3c45;
  --line-strong:#43515a;
  --mint:#153a35;
  --mint-soft:#112d2a;
  --mint-strong:#62d7c4;
  --blue:#8fb2ff;
  --shadow-sm:0 1px 2px rgba(0,0,0,.24);
  --shadow-md:0 10px 28px rgba(0,0,0,.28);
}
html[data-theme="dark"] body{background:var(--canvas);color:var(--ink)}
html[data-theme="dark"] .global-header,html[data-theme="dark"] header{background:rgba(20,28,36,.96);border-bottom-color:var(--line)}
html[data-theme="dark"] .panel,html[data-theme="dark"] .account,html[data-theme="dark"] .login-card,html[data-theme="dark"] .status-card,html[data-theme="dark"] .profit-card,html[data-theme="dark"] .reservation-row,html[data-theme="dark"] .order-row,html[data-theme="dark"] .trade-row,html[data-theme="dark"] .cancelled-row,html[data-theme="dark"] .account-chip,html[data-theme="dark"] .toss-option{background:var(--surface);color:var(--ink);border-color:var(--line)}
html[data-theme="dark"] .summary-grid>div,html[data-theme="dark"] .quick-status>div{background:var(--surface-subtle);border-color:var(--line)}
html[data-theme="dark"] .price-panel{background:linear-gradient(135deg,var(--surface) 0%,#142925 100%);border-color:#315149}
html[data-theme="dark"] .action-card,html[data-theme="dark"] .analysis-total-grid>div,html[data-theme="dark"] .price-history-grid>div{background:var(--surface);border-color:var(--line)}
html[data-theme="dark"] .data-table th{background:var(--surface-subtle)}
html[data-theme="dark"] .data-table td{border-bottom-color:var(--line)}
html[data-theme="dark"] .theme-toggle:hover,html[data-theme="dark"] .global-header nav a:hover,html[data-theme="dark"] .secondary-tabs a.active{background:var(--surface-strong)}
html[data-theme="dark"] .metric-bar{background:#2a3740}
html[data-theme="dark"] input,html[data-theme="dark"] select{background:var(--surface);color:var(--ink);border-color:var(--line-strong)}

@media(max-width:700px){
  .global-header{display:grid;grid-template-columns:minmax(0,1fr);gap:8px;padding:10px 14px 8px;align-items:stretch}
  .global-header .brand{font-size:16px;line-height:1.35;padding:2px 1px}
  .global-header nav{width:calc(100% + 28px);margin:0 -14px;padding:0 14px 2px;gap:3px;overflow-x:auto;justify-content:flex-start;flex-wrap:nowrap}
  .global-header nav a{min-height:38px;padding:0 8px;font-size:12px}
  .global-header nav a:nth-child(1){display:inline-flex}
  .theme-toggle{width:38px;height:38px}
  .wrap,.global-page,.account-page{padding-left:14px;padding-right:14px}
  .wrap{padding-top:20px}
  .global-page{padding-top:22px}
  .account-page{padding-top:16px}
  .global-page h1{font-size:24px}
  .account-heading h1{font-size:24px}
  .quick-status{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}
  .quick-status>div{padding:10px 11px}
  .panel{padding:15px}
  .price-panel{align-items:center}
  .price-panel>div>strong{font-size:25px}
  .summary-grid strong{font-size:15px}
  .analysis-summary{grid-template-columns:repeat(2,minmax(0,1fr))}
  .action-grid{grid-template-columns:1fr}
  .account{padding:18px}
  .account:hover{transform:none}
  .data-table th,.data-table td{padding:9px 8px}
}

@media(max-width:430px){
  .global-header{display:grid}
  .global-header nav{margin-top:0}
  .wrap,.global-page,.account-page{padding-left:12px;padding-right:12px}
  .cards{gap:10px}
  .account{padding:17px 16px;border-radius:13px}
  .card-head h2{font-size:18px}
  .account-card-summary b{font-size:16px}
  .account-switcher{margin-left:0;margin-right:0}
  .account-heading{padding-top:3px}
  .summary-grid,.summary-grid.compact,.summary-grid.three{grid-template-columns:repeat(2,minmax(0,1fr))}
  .analysis-total-grid{grid-template-columns:1fr 1fr}
  .panel-title{gap:10px}
  .period-tabs{margin-left:-2px;margin-right:-2px}
  .price-panel .button{flex:0 0 auto}
  .price-history-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}

@media(prefers-reduced-motion:reduce){
  *,*::before,*::after{scroll-behavior:auto!important;transition:none!important;animation:none!important}
}


/* Profit redesign: overview first, controls second, diagnostics on demand. */
.global-header nav a.active{background:var(--surface-strong);color:var(--ink);font-weight:800}
.profit-page{display:grid;gap:16px}
.profit-overview-form{display:grid;gap:14px}
.profit-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;padding:2px 2px 0}
.profit-heading h1{margin:0;font-size:28px;line-height:1.15;letter-spacing:-.04em}
.profit-heading p{margin:7px 0 0;color:var(--muted);font-size:13px}
.profit-account-picker{position:relative;flex:0 0 auto}
.profit-account-picker>summary{list-style:none;cursor:pointer;display:flex;align-items:center;gap:6px;min-height:40px;padding:0 11px;border-radius:10px;font-size:13px;font-weight:800;color:var(--ink)}
.profit-account-picker>summary::-webkit-details-marker{display:none}
.profit-account-picker>summary::after{content:'⌄';font-size:12px;color:var(--muted);transition:transform .15s ease}
.profit-account-picker[open]>summary::after{transform:rotate(180deg)}
.profit-account-popover{position:absolute;right:0;top:46px;z-index:40;width:min(360px,calc(100vw - 28px));padding:14px;background:var(--surface);border:1px solid var(--line);border-radius:14px;box-shadow:var(--shadow-md)}
.profit-account-popover>strong{display:block;font-size:14px;margin-bottom:10px}
.profit-account-popover .check-grid{margin:0 0 12px;max-height:260px;overflow:auto}
.profit-account-popover .check-grid label{display:flex;align-items:flex-start;gap:7px;padding:7px;border-radius:7px}
.profit-account-popover .check-grid input{width:18px;height:18px;min-height:0;margin-top:1px}
.profit-hero{padding:16px 18px 20px;background:var(--surface);border:1px solid var(--line);border-radius:16px;box-shadow:var(--shadow-sm)}
.profit-period-tabs{display:flex;gap:5px;overflow-x:auto;scrollbar-width:none;padding-bottom:4px}
.profit-period-tabs::-webkit-scrollbar{display:none}
.profit-period-tabs button{flex:0 0 auto;min-height:36px;padding:0 13px;border:0;border-radius:999px;background:var(--surface-strong);color:var(--muted);font:inherit;font-size:12px;font-weight:750;cursor:pointer}
.profit-period-tabs button.active{background:var(--ink);color:var(--surface)}
.profit-period-nav{display:grid;grid-template-columns:42px 1fr 42px;align-items:center;gap:8px;margin:16px 0 18px;text-align:center}
.profit-period-nav strong{font-size:17px;letter-spacing:-.02em}
.profit-period-arrow{width:42px;height:42px;border:0;border-radius:10px;background:transparent;color:var(--muted);font-size:30px;line-height:1;cursor:pointer}
.profit-period-arrow:not(:disabled):hover{background:var(--surface-strong);color:var(--ink)}
.profit-period-arrow:disabled{opacity:.25;cursor:default}
.profit-totals{display:grid;gap:15px;padding:2px 1px 4px}
.profit-total{display:grid;gap:4px}
.profit-currency{display:inline-flex;width:max-content;padding:3px 7px;border-radius:6px;background:var(--surface-strong);color:var(--muted);font-size:11px;font-weight:800}
.profit-amount{font-size:clamp(31px,7vw,46px);line-height:1.08;letter-spacing:-.045em;font-variant-numeric:tabular-nums lining-nums;overflow-wrap:anywhere}
.profit-amount.positive{color:#087a55}
.profit-amount.negative{color:#d62f36}
.profit-amount.neutral{color:var(--ink)}
.profit-empty{min-height:105px;display:grid;place-content:center;text-align:center;gap:5px;color:var(--muted)}
.profit-empty strong{color:var(--ink);font-size:15px}
.profit-empty span{font-size:12px}
.profit-custom-range{display:grid;grid-template-columns:1fr 1fr auto;gap:8px;align-items:end;margin:12px 0 2px;padding:12px;border-radius:11px;background:var(--surface-subtle)}
.profit-custom-range label{display:grid;gap:5px;color:var(--muted);font-size:11px}
.profit-custom-range input{width:100%;min-width:0;min-height:42px;padding:8px;border:1px solid var(--line-strong);border-radius:8px;background:var(--surface);color:var(--ink);font:inherit}
.profit-method-note{margin:0 2px;color:var(--muted);font-size:12px;line-height:1.55}
.profit-details{display:grid;gap:9px;margin-top:3px}
.profit-details-heading{display:flex;align-items:end;justify-content:space-between;gap:10px;padding:0 2px 2px}
.profit-details-heading h2{margin:0;font-size:18px;letter-spacing:-.025em}
.profit-details-heading span{color:var(--muted);font-size:11px}
.profit-breakdown{overflow:hidden;background:var(--surface);border:1px solid var(--line);border-radius:13px;box-shadow:var(--shadow-sm)}
.profit-breakdown>summary{list-style:none;display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:64px;padding:12px 14px;cursor:pointer}
.profit-breakdown>summary::-webkit-details-marker{display:none}
.profit-breakdown>summary>span:first-child{display:grid;gap:2px}
.profit-breakdown>summary strong{font-size:14px}
.profit-breakdown>summary small{color:var(--muted);font-size:11px}
.profit-detail-chevron{font-size:24px;color:#9aa39f;transition:transform .15s ease}
.profit-breakdown[open] .profit-detail-chevron{transform:rotate(90deg)}
.profit-breakdown .table-scroll{border:0;border-top:1px solid var(--line);border-radius:0}
.profit-table th,.profit-table td{padding:10px 11px}
html[data-theme="dark"] .profit-hero,html[data-theme="dark"] .profit-account-popover,html[data-theme="dark"] .profit-breakdown{background:var(--surface);border-color:var(--line)}
html[data-theme="dark"] .profit-period-tabs button.active{background:var(--ink);color:var(--canvas)}
html[data-theme="dark"] .profit-amount.positive{color:#5dd5ad}
html[data-theme="dark"] .profit-amount.negative{color:#ff7c84}

@media(max-width:700px){
  .global-header nav a.active{background:transparent;color:var(--ink);box-shadow:inset 0 -2px 0 var(--mint-strong);border-radius:0}
  .profit-page{gap:13px}
  .profit-heading{align-items:center}
  .profit-heading h1{font-size:23px}
  .profit-heading p{font-size:12px;margin-top:4px}
  .profit-hero{padding:13px 13px 17px;border-radius:14px}
  .profit-period-tabs{gap:4px}
  .profit-period-tabs button{min-height:34px;padding:0 12px}
  .profit-period-nav{margin:13px 0 15px;grid-template-columns:38px 1fr 38px}
  .profit-period-arrow{width:38px;height:38px}
  .profit-period-nav strong{font-size:16px}
  .profit-totals{gap:13px}
  .profit-amount{font-size:34px}
  .profit-custom-range{grid-template-columns:1fr 1fr}
  .profit-custom-range .button{grid-column:1/-1;width:100%}
  .profit-method-note{font-size:11px}
}

@media(max-width:430px){
  .global-page:has(.profit-page){padding-top:15px}
  .profit-heading{padding-top:0}
  .profit-heading h1{font-size:22px}
  .profit-account-picker>summary{padding:0 6px}
  .profit-hero{padding-left:12px;padding-right:12px}
  .profit-period-tabs{margin:0 -2px}
  .profit-period-tabs button{padding:0 11px}
  .profit-amount{font-size:32px}
}


/* Strategy analysis: contain dense children so mobile summary cards never widen the page. */
.analysis-currency{
  min-width:0;
  max-width:100%;
}
.analysis-currency>*{
  min-width:0;
  max-width:100%;
}
.analysis-summary{
  width:100%;
  min-width:0;
  max-width:100%;
}
.analysis-summary>div{
  min-width:0;
  max-width:100%;
  overflow:hidden;
}
.analysis-summary strong{
  min-width:0;
  max-width:100%;
  overflow-wrap:anywhere;
  word-break:break-word;
}
.analysis-currency .panel,
.analysis-currency .bar-chart{
  min-width:0;
  max-width:100%;
}

@media(max-width:430px){
  .analysis-summary{
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:8px;
  }
  .analysis-summary>div{
    padding:11px 10px;
  }
  .analysis-summary strong{
    font-size:14px;
    letter-spacing:-.025em;
  }
}


/* Account mobile containment: override the legacy generic nav wrapping rule. */
.account-page{
  width:100%;
  min-width:0;
}
.account-page>*,
.account-content,
.account-content>*,
.page-stack,
.page-stack>*,
.panel{
  min-width:0;
  max-width:100%;
}
.account-switcher,
.primary-tabs,
.secondary-tabs{
  width:100%;
  min-width:0;
  max-width:100%;
  flex-wrap:nowrap;
  justify-content:flex-start;
}
.account-switcher{
  overflow-x:auto;
  overscroll-behavior-x:contain;
}
.account-chip{
  max-width:min(240px,78vw);
}
.account-chip>span:nth-child(2){
  min-width:0;
}
.account-chip b,
.account-chip small{
  display:block;
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.primary-tabs,
.secondary-tabs{
  overflow-x:auto;
  overscroll-behavior-x:contain;
}

@media(max-width:430px){
  .account-switcher{
    flex-wrap:nowrap;
    justify-content:flex-start;
  }
  .account-chip{
    max-width:72vw;
  }
  .primary-tabs,
  .secondary-tabs{
    flex-wrap:nowrap;
    justify-content:flex-start;
  }
}


/* Account navigation: one hierarchy, one tab row. */
.account-nav{
  margin:2px 0 18px;
  gap:4px;
}
.account-nav a{
  display:inline-flex;
  align-items:center;
  gap:5px;
}
.account-nav .count{
  display:inline-grid;
  place-items:center;
  min-width:18px;
  height:18px;
  padding:0 4px;
  border-radius:999px;
  background:#f59e0b;
  color:#fff;
  font-size:10px;
  line-height:1;
}

/* Action-first account home */
.account-switcher-stack{display:grid;gap:8px;margin-bottom:14px}.account-add-link{justify-self:end}.account-switcher-group{display:grid;grid-template-columns:66px minmax(0,1fr);align-items:center;gap:8px}.account-switcher-label{font-size:11px;font-weight:800;color:var(--muted);white-space:nowrap}.account-switcher-stack .account-switcher{padding:2px 0;scroll-snap-type:x proximity}.account-switcher-stack .account-chip{scroll-snap-align:start}.order-row-reserved,.order-row-reserving{opacity:.64;background:var(--surface-subtle,#f8fafb);pointer-events:none}.order-row-reserving{position:relative}.order-row-reserving::after{content:"예약 중…";position:absolute;top:8px;right:10px;font-size:10px;color:var(--mint-strong);font-weight:700}.reserve-error{margin-bottom:10px}@media(max-width:430px){.account-add-link{width:100%}.account-switcher-group{grid-template-columns:54px minmax(0,1fr);gap:6px}.account-switcher-label{font-size:10px}}
.today-action-panel{display:flex;align-items:center;justify-content:space-between;gap:14px}.today-action-copy{display:grid;gap:3px}.today-action-copy small{font-size:11px;color:var(--muted)}.today-action-copy strong{font-size:18px}.today-action-copy span{font-size:11px;color:var(--muted)}.seed-check .seed-state{display:inline-flex;align-items:center;border-radius:999px;padding:5px 9px;font-size:11px;font-weight:800}.seed-enough .seed-state{background:#dcfce7;color:#166534}.seed-short{border-color:#fecaca}.seed-short .seed-state{background:#fee2e2;color:#991b1b}.seed-short .summary-grid>div:last-child strong{color:var(--danger)}.anchor-target{scroll-margin-top:90px;height:0}@media(max-width:430px){.today-action-panel{align-items:stretch;flex-direction:column}.today-action-panel .button{width:100%}}
.record-filters{display:flex;gap:6px;overflow-x:auto;scrollbar-width:none}.record-filters::-webkit-scrollbar{display:none}.record-filters a{display:inline-flex;align-items:center;gap:5px;white-space:nowrap;border:1px solid var(--line);border-radius:999px;padding:7px 10px;font-size:12px;color:var(--muted);background:var(--surface,#fff)}.record-filters a.active{background:var(--mint);border-color:#9bcac0;color:var(--mint-strong);font-weight:800}.record-filters span{font-variant-numeric:tabular-nums}
.settings-section>.panel-title{align-items:center}.settings-details{margin-top:4px;border-top:1px solid var(--line);padding-top:10px}.settings-details>summary{cursor:pointer;font-weight:800;color:var(--mint-strong);list-style:none;padding:6px 0}.settings-details>summary::-webkit-details-marker{display:none}.settings-details>.stack-form{margin-top:12px}
/* PWA safe-area + update notice */
body{padding-bottom:env(safe-area-inset-bottom,0px)}
.global-header{padding-top:calc(18px + env(safe-area-inset-top,0px))}header:not(.global-header){padding-top:calc(15px + env(safe-area-inset-top,0px))}
.account-page,.global-page,.wrap,.detail-wrap{padding-bottom:calc(92px + env(safe-area-inset-bottom,0px))}
.fab{bottom:calc(24px + env(safe-area-inset-bottom,0px))}
.app-update-notice{position:fixed;z-index:100;left:50%;bottom:calc(14px + env(safe-area-inset-bottom,0px));transform:translateX(-50%);display:flex;align-items:center;gap:12px;width:min(92vw,420px);padding:11px 12px;border:1px solid #a9d5cc;border-radius:12px;background:#f4faf8;box-shadow:0 10px 30px rgba(15,23,42,.16);font-size:13px}.app-update-notice span{flex:1;font-weight:700}
@media(max-width:620px){.global-header,header:not(.global-header){padding-top:calc(14px + env(safe-area-inset-top,0px))}.account-page,.global-page,.wrap,.detail-wrap{padding-bottom:calc(84px + env(safe-area-inset-bottom,0px))}}

/* Account status day-over-day deltas */
.metric-card{display:grid;align-content:start}.metric-value-row{display:flex;align-items:baseline;justify-content:space-between;gap:8px;min-width:0}.metric-value-row>strong{min-width:0;white-space:nowrap}.metric-delta{display:inline-flex;align-items:center;gap:4px;flex:0 0 auto;font-size:12px;font-weight:800;white-space:nowrap;font-variant-numeric:tabular-nums}.metric-delta i{font-size:10px;font-style:normal}.metric-delta.up{color:#dc304d}.metric-delta.down{color:#2563c9}.metric-delta.flat{color:var(--muted)}.metric-subtext{font-size:11px;color:var(--muted);font-weight:400;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}@media(max-width:430px){.metric-value-row{gap:5px}.metric-delta{font-size:11px}.metric-delta i{font-size:9px}.metric-subtext{font-size:10px}}


/* Completed infinite-buy cycle: result only, no new-order controls. */
.completion-panel{display:grid;gap:14px}
.completion-panel .panel-title h2{margin:0}
.completion-panel .completion-profit{display:grid;gap:4px;padding:17px;border:1px solid var(--line);border-radius:12px;background:var(--surface-subtle,#f5f9f7)}
.completion-profit small{font-size:12px;color:var(--muted)}
.completion-profit strong{font-size:clamp(27px,6vw,36px);line-height:1.24;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.completion-profit span{font-size:14px;font-weight:800}
.completion-panel .completion-summary strong{font-variant-numeric:tabular-nums}
.completion-panel .help{margin:0}


/* Closed infinite-buy cycle: choosing one path must not trigger the other. */
.completion-next{display:grid;gap:10px;border-top:1px solid var(--line);padding-top:17px}
.completion-next h3{margin:0;font-size:16px}
.completion-choice{border:1px solid var(--line);border-radius:12px;overflow:hidden;background:#fff}
.completion-choice>summary{display:grid;gap:4px;padding:14px;cursor:pointer;list-style:none}
.completion-choice>summary::-webkit-details-marker{display:none}
.completion-choice>summary strong{font-size:14px}
.completion-choice>summary span{color:var(--muted);font-size:12px;line-height:1.5}
.completion-choice[open]>summary{border-bottom:1px solid var(--line);background:var(--soft)}
.completion-choice-body{display:grid;gap:12px;padding:14px}
.completion-choice-body .summary-grid{gap:8px}
.completion-choice-body .stack-form{gap:12px}
.completion-choice-body .button{width:100%}
.completion-choice-body .completion-confirm{display:flex;align-items:flex-start;gap:8px;line-height:1.5;font-size:12px}
.completion-confirm input{width:auto;flex:0 0 auto;margin:2px 0 0}

.account-manage-actions{display:flex;gap:8px;flex-wrap:wrap;align-items:center;justify-content:flex-end;margin-bottom:10px}
.account-manage-actions .button{white-space:nowrap}
.archived-section[open] summary{font-weight:750;color:var(--mint-strong)}

.archived-section#archived{scroll-margin-top:110px}

/* Archived accounts appear beneath the two strategy choices on account creation. */
.new-account-options{display:grid;gap:11px}
.new-account-options h2,.new-account-archive h2{font-size:17px;margin:0}
.new-account-archive{display:grid;gap:13px;border-top:1px solid var(--line);padding-top:22px;margin-top:12px}
.new-account-archive-list{display:grid;gap:10px}
.new-account-archive-card{display:grid;gap:9px;padding:16px;border:1px solid var(--line);border-radius:12px;color:var(--ink);background:#fff;text-decoration:none}
.new-account-archive-card:hover,.new-account-archive-card:focus-visible{border-color:#9bcac0;background:var(--soft)}
.new-account-archive-heading{display:flex;justify-content:space-between;align-items:center;gap:10px}
.new-account-archive-heading strong{font-size:16px}
.new-account-archive-card p{font-size:12px;color:var(--muted);margin:0}
.new-account-archive-profit{display:grid;gap:5px;padding-top:10px;border-top:1px solid var(--line)}
.new-account-archive-profit small{font-size:11px;color:var(--muted)}
.new-account-archive-profit strong{font-size:22px;font-variant-numeric:tabular-nums}
.new-account-archive-link{font-size:12px;font-weight:700;color:var(--mint-strong);background:var(--soft);padding:9px;text-align:center;border-radius:8px}


/* Privacy strategy: third option spans the row without changing existing choices. */
.new-account-options .strategy-choice>.privacy-choice{grid-column:1/-1}
.privacy-overview{display:grid;gap:12px}
.privacy-overview>div{border:1px solid var(--line);border-radius:10px;padding:12px}
.privacy-overview strong{font-size:14px}
.privacy-overview p{margin:6px 0 0;color:var(--muted);font-size:12px;line-height:1.5}

/* Privacy order-sheet and individual confirmations */
.privacy-draft-list{display:grid;gap:12px}
.privacy-draft-row{display:grid;grid-template-columns:1fr 1fr;gap:10px;padding:12px;border:1px solid var(--line);border-radius:12px}
.privacy-draft-row label{min-width:0}
.privacy-draft-row label:first-child{grid-column:1/-1}
.privacy-draft-row select,.privacy-draft-row input{width:100%}
.privacy-draft-actions{display:flex;flex-wrap:wrap;gap:8px}
.privacy-draft-row [data-p-order-remove]{justify-self:end;grid-column:1/-1}
.privacy-reservation-card{display:grid;gap:10px;padding:14px;border:1px solid var(--line);border-radius:12px}
.privacy-order-heading{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px}
.privacy-fill-details{border-top:1px solid var(--line);padding-top:10px}
.privacy-fill-details summary{cursor:pointer;font-weight:650}
.privacy-fill-details form{margin-top:12px}
.cycle-analysis-list{display:grid;gap:8px;margin:12px 0}.cycle-analysis-row{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;border:1px solid var(--line);border-radius:10px;padding:12px}.cycle-analysis-row b{font-size:15px}.cycle-analysis-row small{display:block;color:var(--muted);font-size:11px;margin-top:3px}.cycle-analysis-row .figure{text-align:right;white-space:nowrap}.cycle-analysis-row .figure strong{font-size:17px;display:block}.cycle-analysis-row .figure small.positive{color:#087443}.cycle-analysis-row .figure small.negative{color:var(--danger)}
.privacy-reservation-card.muted-card{background:var(--soft)}.privacy-order-heading strong.muted-figure{color:var(--muted);font-size:14px;font-weight:600}
.history-cycle{border:1px solid var(--line);border-radius:12px;padding:4px 12px 12px;background:#fff}.history-cycle>summary{display:flex;justify-content:space-between;align-items:center;gap:10px;cursor:pointer;padding:10px 0;font-size:14px}.history-cycle>summary small{color:var(--muted);font-size:12px}.history-cycle[open]>summary{border-bottom:1px solid var(--line);margin-bottom:10px}.history-cycle .privacy-reservation-card{margin-top:8px}

/* 계좌 화면 상단 압축: 계정 칩 한 줄 + 지표 카드 3열, 예약하기는 보조 톤 */
.account-switcher-stack{display:flex;flex-wrap:nowrap;align-items:center;gap:8px;overflow-x:auto;padding-bottom:4px}
.account-switcher-stack .account-switcher-group{display:flex;flex:0 0 auto;align-items:center;gap:6px}
.account-switcher-stack .account-switcher-label{display:none}
.account-switcher-stack .account-manage-actions{order:99;flex:0 0 auto}
.account-switcher-stack .account-add-link{width:auto;white-space:nowrap}
.account-switcher-stack .account-switcher{overflow:visible;padding:2px 0}
.account-switcher-stack .account-chip{flex:0 0 auto}
.account-switcher-stack .account-chip small{display:none}
.account-page .quick-status{grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;margin-bottom:12px}
.account-page .quick-status .metric-card{padding:8px 9px}
.account-page .quick-status .metric-card strong{font-size:13px}
.order-row .order-actions .button.primary,.order-row>form .button.primary{background:var(--mint);color:var(--mint-strong);border:1px solid var(--mint-strong)}
.account-switcher-stack{scrollbar-width:none}.account-switcher-stack::-webkit-scrollbar{display:none}
.account-page .quick-status .metric-value-row{flex-wrap:wrap;gap:2px 6px}
.account-page .quick-status .metric-subtext{white-space:normal;overflow:visible;text-overflow:clip;line-height:1.3}
.account-page .quick-status .metric-card strong{white-space:normal;overflow-wrap:anywhere}
/* 계좌 종류와 무관하게 상단 지표 카드 높이를 고정 — 부가 문구는 2줄까지 */
.account-page .quick-status{grid-auto-rows:80px}
.account-page .quick-status .metric-card{min-height:0;height:80px;overflow:hidden}
.account-page .quick-status .metric-subtext{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
/* 모바일 매수표/매도표: 가격·수량은 왼쪽, 예약하기는 오른쪽 한 줄 */
@media(max-width:430px){
.order-list .order-row{flex-direction:row;align-items:center;justify-content:space-between;gap:10px}
.order-list .order-row>form,.order-list .order-row .order-actions,.order-list .order-row .button{width:auto;flex:0 0 auto}
.order-list .order-row .order-actions .button{padding-left:12px;padding-right:12px;white-space:nowrap}
}
/* 거래 기록: 수정 토글은 카드 오른쪽 위에 고정, 본문은 항상 전체 폭 */
.grouped-trade{position:relative;flex-wrap:wrap}
.grouped-trade .trade-main{flex:1 1 100%;min-width:0;padding-right:56px}
.grouped-trade .trade-details{flex:1 1 100%;order:2}
.grouped-trade .trade-details>summary{position:absolute;top:12px;right:14px;font-size:12px}
.grouped-trade .trade-details:not([open]){height:0;margin:0;padding:0}.grouped-trade .trade-main small{display:block}
.grouped-trade{row-gap:0;gap:0 10px}.panel-title .button,.panel-title a{white-space:nowrap}
/* 상단 메뉴: 잘리지 않게 줄바꿈 */
.global-header nav{flex-wrap:wrap;row-gap:8px}
/* 체결 확정도 예약하기와 같은 민트 톤 */
.reservation-actions .button.primary:not(:disabled){background:var(--mint);color:var(--mint-strong);border:1px solid var(--mint-strong)}
/* 알림 체크박스 → 토글 스위치 */
.push-prefs input[type=checkbox]{appearance:none;-webkit-appearance:none;width:46px;height:28px;border-radius:999px;background:#cfd6d4;position:relative;cursor:pointer;transition:background .15s;flex:0 0 auto;border:0;margin:0}
.push-prefs input[type=checkbox]::after{content:"";position:absolute;top:3px;left:3px;width:22px;height:22px;border-radius:50%;background:#fff;box-shadow:0 1px 2px rgba(0,0,0,.3);transition:transform .15s}
.push-prefs input[type=checkbox]:checked{background:var(--mint-strong)}
.push-prefs input[type=checkbox]:checked::after{transform:translateX(18px)}
.push-prefs input[type=checkbox]:disabled{opacity:.5}
/* 설정: 위험 구역 라벨 */
.zone-label{margin:22px 0 -4px;font-size:12px;font-weight:800;color:var(--danger)}
/* 모바일 상단 메뉴: 분석 메뉴 한 줄 / 브로커·알림·로그아웃 한 줄 */
.nav-break{display:none}
@media(max-width:700px){.nav-break{display:block;flex-basis:100%;height:0}}
/* 다크 모드 대비 보정 (베타 대비 검사 결과) */
.count{color:#111827}
.history-cycle,.new-account-archive-card{background:var(--surface,#fff)}
html[data-theme="dark"] .button.primary,html[data-theme="dark"] .primary-button{background:#0f766e;color:#fff;border-color:#0f766e}
html[data-theme="dark"] .fab{background:#2458ce;color:#fff}
html[data-theme="dark"] .strategy-tag{background:var(--mint);color:var(--mint-strong);border-color:#245c55}
html[data-theme="dark"] .currency-heading span,html[data-theme="dark"] .analysis-total-grid span{background:var(--soft);color:var(--ink)}
html[data-theme="dark"] label,html[data-theme="dark"] .stack-form label span{color:var(--ink)}
html[data-theme="dark"] .history-cycle .privacy-reservation-card{background:var(--soft)}
.secondary-tabs .count,.primary-tabs .count{color:#111827}
/* 차트 값 표시(막대 탭) */
.chart-tip{min-height:20px;margin-top:8px;font-size:12px;font-weight:700;color:var(--ink);text-align:center}
.bar-item,.timeline-point,.band-point{cursor:pointer}
.bar-item.selected .bar-track,.timeline-point.selected .timeline-track,.band-point.selected .band-track{background:var(--soft)}
.bar-item.selected small,.timeline-point.selected small,.band-point.selected small{color:var(--ink);font-weight:700}
/* 투자수익 제목도 다른 화면과 같은 크기 */
.profit-heading h1{font-size:24px;letter-spacing:-.035em;line-height:1.3}
.profit-heading{padding-top:6px}
/* 브로커 카드: 수정(왼쪽)과 삭제(오른쪽)를 한 줄로 */
.broker-card{display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px}
.broker-card>.panel-title{flex:1 1 100%}
.broker-card>details{flex:1 1 auto;min-width:0}
.broker-card>details[open]{flex-basis:100%}
.broker-card>form{margin-left:auto}
.history-cycle .privacy-reservation-card{gap:4px}.history-cycle .privacy-reservation-card p{margin:0}

@media(max-width:700px){.account-page[data-vr="true"] .quick-status{grid-template-columns:repeat(2,minmax(0,1fr))}}
