.mt-history-page{max-width:1304px;min-height:calc(100vh - 200px);padding-top:48px}.mt-history-intro{display:flex;align-items:center;justify-content:space-between;gap:24px;padding-bottom:36px}.mt-history-intro h1{margin-bottom:10px;font-size:clamp(28px,3vw,38px);font-weight:600}.mt-history-intro p{font-size:14px;color:#989e99}.mt-history-create{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;gap:8px;min-height:42px;padding:9px 17px;border:1px solid transparent;border-radius:8px;background:var(--brand-accent);color:var(--brand-on-accent);font-size:13px;font-weight:600;cursor:pointer}.mt-history-create:hover{background:var(--brand-accent-soft)}.texture-site .mt-history-create{color:var(--brand-on-accent)}.mt-history-toolbar{display:flex;align-items:center;flex-wrap:wrap;gap:12px;padding:16px;border:1px solid #262b27;border-radius:12px;background:#101211}.mt-history-search{display:flex;align-items:center;flex:1;gap:10px;min-width:180px;height:42px;padding:0 13px;border:1px solid #343b32;border-radius:7px;background:#191c19;color:#92998e}.mt-history-search:focus-within{border-color:var(--brand-accent);outline:1px solid var(--brand-accent)}.mt-history-search input{width:100%;min-width:0;padding:0;border:0;outline:0!important;background:transparent;color:#f0f3ee;font:inherit;font-size:13px}.mt-history-search input::-moz-placeholder{color:#8c938b}.mt-history-search input::placeholder{color:#8c938b}.mt-history-search input::-webkit-search-cancel-button{display:none}.mt-history-search button{display:grid;place-items:center;flex-shrink:0;width:24px;height:28px;border:0;background:transparent;color:#b4bbb0;cursor:pointer}.mt-history-periods{display:flex;align-items:center;gap:6px}.mt-history-periods button{min-height:34px;padding:6px 13px;border:1px solid #343a33;border-radius:24px;background:#191c19;color:#c8cec6;font-size:12px;white-space:nowrap;cursor:pointer}.mt-history-date:hover,.mt-history-periods button:hover{border-color:#77876b;color:#f4f7f0}.mt-history-periods button[aria-pressed=true]{border-color:var(--brand-accent);background:var(--brand-accent);color:var(--brand-on-accent);font-weight:600}.mt-history-date{display:flex;align-items:center;justify-content:center;gap:10px;height:42px;min-width:166px;padding:0 12px;border:1px solid #343a33;border-radius:7px;background:#191c19;color:#d1d6ce;font-size:12px;cursor:pointer}.mt-history-date>svg:first-child{color:#8f9989}.mt-history-date>svg:last-child{margin-left:auto;color:#8f9989}.mt-history-date[data-active=true]{border-color:var(--brand-accent);color:var(--brand-accent)}.mt-history-calendar{z-index:110;--primary:80 100% 56%;--primary-foreground:84 100% 6%;--accent:90 10% 19%;--accent-foreground:80 100% 80%;--muted-foreground:100 5% 60%;width:auto;padding:4px;border-color:#3c4737;border-radius:12px;background:#171b16;color:#f0f3ed;font:13px/1.5 Inter,Helvetica Neue,Arial,sans-serif}.mt-history-calendar>div{padding:12px}.mt-history-calendar-caption{position:relative;display:flex;align-items:center;justify-content:center;min-height:34px;margin-bottom:10px}.mt-history-calendar-label{font-weight:500}.mt-history-calendar-nav{position:absolute;inset:0;display:flex;align-items:center;justify-content:space-between;pointer-events:none}.mt-history-calendar-nav-button{display:grid;place-items:center;width:30px;height:30px;padding:0;border:1px solid #3c4737;border-radius:5px;background:transparent;color:#d0ddc4;cursor:pointer;pointer-events:auto}.mt-history-calendar-nav-button svg{width:15px;height:15px}.mt-history-calendar table{width:100%;border-collapse:collapse}.mt-history-calendar th{padding:5px 0;color:#9faa96;font-size:11px;font-weight:400}.mt-history-calendar td{padding:1px}.mt-history-calendar-day{display:grid;place-items:center;width:32px;height:32px;padding:0;border:1px solid transparent;border-radius:5px;background:transparent;color:#e0e8d9;font:inherit;cursor:pointer}.mt-history-calendar-day:hover:not(:disabled){background:#303c25}.mt-history-calendar-today{border-color:#718c51;color:var(--brand-accent)}.mt-history-calendar-selected,.mt-history-calendar-selected:hover:not(:disabled){background:var(--brand-accent);color:var(--brand-on-accent)}.mt-history-calendar-disabled,.mt-history-calendar-outside{color:#7d8875}.mt-history-calendar-disabled{opacity:.5;cursor:not-allowed}.mt-history-calendar button:focus-visible{outline:2px solid var(--brand-accent);outline-offset:2px}.mt-history-results-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:28px 0 20px}.mt-history-results-heading h2{display:flex;align-items:center;gap:10px;margin:0;font-size:15px;font-weight:500;scroll-margin-top:100px}.mt-history-results-heading h2>span{min-width:26px;padding:0 7px;border:1px solid #30382b;border-radius:5px;background:#1b2117;color:#c3d4b2;font-size:11px;line-height:20px;text-align:center}.mt-history-results-heading>div{display:flex;align-items:center;gap:16px}.mt-history-sort{color:#929b8d;font-size:12px}.mt-history-refresh,.mt-history-reset{display:inline-flex;align-items:center;justify-content:center;gap:5px;padding:4px;border:0;background:transparent;color:#a4ad9e;font-size:12px;cursor:pointer}.mt-history-refresh{width:30px;height:30px;border:1px solid #2c3328;border-radius:6px}.mt-history-refresh:disabled{cursor:wait}.mt-history-refresh:hover,.mt-history-reset:hover{color:var(--brand-accent)}.mt-history-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:20px}.mt-history-card{display:block;min-width:0;overflow:hidden;padding:0;border:1px solid #2c302b;border-radius:12px;background:#111411;color:#f2f5ef;text-align:left;cursor:pointer;transition:border-color .16s}.mt-history-card:focus-visible,.mt-history-card:hover{border-color:#a1c66e}.mt-history-card-visual{display:block;position:relative;overflow:hidden;border-bottom:1px solid #272e24}.mt-history-cover{display:block;aspect-ratio:4/3;background:#191b1a}.mt-history-cover img{display:block;width:100%;height:100%;-o-object-fit:contain;object-fit:contain}.mt-history-cover-placeholder{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;height:100%;color:#747d6c;font-size:11px}.mt-history-cover-placeholder>svg{width:42px;height:42px;stroke-width:1}.mt-history-badge{display:inline-flex;position:absolute;top:12px;left:12px;align-items:center;gap:6px;max-width:calc(100% - 24px);padding:4px 8px;border:1px solid #45533b;border-radius:5px;background:#141a12eb;color:#d4edbc;font-size:10px;line-height:1.5}.mt-history-badge i{width:5px;height:5px;flex-shrink:0;border-radius:50%;background:#a6e273}.mt-history-badge[data-status=failed]{border-color:#674139;color:#efb2a1}.mt-history-badge[data-status=failed] i{background:#ed9b85}.mt-history-badge:is([data-status=queued],[data-status=generating],[data-status=checking],[data-status=submitting],[data-status=polling],[data-status=needs_review]){border-color:#68582e;color:#e1ca85}.mt-history-badge:is([data-status=queued],[data-status=generating],[data-status=checking],[data-status=submitting],[data-status=polling],[data-status=needs_review]) i{background:#dcc477}.mt-history-badge[data-status=deleting]{border-color:#565954;color:#c3c8be}.mt-history-open{display:grid;position:absolute;right:12px;bottom:12px;place-items:center;width:32px;height:32px;border:1px solid #59654b;border-radius:50%;background:#171e13e6;color:#e1efd4}.mt-history-card:focus-visible .mt-history-open,.mt-history-card:hover .mt-history-open{border-color:var(--brand-accent);background:var(--brand-accent);color:var(--brand-on-accent)}.mt-history-card-body{display:block;padding:17px 16px 0}.mt-history-card-body>strong{display:block;overflow:hidden;font-size:14px;font-weight:500;text-overflow:ellipsis;white-space:nowrap}.mt-history-prompt{display:-webkit-box;min-height:38px;overflow:hidden;margin-top:7px;color:#929b8d;font-size:12px;line-height:19px;overflow-wrap:anywhere;-webkit-line-clamp:2;-webkit-box-orient:vertical}.mt-history-card-footer,.mt-history-card-meta{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px;font-size:11px}.mt-history-card-meta{margin:16px 0 14px;color:#aeb7a5}.mt-history-card-footer>span,.mt-history-card-meta>span{display:inline-flex;align-items:center;gap:5px}.mt-history-model{padding:2px 6px;border:1px solid #30382b;border-radius:4px;background:#1b2117}.mt-history-refunded{color:#b4d292;font-size:10px}.mt-history-card-footer{padding:11px 0;border-top:1px solid #292f25;color:#858f7e}.mt-history-card-footer>span{color:#c6d7b4;font-size:10px}.mt-history-pagination{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:16px;margin-top:28px;padding-top:22px;border-top:1px solid #292f25}.mt-history-pagination p{margin:0;color:#929c8b;font-size:12px}.mt-history-pagination>div,.mt-history-pagination>div>span{display:flex;align-items:center;gap:6px}.mt-history-pagination button{display:grid;place-items:center;width:34px;height:34px;padding:0;border:1px solid #32392c;border-radius:6px;background:#131710;color:#c5cebc;font-size:12px;cursor:pointer}.mt-history-pagination button:hover:not(:disabled){border-color:var(--brand-accent)}.mt-history-pagination button[aria-current=page]{border-color:var(--brand-accent);background:var(--brand-accent);color:var(--brand-on-accent);font-weight:600}.mt-history-pagination button:disabled{opacity:.35;cursor:not-allowed}.mt-history-ellipsis{padding:0 3px;color:#8f9985}.mt-history-empty{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:370px;padding:40px 20px;border:1px dashed #323b2b;border-radius:12px;text-align:center}.mt-history-empty>svg{width:38px;height:38px;margin-bottom:20px;color:#a5bd8c;stroke-width:1.25}.mt-history-empty h2{margin:0 0 8px;font-size:21px;font-weight:500}.mt-history-empty p{max-width:40ch;margin:0 0 24px;color:#a0aa97;font-size:13px}.mt-history-skeleton{padding-bottom:18px;overflow:hidden;border:1px solid #292f25;border-radius:12px;background:#111411}.mt-history-skeleton>div{aspect-ratio:4/3;background:#1b1e1a}.mt-history-skeleton>span{display:block;width:65%;height:12px;margin:20px 16px 0;border-radius:3px;background:#252b20}.mt-history-skeleton>span:last-child{width:45%;margin-top:12px}.mt-history-spinner{animation:mt-history-spin 1s linear infinite}@keyframes mt-history-spin{to{transform:rotate(1turn)}}.mt-history-modal-overlay{position:fixed;z-index:100;inset:0;background:#000c;backdrop-filter:blur(5px)}.texture-site.mt-themed.mt-history-modal{box-sizing:border-box;position:fixed;z-index:101;top:50%;left:50%;transform:translate(-50%,-50%);display:block;min-height:0;width:calc(100% - 40px);max-width:1000px;max-height:90dvh;overflow-y:auto;padding:28px;border:1px solid #3c4733;border-radius:16px;background:#10130f;color:#f1f5ed;font-size:14px}.mt-history-modal-close{position:absolute;top:18px;right:18px;display:grid;place-items:center;width:30px;height:30px;padding:0;border:1px solid #3b4732;border-radius:6px;background:#1b2117;color:#d2ddc5;cursor:pointer}.mt-history-modal-heading{padding-right:24px;margin-bottom:20px}.mt-history-modal-heading h2{overflow-wrap:anywhere;margin:0 0 8px;font-size:23px;line-height:1.3}.mt-history-modal-heading p,.mt-history-modal-prompt{color:#a8b19f;font-size:13px}.mt-history-modal-prompt{padding:12px 15px;margin-bottom:20px;border-left:2px solid #718d4e;background:#1a2115;overflow-wrap:anywhere}.mt-history-modal .mt-canvas{height:clamp(260px,42vh,480px)}.mt-history-modal .mt-saved-preview-slot{height:calc(clamp(260px, 42vh, 480px) + 66px)}.mt-history-modal .mt-history-actions .mt-delete{margin-left:auto;padding:8px 12px;font-size:12px}.mt-confirm-overlay{position:fixed;z-index:120;inset:0;background:#000c;backdrop-filter:blur(4px)}.mt-confirm-dialog{box-sizing:border-box;position:fixed;z-index:121;top:50%;left:50%;transform:translate(-50%,-50%);width:min(480px,calc(100% - 40px));padding:24px;border:1px solid #5a6b45;border-radius:14px;background:#10130f;color:#f1f5ed;font-size:14px}.mt-confirm-title{margin:0 0 12px;font-size:18px;font-weight:600}.mt-confirm-body{margin:0;color:#a8b19f;font-size:13px;line-height:1.65}.mt-confirm-actions{display:flex;justify-content:flex-end;gap:12px;margin-top:22px}.mt-confirm-actions button{padding:9px 16px;border:1px solid #3c4733;border-radius:6px;background:#1b2117;color:#d2ddc5;font:inherit;font-size:13px;cursor:pointer}.mt-confirm-actions button:disabled{opacity:.5;cursor:not-allowed}.mt-confirm-actions button:focus-visible{outline:2px solid var(--brand-accent);outline-offset:3px}.mt-confirm-actions .mt-confirm-danger{border-color:#a4573f;background:#2a1712;color:#ffc9bc}.mt-history-modal .mt-history-actions a{padding:8px 12px;border:1px solid #3c4733;border-radius:6px;color:var(--brand-accent-soft);font-size:12px;text-decoration:none}.mt-history-modal .mt-history-actions a:hover{border-color:var(--brand-accent);background:#202a18}@media (max-width:1100px){.mt-history-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.mt-history-search{flex-basis:calc(100% - 205px)}.mt-history-periods{order:1}}@media (max-width:800px){.mt-history-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.mt-history-intro{align-items:flex-start}.mt-history-intro p{max-width:38ch}.mt-history-page{padding-inline:24px}}@media (max-width:520px){.mt-history-page{padding:28px 18px 56px}.mt-history-intro{flex-direction:column;gap:20px;padding:0 0 28px}.mt-history-intro h1{font-size:30px}.mt-history-toolbar{gap:12px;padding:12px}.mt-history-search{flex-basis:100%;min-width:0}.mt-history-periods{order:0;justify-content:space-between;width:100%;gap:4px}.mt-history-periods button{padding-inline:10px}.mt-history-date{width:100%}.mt-history-results-heading>div{gap:10px}.mt-history-sort{display:none}.mt-history-grid{grid-template-columns:minmax(0,1fr);gap:20px}.mt-history-pagination{justify-content:center}.texture-site.mt-themed.mt-history-modal{width:calc(100% - 20px);max-height:94dvh;padding:20px 16px;border-radius:12px}.mt-history-modal-heading h2{font-size:20px}}@media (prefers-reduced-motion:reduce){.mt-history-spinner{animation:none}.mt-history-card{transition:none}}.mt-history-type{min-width:160px}.mt-history-type .mt-select-trigger{height:42px;min-height:42px;padding-top:0;padding-bottom:0}.mt-history-material-cover{display:grid;place-items:center;width:100%;aspect-ratio:4/3;background:#151518;color:#a8a8b3}.mt-history-material-cover img{position:absolute;inset:0;width:100%;height:100%;-o-object-fit:cover;object-fit:cover}@media (max-width:640px){.mt-history-type{width:100%}}