@import url("/_tms-ui/tokens-v1.css");
/* One appearance for every TMS section. Released only by shell. */
:root {
  --tms-ui-font:var(--tms-font-family);
  --bg:var(--tms-background); --panel:var(--tms-surface); --panel-soft:#fafafa;
  --line:var(--tms-border); --text:var(--tms-text); --muted:var(--tms-muted);
  --accent:var(--tms-action); --accent-hover:var(--tms-action-hover);
  --accent-text:var(--tms-action-text); --yellow:var(--tms-accent);
  --yellow-soft:#f2f2f3; --topbar:var(--tms-navigation-height);
}
html,body {margin:0;background:var(--bg);color:var(--text);font-family:var(--tms-font-family)!important}
body {font-size:var(--tms-font-body)!important;line-height:var(--tms-line-height)!important}
button,input,textarea,select {font-family:var(--tms-font-family)!important;font-size:var(--tms-font-control)!important;line-height:1.5}
tms-navigation {display:block;height:58px;flex:0 0 58px}
.shell {grid-template-columns:268px minmax(0,1fr)!important;min-height:calc(100dvh - 58px)!important}
.sidebar {background:var(--panel)!important;border-right:1px solid var(--line)!important;min-height:calc(100dvh - 58px)!important}
.main,.content,.workspace {background:var(--bg)!important}
.sidebar a,.sidebar button {font-size:var(--tms-font-control)!important;border-radius:9px!important;font-weight:500}
.sidebar a:hover,.sidebar button:hover {background:#ececee!important}
.sidebar .active {background:#e8e8e9!important;color:var(--text)!important;font-weight:600!important}
.sidebar .nav a,.project-row,.all-row {min-height:40px;padding:9px 10px!important}
.nav-title,.section-label {color:var(--muted)!important;font-size:12px!important;letter-spacing:.05em!important;font-weight:600!important}
.topbar,.chat-head {min-height:56px;height:56px!important;padding:0 24px!important;border-bottom:1px solid var(--line)!important}
.top-title,.crumb {font-size:var(--tms-font-body)!important;font-weight:600!important;letter-spacing:0!important}
h1 {font-size:26px!important;font-weight:600!important;letter-spacing:-.02em}
h2 {font-size:20px!important;font-weight:600!important}
.btn,button[type=submit] {border-radius:10px!important;padding:9px 14px;border:1px solid #d8d8d8;font-weight:500!important}
.btn-primary,.btn.primary,.send {background:#171717!important;color:#fff!important;border-color:#171717!important}
.btn-primary:hover,.btn.primary:hover,.send:hover {background:#333!important}
input:not([type=checkbox]):not([type=radio]),select,textarea {border-radius:10px;border-color:#d8d8d8}
:is(input,select,textarea,button,a):focus-visible {outline:2px solid #777;outline-offset:3px}
.card,.stat,.table-wrap,.review-card {border:1px solid var(--line)!important;border-radius:12px!important;box-shadow:none!important;background:#fff!important}
.stat:hover {background:#fafafa!important}
.stat strong {font-size:24px;font-weight:600}
table {font-size:14px;border-collapse:collapse}
td,th {border-color:var(--line)!important;padding:12px!important}
th {font-size:var(--tms-font-control)!important;font-weight:500!important;background:#fafafa!important;color:#646464!important}
tr:hover td {background:#fafafa!important}
.task-link {font-weight:500!important}
.task-link:hover {color:#171717!important;text-decoration:underline}
.badge {font-size:13px!important}
.page-link.active {background:#e8e8e9!important;border-color:#d8d8d8!important}
.muted,.hint {color:var(--muted)!important}
.results-info,label {font-size:var(--tms-font-control)!important}
.msg {font-size:var(--tms-font-body)!important}
.msg-row.user .msg {background:#f2f2f3!important}
.composer {box-shadow:none!important;background:#fafafa!important}
.composer textarea {font-size:var(--tms-font-body)!important}
.composer-note {font-size:12px!important}
body[data-tms-section=tasks] .sidebar {padding:12px 10px 18px!important}
body[data-tms-section=tasks] .content {padding:24px!important}
body[data-tms-section=tasks] .table-wrap {overflow:auto}
body[data-tms-section=tasks] .userbox {font-size:14px}
body[data-tms-section=ai] .sidebar {padding:0!important}
body[data-tms-section=ai] .shell {height:calc(100dvh - 58px)!important}
@media (min-width:821px) {
  body[data-tms-section=tasks] .sidebar {display:block!important}
}
@media (max-width:820px) {
  .shell {grid-template-columns:minmax(0,1fr)!important}
  .topbar,.chat-head {padding:0 12px!important}
  body[data-tms-section=tasks] .content {padding:16px!important}
  body[data-tms-section=tasks] .search {min-width:0;width:100%}
  body[data-tms-section=tasks] .stats {grid-template-columns:1fr 1fr}
  body[data-tms-section=tasks] .sidebar {display:none}
}

button:disabled,input:disabled,select:disabled {opacity:.45;cursor:not-allowed}
