/* v4: shallow banner, compact client rows and same-origin action windows. */
.tm-header{height:128px;min-height:128px;background-image:url('/tmcore-ui/header-v4.webp'),linear-gradient(110deg,#061126,#12345a);background-position:right center,center;background-size:auto 100%,cover;background-repeat:no-repeat;margin-bottom:12px;padding:16px 24px 4px}.tm-header:before{background:linear-gradient(90deg,#061126 0%,#0b203c 55%,#061126 73%,transparent 86%)}.tmcore-original-logo{width:255px!important;max-height:90px;margin-top:16px}.tm-header-actions .tm-theme{position:absolute;top:7px;left:24px;width:46px;height:24px;min-height:0;padding:0!important;border-radius:20px!important;background:#385176!important;border:1px solid #6d8aad!important;font-size:0!important;box-shadow:none;overflow:hidden}.tm-theme:before{content:'☀';position:absolute;top:2px;left:3px;width:18px;height:18px;background:#f9f1c9;color:#584817;font-size:13px;line-height:18px;border-radius:50%;transition:transform .16s}.tm-theme[aria-checked=true]{background:#182b4b!important}.tm-theme[aria-checked=true]:before{content:'☾';transform:translateX(20px);background:#d4e5ff;color:#234373}.tm-header-actions .tm-test{position:absolute;right:20px;top:10px;background:#071b36bb}
.tm-client-identity{min-width:255px;max-width:330px}.tm-client-identity-top{display:flex;align-items:center;gap:10px;white-space:nowrap}.tm-client-identity-top .tm-client-password{flex:none}.tm-client-identity>small{margin:3px 0 0}.tm-client-actions{flex-wrap:nowrap;max-width:none;min-width:0}.tm-action{padding:5px 6px;font-size:11px;min-height:29px}.tm-client-table td{padding:8px!important}.tm-client-table .tm-client-notice{min-width:75px;max-width:150px}.tm-client-table .tm-client-subscriptions{min-width:165px}.tm-content .tm-client-table{min-width:1050px}.tm-client-table-wrap{max-width:100%;overflow-x:auto}.tm-client-password input{width:90px!important}.tm-data-table{min-width:650px!important}.tm-data-table td,.tm-data-table th{padding:10px!important;font-size:12px}.tm-data-table time,.tm-data-table code{white-space:nowrap;font:12px ui-monospace,Consolas,monospace;color:var(--text)}.tm-ledger-details{display:block;color:var(--muted);font-size:11px;margin-top:3px}.tm-client-table .tm-amount-positive{color:#60dca6!important}.tm-client-table .tm-amount-negative{color:#f99bac!important}:root[data-theme=light] .tm-client-table .tm-amount-positive{color:#16724d!important}:root[data-theme=light] .tm-client-table .tm-amount-negative{color:#a92c49!important}.tm-package-label{display:flex;align-items:center;gap:12px}.tm-package-label .tm-package-icon{margin:0;flex:none}.tm-package-label strong{font-size:12px}.tm-stop-confirm{color:#f99bac!important}:root[data-theme=light] .tm-stop-confirm{color:#9f2944!important}.tm-account-balance{margin:12px 0!important}
.tm-workspace-modal{color:var(--text);background:var(--panel);border:1px solid var(--line);border-radius:14px;width:min(1100px,calc(100vw - 32px));max-width:none;height:min(790px,calc(100vh - 36px));max-height:none;padding:0;box-shadow:0 24px 80px #0008;overflow:hidden}.tm-workspace-modal::backdrop{background:#020b1dbb;backdrop-filter:blur(3px)}.tm-modal-heading{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:12px 18px;border-bottom:1px solid var(--line);background:var(--panel2)}.tm-modal-heading h2{font-size:17px!important;margin:0!important}.tm-modal-close{border:1px solid var(--line);border-radius:8px;background:var(--panel);color:var(--text);width:32px;height:32px;font-size:25px;cursor:pointer;line-height:26px}.tm-modal-close[aria-disabled=true]{opacity:.5}.tm-modal-frame{width:100%;height:calc(100% - 104px);border:0;background:var(--panel)}.tm-modal-status{margin:0;padding:7px 18px;font:12px/1.4 Segoe UI,Arial,sans-serif;color:var(--muted);min-height:27px;border-top:1px solid var(--line)}.tm-modal-loading{position:absolute;top:80px;left:20px;color:var(--muted)}body.tm-embedded{padding:12px!important;background:var(--panel)!important;min-height:0!important}.tm-embedded .tm-header,.tm-embedded .tm-sidebar{display:none!important}.tm-embedded .tm-shell{display:block!important}.tm-embedded .tm-content{border:0!important;box-shadow:none!important;padding:0!important;overflow-x:auto}.tm-embedded[data-action=edit] .tm-clients-heading,.tm-embedded[data-action=edit] .tm-client-filters,.tm-embedded[data-action=edit] .tm-client-table-wrap,.tm-embedded[data-action=edit] .tm-client-pagination{display:none!important}.tm-embedded[data-action=edit] .tm-client-editor{border:0;background:var(--panel);margin:0}.tm-embedded[data-action=edit] .tm-client-editor summary{display:none}.tm-embedded[data-action=edit] .tm-client-editor .tm-client-form{border:0;padding:4px;grid-template-columns:repeat(2,minmax(0,1fr))}.tm-embedded .tm-owner-picker{display:none}.tm-embedded .tm-client-form-actions a{display:none}.tm-embedded .tm-stop-table{min-width:850px!important}.tm-embedded .tm-content fieldset{margin-top:8px!important}
@media(max-width:650px){.tm-workspace-modal{width:calc(100vw - 12px);height:calc(100vh - 12px);border-radius:10px}.tm-modal-heading{padding:9px 12px}.tm-modal-heading h2{font-size:14px!important}.tm-embedded[data-action=edit] .tm-client-form{grid-template-columns:1fr!important}.tm-header-actions .tm-test{display:none}.tm-header{background-size:auto 100%,cover}.tmcore-original-logo{width:225px!important}}
.tm-renew-controls{display:flex;gap:14px;flex-wrap:wrap;margin:14px 0 10px}.tm-renew-controls label{display:flex;flex-direction:column;gap:6px;color:var(--muted);font-size:12px}.tm-renew-controls #day_count{width:160px!important}.tm-month-shortcuts{display:flex;gap:7px;flex-wrap:wrap;margin:10px 0 14px}.tm-renew-total{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;padding:13px;border:1px solid var(--line);border-radius:10px;background:var(--panel2);font-size:12px}.tm-renew-total strong{color:var(--accent)}.tm-renew-table{min-width:760px!important}.tm-renew-table td:first-child{width:35px}.tm-embedded[data-action=renew] .tm-renewal h1,.tm-embedded[data-action=stop] .tm-subscription-list h1{display:none}
