/* terameta panel theme. Loaded after Filament's stylesheet, which lives in @layer, so plain rules win.
   1 Tokens  2 Shell  3 Buttons and fields  4 Building blocks  5 Pages  6 Small screens */

/* 1 Tokens ------------------------------------------------------------------ */
:root {
    --tm-bg: #f6f6f8; --tm-card: #fff; --tm-soft: #f7f7f9; --tm-hover: #f1f2f5; --tm-line: #e4e5ea; --tm-line-2: #cfd2da;
    --tm-ink: #1d2230; --tm-mute: #596072;
    --tm-brand: #2b50d0; --tm-brand-hover: #2343b3; --tm-brand-ink: #2746b8; --tm-brand-soft: #eef2fe;
    --tm-green: #17694a; --tm-green-soft: #e8f5ee; --tm-amber: #84500a; --tm-amber-soft: #fdf3df; --tm-red: #a82a22; --tm-red-soft: #fcecea;
    --tm-violet: #5b3db0; --tm-violet-soft: #f1edfb;
    --tm-r: 10px; --tm-r-s: 8px; --tm-shadow: 0 1px 2px rgb(20 24 40 / .04); --tm-pop: 0 12px 40px rgb(20 24 40 / .16);
    --tm-top: 4rem;
}
.dark {
    --tm-bg: #101218; --tm-card: #181b23; --tm-soft: #1e222c; --tm-hover: #252a36; --tm-line: #2b303d; --tm-line-2: #40475a;
    --tm-ink: #eceef4; --tm-mute: #a3abbd;
    --tm-brand: #3d63e6; --tm-brand-hover: #4c71f0; --tm-brand-ink: #a5b8ff; --tm-brand-soft: #1f2a4d;
    --tm-green: #7fd6ab; --tm-green-soft: #16302a; --tm-amber: #efc078; --tm-amber-soft: #352a17; --tm-red: #ff9d95; --tm-red-soft: #3a1f21;
    --tm-violet: #c3adff; --tm-violet-soft: #2a2444; --tm-shadow: none; --tm-pop: 0 12px 40px rgb(0 0 0 / .5);
}
[x-cloak] { display: none !important; }

/* 2 Shell ------------------------------------------------------------------- */
.fi-body { background: var(--tm-bg); color: var(--tm-ink); -webkit-font-smoothing: antialiased; }
.fi-topbar { background: var(--tm-card); border-bottom: 1px solid var(--tm-line); box-shadow: none; --tw-ring-shadow: 0 0 #0000; }
.fi-main { padding-block: 1.5rem 3rem; max-width: 1560px; }
.fi-page-header-main-ctn { padding-block: 0 1.5rem; row-gap: 1.25rem; }
.fi-page-content { row-gap: 1rem; }
.fi-header-heading { font-size: 1.375rem; line-height: 1.3; font-weight: 650; letter-spacing: -.015em; color: var(--tm-ink); }
.fi-header-subheading { color: var(--tm-mute); font-size: .9rem; margin-top: .15rem; }
.fi-section:not(.fi-section-not-contained), .fi-ta-ctn { border-radius: var(--tm-r); background: var(--tm-card); box-shadow: var(--tm-shadow); border: 1px solid var(--tm-line); --tw-ring-shadow: 0 0 #0000; }
.fi-body a:focus-visible, .fi-body button:focus-visible, .tm-pick:focus-within, .tm-day:focus-visible, .tm-scroll:focus-visible, .fi-body summary:focus-visible { outline: 2px solid var(--tm-brand); outline-offset: 2px; }
.tm-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.tm-topbar { display: flex; align-items: center; gap: .5rem; }

.fi-sidebar { background: var(--tm-card) !important; border-inline-end: 1px solid var(--tm-line); }
.fi-sidebar .fi-sidebar-header, .fi-sidebar .fi-sidebar-header-ctn { background: var(--tm-card); border-color: var(--tm-line); box-shadow: none; --tw-ring-shadow: 0 0 #0000; }
.fi-sidebar-nav { gap: 1rem; padding: 1rem .75rem; scrollbar-gutter: auto; scrollbar-width: thin; scrollbar-color: var(--tm-line-2) transparent; }
.fi-sidebar .fi-sidebar-nav-groups { row-gap: 1.1rem; margin-inline: 0; }
.fi-sidebar .fi-sidebar-group, .fi-sidebar .fi-sidebar-group-items { row-gap: .125rem; }
.fi-sidebar .fi-sidebar-item-btn { border-radius: var(--tm-r-s); padding: .45rem .6rem; }
.fi-sidebar .fi-sidebar-item-btn .fi-sidebar-item-label { color: var(--tm-ink); font-weight: 500; font-size: .875rem; }
.fi-sidebar .fi-sidebar-item-btn > .fi-icon { color: var(--tm-mute); width: 1.25rem; height: 1.25rem; }
.fi-sidebar .fi-sidebar-item-btn:hover { background: var(--tm-hover); }
.fi-sidebar .fi-sidebar-item.fi-active > .fi-sidebar-item-btn { background: var(--tm-brand-soft); }
.fi-sidebar .fi-sidebar-item.fi-active > .fi-sidebar-item-btn .fi-sidebar-item-label { color: var(--tm-brand-ink); font-weight: 600; }
.fi-sidebar .fi-sidebar-item.fi-active > .fi-sidebar-item-btn > .fi-icon { color: var(--tm-brand-ink); }
.fi-sidebar .fi-sidebar-group-btn { padding: .2rem .6rem; }
.fi-sidebar .fi-sidebar-group-label { color: var(--tm-mute); font-size: .75rem; font-weight: 600; }
.fi-sidebar .fi-sidebar-group-btn .fi-icon, .fi-sidebar .fi-sidebar-group-collapse-btn { color: var(--tm-mute); }
.fi-sidebar .fi-tenant-menu-trigger { background: var(--tm-card); border: 1px solid var(--tm-line); border-radius: var(--tm-r); padding: .45rem .55rem; }
.fi-sidebar .fi-tenant-menu-trigger:hover { background: var(--tm-hover); }
.fi-sidebar .fi-tenant-menu-trigger .fi-tenant-menu-trigger-tenant-name { color: var(--tm-ink); font-weight: 600; font-size: .875rem; }
.fi-sidebar .fi-tenant-menu-trigger .fi-tenant-menu-trigger-current-tenant-label, .fi-sidebar .fi-tenant-menu-trigger .fi-icon { color: var(--tm-mute); }
.fi-sidebar .fi-tenant-menu-trigger .fi-avatar { border-radius: 7px; width: 1.85rem; height: 1.85rem; }
.fi-tenant-menu .fi-dropdown-panel { max-height: min(70vh, 26rem) !important; overflow-y: auto; }
.fi-sidebar .fi-badge { padding-block: 0; margin-block: -2px; background: var(--tm-amber-soft); color: var(--tm-amber); box-shadow: none; border-radius: 99px; min-width: 1.35rem; justify-content: center; --tw-ring-shadow: 0 0 #0000; }

.fi-simple-layout { background: var(--tm-bg); }
.fi-simple-main { border-radius: 14px; border: 1px solid var(--tm-line); box-shadow: 0 8px 30px rgb(20 24 40 / .06); --tw-ring-shadow: 0 0 #0000; }
.tm-logo { display: inline-flex; align-items: center; gap: .55rem; font-weight: 700; font-size: 1.1rem; letter-spacing: -.02em; color: var(--tm-ink); }
.tm-logo svg { width: 28px; height: 28px; }

/* 3 Buttons and fields: one solid button per view, the rest quiet, red only for deleting ------------ */
.fi-btn { border-radius: var(--tm-r-s); font-weight: 550; min-height: 2.25rem; box-shadow: none; --tw-ring-shadow: 0 0 #0000; transition: background .12s, border-color .12s; }
.fi-btn.fi-size-sm { min-height: 2rem; font-size: .8125rem; }
.fi-btn.fi-size-xs { min-height: 1.75rem; }
.fi-btn.fi-color-primary:not(.fi-outlined):not(label), .fi-btn.fi-color-success:not(.fi-outlined):not(label) { background: var(--tm-brand); color: #fff; }
.fi-btn.fi-color-primary:not(.fi-outlined):not(label):hover, .fi-btn.fi-color-success:not(.fi-outlined):not(label):hover { background: var(--tm-brand-hover); }
.fi-btn.fi-color-primary:not(.fi-outlined):not(label) > .fi-icon, .fi-btn.fi-color-success:not(.fi-outlined):not(label) > .fi-icon { color: #fff; }
.fi-btn:not(.fi-color):not(label) { background: var(--tm-card); color: var(--tm-ink); border: 1px solid var(--tm-line-2); }
.fi-btn:not(.fi-color):not(label):hover { background: var(--tm-hover); }
.fi-btn:not(.fi-color):not(label) > .fi-icon { color: var(--tm-mute); }
.fi-btn.fi-color-danger:not(label), .fi-btn.fi-color-warning:not(label) { background: var(--tm-card); color: var(--tm-red); border: 1px solid var(--tm-line-2); }
.fi-btn.fi-color-danger:not(label):hover { background: var(--tm-red-soft); border-color: var(--tm-red); }
.fi-btn.fi-color-danger:not(label) > .fi-icon { color: inherit; }
.fi-modal .fi-modal-footer .fi-btn.fi-color-danger { background: #b3261e; color: #fff; border-color: transparent; }
.fi-modal .fi-modal-footer .fi-btn.fi-color-danger:hover { background: #8f1d17; }
.fi-fo-toggle-buttons .fi-btn[aria-pressed=false][class]:not(.fi-outlined):not(label) { background: var(--tm-card); color: var(--tm-ink); border: 1px solid var(--tm-line-2); }
.fi-fo-toggle-buttons .fi-btn[aria-pressed=false][class]:not(.fi-outlined):not(label):hover { background: var(--tm-hover); }
.fi-fo-toggle-buttons input:checked + .fi-btn, .fi-fo-toggle-buttons .fi-btn[aria-pressed=true] { background: var(--tm-brand); color: #fff; border-color: var(--tm-brand); }
.fi-input-wrp { border-radius: var(--tm-r-s); box-shadow: none; border: 1px solid var(--tm-line-2); background: var(--tm-card); --tw-ring-shadow: 0 0 #0000; }
.fi-input-wrp:focus-within { border-color: var(--tm-brand); box-shadow: 0 0 0 3px var(--tm-brand-soft); }
.fi-fo-field-label-content { font-weight: 550; }
.fi-modal-window { border-radius: 14px; }
.fi-dropdown-panel { border-radius: var(--tm-r); border: 1px solid var(--tm-line); box-shadow: var(--tm-pop); --tw-ring-shadow: 0 0 #0000; }
.tm-search, .tm-select { height: 2.25rem; border: 1px solid var(--tm-line-2); background-color: var(--tm-card); color: var(--tm-ink); border-radius: var(--tm-r-s); padding: 0 .75rem; font-size: .875rem; }
.tm-search { width: min(100%, 300px); }
.tm-search::placeholder { color: var(--tm-mute); }
textarea.tm-search { height: auto; padding: .5rem .75rem; line-height: 1.4; }
.tm-select { appearance: none; background: var(--tm-card) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%237b8294' stroke-width='1.8'%3E%3Cpath d='m6 8 4 4 4-4'/%3E%3C/svg%3E") no-repeat right .5rem center / 1.1rem; padding-right: 2rem; max-width: 100%; cursor: pointer; }
.tm-search:focus, .tm-select:focus { border-color: var(--tm-brand); box-shadow: 0 0 0 3px var(--tm-brand-soft); outline: 0; }

/* 4 Building blocks --------------------------------------------------------- */
.tm-stack { display: flex; flex-direction: column; gap: .9rem; min-width: 0; }
.tm-row { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; min-width: 0; }
.tm-between { justify-content: space-between; }
.tm-grow { flex: 1 1 0; min-width: 0; }
.tm-card { background: var(--tm-card); border: 1px solid var(--tm-line); border-radius: var(--tm-r); box-shadow: var(--tm-shadow); padding: 1.1rem 1.2rem; min-width: 0; font-size: .9rem; }
.tm-flush { padding: 0; overflow: hidden; }
.tm-title { font-size: .95rem; font-weight: 600; color: var(--tm-ink); margin: 0; }
.tm-mute { color: var(--tm-mute); font-size: .85rem; }
.tm-text { white-space: pre-line; overflow-wrap: anywhere; }
.tm-i { width: 1.1rem; height: 1.1rem; flex: none; }
.tm-link { color: var(--tm-brand-ink); font-weight: 550; font-size: .85rem; display: inline-flex; gap: .3rem; align-items: center; min-height: 1.5rem; }
.tm-link:hover { text-decoration: underline; }
.tm-tile { display: grid; place-items: center; width: 40px; height: 40px; border-radius: var(--tm-r); background: var(--tm-soft); color: var(--tm-mute); flex: none; font-weight: 600; }
.tm-tile svg { width: 20px; height: 20px; }
.tm-badge { position: relative; display: inline-flex; align-items: center; gap: .3rem; padding: .14rem .5rem; border-radius: 6px; font-size: .75rem; font-weight: 550; line-height: 1.4; white-space: nowrap; background: var(--tm-hover); color: var(--tm-mute); }
.tm-badge svg { width: .85rem; height: .85rem; }
.tm-badge.green { background: var(--tm-green-soft); color: var(--tm-green); }
.tm-badge.amber { background: var(--tm-amber-soft); color: var(--tm-amber); }
.tm-badge.red { background: var(--tm-red-soft); color: var(--tm-red); }
.tm-badge.blue { background: var(--tm-brand-soft); color: var(--tm-brand-ink); }
.tm-badge.violet { background: var(--tm-violet-soft); color: var(--tm-violet); }
.tm-platform { display: inline-flex; align-items: center; gap: .4rem; font-weight: 550; font-size: .85rem; color: var(--tm-ink); white-space: nowrap; }
.tm-platform svg { width: 18px; height: 18px; border-radius: 5px; flex: none; }
.tm-note { display: flex; gap: .6rem; padding: .7rem .85rem; border-radius: var(--tm-r-s); font-size: .875rem; background: var(--tm-brand-soft); color: var(--tm-ink); overflow-wrap: anywhere; }
.tm-note .tm-i { color: var(--tm-brand-ink); margin-top: .1rem; }
.tm-note.amber { background: var(--tm-amber-soft); } .tm-note.amber .tm-i { color: var(--tm-amber); }
.tm-note.red { background: var(--tm-red-soft); } .tm-note.red .tm-i { color: var(--tm-red); }
.tm-meter { font-variant-numeric: tabular-nums; } .tm-meter.over { color: var(--tm-red); font-weight: 600; }
.tm-empty { display: grid; justify-items: center; text-align: center; gap: .5rem; padding: 3rem 1.5rem; border: 1px dashed var(--tm-line-2); border-radius: var(--tm-r); background: var(--tm-card); }
.tm-empty p { max-width: 46ch; margin: 0; }
.tm-bar { height: 6px; border-radius: 99px; background: var(--tm-hover); overflow: hidden; }
.tm-bar i { display: block; height: 100%; border-radius: 99px; background: var(--tm-brand); }
.tm-bar.full i { background: var(--tm-red); }
.tm-clip { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tm-clip2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.tm-thumb { width: 44px; height: 55px; object-fit: cover; border-radius: 6px; background: var(--tm-hover); flex: none; display: grid; place-items: center; color: var(--tm-mute); }
.tm-thumb svg { width: 18px; height: 18px; }
.tm-tabs { display: flex; gap: .15rem; overflow-x: auto; padding: .2rem; border-radius: var(--tm-r-s); background: var(--tm-hover); width: fit-content; max-width: 100%; scrollbar-width: none; }
.tm-tabs button, .tm-tabs a { display: inline-flex; gap: .4rem; align-items: center; padding: .3rem .7rem; min-height: 1.85rem; border-radius: 6px; font-size: .85rem; font-weight: 500; color: var(--tm-mute); white-space: nowrap; }
.tm-tabs button:hover { color: var(--tm-ink); } .tm-tabs button.on { background: var(--tm-card); color: var(--tm-ink); box-shadow: 0 1px 2px rgb(20 24 40 / .1); }
.tm-tabs small { font-variant-numeric: tabular-nums; opacity: .75; }
.tm-linetabs { display: flex; gap: .25rem; overflow-x: auto; padding: 0 .6rem; border-bottom: 1px solid var(--tm-line); scrollbar-width: none; }
.tm-linetabs button { padding: .75rem .55rem .65rem; border-bottom: 2px solid transparent; color: var(--tm-mute); font-size: .86rem; font-weight: 500; white-space: nowrap; }
.tm-linetabs button:hover { color: var(--tm-ink); } .tm-linetabs button.on { color: var(--tm-ink); border-color: var(--tm-brand); }
.tm-linetabs small { margin-left: .25rem; font-variant-numeric: tabular-nums; color: var(--tm-mute); }
.tm-toolbar { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; padding: .7rem .85rem; border-bottom: 1px solid var(--tm-line); }
.tm-toolbar .tm-search { flex: 1 1 180px; width: auto; }
.tm-chip { height: 2.25rem; padding: 0 .85rem; border-radius: 999px; border: 1px solid var(--tm-line-2); background: var(--tm-card); color: var(--tm-ink); font: inherit; font-size: .85rem; cursor: pointer; }
.tm-chip.on { border-color: var(--tm-brand); background: var(--tm-brand-soft); color: var(--tm-brand-ink); font-weight: 600; }
.tm-pager { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; justify-content: space-between; padding: .65rem .85rem; border-top: 1px solid var(--tm-line); font-size: .85rem; color: var(--tm-mute); font-variant-numeric: tabular-nums; }
.tm-pager.bare { border: 0; padding-inline: 0; }
.tm-btn { display: inline-flex; gap: .4rem; align-items: center; justify-content: center; min-height: 2rem; border: 1px solid var(--tm-line-2); background: var(--tm-card); color: var(--tm-ink); border-radius: var(--tm-r-s); padding: 0 .7rem; font-size: .8125rem; font-weight: 550; }
.tm-btn:hover { background: var(--tm-hover); } .tm-btn:disabled { opacity: .45; cursor: not-allowed; }
.tm-btn svg { width: 1rem; height: 1rem; }
.tm-btn.icon { width: 2rem; padding: 0; }
.tm-kv { display: grid; grid-template-columns: max-content 1fr; gap: .45rem 1.25rem; margin: 0; font-size: .875rem; }
.tm-kv dt { color: var(--tm-mute); } .tm-kv dd { margin: 0; overflow-wrap: anywhere; }
.tm-scroll { overflow-x: auto; }
.tm-table { width: 100%; border-collapse: collapse; font-size: .875rem; }
.tm-table th { text-align: start; font-weight: 550; font-size: .8rem; color: var(--tm-mute); background: var(--tm-soft); padding: .55rem .85rem; white-space: nowrap; }
.tm-table td { padding: .65rem .85rem; border-top: 1px solid var(--tm-line); vertical-align: top; }
.tm-table .num { text-align: end; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tm-dock { position: sticky; bottom: 1rem; z-index: 10; display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; justify-content: space-between; padding: .65rem .75rem .65rem 1rem; border-radius: var(--tm-r); background: var(--tm-card); color: var(--tm-ink); border: 1px solid var(--tm-line-2); box-shadow: var(--tm-pop); }
.tm-loading { opacity: .55; transition: opacity .15s .15s; }
.tm-history { font-size: .85rem; } .tm-history summary, .tm-more-box > summary { cursor: pointer; font-weight: 550; min-height: 1.5rem; }
.tm-history ul { margin: .4rem 0 0; padding-left: 1.1rem; color: var(--tm-mute); list-style: disc; }
.tm-more-box > *:not(summary) { margin-top: .6rem; }
.tm-check { width: 22px; height: 22px; border-radius: 99px; display: grid; place-items: center; background: var(--tm-hover); color: var(--tm-mute); flex: none; font-size: .75rem; font-weight: 600; }
.tm-check.on { background: var(--tm-green-soft); color: var(--tm-green); } .tm-check svg { width: 14px; height: 14px; }

/* 5 Pages ------------------------------------------------------------------- */
/* Home */
.tm-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--tm-line); border-radius: var(--tm-r); background: var(--tm-card); overflow: hidden; }
.tm-stat { display: block; padding: .95rem 1.2rem; border-inline-start: 1px solid var(--tm-line); color: var(--tm-mute); font-size: .85rem; }
.tm-stat:first-child { border: 0; } a.tm-stat:hover { background: var(--tm-soft); }
.tm-stat b { display: block; margin-top: .15rem; font-size: 1.5rem; line-height: 1.2; font-weight: 600; letter-spacing: -.02em; font-variant-numeric: tabular-nums; color: var(--tm-ink); }
.tm-stat b.red { color: var(--tm-red); }
.tm-cols { display: grid; grid-template-columns: minmax(0, 1.9fr) minmax(280px, 1fr); gap: 1rem; align-items: start; }
.tm-task { display: flex; gap: .75rem; align-items: center; padding: .8rem 1.1rem; border-top: 1px solid var(--tm-line); }
.tm-task:first-of-type { border-top: 0; } .tm-task:hover { background: var(--tm-soft); }
.tm-dotmark { width: 8px; height: 8px; border-radius: 99px; background: var(--tm-brand); flex: none; } .tm-dotmark.red { background: var(--tm-red); } .tm-dotmark.amber { background: #d08a1d; }
.tm-cardhead { display: flex; justify-content: space-between; align-items: center; gap: .75rem; padding: .85rem 1.1rem; border-bottom: 1px solid var(--tm-line); }
.tm-list > * + * { border-top: 1px solid var(--tm-line); }
.tm-item { display: flex; gap: .8rem; align-items: center; padding: .65rem 1.1rem; min-width: 0; }
a.tm-item:hover { background: var(--tm-soft); }
.tm-quick { display: grid; gap: .1rem; padding: .4rem; }
.tm-quick a { display: flex; gap: .7rem; align-items: center; padding: .5rem .6rem; border-radius: var(--tm-r-s); } .tm-quick a:hover { background: var(--tm-hover); }
.tm-quick svg { width: 1.2rem; height: 1.2rem; color: var(--tm-mute); flex: none; }

/* Studio */
.tm-studio { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.25rem; }
.tm-step { display: grid; gap: .75rem; padding: 1.1rem 1.2rem; border-bottom: 1px solid var(--tm-line); }
.tm-step:last-child { border-bottom: 0; }
.tm-stephead { display: flex; gap: .6rem; align-items: center; font-weight: 600; }
.tm-composer .tm-prompt-input, .tm-composer textarea.tm-prompt-input { min-height: 6rem; line-height: 1.5; }
.tm-mode-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .6rem; }
.tm-mode-card { display: flex; flex-direction: column; gap: .3rem; text-align: left; padding: .8rem .9rem; border-radius: var(--tm-r); border: 1px solid var(--tm-line-2); background: var(--tm-card); color: var(--tm-ink); cursor: pointer; font: inherit; transition: border-color .12s, background .12s; }
.tm-mode-card svg { width: 1.25rem; height: 1.25rem; color: var(--tm-mute); }
.tm-mode-card strong { font-size: .875rem; font-weight: 600; line-height: 1.35; } .tm-mode-card .tm-mute { font-size: .8rem; }
.tm-mode-card:hover { background: var(--tm-soft); }
.tm-mode-card.on { border-color: var(--tm-brand); box-shadow: inset 0 0 0 1px var(--tm-brand); background: var(--tm-brand-soft); } .tm-mode-card.on svg { color: var(--tm-brand-ink); }
.tm-tools > summary { cursor: pointer; font-weight: 550; }
.tm-tools-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: .75rem; margin-top: .9rem; }
.tm-tool { display: flex; flex-direction: column; justify-content: space-between; gap: .6rem; padding: .8rem .9rem; border-radius: var(--tm-r); border: 1px solid var(--tm-line); }
.tm-tool-copy { display: grid; gap: .15rem; } .tm-tool-copy strong { font-size: .875rem; font-weight: 600; }
.tm-gen { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 1rem 1.5rem; padding: 1.1rem 1.2rem; }
.tm-gen + .tm-gen { border-top: 1px solid var(--tm-line); }
.tm-gen-title { grid-column: 1 / -1; display: flex; gap: .75rem; justify-content: space-between; align-items: flex-start; }
.tm-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 130px), 1fr)); gap: .75rem; align-content: start; }
.tm-pick { position: relative; display: block; border-radius: var(--tm-r-s); overflow: hidden; background: var(--tm-hover); cursor: pointer; aspect-ratio: 4 / 5; }
.tm-pick img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tm-pick:has(input:checked) { box-shadow: 0 0 0 3px var(--tm-brand); }
.tm-pick input { position: absolute; top: .5rem; left: .5rem; width: 1.35rem; height: 1.35rem; z-index: 1; }
.tm-wait, .tm-fail { aspect-ratio: 4 / 5; border-radius: var(--tm-r-s); display: grid; place-content: center; justify-items: center; text-align: center; gap: .5rem; padding: .7rem; font-size: .8rem; }
.tm-wait { background: linear-gradient(100deg, var(--tm-soft) 30%, var(--tm-line) 50%, var(--tm-soft) 70%); background-size: 300% 100%; animation: tm-wait 1.8s linear infinite; }
.tm-fail { background: var(--tm-red-soft); }
.tm-caption { padding: .8rem .9rem; border-radius: var(--tm-r-s); background: var(--tm-soft); align-content: start; align-self: start; }
.tm-gen-caption { display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; margin: 0; }
.tm-tags { display: flex; flex-wrap: wrap; gap: .3rem; } .tm-tag { color: var(--tm-brand-ink); font-size: .8rem; }
.tm-guide { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 1rem; overflow-y: auto; }
.tm-guide-backdrop { position: fixed; inset: 0; border: 0; background: rgb(15 18 28 / .5); cursor: pointer; }
.tm-guide-panel { position: relative; width: min(100%, 560px); display: grid; gap: 1rem; padding: 1.4rem; border-radius: 14px; background: var(--tm-card); color: var(--tm-ink); box-shadow: var(--tm-pop); }
.tm-guide-steps { margin: 0; padding: 0; list-style: none; display: grid; gap: .75rem; font-size: .9rem; line-height: 1.45; }
.tm-guide-steps li { display: flex; gap: .7rem; }
.tm-guide-check { display: flex; gap: .5rem; align-items: center; font-size: .85rem; color: var(--tm-mute); }
@keyframes tm-wait { to { background-position: -300% 0; } }

/* Posts and approvals: list and open post */
.tm-split { display: grid; grid-template-columns: minmax(0, 1fr) 408px; gap: 1rem; align-items: start; }
.tm-split.solo { grid-template-columns: minmax(0, 1fr); }
.tm-rows { display: block; }
.tm-prow { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: .8rem; align-items: center; padding: .6rem .85rem; border-top: 1px solid var(--tm-line); }
.tm-prow.sel { grid-template-columns: auto auto minmax(0, 1fr) auto; }
.tm-prow:first-child { border-top: 0; } .tm-prow:hover { background: var(--tm-soft); }
.tm-prow-open { text-align: start; min-width: 0; display: grid; gap: .15rem; font-size: .875rem; color: var(--tm-ink); }
.tm-prow-open::after { content: ''; position: absolute; inset: 0; }
.tm-prow .tm-sel { position: relative; z-index: 1; width: 1.15rem; height: 1.15rem; }
.tm-prow-meta { display: flex; flex-wrap: wrap; gap: .25rem .6rem; align-items: center; color: var(--tm-mute); font-size: .8rem; }
.tm-prow-end { display: grid; justify-items: end; gap: .25rem; font-size: .8rem; color: var(--tm-mute); font-variant-numeric: tabular-nums; white-space: nowrap; }
.tm-pane { position: sticky; top: calc(var(--tm-top) + 1rem); display: flex; flex-direction: column; padding: 0; overflow: hidden; }
.tm-pane-body { padding: 1rem; display: flex; flex-direction: column; gap: .9rem; }
.tm-brief { display: flex; gap: .9rem; align-items: flex-start; }
.tm-brief-img { position: relative; flex: none; width: 96px; aspect-ratio: 4 / 5; border-radius: var(--tm-r-s); overflow: hidden; background: var(--tm-hover); cursor: zoom-in; } .tm-brief-img img { width: 100%; height: 100%; object-fit: cover; }
.tm-brief-n { position: absolute; right: 5px; bottom: 5px; padding: 0 .4rem; border-radius: 6px; background: rgb(15 18 28 / .75); color: #fff; font-size: .72rem; }
.tm-brief-when { font-weight: 600; font-variant-numeric: tabular-nums; } .tm-brief .tm-link { margin-top: .35rem; }
.tm-brief-cap { display: grid; gap: .3rem; justify-items: start; } .tm-brief-cap p { margin: 0; line-height: 1.5; } .tm-clamp { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.tm-pane-foot { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; padding: .75rem 1rem; border-top: 1px solid var(--tm-line); background: var(--tm-card); }
.tm-pane-foot .tm-main > .fi-btn, .tm-pane-foot .tm-main { flex: 1; width: 100%; }
.tm-pane-close { display: none; }
.tm-pane .tm-pane-foot .fi-btn { min-height: 2rem; padding: .3rem .6rem; font-size: .8125rem; gap: .3rem; }
.tm-pane-foot { order: 1; border-top: 0; border-bottom: 1px solid var(--tm-line); } .tm-pane-body { order: 2; } .tm-day-panel .tm-pane-foot { order: 0; border-top: 1px solid var(--tm-line); border-bottom: 0; }
.tm-phone { width: min(100%, 250px); margin-inline: auto; padding: 5px; border-radius: 26px; background: var(--tm-line); flex: none; }
.tm-screen { border-radius: 21px; overflow: hidden; background: #fff; color: #111; font-size: .82rem; }
.tm-bartop { display: none; }
.tm-who { display: flex; align-items: center; gap: .5rem; padding: .65rem .75rem; font-weight: 600; }
.tm-who span { width: 28px; height: 28px; border-radius: 99px; display: grid; place-items: center; color: #fff; background: #c22d72; font-size: .78rem; flex: none; }
.tm-who.facebook span { background: #1666d6; }
.tm-slides { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.tm-slides img { flex: 0 0 100%; width: 100%; max-height: 320px; object-fit: cover; scroll-snap-align: start; }
.tm-slides.crop img { aspect-ratio: var(--tm-frame, 4 / 5); max-height: none; height: auto; }
.tm-slide-dots { display: flex; justify-content: center; gap: 4px; padding-top: .5rem; } .tm-slide-dots i { width: 6px; height: 6px; border-radius: 9px; background: #c9ced8; } .tm-slide-dots i:first-child { background: #2b50d0; }
.tm-acts { display: flex; gap: .7rem; padding: .55rem .75rem .1rem; color: #222; } .tm-acts svg { width: 19px; height: 19px; }
.tm-cap { padding: .35rem .75rem .9rem; max-height: 130px; overflow-y: auto; white-space: pre-line; overflow-wrap: anywhere; }
.tm-more { border: 0; background: none; padding: 0; color: #6b6b6b; font: inherit; font-weight: 600; cursor: pointer; }
.tm-preview-note { margin: .55rem 0 0; font-size: .8rem; color: var(--tm-mute); text-align: center; }
.tm-order { display: flex; gap: .45rem; overflow-x: auto; padding-bottom: .15rem; }
.tm-order-item, .tm-order-add { position: relative; flex: none; width: 76px; }
.tm-order-item img, .tm-order-add img { width: 76px; height: 95px; object-fit: cover; border-radius: 7px; display: block; }
.tm-order-item[draggable=true] { cursor: grab; }
.tm-order-n { position: absolute; left: 4px; top: 4px; min-width: 18px; height: 18px; border-radius: 99px; background: rgb(11 17 32 / .72); color: #fff; font-size: .7rem; font-weight: 600; display: grid; place-items: center; }
.tm-order-tools { display: flex; gap: 2px; margin-top: 4px; }
.tm-order-tools button { width: 24px; height: 26px; border: 1px solid var(--tm-line-2); background: var(--tm-card); color: var(--tm-ink); border-radius: 6px; line-height: 1; }
.tm-order-tools button:hover { background: var(--tm-hover); } .tm-order-tools button:disabled { opacity: .35; }
.tm-order-add { border-radius: 7px; } .tm-order-add span { position: absolute; right: 4px; bottom: 4px; width: 20px; height: 20px; border-radius: 99px; background: var(--tm-brand); color: #fff; display: grid; place-items: center; }
.tm-crop-row { display: flex; gap: .45rem; overflow-x: auto; } .tm-crop-shot { flex: none; width: 92px; margin: 0; }
.tm-crop-shot img { width: 92px; object-fit: cover; border-radius: 7px; display: block; background: #111; } .tm-crop-shot figcaption { margin-top: .2rem; font-size: .72rem; color: var(--tm-mute); text-align: center; }

.tm-lightbox { position: relative; width: 290px; max-width: calc(100vw - 2rem); margin-block: auto; }
.tm-lightbox .tm-phone { width: 100%; background: transparent; padding: 0; } .tm-lightbox .tm-screen { border-radius: 16px; box-shadow: var(--tm-pop); } .tm-lightbox .tm-slides img { max-height: 46vh; } .tm-lightbox .tm-cap { max-height: none; overflow: visible; white-space: normal; } .tm-lightbox .tm-cap > span { white-space: pre-line; }
.tm-lightbox .tm-who { padding-inline-end: 3rem; }
.tm-lightbox-x { position: absolute; top: .45rem; right: .5rem; z-index: 1; width: 2.25rem; height: 2.25rem; display: grid; place-items: center; border-radius: 99px; background: #f1f2f5; color: #1d2230; } .tm-lightbox-x:hover { background: #e4e5ea; } .tm-lightbox-x svg { width: 1.2rem; height: 1.2rem; }

/* Media */
.tm-media { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(46%, 170px), 1fr)); gap: .85rem; }
.tm-media figure { margin: 0; display: grid; grid-template-columns: minmax(0, 1fr); align-content: start; gap: .35rem; min-width: 0; }
.tm-media a { display: block; aspect-ratio: 1; border-radius: var(--tm-r-s); overflow: hidden; background: var(--tm-hover); }
.tm-media img { width: 100%; height: 100%; object-fit: cover; }

/* Calendar */
.tm-cal-wrap { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem; align-items: start; }
.tm-cal-month { font-size: 1.05rem; min-width: 9rem; text-align: center; }
.tm-cal-nav { gap: .25rem; flex-wrap: nowrap; }
.tm-cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: .5rem; padding: .75rem; background: var(--tm-soft); }
.tm-head { padding: .1rem; color: var(--tm-mute); font-size: .8rem; font-weight: 550; text-align: center; }
.tm-day { min-height: 128px; padding: .4rem .45rem .5rem; background: var(--tm-card); border: 1px solid var(--tm-line); border-radius: var(--tm-r); min-width: 0; cursor: pointer; }
.tm-day:hover { border-color: var(--tm-line-2); } .tm-cal.week .tm-day { min-height: 380px; }
.tm-day.out { background: transparent; } .tm-day.out > * { opacity: .55; }
.tm-day.over, .tm-day.selected { background: var(--tm-brand-soft); box-shadow: inset 0 0 0 2px var(--tm-brand); }
.tm-dayhead { display: flex; gap: .35rem; align-items: center; min-width: 0; }
.tm-num { display: inline-grid; place-items: center; min-width: 24px; height: 24px; font-size: .82rem; font-weight: 500; color: var(--tm-mute); font-variant-numeric: tabular-nums; flex: none; }
.tm-day.today .tm-num { background: var(--tm-brand); color: #fff; border-radius: 99px; }
.tm-holiday { font-size: .7rem; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tm-dots { display: none; justify-content: center; flex-wrap: wrap; gap: 3px; align-items: center; min-height: 10px; }
.tm-dot { width: 7px; height: 7px; border-radius: 99px; background: var(--tm-mute); flex: none; }
.tm-dot.approved { background: #23996b; } .tm-dot.pending { background: #d08a1d; } .tm-dot.rejected, .tm-dot.failed { background: #cf4038; } .tm-dot.published { background: #4a6fe8; } .tm-dot.publishing, .tm-dot.unknown { background: #8a6ae0; }
.tm-ev { --c: var(--tm-line-2); --b: var(--tm-hover); margin-top: .3rem; padding: .3rem .45rem; border-radius: 7px; background: var(--b); border-inline-start: 3px solid var(--c); font-size: .78rem; color: var(--tm-ink); cursor: grab; min-width: 0; }
.tm-ev[draggable=false] { cursor: pointer; } .tm-ev:hover { filter: brightness(.975); }
.tm-ev.approved { --c: #23996b; --b: var(--tm-green-soft); } .tm-ev.pending { --c: #d08a1d; --b: var(--tm-amber-soft); } .tm-ev.rejected, .tm-ev.failed { --c: #cf4038; --b: var(--tm-red-soft); } .tm-ev.published { --c: #4a6fe8; --b: var(--tm-brand-soft); } .tm-ev.publishing, .tm-ev.unknown { --c: #8a6ae0; --b: var(--tm-violet-soft); }
.tm-ev-top { display: flex; gap: .35rem; align-items: center; } .tm-ev-top strong { font-weight: 600; font-variant-numeric: tabular-nums; } .tm-ev .tm-platform svg { width: 15px; height: 15px; border-radius: 4px; } .tm-ev .tm-platform span { display: none; }
.tm-ev-edit { margin-inline-start: auto; width: 24px; height: 24px; display: grid; place-items: center; border-radius: 6px; color: var(--tm-mute); } .tm-ev-edit:hover { background: var(--tm-card); color: var(--tm-ink); } .tm-ev-edit svg { width: 15px; height: 15px; }
.tm-ev .tm-clip { color: var(--tm-mute); min-width: 0; }
.tm-more-count { display: block; margin-top: 3px; padding-inline: .35rem; font-size: .76rem; font-weight: 550; color: var(--tm-brand-ink); }
.tm-legend { display: flex; flex-wrap: wrap; gap: .35rem .9rem; padding: .65rem .85rem; font-size: .8rem; color: var(--tm-mute); border-top: 1px solid var(--tm-line); } .tm-legend span { display: inline-flex; gap: .35rem; align-items: center; }
.tm-day-panel { padding: 0; position: fixed; inset: var(--tm-top) 0 0 auto; z-index: 20; width: 380px; display: flex; flex-direction: column; border-width: 0 0 0 1px; border-radius: 0; box-shadow: var(--tm-pop); } .tm-day-panel[hidden] { display: none; }
.tm-day-panel .tm-list { overflow-y: auto; min-height: 0; flex: 1; }
.tm-day-item { display: grid; gap: .5rem; padding: .8rem 1rem; }
.tm-listday { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 1rem; padding: .8rem 1rem; border-top: 1px solid var(--tm-line); } .tm-listday:first-child { border: 0; }
.tm-listday .tm-ev { margin: 0 0 6px; }

/* Connections, settings */
.tm-grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.tm-grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; align-items: start; }
.tm-brandtile { width: 40px; height: 40px; border-radius: var(--tm-r); display: grid; place-items: center; color: #fff; font-weight: 600; flex: none; }
.tm-brandtile.meta { background: #0a5fd6; } .tm-brandtile.gemini { background: #4a6fd0; } .tm-brandtile.openai { background: #22252d; } .tm-brandtile.claude { background: #b0583a; }
.tm-page { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; justify-content: space-between; padding: .7rem .85rem; border: 1px solid var(--tm-line); border-radius: var(--tm-r-s); }
.tm-page.on { border-color: var(--tm-green); background: var(--tm-green-soft); }
.tm-swatch { width: 1.25rem; height: 1.25rem; border-radius: 5px; border: 1px solid var(--tm-line-2); flex: none; }
.tm-danger { border-color: color-mix(in srgb, var(--tm-red) 35%, var(--tm-line)); }

/* Help */
.tm-help { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 1.75rem; align-items: start; }
.tm-toc { position: sticky; top: calc(var(--tm-top) + 1rem); display: grid; gap: .1rem; }
.tm-toc a { padding: .4rem .65rem; border-radius: var(--tm-r-s); color: var(--tm-mute); font-size: .86rem; } .tm-toc a:hover { background: var(--tm-hover); color: var(--tm-ink); }
.tm-help-body { display: grid; gap: 1rem; max-width: 900px; min-width: 0; }
.tm-help-body > section { scroll-margin-top: calc(var(--tm-top) + 1rem); display: grid; gap: .85rem; }
.tm-help-body h2 { font-size: 1.1rem; font-weight: 600; letter-spacing: -.01em; margin: 0; }
.tm-help-body p { margin: 0; line-height: 1.6; max-width: 70ch; }
.tm-flow { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .6rem; margin: 0; padding: 0; list-style: none; counter-reset: f; }
.tm-flow a { position: relative; display: grid; align-content: start; gap: .3rem; height: 100%; padding: .9rem; border: 1px solid var(--tm-line); border-radius: var(--tm-r); font-size: .85rem; color: var(--tm-mute); line-height: 1.45; }
.tm-flow a:hover { background: var(--tm-soft); border-color: var(--tm-line-2); } .tm-flow strong { color: var(--tm-ink); font-size: .9rem; font-weight: 600; }
.tm-flow svg { width: 1.35rem; height: 1.35rem; color: var(--tm-brand-ink); }
.tm-faq { border-top: 1px solid var(--tm-line); } .tm-faq:first-of-type { border: 0; }
.tm-faq summary { cursor: pointer; padding: .75rem 0; font-weight: 550; } .tm-faq p { padding-bottom: .9rem; color: var(--tm-mute); font-size: .9rem; }
.tm-prose { line-height: 1.6; overflow-wrap: anywhere; padding: 1.5rem 1.75rem; }
.tm-prose > * { max-width: 75ch; } .tm-prose > table { max-width: 100%; }
.tm-prose h1 { font-size: 1.25rem; font-weight: 650; margin: 0 0 .75rem; }
.tm-prose h2 { font-size: 1.1rem; font-weight: 600; margin: 1.75rem 0 .5rem; scroll-margin-top: 5rem; }
.tm-prose h3 { font-size: .98rem; font-weight: 600; margin: 1.2rem 0 .4rem; scroll-margin-top: 5rem; }
.tm-prose p, .tm-prose ul, .tm-prose ol, .tm-prose blockquote, .tm-prose table { margin: 0 0 .75rem; }
.tm-prose ul { list-style: disc; } .tm-prose ol { list-style: decimal; } .tm-prose ul, .tm-prose ol { padding-inline-start: 1.3rem; } .tm-prose li + li { margin-top: .25rem; }
.tm-prose a { color: var(--tm-brand-ink); font-weight: 550; } .tm-prose a:hover { text-decoration: underline; }
.tm-prose code { font-size: .85em; background: var(--tm-hover); padding: .1rem .35rem; border-radius: 5px; }
.tm-prose blockquote { padding: .7rem .9rem; border-radius: var(--tm-r-s); background: var(--tm-amber-soft); } .tm-prose blockquote p { margin: 0; }
.tm-prose table { width: 100%; border-collapse: collapse; font-size: .875rem; } .tm-prose th, .tm-prose td { border-bottom: 1px solid var(--tm-line); padding: .5rem .6rem; text-align: start; vertical-align: top; } .tm-prose th { color: var(--tm-mute); font-weight: 550; }
.tm-prose hr { border: 0; border-top: 1px solid var(--tm-line); margin: 1.25rem 0; }

/* 6 Small screens ----------------------------------------------------------- */
@media (min-width: 1280px) { .tm-split:not(.opened) .tm-pane-close { display: none; } }
@media (max-width: 1279px) {
    .tm-split { grid-template-columns: minmax(0, 1fr); }
    .tm-pane { display: none; }
    .tm-split.opened .tm-pane { display: flex; position: fixed; inset: 0 0 0 auto; overflow-y: auto; z-index: 45; width: min(100%, 440px); max-height: none; border-radius: 0; border-width: 0 0 0 1px; box-shadow: var(--tm-pop); }
    .tm-pane-close { display: inline-flex; }
    .tm-pane .tm-pane-body { flex: 1 0 auto; } .tm-pane .tm-pane-foot { order: 3; position: sticky; bottom: 0; border-top: 1px solid var(--tm-line); border-bottom: 0; }
    .tm-pane-back { position: fixed; inset: 0; z-index: 44; background: rgb(15 18 28 / .45); }
    .tm-mode-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1280px) { .tm-pane-back { display: none; } .tm-prow.on { background: var(--tm-brand-soft); box-shadow: inset 3px 0 0 var(--tm-brand); } }
@media (max-width: 1100px) {
    .tm-cols, .tm-grid2, .tm-grid3, .tm-help { grid-template-columns: minmax(0, 1fr); }
    .tm-flow { grid-template-columns: minmax(0, 1fr); } .tm-flow a { grid-template-columns: auto minmax(0, 1fr); gap: .1rem .7rem; } .tm-flow svg { grid-row: span 2; }
    .tm-toc { position: static; display: flex; overflow-x: auto; } .tm-toc a { white-space: nowrap; background: var(--tm-card); border: 1px solid var(--tm-line); }
}
@media (max-width: 700px) {
    .fi-main { padding-block: 1rem 2rem; }
    .fi-btn, .tm-btn, .tm-select, .tm-search { min-height: 2.5rem; } .tm-btn.icon { width: 2.5rem; }
    .tm-search, .tm-select, .fi-input, .tm-prompt-input { font-size: 16px !important; }
    .tm-topbar-label { display: none; }
    .tm-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } .tm-stat { padding: .8rem .9rem; } .tm-stat:nth-child(odd) { border-inline-start: 0; } .tm-stat:nth-child(n+3) { border-top: 1px solid var(--tm-line); }
    .tm-gen { grid-template-columns: minmax(0, 1fr); padding: 1rem; } .tm-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .tm-step { padding: 1rem; } .tm-mode-card .tm-mute { display: none; } .tm-mode-card { padding: .7rem; }
    .tm-toolbar .tm-search { flex-basis: 100%; } .tm-toolbar .tm-select { flex: 1 1 calc(50% - .5rem); min-width: 0; padding-inline: .6rem 1.6rem; } .tm-toolbar > .tm-grow { display: none; } .tm-toolbar .tm-cal-nav { flex: 1 1 60%; } .tm-toolbar > .tm-btn { flex: none; }
    .tm-prow { grid-template-columns: auto minmax(0, 1fr); } .tm-prow.sel { grid-template-columns: auto auto minmax(0, 1fr); } .tm-prow-end { grid-column: -2 / -1; display: flex; justify-content: space-between; justify-self: stretch; align-items: center; margin-top: -.4rem; }
    .tm-cal-nav { justify-content: space-between; } .tm-cal-month { min-width: 0; }
    .tm-head { padding: .4rem 0; text-align: center; font-size: .72rem; }
    .tm-cal { gap: 4px; padding: .5rem; } .tm-day-panel { position: static; width: auto; border-width: 1px; border-radius: var(--tm-r); box-shadow: none; }
    .tm-day, .tm-cal.week .tm-day { display: flex; flex-direction: column; align-items: center; gap: 2px; min-height: 52px; padding: .3rem .1rem; touch-action: manipulation; }
    .tm-day-events, .tm-holiday { display: none; } .tm-dots { display: flex; }
    .tm-listday { grid-template-columns: minmax(0, 1fr); gap: .5rem; }
    .tm-item { padding-inline: .9rem; } .tm-prose { padding: 1.1rem; } .tm-prose table { display: block; overflow-x: auto; }
    .tm-dock { padding: .6rem; } .tm-dock .fi-btn { width: 100%; }
    .tm-kv { grid-template-columns: minmax(0, 1fr); gap: .1rem; } .tm-kv dd { margin-bottom: .5rem; }
}
@media (prefers-reduced-motion: reduce) { .tm-wait { animation: none; } .tm-loading { transition: none; } }
