.authenticated-layout .auth-layout { grid-template-columns: 230px minmax(0, 1fr) 190px; }
.assets-panel { padding: 24px 16px; border-left: 1px solid #e2e8f0; background: #fff; }
.assets-panel h2 { font-size: 18px; margin: 0 0 16px; }
.assets-panel nav { display: grid; gap: 10px; }
.assets-panel a { display: block; padding: 12px; border-radius: 10px; color: #174c3c; background: #eff8f3; text-decoration: none; overflow-wrap: anywhere; }
.assets-toggle { display: none; }
.currency-card { padding: 24px; margin-bottom: 20px; border: 1px solid #e2e8f0; border-radius: 16px; background: #fff; min-width: 0; }
.currency-balance { font-size: clamp(24px, 5vw, 42px); font-weight: 700; overflow-wrap: anywhere; }
.currency-description { white-space: normal; overflow-wrap: anywhere; line-height: 1.7; }
.currency-card textarea { display: block; width: 100%; box-sizing: border-box; margin: 10px 0 16px; padding: 12px; font: inherit; border: 1px solid #cbd5e1; border-radius: 8px; resize: vertical; }
.currency-card form a { display: inline-block; margin: 12px; }
@media (min-width: 769px) and (max-width: 1100px) { .authenticated-layout .auth-layout { grid-template-columns: 180px minmax(0, 1fr) 150px; } .assets-panel { padding: 20px 10px; } }
@media (max-width: 768px) {
 .authenticated-layout .auth-layout { grid-template-columns: minmax(0, 1fr); }
 .assets-toggle { display: inline-flex; align-items: center; justify-content: center; background: transparent; border: 1px solid #e2e8f0; border-radius: 8px; width: 40px; height: 40px; color: inherit; padding: 8px; }
 .assets-panel { position: fixed; top: var(--auth-header-height, 80px); right: 0; bottom: 0; width: min(290px, 85vw); box-sizing: border-box; z-index: 1001; visibility: hidden; transform: translateX(100%); transition: transform .2s, visibility .2s; overflow-y: auto; }
 .assets-panel.open { visibility: visible; transform: translateX(0); }
 .currency-card { padding: 18px; }
}

/* Asset cards share the same surface on desktop and in the mobile drawer. */
.assets-panel { border: 1px solid #e2e8f0; border-radius: 12px; background: #fff; box-shadow: 0 6px 24px rgb(15 23 42 / 7%); margin: 16px 8px; padding: 20px 12px; align-self: start; }
.assets-panel a.asset-tile { display: flex; align-items: center; gap: 8px; padding: 12px 8px; border: 1px solid #f2e3b8; background: #fffaf0; color: #65470b; transition: background .15s, box-shadow .15s; }
.assets-panel a.asset-lkm { color: #6532a0; background: #f8f3ff; border-color: #e8d9fa; }
.assets-panel a.asset-lkc:hover { background: #fff0c6; }
.assets-panel a.asset-lkm:hover { background: #ecddff; }
.assets-panel a.asset-tile:focus-visible { outline: 3px solid #29846b; outline-offset: 2px; }
.asset-icon { flex: 0 0 28px; color: #d9a523; }
.asset-lkm .asset-icon { color: #9360d0; }
.asset-icon svg { display: block; width: 28px; height: 28px; }
.asset-info { display: grid; gap: 5px; min-width: 0; }
.asset-name { font-size: 12px; line-height: 1.4; }
.asset-info strong { font-size: 14px; font-variant-numeric: tabular-nums; }
.currency-history { overflow-x: auto; }
.currency-history table { width: 100%; border-collapse: collapse; text-align: left; font-size: 14px; }
.currency-history th, .currency-history td { padding: 12px 8px; border-bottom: 1px solid #e2e8f0; }
.currency-credit { color: #16734d; font-weight: 600; white-space: nowrap; }
@media (max-width: 768px) { .assets-panel { margin: 8px; bottom: 8px; top: calc(var(--auth-header-height, 80px) + 8px); } }

/* Align the desktop assets card with its grid siblings; keep the mobile drawer unchanged. */
@media (min-width: 769px) { .assets-panel { margin-top: 0; } }

/* Rich descriptions and editor, scoped to currencies only. */
.currency-description img, .currency-editor img { max-width: 100%; height: auto; }
.currency-description pre { white-space: pre-wrap; }
.currency-description ul, .currency-description ol { padding-left: 1.75em; margin: 1em 0; }
.currency-description h1, .currency-description h2, .currency-description h3 { line-height: 1.3; margin: 1em 0 .5em; }
.currency-description blockquote { margin: 1em 0; padding-left: 1em; border-left: 3px solid #cbd5e1; }
.currency-editor .ql-editor { min-height: 220px; }
.currency-card .ql-toolbar { margin-top: 10px; }
.currency-card .ql-container { margin-bottom: 16px; }

/* Currency header: one cohesive asset card, independent of the editor. */
.currency-summary { display: flex; align-items: center; gap: 24px; padding: 28px; background: #fffaf0; border-color: #f2e3b8; box-shadow: 0 6px 24px rgb(15 23 42 / 5%); }
.currency-summary-lkm { background: #f8f3ff; border-color: #e8d9fa; }
.currency-summary-icon { display: block; flex: 0 0 88px; color: #d9a523; }
.currency-summary-icon svg { display: block; width: 100%; height: auto; }
.currency-summary-lkm .currency-summary-icon { color: #9360d0; }
.currency-summary-info { min-width: 0; }
.currency-summary h1 { margin: 0 0 8px; font-size: clamp(22px, 3vw, 30px); line-height: 1.25; overflow-wrap: anywhere; }
.currency-summary .currency-balance { margin: 0; color: #65470b; line-height: 1.15; font-variant-numeric: tabular-nums; letter-spacing: -.025em; }
.currency-summary-lkm .currency-balance { color: #6532a0; }
.currency-summary .currency-balance-guest { font-size: 16px; line-height: 1.5; font-weight: 500; letter-spacing: normal; }
.currency-description > :first-child { margin-top: 0; }
.currency-description > :last-child { margin-bottom: 0; }
@media (max-width: 768px) {
 .currency-summary { gap: 16px; padding: 20px 18px; }
 .currency-summary-icon { flex-basis: 64px; }
 .currency-summary h1 { font-size: 22px; }
 .currency-summary .currency-balance { font-size: 30px; }
 .currency-summary .currency-balance-guest { font-size: 14px; }
}
@media (max-width: 360px) {
 .currency-summary { gap: 12px; }
 .currency-summary-icon { flex-basis: 52px; }
 .currency-summary h1 { font-size: 19px; }
 .currency-summary .currency-balance { font-size: 26px; }
 .currency-summary .currency-balance-guest { font-size: 14px; }
}
