:root {
  color-scheme: light;
  font-family: Inter, "Segoe UI", system-ui, sans-serif;
  color: #17243b;
  background: #f4f6fb;
  --canvas: #f4f6fb;
  --surface: #fff;
  --navy: #14223a;
  --ink: #17243b;
  --muted: #536178;
  --border: #e0e6f0;
  --blue: #254fdb;
  --blue-dark: #193db5;
  --blue-light: #eaf0ff;
  --danger: #a52742;
  --sidebar-width: 234px;
  --radius: 16px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-width: 300px; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .65; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: var(--blue-dark); }
h1, h2, h3, p { margin: 0; }
:focus-visible { outline: 3px solid #557bf9; outline-offset: 3px; }
.icon { display: block; width: 20px; height: 20px; flex: 0 0 auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link { position: fixed; top: 12px; left: 12px; z-index: 9; padding: 12px 18px; border-radius: 8px; background: white; transform: translateY(-160%); }
.skip-link:focus { transform: none; }
.initial-state { display: grid; min-height: 100svh; place-content: center; gap: 14px; text-align: center; color: var(--muted); padding: 24px; }

.workspace { display: grid; grid-template-columns: var(--sidebar-width) minmax(0, 1fr); min-height: 100svh; }
.sidebar {
  position: sticky; top: 0; height: 100svh; display: flex; flex-direction: column;
  padding: 26px 16px 18px; background: var(--navy); color: white;
}
.brand { display: flex; align-items: center; gap: 11px; width: fit-content; font-size: 1.05rem; font-weight: 720; color: inherit; text-decoration: none; letter-spacing: -.025em; }
.sidebar .brand { margin: 0 7px 38px; }
.brand-mark {
  display: grid; width: 39px; height: 39px; flex: 0 0 auto; place-items: center; border-radius: 12px;
  background: #3562ed; color: white; box-shadow: inset 0 0 0 1px #ffffff2b, 0 4px 12px #070f2840;
}
.brand-mark .icon { width: 23px; height: 23px; }
.side-nav { display: grid; gap: 5px; }
.nav-link {
  display: flex; align-items: center; gap: 11px; min-height: 46px; padding: 0 12px;
  border-radius: 9px; color: #c7d2e6; text-decoration: none; font-size: .875rem; font-weight: 620;
}
.nav-link .icon { color: #aab9d4; }
.nav-link:hover { background: #1f314f; color: white; }
.nav-link[aria-current="page"] { color: white; background: #29436c; }
.nav-link[aria-current="page"] .icon { color: #aac0ff; }
.sidebar-account {
  display: flex; align-items: center; gap: 9px; margin-top: auto; padding: 15px 0 0 3px;
  border-top: 1px solid #33415b; min-width: 0;
}
.account-copy { display: grid; gap: 3px; min-width: 0; flex: 1; }
.account-copy strong, .account-copy small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-copy strong {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  white-space: normal; overflow-wrap: anywhere; font-size: .875rem; font-weight: 650; line-height: 1.2;
}
.account-copy small { color: #bdc9df; font-size: .8125rem; }
.avatar { display: inline-grid; width: 31px; height: 31px; flex: 0 0 auto; place-items: center; border-radius: 50%; font-size: .73rem; font-weight: 750; }
.avatar.tone-0 { color: #3945a7; background: #e8ebff; }
.avatar.tone-1 { color: #87501a; background: #f9ead6; }
.avatar.tone-2 { color: #12695f; background: #dff3ef; }
.avatar.tone-3 { color: #8c3869; background: #f5e5f0; }
.sidebar-account .avatar { width: 35px; height: 35px; }

.workspace-bar {
  min-height: 67px; display: flex; justify-content: space-between; align-items: center;
  gap: 16px; padding: 0 clamp(20px, 3vw, 44px); background: var(--surface); border-bottom: 1px solid var(--border);
}
.breadcrumb { display: flex; align-items: center; gap: 10px; font-size: .875rem; color: var(--muted); }
.breadcrumb strong { color: var(--ink); font-weight: 650; }
.breadcrumb .separator { color: #97a4ba; }
.utility { display: flex; align-items: center; gap: 12px; }
.demo-label { border-radius: 7px; padding: 5px 9px; background: #edf2fb; color: #405273; font-size: .8125rem; font-weight: 650; white-space: nowrap; }
.icon-button {
  display: inline-grid; place-items: center; width: 41px; height: 41px; flex: 0 0 auto;
  border: 1px solid transparent; border-radius: 9px; background: transparent; color: #4b5972;
}
.icon-button:hover { background: #edf2fa; color: var(--ink); }
.sidebar .icon-button { color: #bdc9df; width: 33px; height: 38px; }
.sidebar .icon-button:hover { background: #293d5e; color: white; }
.notification-toggle { position: relative; border-color: var(--border); }
.notification-count {
  position: absolute; top: -5px; right: -6px; min-width: 19px; height: 19px; padding: 0 4px;
  border-radius: 12px; border: 2px solid white; background: var(--blue); color: white;
  font-size: .68rem; font-weight: 700; line-height: 15px;
}
.notification-anchor { position: relative; }
.notification-panel {
  position: absolute; z-index: 4; top: calc(100% + 10px); right: 0; width: min(375px, calc(100vw - 32px));
  border: 1px solid var(--border); border-radius: 13px; background: white; box-shadow: 0 16px 38px #14223a21;
}
.notification-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 13px 16px; border-bottom: 1px solid var(--border); }
.notification-heading h2 { font-size: 1rem; }
.notification-list { max-height: min(55vh, 420px); overflow-y: auto; }
.notice {
  width: 100%; display: flex; align-items: flex-start; text-align: left; gap: 11px; padding: 12px 16px;
  border: 0; border-bottom: 1px solid #ebeff6; color: var(--ink); background: white;
}
.notice:last-child { border-bottom: 0; border-radius: 0 0 13px 13px; }
.notice:hover, .notice.unread { background: #f0f4ff; }
.notice .notice-text { display: grid; gap: 3px; min-width: 0; }
.notice strong { font-size: .9rem; overflow-wrap: anywhere; }
.notice span:not(.notice-icon) { font-size: .8125rem; color: var(--muted); }
.notice-icon { color: var(--blue); padding-top: 4px; }

.page { max-width: 1510px; padding: 34px clamp(20px, 3vw, 44px) 48px; margin: 0 auto; outline: none; }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 26px; }
.page-head h1 { margin: 0; font-size: clamp(1.8rem, 3vw, 2.4rem); line-height: 1.14; letter-spacing: -.038em; font-weight: 740; }
.page-head p { color: var(--muted); margin-top: 9px; line-height: 1.45; }
.page-head .today-line { display: flex; gap: 8px; align-items: center; font-size: .9375rem; }
.today-line .icon { width: 17px; height: 17px; color: #627593; }
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 43px;
  padding: 0 14px; border: 1px solid transparent; border-radius: 9px; font-size: .875rem;
  font-weight: 675; line-height: 1.25; text-decoration: none; text-align: center;
}
.button .icon { width: 18px; height: 18px; }
.button.primary { color: white; background: var(--blue); box-shadow: 0 3px 7px #254fdb26; }
.button.primary:hover { background: var(--blue-dark); }
.button.secondary { background: white; border-color: #dce3ef; color: #354664; }
.button.secondary:hover { border-color: #b4c4e4; background: #f9fbff; }
.button.subtle { color: var(--blue-dark); background: transparent; padding: 0 8px; min-height: 36px; }
.button.subtle:hover { background: var(--blue-light); }
.button.compact { min-height: 36px; padding: 0 11px; }

.metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 23px; }
.metric {
  position: relative; isolation: isolate; display: grid; justify-items: start; align-content: start; gap: 12px;
  min-width: 0; min-height: 134px; text-align: left; padding: 16px 17px 14px;
  border: 1px solid var(--border); border-radius: var(--radius); background: white; color: var(--ink); overflow: hidden;
  transition: box-shadow .16s, border-color .16s;
}
.metric:hover { border-color: #a9b8d7; box-shadow: 0 5px 18px #25355c10; }
.metric-title { min-width: 0; font-size: .875rem; font-weight: 650; line-height: 1.25; color: var(--muted); }
.metric-top { display: flex; align-items: center; gap: 10px; width: 100%; }
.metric-icon, .entry-icon {
  flex: 0 0 auto; display: inline-grid; place-items: center; width: 36px; height: 36px;
  border-radius: 10px; color: #2750cb; background: #eaf0ff;
}
.metric.overdue .metric-icon { color: #a62a48; background: #fae8ee; }
.metric.blocked .metric-icon { color: #875c13; background: #fff1d8; }
.metric.week .metric-icon { color: #0e6a64; background: #e0f3f0; }
.metric-value { font-size: 2.14rem; line-height: 1; font-weight: 740; letter-spacing: -.06em; font-variant-numeric: tabular-nums; }
.metric.hero {
  border-color: #234bd0; color: white; background: linear-gradient(122deg, #294fe1, #2446c5);
  box-shadow: 0 4px 10px #254fdb25;
}
.metric.hero:hover { border-color: #193da9; box-shadow: 0 6px 14px #254fdb40; }
.metric.hero::after {
  position: absolute; content: ""; z-index: -1; width: 170px; height: 170px; right: -92px; bottom: -92px;
  border-radius: 50%; border: 1px solid #ffffff30; box-shadow: 0 0 0 18px #ffffff0d, 0 0 0 36px #ffffff0b, 0 0 0 54px #ffffff09;
}
.metric.hero .metric-title { color: #f0f3ff; }
.metric.hero .metric-icon { color: white; background: #ffffff2b; }

.dashboard-grid { display: grid; grid-template-columns: minmax(0, 2.08fr) minmax(270px, 1fr); gap: 20px; align-items: start; }
.dashboard-aside { display: grid; gap: 18px; }
.card { min-width: 0; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); box-shadow: 0 2px 4px #17295005; }
.card-head { min-height: 65px; padding: 12px 17px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.card-head h2 { display: flex; align-items: center; gap: 8px; font-size: 1.08rem; font-weight: 710; letter-spacing: -.02em; }
.card-head h2 .icon { width: 17px; height: 17px; color: #4b61a6; }
.card-head .button { white-space: nowrap; }
.card-list { list-style: none; margin: 0; padding: 0 17px 6px; }
.card-list > li { border-top: 1px solid #e9edf5; }
.brief-entry, .upcoming-item {
  display: grid; width: 100%; text-align: left; border: 0; background: transparent; color: var(--ink); padding: 13px 0; gap: 5px;
}
.brief-entry:hover .item-title, .upcoming-item:hover .item-title { color: var(--blue-dark); text-decoration: underline; text-underline-offset: 3px; }
.item-title { font-size: .9375rem; font-weight: 670; overflow-wrap: anywhere; }
.item-meta { color: var(--muted); font-size: .8125rem; line-height: 1.3; }
.brief-body { color: var(--muted); font-size: .875rem; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.upcoming-item { grid-template-columns: auto 1fr; align-items: center; gap: 11px; }
.upcoming-copy { min-width: 0; display: grid; gap: 4px; }
.calendar-tile { display: grid; place-items: center; align-content: center; gap: 1px; width: 43px; min-height: 44px; background: #edf2ff; color: #2348bd; border-radius: 9px; }
.calendar-tile strong { font-size: 1.12rem; line-height: 1; }
.calendar-tile span { font-size: .75rem; }

.task-table { width: 100%; border-collapse: collapse; text-align: left; }
.task-table thead { background: #f6f8fc; }
.task-table th { padding: 10px 12px; border-top: 1px solid #edf0f6; border-bottom: 1px solid #edf0f6; color: #4e5e77; font-size: .875rem; white-space: nowrap; font-weight: 650; }
.task-table td { padding: 10px 12px; border-bottom: 1px solid #edf0f6; vertical-align: middle; }
.task-table tbody tr:last-child td { border-bottom: 0; }
.task-table tbody tr:hover { background: #f8faff; }
.task-table th:first-child, .task-table td:first-child { padding-left: 17px; }
.task-table th:last-child, .task-table td:last-child { padding-right: 17px; }
.task-table td:first-child { width: 100%; }
.task-link { display: block; padding: 2px 0; border: 0; text-align: left; background: transparent; color: var(--ink); font-size: .9375rem; font-weight: 670; line-height: 1.3; overflow-wrap: anywhere; }
.task-link:hover { color: var(--blue-dark); text-decoration: underline; text-underline-offset: 3px; }
.task-priority { display: block; font-size: .8125rem; color: var(--muted); margin-top: 3px; }
.task-priority.high { color: #a22f48; }
.assignee { display: flex; align-items: center; gap: 7px; font-size: .875rem; color: #3e4d66; min-width: 0; }
.assignee-name { min-width: 0; line-height: 1.25; }
.task-table .assignee-name { min-width: 125px; max-width: 155px; overflow-wrap: anywhere; }
.task-date { white-space: nowrap; font-size: .875rem; font-weight: 620; color: #46546c; }
.task-date.late { color: var(--danger); }
.late-caption { display: block; margin-top: 3px; color: var(--danger); font-size: .8125rem; white-space: nowrap; }
.badge {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 8px; border-radius: 7px;
  color: #364e75; background: #edf1f8; font-size: .8125rem; font-weight: 670; white-space: nowrap;
}
.badge .icon { width: 14px; height: 14px; }
.badge.status { font-size: .875rem; }
.badge.status::before { width: 6px; height: 6px; flex: 0 0 auto; border-radius: 50%; background: currentColor; content: ""; }
.badge.status.new { color: #405372; background: #ecf0f7; }
.badge.status.in_progress { color: #2552b8; background: #e9f0ff; }
.badge.status.blocked { color: #855411; background: #fff1d7; }
.badge.status.done { color: #176548; background: #e1f4ec; }
.badge.restricted { color: #57468e; background: #f1edfc; }
.badge.overdue-label { color: #a22f48; background: #fbeaf0; }
.table-card { overflow: hidden; }
.results-heading { padding: 14px 17px; color: var(--muted); font-size: .875rem; font-weight: 620; }
.count { font-variant-numeric: tabular-nums; }
.empty { color: var(--muted); padding: 24px 17px; line-height: 1.5; }
.empty.small { padding: 15px 17px 18px; font-size: .9rem; }

.filters { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; margin-bottom: 15px; }
.filter-icon { display: grid; place-items: center; width: 37px; height: 39px; color: #536581; }
.select-wrap { display: block; position: relative; }
.select-wrap::after {
  pointer-events: none; position: absolute; right: 14px; top: calc(50% - 5px); width: 8px; height: 8px;
  content: ""; border: solid #647491; border-width: 0 1.5px 1.5px 0; transform: rotate(45deg);
}
.control { width: 100%; min-height: 43px; background: white; color: var(--ink); border: 1px solid #d6dfed; border-radius: 9px; padding: 9px 11px; }
.control::placeholder { color: #64728a; opacity: 1; }
.control:hover { border-color: #aebddd; }
select.control { appearance: none; padding-right: 33px; }
textarea.control { display: block; min-height: 95px; resize: vertical; line-height: 1.45; }
.filters .control { font-size: .875rem; min-height: 40px; }
.search-wrap { position: relative; flex: 1 1 230px; max-width: 340px; }
.search-wrap .icon { position: absolute; pointer-events: none; top: 10px; left: 11px; color: #60718e; }
.search-wrap .control { padding-left: 38px; }
.library-count { margin: 3px 0 12px; color: var(--muted); font-size: .875rem; }
.entry-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px; }
.entry-button {
  display: flex; flex-direction: column; align-items: flex-start; gap: 10px; min-height: 204px; width: 100%;
  text-align: left; color: var(--ink); border: 1px solid var(--border); padding: 16px; border-radius: var(--radius);
  background: white; box-shadow: 0 2px 4px #17295005; transition: box-shadow .16s, border-color .16s;
}
.entry-button:hover { border-color: #a5b7dc; box-shadow: 0 6px 18px #25355c10; }
.entry-top { display: flex; align-items: center; justify-content: space-between; gap: 6px; width: 100%; }
.entry-top .badge { white-space: normal; }
.entry-icon.announcement { color: #4b43a0; background: #eeeaff; }
.entry-icon.procedure { color: #176558; background: #e3f3ee; }
.entry-icon.date { color: #815810; background: #fff2da; }
.entry-icon.contact { color: #8b3865; background: #f9e8f2; }
.entry-category { color: var(--muted); font-size: .8125rem; font-weight: 650; margin-top: 2px; }
.entry-title { font-size: 1.08rem; letter-spacing: -.017em; font-weight: 705; overflow-wrap: anywhere; }
.entry-button .item-meta { margin-top: auto; }

.responso-brief { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 0; padding: 0 17px; }
.responso-brief > div { display: grid; gap: 4px; align-content: space-between; padding: 9px; border-radius: 9px; background: #f4f7fc; }
.responso-brief dt { font-size: .8125rem; font-weight: 630; color: var(--muted); }
.responso-brief dd { margin: 0; font-weight: 740; font-size: 1.25rem; }
.responso-card-meta { margin: 10px 17px 15px; }
.responso-time { color: var(--muted); font-size: .8125rem; line-height: 1.4; }
.responso-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.responso-metrics { margin-top: 0; margin-bottom: 9px; }
.responso-metric dd { margin: 0; }
.responso-metric.all { color: white; background: #274bd1; border-color: #274bd1; }
.responso-metric.all .metric-title { color: #f0f3ff; }
.responso-metric.all .metric-icon { color: white; background: #ffffff2b; }
.responso-context { display: flex; flex-wrap: wrap; align-items: baseline; gap: 7px 16px; margin: 0 0 16px; color: var(--muted); font-size: .875rem; }
.responso-breakdowns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-bottom: 18px; }
.responso-breakdowns:empty { display: none; }
.responso-breakdown { padding: 14px 16px; }
.responso-breakdown h2 { font-size: 1rem; margin-bottom: 8px; }
.responso-breakdown ul { padding: 0; margin: 0; list-style: none; }
.responso-breakdown li { display: grid; grid-template-columns: minmax(0, 1fr) minmax(28px, 1fr) auto; gap: 10px; align-items: center; min-height: 27px; color: var(--muted); font-size: .875rem; }
.responso-breakdown li span { min-width: 0; overflow-wrap: anywhere; }
.responso-breakdown meter { min-width: 0; width: 100%; }
.responso-breakdown meter::-webkit-meter-optimum-value { background: #5074e7; border-radius: 3px; }
.responso-breakdown meter::-moz-meter-bar { background: #5074e7; }
#responso-filters { margin-top: 14px; }
.responso-task-filters { flex: 1 0 100%; min-inline-size: 0; margin: 1px 0 0; padding: 7px 10px 10px; border: 1px solid var(--border); border-radius: 9px; }
.responso-task-filters legend { padding: 0 4px; color: var(--muted); font-size: .875rem; font-weight: 650; }
.responso-task-filter-controls { display: flex; flex-wrap: wrap; gap: 9px; }
.responso-task-filter-controls .select-wrap { max-width: 100%; }
.responso-bulk-bar { position: sticky; top: 9px; z-index: 3; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 14px; margin-bottom: 10px; padding: 8px 11px; border: 1px solid #c5d4f5; border-radius: 9px; background: #f0f4ff; font-size: .875rem; }
.responso-bulk-bar strong { margin-left: 5px; color: var(--blue-dark); }
.responso-subject { display: block; overflow-wrap: anywhere; font-size: .9375rem; }
.responso-ticket-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 5px; font-size: .8125rem; color: var(--muted); margin-top: 3px; overflow-wrap: anywhere; }
.responso-linked-tasks { margin-top: 5px; }
.responso-task-empty { color: var(--muted); font-size: .8125rem; }
.responso-task-list { display: grid; gap: 5px; margin: 0; padding: 0; list-style: none; }
.responso-task-list li { min-width: 0; width: fit-content; max-width: 100%; padding: 4px 8px 5px; border-left: 2px solid #cfdbfa; border-radius: 0 7px 7px 0; background: #f6f8fc; }
.responso-task-list .task-link { color: var(--blue-dark); font-size: .875rem; }
.responso-task-title-row { display: flex; align-items: flex-start; gap: 3px; }
.responso-task-select { flex: none; display: grid; place-items: center; width: 26px; height: 26px; margin-left: -5px; cursor: pointer; }
.responso-task-select input { margin: 0; width: 16px; height: 16px; accent-color: var(--blue); cursor: pointer; }
.responso-task-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 3px 8px; color: var(--muted); font-size: .8125rem; overflow-wrap: anywhere; }
.responso-task-meta .badge { padding: 3px 6px; }
.responso-inline-toggle { min-height: 32px; padding: 0 5px; margin-top: 2px; }
.responso-inline-toggle .icon { width: 15px; height: 15px; }
.responso-inline-editor { width: min(310px, 100%); padding: 7px 0 1px; }
.responso-inline-form { gap: 8px; }
.responso-inline-form textarea.control { min-height: 58px; }
.responso-task-button { margin-top: 2px; }
.responso-task-button .icon { width: 15px; height: 15px; }
.responso-channel, .responso-agent, .responso-date { font-size: .875rem; color: var(--muted); overflow-wrap: anywhere; }
.responso-channel, .responso-agent { min-width: 85px; }
.responso-date { white-space: nowrap; }
.responso-table .responso-status { white-space: normal; overflow-wrap: anywhere; }
.responso-status.is-open { color: #254eae; background: #e9f0ff; }
.responso-pagination { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 9px; border-top: 1px solid var(--border); padding: 12px 14px; color: var(--muted); font-size: .875rem; }
.responso-pagination button:disabled { cursor: default; }

.dialog {
  width: min(560px, calc(100vw - 28px)); max-height: calc(100svh - 28px); padding: 0; overflow: auto;
  color: var(--ink); background: white; border: 0; border-radius: 17px; box-shadow: 0 24px 75px #09142955;
}
.dialog::backdrop { background: #13223c69; }
.dialog.drawer {
  position: fixed; inset: 0 0 0 auto; margin: 0; height: 100svh; max-height: 100svh;
  width: min(535px, 100vw); max-width: 100vw; border-radius: 17px 0 0 17px;
}
.dialog-header {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 13px; padding: 18px 19px 15px 23px;
  border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 1; background: white;
}
.dialog-header h2 { font-size: 1.31rem; letter-spacing: -.022em; line-height: 1.3; overflow-wrap: anywhere; margin: 5px 0; }
.dialog-header p { font-size: .875rem; color: var(--muted); }
.dialog-content { padding: 19px 23px 25px; }
.dialog-content .empty { padding: 5px 0; }
.dialog-content h3 { font-size: 1rem; margin-bottom: 9px; }
.dialog-content .prose { white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.6; }
.dialog-content .entry-details { margin-bottom: 14px; }
.dialog-content .entry-details > * { margin-right: 5px; }
.detail-meta { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 18px 0; gap: 10px; }
.detail-meta > div { border-radius: 9px; background: #f4f7fb; padding: 10px 9px; min-width: 0; }
.detail-meta dt { color: var(--muted); font-size: .8125rem; margin-bottom: 6px; }
.detail-meta dd { margin: 0; overflow-wrap: anywhere; font-size: .875rem; font-weight: 650; }
.detail-toolbar { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 13px; }
.detail-feedback { display: flex; align-items: center; gap: 7px; color: #176548; background: #e1f4ec; font-size: .875rem; border-radius: 9px; margin-bottom: 14px; padding: 8px 10px; }
.detail-feedback .icon { width: 17px; height: 17px; }
.detail-link { margin-top: 15px; }
.section-line { margin: 20px 0; border: 0; border-top: 1px solid var(--border); }
.form-grid { display: grid; gap: 14px; }
.two-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; }
.field { display: grid; align-content: start; gap: 6px; min-width: 0; }
.field-name { color: #344664; font-size: .875rem; font-weight: 660; }
.checkbox { display: flex; gap: 8px; align-items: center; color: #344664; font-size: .875rem; }
.checkbox input { accent-color: var(--blue); width: 17px; height: 17px; }
.form-error { color: var(--danger); font-size: .875rem; line-height: 1.5; }
.form-error:empty { display: none; }
.form-actions { display: flex; justify-content: flex-end; flex-wrap: wrap; align-items: center; gap: 8px; }
.activity-list { list-style: none; padding: 0; margin: 14px 0 0; }
.activity-list li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; border-top: 1px solid var(--border); padding: 11px 0; }
.activity-list .entry-icon { width: 30px; height: 30px; }
.activity-list .entry-icon .icon { width: 16px; height: 16px; }
.activity-list strong { font-size: .875rem; }
.activity-text { color: #3d4e6b; font-size: .875rem; margin-top: 4px; line-height: 1.45; overflow-wrap: anywhere; }
.multiline { white-space: pre-wrap; }
.toast {
  position: fixed; z-index: 5; bottom: 18px; right: 18px; max-width: min(390px, calc(100vw - 36px));
  padding: 11px 15px; display: flex; align-items: center; gap: 9px; border-radius: 10px; background: #193d34;
  color: white; font-size: .9rem; box-shadow: 0 8px 32px #14223a36;
}
.toast:empty { display: none; }
.toast.error { background: #84253b; }

.login-shell { min-height: 100svh; display: grid; grid-template-columns: minmax(310px, 1fr) minmax(460px, 1.13fr); }
.login-hero {
  position: relative; display: flex; flex-direction: column; justify-content: center; align-items: flex-start;
  padding: clamp(30px, 6vw, 100px); overflow: hidden; color: white; background: linear-gradient(145deg, #14223a 4%, #1d3362);
}
.login-hero-content { position: relative; z-index: 1; max-width: 400px; }
.login-hero .brand-mark { width: 53px; height: 53px; }
.login-hero .brand-mark .icon { width: 29px; height: 29px; }
.login-hero h1 { margin: 18px 0 10px; font-size: clamp(2.1rem, 5vw, 4rem); letter-spacing: -.055em; line-height: 1.03; }
.login-hero p { color: #d2ddf3; font-size: 1.08rem; line-height: 1.6; }
.login-hero::after {
  content: ""; position: absolute; width: 405px; height: 405px; border-radius: 30%;
  border: 1px solid #8ca8ff45; right: -185px; bottom: -180px; transform: rotate(21deg);
  box-shadow: 0 0 0 36px #819eff1a, 0 0 0 72px #819eff12, 0 0 0 108px #819eff0c;
}
.login-main { display: grid; place-items: center; background: #f3f6ff; padding: 30px; }
.login-card { width: min(100%, 440px); padding: 26px; }
.login-card h2 { font-size: 1.75rem; letter-spacing: -.04em; margin: 0 0 18px; }
.login-card h3 { font-size: 1rem; margin-bottom: 8px; }
.login-card .button.primary { width: 100%; }
.login-hint { color: var(--muted); margin-bottom: 16px; line-height: 1.45; }
.login-card .login-switch { display: flex; margin: 10px auto 0; }
.demo-options { display: grid; gap: 6px; }
.demo-option {
  display: flex; align-items: center; gap: 9px; width: 100%; min-height: 45px; text-align: left;
  padding: 6px 10px; border: 1px solid var(--border); border-radius: 9px; background: #f8faff; color: var(--ink);
}
.demo-option:hover { border-color: #a5b7dc; background: var(--blue-light); }
.demo-option strong { font-size: .875rem; flex: 1; }
.demo-option small { font-size: .8125rem; color: var(--muted); }

@media (max-width: 1180px) {
  :root { --sidebar-width: 205px; }
  .dashboard-grid { gap: 15px; }
  .task-table .avatar { display: none; }
  .task-table .assignee-name { min-width: 102px; }
}
@media (min-width: 521px) and (max-width: 1180px) {
  .dashboard-grid .task-table th, .dashboard-grid .task-table td { padding-left: 8px; padding-right: 8px; }
  .dashboard-grid .task-table th:first-child, .dashboard-grid .task-table td:first-child { padding-left: 14px; }
  .dashboard-grid .task-table th:last-child, .dashboard-grid .task-table td:last-child { padding-right: 13px; }
}
@media (max-width: 1030px) {
  .dashboard-grid { grid-template-columns: minmax(0, 1fr); }
  .dashboard-aside { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .entry-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .workspace { display: block; }
  .sidebar { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; height: auto; padding: 11px 15px 7px; }
  .sidebar .brand { margin: 0; }
  .sidebar .brand-mark { width: 34px; height: 34px; border-radius: 9px; }
  .side-nav { display: flex; flex-wrap: wrap; gap: 4px; grid-column: 1 / -1; grid-row: 2; }
  .nav-link { min-height: 40px; padding: 0 8px; gap: 6px; }
  .nav-link .icon { width: 17px; height: 17px; }
  .sidebar-account { grid-column: 2; grid-row: 1; margin: 0; padding: 0; border: 0; }
  .sidebar-account .avatar { width: 30px; height: 30px; }
  .account-copy { display: none; }
  .workspace-bar { min-height: 53px; padding: 0 16px; }
  .notification-toggle { width: 37px; height: 37px; }
  .page { padding: 22px 16px 30px; }
  .page-head { align-items: flex-start; margin-bottom: 18px; flex-wrap: wrap; }
  .metrics { gap: 10px; margin-bottom: 14px; }
  .metric { min-height: 108px; padding: 11px; gap: 9px; }
  .metric-top { gap: 7px; }
  .metric-icon { width: 29px; height: 29px; border-radius: 8px; }
  .metric-icon .icon { width: 17px; height: 17px; }
  .metric-value { font-size: 1.8rem; }
  .task-table .avatar { display: none; }
  .login-shell { display: block; }
  .login-hero { padding: 21px 25px; }
  .login-hero .brand-mark { width: 39px; height: 39px; }
  .login-hero .brand-mark .icon { width: 23px; height: 23px; }
  .login-hero h1 { margin: 10px 0 6px; }
  .login-hero p { font-size: .9375rem; }
  .login-main { padding: 15px; }
}
@media (max-width: 520px) {
  .responso-breakdowns { grid-template-columns: minmax(0, 1fr); }
  .responso-table .responso-channel, .responso-table .responso-agent { min-width: 0; }
  .responso-table .responso-agent { text-align: right; }
  .responso-table tr { grid-template-columns: minmax(0, 1fr) minmax(0, auto); }
  #responso-filters .select-wrap { max-width: 100%; }
  .dashboard-aside, .entry-grid { grid-template-columns: minmax(0, 1fr); }
  .page-head .primary { min-height: 40px; }
  .card-head { min-height: 56px; padding: 11px 12px; }
  .card-head h2 { font-size: 1rem; }
  .card-head .button { padding: 0 6px; }
  .task-table, .task-table tbody { display: block; }
  .task-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .task-table tr { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 3px 8px; padding: 8px 12px; border-top: 1px solid #edf0f6; }
  .task-table tbody td:first-child, .task-table tbody td:last-child, .task-table tbody td { border: 0; padding: 0; width: auto; }
  .task-table .task-cell { grid-column: 1 / -1; }
  .task-table .assignee-cell { min-width: 0; grid-column: 1 / -1; }
  .task-table .assignee-name { min-width: 0; max-width: none; }
  .task-table .status-cell { justify-self: end; }
  .task-table .task-priority, .task-table .assignee-name { margin-top: 0; }
  .task-table .task-link { padding: 4px 0; }
  .detail-meta { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dialog.drawer { border-radius: 0; }
  .dialog-header { padding: 10px 12px 10px 16px; }
  .dialog-content { padding: 15px 16px 20px; }
  .filters .filter-icon { display: none; }
  .filters .search-wrap { max-width: none; flex-basis: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
