.account-action>div{display:flex;align-items:center;justify-content:flex-end;gap:16px}.account-history{max-width:1280px}.history-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin:28px 0}.history-heading h2{font-size:22px;line-height:1.5;margin:14px 0 6px;overflow-wrap:anywhere}.history-heading>div{min-width:0}.history-heading>.btn{flex:none}.history-heading .text-btn{font-size:13px}.account-history-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px}.history-card{text-align:left;min-width:0;overflow:hidden;border:1px solid var(--border);border-radius:10px;background:var(--surface);padding:0;transition:border-color .15s}.history-card:hover{border-color:var(--muted)}.history-card-image{position:relative;aspect-ratio:4/3;background:var(--raised);overflow:hidden}.history-card-image>img{width:100%;height:100%;object-fit:contain}.history-card-info{padding:16px}.history-card-info h3{font-size:14px;font-weight:500;line-height:1.6;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.history-card-info p{font-size:12px;color:var(--muted);margin-top:6px;overflow-wrap:anywhere}.history-card-info>div{display:flex;justify-content:space-between;gap:10px;margin-top:16px;font-size:12px;color:var(--muted);font-variant-numeric:tabular-nums}.history-card-info time{display:block;font-size:12px;color:var(--muted);margin-top:7px}.history-deleted{height:100%;min-height:160px;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:12px;color:var(--muted);font-size:13px}.history-deleted>.icon{width:28px;height:28px}.history-format{position:absolute;left:12px;top:12px;background:var(--surface);border-radius:4px;padding:4px 7px;font-size:11px}.history-pagination{display:flex;align-items:center;justify-content:space-between;margin:24px 0;gap:16px}.history-empty{padding:80px 20px;text-align:center;color:var(--muted)}.history-empty>.icon{width:28px;height:28px}.history-empty h3{font-size:17px;color:var(--text);margin:16px 0 10px}.history-empty p{font-size:13px}.account-history-dialog{max-width:1000px;width:min(1000px,calc(100vw - 48px));max-height:calc(100dvh - 48px);overflow-y:auto;padding:28px}.history-viewer-nav{display:flex;align-items:center;justify-content:space-between;gap:16px;font-size:13px;color:var(--muted);margin:12px 0}.history-viewer-nav>span{overflow-wrap:anywhere}.history-viewer-nav>div{display:flex;gap:8px;flex:none}.history-viewer-image{background:var(--raised);border-radius:8px;overflow:hidden;min-height:180px}.history-viewer-image>img{display:block;width:100%;max-height:52dvh;object-fit:contain}.history-viewer-title{font-size:18px;line-height:1.7;margin:20px 0}.history-viewer-meta{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px 30px;font-size:13px;margin:0 0 24px}.history-viewer-meta>div{display:flex;gap:16px;align-items:baseline}.history-viewer-meta dt{color:var(--muted);flex:none;min-width:78px}.history-viewer-meta dd{margin:0;overflow-wrap:anywhere}.history-prompt-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;border-top:1px solid var(--border);padding-top:20px}.history-prompt-heading h3{font-size:15px}.history-prompt{font-size:14px;line-height:1.9;white-space:pre-wrap;overflow-wrap:anywhere;margin-top:12px;user-select:text}.account-history>.error-inline{margin-bottom:20px}
@media(max-width:1000px){.account-history-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}.account-action>div{flex-direction:column;gap:0;align-items:flex-end}}
@media(max-width:700px){.history-heading{margin:22px 0;align-items:flex-start}.history-heading h2{font-size:20px}.account-history-grid{grid-template-columns:1fr;gap:20px}.history-card-info h3{font-size:15px}.history-card-info p,.history-card-info>div,.history-card-info time{font-size:13px}.account-action>div{flex-direction:row;gap:18px;align-items:center}.account-history-dialog{max-width:1000px;width:calc(100vw - 24px);max-height:calc(100dvh - 24px);padding:20px 16px}.history-viewer-meta{grid-template-columns:1fr;gap:14px}.history-viewer-title{font-size:17px}.history-viewer-nav .icon-btn{width:44px;height:44px}.history-pagination{align-items:flex-start;flex-direction:column}.history-prompt-heading .text-btn{min-height:44px}}
