* {
    box-sizing: border-box;
}

:root {
    --brand: #ff1717;
    --brand-dark: #e60f0f;
    --ink: #20242d;
    --muted: #7b8494;
    --line: #edf0f5;
    --surface: #ffffff;
    --app-bg: #f5f6f8;
    --loss: #3368ff;
    --loss-soft: rgba(51, 104, 255, 0.16);
    --profit: #ff1717;
    --profit-soft: rgba(255, 23, 23, 0.16);
}

body {
    margin: 0;
    min-height: 100vh;
    background: var(--app-bg);
    color: var(--ink);
    font-family: "Segoe UI", "Apple SD Gothic Neo", "Noto Sans KR", Arial, sans-serif;
}

.app-shell {
    width: min(100%, 430px);
    min-height: 100vh;
    margin: 0 auto;
    background: var(--surface);
    border-left: 1px solid #e8ebf1;
    border-right: 1px solid #e8ebf1;
}

.app-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 58px;
    padding: 13px 16px;
    border-top: 0;
    border-bottom: 1px solid var(--line);
    background: #fff;
}

.brand {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.brand-mark {
    display: grid;
    width: 19px;
    height: 19px;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 5px;
    background: var(--brand);
}

.brand-mark::before {
    content: "S";
    color: #fff;
    font-size: 11px;
    font-weight: 900;
    line-height: 1;
}

.brand-mark svg {
    display: none;
}

h1 {
    margin: 0;
    color: var(--brand);
    font-size: 16px;
    font-weight: 800;
    letter-spacing: 0;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.bell-icon {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: #151720;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2.2;
}

.avatar {
    width: 25px;
    height: 25px;
    border: 2px solid #dfe3eb;
    border-radius: 50%;
    background:
        radial-gradient(circle at 50% 30%, #f4d6c1 0 16%, transparent 17%),
        linear-gradient(135deg, #253044, #111723);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.14);
}

.subtitle {
    margin: 18px 26px 0;
    color: var(--muted);
    text-align: center;
}

.controls,
.login-form,
.link-grid {
    display: flex;
    justify-content: center;
    gap: 10px;
    min-width: 0;
}

.controls,
.login-form {
    flex-wrap: wrap;
    padding: 0 26px;
}

.user-controls {
    justify-content: flex-end;
    margin: 12px 0 0;
}

.link-grid {
    flex-wrap: wrap;
    padding: 26px;
}

#loginPanel {
    padding: 135px 0 0;
}

#loginPanel .login-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 110px;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 0 24px;
}

.login-fields {
    display: grid;
    gap: 13px;
    min-width: 0;
}

#loginPanel input {
    width: 100%;
    min-width: 0;
    height: 59px;
    padding: 0 18px;
    border: 1px solid #e4e7ee;
    border-radius: 13px;
    background: #fff;
    color: var(--ink);
    font-size: 17px;
    font-weight: 600;
    box-shadow: 0 1px 3px rgba(31, 35, 54, 0.04);
}

#loginPanel input::placeholder {
    color: #a8aebb;
    font-weight: 700;
}

#loginPanel .login-submit {
    width: 110px;
    height: 121px;
    border-radius: 14px;
    background: #c44132;
    color: #fff;
    font-size: 20px;
    font-weight: 900;
}

select,
input,
button,
.link-button {
    min-height: 38px;
    max-width: 100%;
    padding: 9px 13px;
    border: 1px solid #dfe3ec;
    border-radius: 10px;
    font-size: 14px;
}

input {
    min-width: min(100%, 240px);
}

button,
.link-button {
    border: 0;
    background: var(--brand);
    color: #fff;
    cursor: pointer;
    font-weight: 700;
    text-decoration: none;
}

button:hover,
.link-button:hover {
    filter: brightness(0.95);
}

.secondary-button {
    background: #f0f2f6;
    color: var(--brand);
}

.danger-button {
    background: #c62828;
    color: #fff;
}

.text-button {
    min-height: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--brand);
    font-size: 12px;
    font-weight: 800;
}

.asset-card {
    position: relative;
    min-height: 94px;
    margin: 16px 15px 22px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(31, 35, 54, 0.04);
}

.asset-card-content {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 19px 18px;
}

.asset-metric {
    min-width: 0;
}

.metric-label {
    display: block;
    margin-bottom: 7px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
}

.asset-value-line {
    display: flex;
    align-items: baseline;
    gap: 8px;
    min-width: 0;
}

.asset-value-line strong {
    color: #20222b;
    font-size: 25px;
    font-weight: 800;
    line-height: 1;
}

.asset-value-line span {
    color: var(--muted);
    font-size: 12px;
}

.day-profit {
    text-align: right;
}

.day-profit strong {
    display: block;
    font-family: Consolas, "SFMono-Regular", monospace;
    font-size: 22px;
    font-weight: 800;
    line-height: 1.05;
}

.day-profit span:last-child {
    display: block;
    margin-top: 4px;
    font-family: Consolas, "SFMono-Regular", monospace;
    font-size: 12px;
    font-weight: 700;
}

.profit {
    color: var(--profit);
}

.loss {
    color: var(--loss);
}

.neutral {
    color: #858b9b;
}

.summary-chart {
    position: absolute;
    inset: auto 0 0;
    height: 55px;
    z-index: 1;
}

.summary-chart svg {
    width: 100%;
    height: 100%;
}

.summary-chart path {
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 8;
    vector-effect: non-scaling-stroke;
}

.loss-card .summary-chart path {
    stroke: var(--loss-soft);
}

.profit-card .summary-chart path {
    stroke: var(--profit-soft);
}

.portfolio-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0 15px 8px;
}

.portfolio-heading h2 {
    margin: 0;
    color: #242634;
    font-size: 13px;
    font-weight: 800;
}

.portfolio-card {
    margin: 0 15px 12px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
}

.social-switch {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    margin: 0 15px 17px;
    padding: 4px;
    border: 1px solid #e5e8ef;
    border-radius: 999px;
    background: #f5f6f8;
    box-shadow: none;
}

.social-tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 39px;
    padding: 8px 10px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}

.social-tab.active {
    background: var(--brand);
    color: #fff;
    box-shadow: 0 4px 12px rgba(255, 23, 23, 0.2);
}

.social-tab svg {
    width: 15px;
    height: 15px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
}

.social-curation {
    margin: 0 15px;
}

.curation-heading {
    display: flex;
    align-items: center;
    gap: 7px;
    margin: 0 0 12px;
}

.sparkle-mark {
    color: var(--brand);
    font-size: 19px;
    line-height: 1;
}

.curation-heading h2 {
    margin: 0;
    color: #242634;
    font-size: 18px;
    font-weight: 800;
}

.curation-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-width: 0;
}

.see-more-button {
    flex: 0 0 auto;
}

.youtube-curation-card {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 4px;
    background: #fff;
    box-shadow: 0 1px 6px rgba(31, 35, 54, 0.05);
}

.youtube-video-link {
    display: block;
    color: inherit;
    text-decoration: none;
}

.youtube-thumbnail {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background:
        linear-gradient(135deg, rgba(75, 71, 127, 0.88), rgba(12, 19, 36, 0.94)),
        linear-gradient(90deg, #26314d, #151d34);
}

.youtube-thumbnail img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.youtube-play {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 54px;
    height: 40px;
    transform: translate(-50%, -50%);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.78);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.22);
}

.youtube-play::after {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    content: "";
    transform: translate(-36%, -50%);
    border-top: 12px solid transparent;
    border-bottom: 12px solid transparent;
    border-left: 18px solid #fff;
    filter: drop-shadow(0 1px 1px rgba(31, 35, 54, 0.3));
}

.youtube-channel {
    position: absolute;
    left: 12px;
    bottom: 11px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.youtube-channel span {
    display: grid;
    width: 19px;
    height: 19px;
    place-items: center;
    border-radius: 3px;
    background: #e62117;
    color: #fff;
    font-size: 8px;
    font-weight: 800;
    text-shadow: none;
}

.youtube-video-link h3 {
    margin: 0;
    padding: 16px 17px 5px;
    color: var(--ink);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.youtube-summary {
    padding: 5px 17px 8px;
}

.youtube-summary h4 {
    margin: 0 0 10px;
    color: var(--ink);
    font-size: 13px;
    font-weight: 600;
}

.youtube-summary ol,
.youtube-detail-panel ol {
    margin: 0;
    padding: 0 0 0 18px;
    color: #555b6d;
}

.youtube-summary li,
.youtube-detail-panel li {
    margin: 0 0 7px;
    padding-left: 5px;
    font-size: 11px;
    line-height: 1.45;
}

.youtube-summary li::marker,
.youtube-detail-panel li::marker {
    color: var(--brand);
    font-weight: 800;
}

.youtube-detail-button {
    display: block;
    min-height: 0;
    margin: 6px auto 16px;
    padding: 7px 10px;
    border: 0;
    background: transparent;
    color: var(--brand);
    font-size: 13px;
    font-weight: 800;
}

.youtube-detail-panel {
    margin: 0 17px 17px;
    padding: 14px 14px 7px;
    border: 1px solid #ece3ea;
    border-radius: 8px;
    background: #fff9fb;
}

.saved-video-group {
    margin: 0 0 18px;
}

.saved-video-group h3 {
    margin: 0 0 10px;
    color: #7d8491;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.2px;
}

.saved-video-row {
    display: grid;
    grid-template-columns: 76px minmax(0, 1fr) 62px;
    gap: 10px;
    align-items: center;
    min-height: 62px;
    margin-bottom: 12px;
}

.saved-video-row.expanded {
    align-items: start;
}

.saved-video-thumb {
    position: relative;
    display: block;
    width: 76px;
    height: 44px;
    overflow: hidden;
    border-radius: 3px;
    background:
        linear-gradient(135deg, rgba(255, 23, 23, 0.7), rgba(32, 36, 45, 0.88)),
        linear-gradient(135deg, #dbe8ff, #677489);
}

.saved-video-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.saved-video-thumb-1 {
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(32, 36, 45, 0.75)),
        linear-gradient(135deg, #d7e9ff, #b7c0ca);
}

.saved-video-thumb-2 {
    background:
        linear-gradient(135deg, rgba(255, 23, 23, 0.45), rgba(32, 36, 45, 0.9)),
        linear-gradient(135deg, #1b263a, #6c7c9d);
}

.saved-video-thumb-3 {
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.24), rgba(255, 23, 23, 0.28)),
        linear-gradient(135deg, #eff7ff, #94b4e0);
}

.saved-video-thumb span {
    position: absolute;
    right: 3px;
    bottom: 3px;
    padding: 1px 3px;
    border-radius: 2px;
    background: rgba(0, 0, 0, 0.75);
    color: #fff;
    font-size: 8px;
    font-weight: 800;
}

.saved-video-main {
    min-width: 0;
}

.saved-video-main strong {
    display: block;
    margin-bottom: 4px;
    color: var(--brand);
    font-size: 11px;
    font-weight: 900;
}

.saved-video-main p {
    margin: 0;
    color: #2f3440;
    font-size: 11px;
    line-height: 1.35;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.saved-video-menu {
    width: 12px;
    height: 12px;
    justify-self: end;
    border-radius: 2px;
    background:
        linear-gradient(var(--brand), var(--brand)) 3px 3px / 6px 1px no-repeat,
        linear-gradient(var(--brand), var(--brand)) 3px 6px / 6px 1px no-repeat,
        linear-gradient(var(--brand), var(--brand)) 3px 9px / 6px 1px no-repeat;
    outline: 1px solid var(--brand);
}

.saved-video-script-button {
    width: 33px;
    height: 33px;
    min-height: 0;
    padding: 0;
    justify-self: end;
    border: 0;
    border-radius: 4px;
    background:
        linear-gradient(#fff, #fff) 9px 10px / 15px 2px no-repeat,
        linear-gradient(#fff, #fff) 9px 16px / 15px 2px no-repeat,
        linear-gradient(#fff, #fff) 9px 22px / 15px 2px no-repeat,
        var(--brand);
}

.saved-video-actions {
    position: relative;
    width: 62px;
    height: 36px;
    justify-self: end;
}

.saved-video-actions .saved-video-script-button {
    position: absolute;
    right: 0;
    top: 1px;
}

.saved-video-delete-button {
    position: absolute;
    top: 7px;
    left: 0;
    width: 20px;
    height: 20px;
    min-height: 0;
    padding: 0;
    border: 1px solid #edf0f5;
    border-radius: 5px;
    background-color: #f6f7fa;
    background-image: url("data:image/svg+xml,%3Csvg width='64' height='64' viewBox='0 0 64 64' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M25 12h14a4 4 0 0 1 4 4v7H21v-7a4 4 0 0 1 4-4Z' fill='%23f4f4f4' stroke='%23000' stroke-width='5' stroke-linejoin='round'/%3E%3Cpath d='M12 23h40v9H12z' fill='%238c8c8c' stroke='%23000' stroke-width='5' stroke-linejoin='round'/%3E%3Cpath d='M17 32h30l-4 22H21z' fill='%238c8c8c' stroke='%23000' stroke-width='5' stroke-linejoin='round'/%3E%3Cpath d='M27 38v12M32 38v12M37 38v12' stroke='%23000' stroke-width='4' stroke-linecap='round'/%3E%3C/svg%3E");
    background-position: center;
    background-repeat: no-repeat;
    background-size: 15px 15px;
}

.saved-video-delete-button::before {
    content: none;
}

.saved-video-delete-button::after {
    content: none;
}

.saved-video-delete-panel {
    grid-column: 1 / -1;
    margin: 2px 0 8px 86px;
    padding: 10px 12px;
    border: 1px solid #f0d8d6;
    border-radius: 8px;
    background: #fff9f8;
}

.saved-video-delete-panel p {
    margin: 0 0 9px;
    color: var(--ink);
    font-size: 12px;
    font-weight: 800;
}

.saved-video-delete-panel div {
    display: flex;
    gap: 8px;
}

.saved-video-delete-panel button {
    min-height: 0;
    padding: 5px 12px;
    border: 1px solid var(--brand);
    border-radius: 999px;
    background: #fff;
    color: var(--brand);
    font-size: 11px;
    font-weight: 900;
}

.saved-video-delete-panel button:first-child {
    background: var(--brand);
    color: #fff;
}

.saved-video-script-panel {
    grid-column: 1 / -1;
    margin: 2px 0 8px 86px;
    padding: 12px 13px 7px;
    border: 1px solid #ece3ea;
    border-radius: 8px;
    background: #fff9fb;
}

.saved-video-script-panel h4 {
    margin: 0 0 8px;
    color: var(--ink);
    font-size: 11px;
    font-weight: 900;
}

.saved-video-script-panel ol {
    margin: 0 0 12px;
    padding-left: 18px;
    color: #555b6d;
}

.saved-video-script-panel li {
    margin-bottom: 6px;
    padding-left: 4px;
    font-size: 11px;
    line-height: 1.45;
}

.saved-video-script-panel li::marker {
    color: var(--brand);
    font-weight: 900;
}

.holdings-list {
    padding: 0;
}

.holding-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 34px;
    padding: 0 14px 0 31px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
    border-bottom: 1px solid var(--line);
    background: #fbfcff;
}

.section-view-button {
    min-height: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--muted);
    font-size: 12px;
    font-weight: 600;
}

.holding-header-controls {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    min-width: 0;
}

.currency-toggle,
.display-mode-toggle {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 6px;
    border-radius: 999px;
    background: #eef0f7;
    color: var(--muted);
    font-size: 12px;
}

.currency-toggle button,
.display-mode-toggle button {
    min-height: 0;
    padding: 2px 7px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

.currency-toggle button.active,
.display-mode-toggle button.active {
    background: var(--brand);
    color: #fff;
}

.empty-holdings {
    padding: 26px;
    color: var(--muted);
    text-align: center;
}

.holding-row {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) minmax(95px, auto);
    gap: 10px;
    align-items: center;
    min-height: 66px;
    padding: 11px 14px 11px 31px;
    border-bottom: 1px solid var(--line);
}

.holding-row:last-child {
    border-bottom: 0;
}

.holding-icon {
    position: relative;
    display: grid;
    width: 35px;
    height: 35px;
    place-items: center;
    border-radius: 50%;
    background: linear-gradient(135deg, #4354f7, #243cbe);
    color: #fff;
    font-size: 13px;
    font-weight: 900;
}

.holding-icon svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: #fff;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2.2;
}

.holding-icon-chip {
    background: linear-gradient(135deg, #5963ff, #2d37d1);
}

.holding-icon-hbm {
    background: linear-gradient(135deg, #ff8f2e, #ed5c00);
}

.holding-icon-power {
    background: linear-gradient(135deg, #1e72ff, #0649df);
}

.holding-icon-power svg circle {
    fill: #f4f7ff;
    stroke: none;
}

.holding-icon-power svg path {
    fill: #1f62f2;
    stroke: none;
}

.holding-icon-wheel {
    overflow: hidden;
    background: #1262ff;
}

.holding-icon-wheel::before {
    content: "";
    position: absolute;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background:
        radial-gradient(circle, #fff 0 34%, transparent 35%),
        conic-gradient(#d9e5ff 0 23%, #78a6ff 23% 40%, #fff 40% 64%, #88b2ff 64% 82%, #dce8ff 82% 100%);
}

.holding-icon-wheel::after {
    content: "";
    position: absolute;
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: #1262ff;
}

.holding-icon-logo {
    overflow: hidden;
    background: transparent;
}

.holding-icon-logo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.holding-icon-image {
    overflow: hidden;
    background: transparent;
}

.holding-icon-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.holding-main {
    min-width: 0;
}

.holding-name {
    color: var(--ink);
    font-size: 14px;
    font-weight: 800;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.holding-quantity {
    margin-top: 3px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 500;
}

.holding-values {
    min-width: 0;
    text-align: right;
}

.holding-value {
    color: var(--ink);
    font-size: 14px;
    font-weight: 800;
    line-height: 1.15;
    white-space: nowrap;
}

.holding-profit {
    margin-top: 3px;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
}

.holding-row.price-mode .holding-quantity {
    color: #858b9b;
}

table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
    word-break: keep-all;
}

th,
td {
    padding: 14px 12px;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: middle;
    overflow-wrap: anywhere;
}

tr:last-child td {
    border-bottom: 0;
}

th:nth-child(n + 2),
td:nth-child(n + 2) {
    text-align: right;
}

th:nth-child(1),
td:nth-child(1) {
    width: 32%;
}

th:nth-child(2),
td:nth-child(2) {
    width: 13%;
}

th:nth-child(3),
td:nth-child(3),
th:nth-child(4),
td:nth-child(4) {
    width: 19%;
}

th:nth-child(5),
td:nth-child(5) {
    width: 17%;
}

th {
    background: #fafbfe;
    color: var(--muted);
    font-weight: 700;
}

.ticker {
    color: #20222b;
    font-weight: 800;
}

.status {
    display: none;
    margin: 18px 26px;
    color: var(--muted);
    font-size: 17px;
    text-align: center;
}

.error {
    color: #c62828;
}

.hidden {
    display: none;
}

#dashboard {
    max-width: 100%;
    overflow-x: hidden;
    padding-bottom: 80px;
}

.bottom-nav {
    position: sticky;
    bottom: 0;
    z-index: 20;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    min-height: 54px;
    margin-top: 18px;
    padding: 6px 10px 7px;
    border-top: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(10px);
}

.bottom-nav-item {
    display: grid;
    place-items: center;
    gap: 2px;
    color: #8790a1;
    text-decoration: none;
    font-size: 10px;
    font-weight: 700;
}

.bottom-nav-item.active,
.bottom-nav-item.active-asset {
    color: var(--brand);
}

.bottom-nav-item svg {
    width: 19px;
    height: 19px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
}

@media (max-width: 640px) {
    .app-shell {
        border-right: 0;
        border-left: 0;
    }

    .app-header {
        height: 58px;
        padding: 13px 16px;
    }

    .brand {
        gap: 8px;
    }

    .brand-mark {
        width: 19px;
        height: 19px;
    }

    .brand-mark svg {
        width: 23px;
        height: 23px;
    }

    h1 {
        font-size: 16px;
    }

    .header-actions {
        gap: 16px;
    }

    .bell-icon {
        width: 27px;
        height: 27px;
    }

    .avatar {
        width: 38px;
        height: 38px;
    }

    .asset-card {
        min-height: 94px;
        margin: 16px 15px 22px;
        border-radius: 8px;
    }

    .asset-card-content {
        padding: 19px 18px;
    }

    .metric-label {
        margin-bottom: 8px;
        font-size: 13px;
    }

    .asset-value-line strong {
        font-size: 25px;
    }

    .asset-value-line span {
        font-size: 16px;
    }

    .day-profit strong {
        font-size: 22px;
    }

    .day-profit span:last-child {
        font-size: 15px;
    }

    .summary-chart {
        height: 55px;
    }

    .portfolio-heading,
    .portfolio-card {
        margin-right: 15px;
        margin-left: 15px;
    }

    .social-switch,
    .social-curation {
        margin-right: 15px;
        margin-left: 15px;
    }

    .social-switch {
        margin-bottom: 24px;
        padding: 5px;
        border-radius: 14px;
    }

    .social-tab {
        min-height: 39px;
        gap: 6px;
        border-radius: 11px;
        font-size: 13px;
    }

    .social-tab svg {
        width: 18px;
        height: 18px;
    }

    .curation-heading {
        margin-bottom: 16px;
    }

    .sparkle-mark {
        font-size: 22px;
    }

    .curation-heading h2 {
        font-size: 18px;
    }

    .youtube-video-link h3 {
        padding: 16px 17px 5px;
        font-size: 14px;
    }

    .youtube-summary {
        padding: 6px 18px 8px;
    }

    .youtube-summary h4 {
        font-size: 13px;
    }

    .youtube-summary li,
    .youtube-detail-panel li {
        font-size: 11px;
    }

    .youtube-detail-panel {
        margin-right: 18px;
        margin-left: 18px;
        padding: 16px 16px 6px;
    }

    .youtube-play {
        width: 58px;
        height: 44px;
    }

    .holding-section-header {
        min-height: 34px;
        padding: 0 14px 0 31px;
        font-size: 12px;
    }

    .holding-header-controls {
        gap: 5px;
    }

    .holding-row {
        grid-template-columns: 42px minmax(0, 1fr) minmax(95px, auto);
        gap: 10px;
        min-height: 66px;
        padding: 11px 14px 11px 31px;
    }

    .holding-icon {
        width: 35px;
        height: 35px;
        font-size: 13px;
    }

    .holding-icon svg {
        width: 22px;
        height: 22px;
    }

    .holding-icon-wheel::before {
        width: 24px;
        height: 24px;
    }

    .holding-icon-wheel::after {
        width: 11px;
        height: 11px;
    }

    .holding-name {
        font-size: 14px;
    }

    .holding-quantity {
        margin-top: 3px;
        font-size: 11px;
    }

    .holding-value {
        font-size: 14px;
    }

    .holding-profit {
        margin-top: 3px;
        font-size: 11px;
    }

    .currency-toggle,
    .display-mode-toggle {
        gap: 5px;
        padding: 3px 6px;
        font-size: 13px;
    }

    .currency-toggle button,
    .display-mode-toggle button {
        padding: 2px 6px;
        font-size: 13px;
    }

    th,
    td {
        padding: 10px 7px;
        font-size: clamp(10px, 2.7vw, 14px);
    }

    .controls,
    .login-form {
        padding-right: 18px;
        padding-left: 18px;
    }
}
