:root {
  color-scheme: dark;
  --bg: #111315;
  --panel: #191c1f;
  --panel-2: #202428;
  --muted: #a6adb5;
  --text: #f5f7f8;
  --line: #30363b;
  --green: #00f54a;
  --green-2: #00b838;
  --green-soft: rgba(0, 245, 74, 0.14);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.38);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
}

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.login-shell {
  background:
    linear-gradient(90deg, rgba(5, 8, 12, 0.18), rgba(5, 8, 12, 0.3) 42%, rgba(5, 8, 12, 0.78)),
    url("/static/assets/we-login-background.jpg?v=20260425-2") left center / auto 100% no-repeat #05080c;
}

.login-stage {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  min-height: 100vh;
  padding: clamp(104px, 13vh, 116px) 42px 72px;
}

.login-card {
  width: min(460px, 92vw);
  padding: 0;
  transform: translateY(78px) scale(1.38);
  transform-origin: top center;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.login-logo {
  display: block;
  width: min(273px, 72vw);
  margin: 0 auto;
  filter: drop-shadow(0 9px 24px rgba(224, 57, 47, 0.18));
}

.client-logo {
  display: block;
  width: 92px;
  max-height: 72px;
  margin: 0 auto 14px;
  object-fit: contain;
  filter: drop-shadow(0 0 16px rgba(255, 210, 92, 0.35));
}

.login-kicker,
.login-copy {
  color: rgba(255, 255, 255, 0.84);
  text-align: center;
}

.powered-by {
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 13px;
  font-weight: 700;
  text-align: center;
}

.login-kicker {
  display: none;
  margin: 0 0 66px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.login-copy {
  max-width: 420px;
  margin: 8px auto 0;
  font-size: 14px;
}

.login-form {
  display: grid;
  gap: 10px;
  width: min(238px, 100%);
  margin: 64px auto 0;
}

.login-form h1 {
  margin: 0 0 5px;
  color: #ffffff;
  font-size: 24px;
  font-weight: 500;
  letter-spacing: 0;
}

.login-form label,
.search {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
}

.login-form input,
.search input,
.composer textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.26);
  color: var(--text);
  outline: none;
}

.login-form input {
  height: 27px;
  padding: 0 13px;
  border-color: rgba(255, 255, 255, 0.26);
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.13), rgba(118, 124, 132, 0.22));
  backdrop-filter: blur(14px) saturate(1.22);
  color: rgba(210, 214, 220, 0.82);
  font-size: 9px;
  font-weight: 500;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 8px 22px rgba(0, 0, 0, 0.12);
}

.login-form input::placeholder {
  color: rgba(185, 190, 198, 0.72);
  font-weight: 500;
}

.login-form label {
  color: rgba(255, 255, 255, 0.9);
  font-size: 8px;
  font-weight: 500;
  text-transform: uppercase;
}

.login-form input:focus,
.search input:focus,
.composer textarea:focus {
  border-color: #e53b2f;
  box-shadow: 0 0 0 4px rgba(229, 59, 47, 0.18);
}

.login-form button,
#sendButton,
#uploadSubmit {
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--green), var(--green-2));
  color: #051008;
  font-weight: 800;
}

.login-form button {
  width: 94px;
  height: 24px;
  justify-self: end;
  margin-top: 9px;
  border-radius: 999px;
  background: #df3d34;
  color: #ffffff;
  font-size: 9px;
  box-shadow: 0 11px 26px rgba(223, 57, 47, 0.22);
}

.password-field {
  position: relative;
  display: block;
}

.password-field input {
  padding-right: 50px;
}

.login-form .password-toggle {
  position: absolute;
  top: 50%;
  right: 12px;
  width: 28px;
  height: 28px;
  justify-self: auto;
  margin: 0;
  transform: translateY(-50%);
  border: 0;
  border-radius: 50%;
  background: transparent;
  box-shadow: none;
  color: rgba(185, 190, 198, 0.76);
  line-height: 1;
}

.password-toggle svg {
  width: 15px;
  height: 15px;
  display: block;
  margin: auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.login-options {
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 4px;
}

.remember-me {
  display: inline-flex !important;
  grid-template-columns: none !important;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.78) !important;
  font-size: 13px !important;
}

.remember-me input {
  width: 16px;
  height: 16px;
  accent-color: var(--green);
}

.forgot-link {
  height: auto !important;
  margin: 0 !important;
  border: 0;
  background: transparent !important;
  box-shadow: none !important;
  color: var(--green) !important;
  font-size: 13px;
  font-weight: 800;
}

.provider-lockup {
  position: fixed;
  right: 28px;
  bottom: 10px;
  display: block;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.provider-lockup span {
  display: none;
}

.provider-lockup img {
  width: 154px;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 0 10px rgba(224, 57, 47, 0.22));
}

.form-error {
  min-height: 20px;
  color: #ff7676;
  font-size: 12px;
  text-align: left;
}

.app-shell {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr) 300px;
  min-height: 100vh;
}

.rail,
.context-panel {
  background: rgba(21, 24, 27, 0.92);
  border-color: var(--line);
}

.rail {
  display: flex;
  flex-direction: column;
  gap: 22px;
  min-height: 100vh;
  padding: 22px 18px;
  border-right: 1px solid var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand img {
  width: 62px;
  height: 42px;
  object-fit: contain;
  filter: drop-shadow(0 0 18px rgba(0, 245, 74, 0.42));
}

.brand strong {
  display: block;
  font-size: 22px;
}

.brand span {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
}

.system-switch {
  display: grid;
  gap: 8px;
}

.system-card {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--text);
  text-align: left;
}

.system-card.live {
  border-color: rgba(0, 245, 74, 0.38);
  background: rgba(0, 245, 74, 0.08);
}

.system-card span {
  color: var(--muted);
  font-size: 12px;
}

.quick-actions {
  display: grid;
  gap: 8px;
}

.quick-actions button {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  color: #e9f6ec;
  text-align: left;
}

.mini-we-mark {
  width: 36px;
  height: 18px;
  object-fit: contain;
  filter: drop-shadow(0 0 8px rgba(0, 245, 74, 0.7));
}

.tab-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 6px;
  border-radius: 18px;
  background: #111416;
}

.tab,
.toplink,
.mini-button,
.icon-button,
.avatar,
#attachButton {
  border: 1px solid transparent;
  color: var(--muted);
  background: transparent;
}

.tab {
  padding: 10px;
  border-radius: 14px;
  font-weight: 700;
}

.tab.active,
.toplink.active {
  color: var(--text);
  background: var(--panel-2);
}

.search input {
  height: 44px;
  padding: 0 14px;
}

.side-section {
  min-height: 0;
}

.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  color: #d5d9de;
  font-weight: 800;
}

.mini-button {
  padding: 6px 10px;
  border-color: var(--line);
  border-radius: 999px;
}

.document-list,
.conversation-list {
  display: grid;
  gap: 8px;
}

.doc-item,
.conversation-item {
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px solid transparent;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.035);
}

.doc-item strong,
.conversation-item strong {
  font-size: 14px;
}

.doc-item span,
.conversation-item span {
  color: var(--muted);
  font-size: 12px;
}

.workspace {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 100vh;
  padding: 22px 36px 24px;
  background:
    radial-gradient(circle at 78% 18%, rgba(0, 245, 74, 0.08), transparent 30%),
    linear-gradient(180deg, #202225, #111315 58%);
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.toplink {
  padding: 9px 14px;
  border-radius: 999px;
  font-weight: 750;
  text-decoration: none;
}

.toplink.subtle {
  color: rgba(255, 255, 255, 0.62);
}

.provider-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.provider-chip img {
  width: 76px;
  max-height: 24px;
  object-fit: contain;
}

.icon-button,
.avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

.avatar {
  background: linear-gradient(135deg, #d9ffe3, var(--green));
  color: #06170b;
  font-weight: 900;
  overflow: hidden;
  padding: 6px;
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.welcome {
  width: min(860px, 100%);
  margin: 52px auto 26px;
  text-align: center;
}

.pill {
  display: inline-flex;
  padding: 10px 18px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  color: #d9ffe3;
  font-weight: 800;
}

.welcome h1 {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
  margin: 24px 0 12px;
  font-size: clamp(52px, 7vw, 86px);
  font-weight: 500;
  letter-spacing: 0;
}

.heading-we-mark {
  width: min(230px, 44vw);
  height: auto;
  filter: drop-shadow(0 0 28px rgba(0, 245, 74, 0.72));
}

.welcome p {
  max-width: 720px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.65;
}

.prompt-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 28px;
}

.operations-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 30px;
  text-align: left;
}

.metric-card,
.flow-card,
.register-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.045);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.18);
}

.metric-card {
  display: grid;
  gap: 6px;
  padding: 16px;
}

.metric-card span,
.metric-card small {
  color: var(--muted);
}

.metric-card strong {
  color: #eaffef;
  font-size: 24px;
}

.workbench-preview {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 12px;
  margin-top: 12px;
  text-align: left;
}

.flow-card,
.register-card {
  padding: 16px;
}

.flow-card ol {
  display: grid;
  gap: 10px;
  margin: 12px 0 0;
  padding-left: 20px;
  color: #e7ece9;
  line-height: 1.45;
}

.register-row {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) 86px 92px;
  gap: 8px;
  padding: 9px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--muted);
  font-size: 12px;
}

.register-row.head {
  color: #eaffef;
  font-weight: 800;
}

.register-row strong {
  color: var(--green);
  font-size: 12px;
}

.prompt-chips button {
  max-width: 250px;
  overflow: hidden;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel-2);
  color: #e5e9ec;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chat-panel {
  display: grid;
  gap: 16px;
  width: min(860px, 100%);
  margin: 0 auto;
}

.message {
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.045);
  line-height: 1.6;
}

.message.user {
  margin-left: auto;
  max-width: 720px;
  background: rgba(0, 245, 74, 0.1);
}

.message.assistant {
  max-width: 820px;
}

.message-label {
  display: flex;
  align-items: center;
  margin-bottom: 6px;
  color: var(--green);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.message-we-mark {
  width: 38px;
  height: 18px;
  object-fit: contain;
  filter: drop-shadow(0 0 8px rgba(0, 245, 74, 0.7));
}

.message-geo-mark {
  width: 22px;
  height: 22px;
  margin-right: 7px;
  border-radius: 50%;
  object-fit: cover;
  filter: drop-shadow(0 0 8px rgba(0, 245, 74, 0.38));
}

.composer {
  width: min(860px, 100%);
  margin: auto auto 0;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(13, 15, 17, 0.84);
  box-shadow: var(--shadow);
}

.composer textarea {
  min-height: 132px;
  padding: 20px;
  resize: vertical;
  border: 0;
  background: transparent;
  line-height: 1.5;
}

.composer-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px 16px;
}

.composer-tools {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 13px;
}

#attachButton {
  width: 36px;
  height: 36px;
  border-color: var(--line);
  border-radius: 50%;
  font-size: 22px;
}

#sendButton {
  min-width: 92px;
  height: 42px;
}

.context-panel {
  display: grid;
  align-content: start;
  gap: 16px;
  min-height: 100vh;
  padding: 22px 18px;
  border-left: 1px solid var(--line);
}

.panel-card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
}

.panel-card h2 {
  margin: 6px 0 8px;
  font-size: 19px;
}

.panel-card p,
.sources-empty {
  color: var(--muted);
  line-height: 1.55;
}

.overline {
  margin: 0;
  color: var(--green);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.source {
  display: grid;
  gap: 6px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.source:last-child {
  border-bottom: 0;
}

.source strong {
  font-size: 13px;
}

.source span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.status-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  color: var(--muted);
}

.status-grid strong {
  color: #dcffe5;
}

.upload-dialog {
  border: 0;
  background: transparent;
}

.upload-dialog::backdrop {
  background: rgba(0, 0, 0, 0.66);
}

.dialog-card {
  position: relative;
  display: grid;
  gap: 16px;
  width: min(460px, 92vw);
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #171a1d;
  box-shadow: var(--shadow);
}

.dialog-card h2 {
  margin: 0;
}

.dialog-card p {
  margin: 0;
  color: var(--muted);
}

.dialog-card input {
  padding: 14px;
  border: 1px dashed var(--line);
  border-radius: 16px;
}

.dialog-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: var(--panel-2);
  color: var(--text);
  font-size: 20px;
}

#uploadSubmit {
  height: 44px;
}

.form-note {
  min-height: 20px;
}

.portal-shell {
  grid-template-columns: 88px minmax(0, 1fr) minmax(360px, 28vw);
  min-height: 100vh;
  background:
    radial-gradient(circle at 22% 18%, rgba(223, 61, 52, 0.1), transparent 34%),
    radial-gradient(circle at 72% 12%, rgba(0, 245, 74, 0.06), transparent 26%),
    linear-gradient(135deg, #171a1d 0%, #0e1012 54%, #070809 100%);
}

.portal-rail {
  align-items: center;
  gap: 14px;
  padding: 18px 12px;
  background: rgba(9, 11, 13, 0.74);
  backdrop-filter: blur(18px);
}

.rail-brand {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin-bottom: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.035);
}

.rail-brand img {
  width: 46px;
  height: auto;
  filter: drop-shadow(0 0 14px rgba(223, 61, 52, 0.44));
}

.rail-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.035);
  color: rgba(245, 247, 248, 0.72);
  font-weight: 900;
}

.rail-icon.active,
.rail-icon:hover {
  border-color: rgba(223, 61, 52, 0.52);
  background: rgba(223, 61, 52, 0.14);
  color: #ffffff;
}

.rail-bottom {
  margin-top: auto;
}

.portal-workspace {
  min-height: 100vh;
  padding: 24px;
  overflow: auto;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.024), transparent 38%),
    transparent;
}

.portal-topbar {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(260px, 420px) auto auto;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
}

.portal-topbar h1,
.assistant-head h2,
.hero-strip h2 {
  margin: 0;
  letter-spacing: 0;
}

.portal-topbar h1 {
  font-size: 28px;
}

.portal-search {
  position: relative;
  display: block;
}

.portal-search span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.portal-search input {
  width: 100%;
  height: 42px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.055);
  color: var(--text);
  outline: 0;
}

.mode-toggle {
  min-width: 210px;
  background: rgba(255, 255, 255, 0.055);
}

.portal-home,
.workspace-drawer {
  display: grid;
  gap: 16px;
}

.hero-strip {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 104px;
  align-items: center;
  gap: 22px;
  min-height: 164px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.03)),
    radial-gradient(circle at 92% 12%, rgba(223, 61, 52, 0.18), transparent 26%);
  box-shadow: var(--shadow);
}

.hero-strip h2 {
  margin-top: 8px;
  font-size: clamp(34px, 4vw, 58px);
  font-weight: 800;
}

.hero-strip p:not(.overline) {
  max-width: 760px;
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.hero-strip img {
  width: 96px;
  height: auto;
  opacity: 0.88;
}

.module-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr 1fr;
  gap: 14px;
}

.module-card {
  display: grid;
  align-content: start;
  gap: 10px;
  min-height: 156px;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.045);
  color: var(--text);
  text-align: left;
  text-decoration: none;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.16);
}

.module-card.primary {
  border-color: rgba(223, 61, 52, 0.42);
  background:
    linear-gradient(135deg, rgba(223, 61, 52, 0.18), rgba(255, 255, 255, 0.045));
}

.module-card:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.2);
}

.module-card span,
.module-card small {
  color: var(--muted);
}

.module-card strong {
  font-size: 28px;
  letter-spacing: 0;
}

.portal-metrics {
  margin-top: 0;
}

.workspace-drawer {
  grid-template-columns: 0.85fr 1.15fr;
  margin-top: 16px;
}

.assistant-rail {
  display: grid;
  grid-template-rows: auto minmax(220px, 1fr) auto auto;
  gap: 14px;
  min-height: 100vh;
  max-height: 100vh;
  padding: 22px 18px;
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(12, 14, 16, 0.82);
  backdrop-filter: blur(18px);
}

.assistant-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.assistant-platform {
  display: inline-flex;
  align-items: baseline;
  gap: 14px;
  min-width: 0;
}

.assistant-platform strong {
  color: #f5f7f8;
  font-size: 21px;
  font-weight: 850;
  letter-spacing: 0;
}

.assistant-platform span {
  position: relative;
  color: rgba(245, 247, 248, 0.72);
  font-size: 13px;
  font-weight: 650;
  white-space: nowrap;
}

.assistant-platform span::before {
  content: "";
  display: inline-block;
  width: 1px;
  height: 16px;
  margin-right: 14px;
  transform: translateY(3px);
  background: rgba(255, 255, 255, 0.18);
}

.geo-avatar {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border: 1px solid rgba(0, 245, 74, 0.28);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  object-fit: cover;
  box-shadow: 0 0 18px rgba(0, 245, 74, 0.18);
}

.assistant-head h2 {
  margin-top: 4px;
  font-size: 26px;
}

.assistant-head strong {
  padding: 6px 10px;
  border: 1px solid rgba(0, 245, 74, 0.18);
  border-radius: 999px;
  color: #d9ffe3;
  background: rgba(0, 245, 74, 0.07);
  font-size: 12px;
}

.assistant-head .assistant-platform strong {
  padding: 0;
  border: 0;
  border-radius: 0;
  color: #f5f7f8;
  background: transparent;
  font-size: 21px;
}

.assistant-chat {
  width: 100%;
  min-height: 0;
  overflow: auto;
  align-content: start;
  margin: 0;
  padding-right: 4px;
}

.assistant-chat .message {
  width: 100%;
  max-width: none;
  padding: 14px;
  border-radius: 14px;
  font-size: 14px;
}

.assistant-chat .message.user {
  margin-left: 24px;
  width: calc(100% - 24px);
  background: rgba(223, 61, 52, 0.12);
}

.assistant-side {
  display: grid;
  gap: 10px;
  max-height: 260px;
  overflow: auto;
}

.panel-card.compact {
  padding: 12px;
  border-radius: 14px;
}

.assistant-composer {
  width: 100%;
  margin: 0;
  border-radius: 18px;
}

.assistant-composer textarea {
  min-height: 88px;
  padding: 14px;
}

.assistant-composer .composer-footer {
  padding: 8px 12px 12px;
}

.assistant-composer #sendButton {
  min-width: 74px;
  height: 36px;
  background: #df3d34;
  color: #fff;
}

.assistant-composer #attachButton {
  width: 32px;
  height: 32px;
  font-size: 18px;
}

.dashboard-shell {
  grid-template-columns: 220px minmax(520px, 1fr) minmax(320px, 29vw);
  grid-template-rows: 78px minmax(0, 1fr);
  background:
    radial-gradient(circle at 26% 18%, rgba(223, 61, 52, 0.08), transparent 28%),
    linear-gradient(135deg, #0b1012, #07090a 62%, #050606);
}

.dashboard-sidebar {
  grid-row: 1 / 3;
  align-items: stretch;
  gap: 18px;
  padding: 0;
  background: rgba(8, 11, 12, 0.92);
  backdrop-filter: blur(18px);
}

.sidebar-logo {
  display: grid;
  align-content: center;
  min-height: 102px;
  padding: 18px 28px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-logo img {
  width: 132px;
  height: auto;
  filter: drop-shadow(0 0 16px rgba(223, 61, 52, 0.32));
}

.sidebar-nav {
  display: grid;
  gap: 4px;
  padding: 0 0 0;
}

.sidebar-nav hr {
  width: calc(100% - 36px);
  height: 1px;
  margin: 14px 18px;
  border: 0;
  background: rgba(255, 255, 255, 0.14);
}

.nav-item {
  display: grid;
  grid-template-columns: 24px 1fr auto;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  padding: 0 20px;
  border: 0;
  border-left: 4px solid transparent;
  background: transparent;
  color: rgba(245, 247, 248, 0.78);
  font-weight: 520;
  text-align: left;
  text-decoration: none;
}

.nav-item.active,
.nav-item:hover {
  border-left-color: #df3d34;
  background: rgba(223, 61, 52, 0.18);
  color: #fff;
}

.nav-item strong {
  display: inline-grid;
  place-items: center;
  min-width: 24px;
  height: 22px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 12px;
}

.nav-item strong.danger {
  background: #df3d34;
}

.system-status {
  display: grid;
  gap: 8px;
  margin: auto 12px 14px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.045);
}

.system-status strong {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
}

.system-status strong span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #63df5c;
}

.system-status small {
  color: #88e27c;
  font-size: 12px;
}

.system-status small + small {
  color: var(--muted);
}

.dashboard-main {
  grid-column: 2;
  grid-row: 2;
  padding: 0;
  min-height: 0;
  max-height: calc(100vh - 78px);
  overflow: auto;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 32%),
    transparent;
}

.dashboard-topbar {
  grid-column: 2 / 4;
  grid-row: 1;
  display: grid;
  grid-template-columns: auto auto minmax(320px, 1fr) 44px auto auto;
  align-items: center;
  gap: 14px;
  min-height: 78px;
  padding: 0 28px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(8, 11, 12, 0.72);
  backdrop-filter: blur(16px);
}

.hamburger,
.utility-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
}

.utility-icon {
  position: relative;
  font-weight: 900;
}

.utility-icon em {
  position: absolute;
  top: -6px;
  right: -6px;
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #df3d34;
  color: #fff;
  font-size: 11px;
  font-style: normal;
}

.dashboard-search input {
  height: 48px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.035);
}

.user-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 0;
  background: transparent;
  color: #fff;
}

.profile-menu {
  position: relative;
}

.user-chip {
  cursor: pointer;
}

.user-chip b {
  margin-left: 2px;
  color: rgba(222, 229, 231, 0.68);
  font-size: 13px;
  line-height: 1;
}

.user-menu {
  position: absolute;
  z-index: 30;
  top: calc(100% + 10px);
  right: 0;
  display: none;
  min-width: 210px;
  padding: 7px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  background:
    linear-gradient(180deg, rgba(22, 28, 31, 0.98), rgba(8, 11, 12, 0.98)),
    rgba(10, 13, 15, 0.98);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.34);
}

.user-menu.open {
  display: grid;
  gap: 4px;
}

.user-menu button,
.user-menu a {
  display: flex;
  align-items: center;
  min-height: 36px;
  padding: 0 10px;
  border: 0;
  border-radius: 8px;
  color: rgba(244, 247, 248, 0.9);
  background: transparent;
  font: inherit;
  font-size: 13px;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

.user-menu button:hover,
.user-menu button:focus-visible,
.user-menu a:hover,
.user-menu a:focus-visible {
  color: #fff;
  background: rgba(223, 61, 52, 0.2);
}

.user-menu a:last-child {
  color: #ffaaa5;
}

.top-logout {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 15px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.045);
  color: rgba(245, 247, 248, 0.94);
  font-size: 13px;
  font-weight: 760;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition:
    border-color 160ms ease,
    background 160ms ease,
    color 160ms ease,
    transform 160ms ease;
}

.top-logout span {
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  font-size: 17px;
  line-height: 1;
}

.top-logout:hover,
.top-logout:focus-visible {
  border-color: rgba(223, 61, 52, 0.46);
  background: rgba(223, 61, 52, 0.18);
  color: #fff;
  transform: translateY(-1px);
}

.user-chip img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.user-chip span {
  display: grid;
  text-align: left;
}

.user-chip small {
  color: var(--muted);
}

.dashboard-home {
  display: grid;
  gap: 16px;
  padding: 26px 28px 24px;
}

.dashboard-greeting {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(480px, 0.96fr);
  align-items: start;
  gap: 24px;
}

.dashboard-greeting h1 {
  margin: 0;
  font-size: clamp(30px, 3vw, 42px);
}

.dashboard-greeting p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 17px;
}

.dashboard-stats {
  display: grid;
  grid-template-columns: repeat(5, minmax(82px, 1fr));
  gap: 0;
}

.dashboard-stats div {
  display: grid;
  gap: 4px;
  padding: 0 18px;
  border-left: 1px solid rgba(255, 255, 255, 0.12);
}

.dashboard-stats span,
.dashboard-stats small {
  color: rgba(245, 247, 248, 0.72);
  font-size: 13px;
}

.dashboard-stats strong {
  font-size: 32px;
  line-height: 1;
}

.green {
  color: #63df5c !important;
}

.amber {
  color: #f4a544 !important;
}

.blue {
  color: #46aef4 !important;
}

.red {
  color: #ff554d !important;
}

.dashboard-modules {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.dashboard-module {
  min-height: 222px;
  align-content: end;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  position: relative;
}

.dashboard-module::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, transparent 22%, rgba(5, 7, 8, 0.88)),
    rgba(0, 0, 0, 0.18);
}

.dashboard-module > * {
  position: relative;
}

.dashboard-module strong {
  font-size: 30px;
}

.dashboard-module b {
  display: flex;
  justify-content: space-between;
  width: 100%;
  margin-top: 8px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 8px;
  background: rgba(5, 7, 8, 0.44);
  font-size: 14px;
}

.dtd-card {
  background-image: url("/static/assets/we-login-background.jpg");
}

.ims-card {
  background-image: linear-gradient(135deg, #1d2a2d, #0e1113);
}

.irp-card {
  background-image: linear-gradient(135deg, #342015, #0e1113);
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}

.activity-card,
.summary-card,
.today-card,
.quick-action-strip {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.045);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.18);
}

.activity-card,
.summary-card,
.today-card {
  padding: 16px;
}

.activity-list {
  display: grid;
  gap: 8px;
}

.activity-list div {
  display: grid;
  grid-template-columns: 74px 10px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 7px 0;
  color: var(--muted);
}

.activity-list strong,
.activity-list small {
  grid-column: 3;
}

.activity-list strong {
  color: #f2f4f5;
  font-size: 13px;
}

.activity-list small {
  font-size: 11px;
}

.activity-list em {
  grid-column: 4;
  grid-row: 1 / span 2;
  padding: 6px 9px;
  border-radius: 6px;
  background: rgba(99, 223, 92, 0.12);
  color: #82e67a;
  font-size: 11px;
  font-style: normal;
}

.dot,
.ring {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #a6adb5;
}

.dot.green,
.ring.green {
  background: #63df5c;
}

.dot.amber,
.ring.amber {
  background: #f4a544;
}

.dot.blue,
.ring.blue {
  background: #46aef4;
}

.dot.red,
.ring.red {
  background: #ff554d;
}

.summary-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.summary-grid div {
  display: grid;
  gap: 4px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.summary-grid span,
.summary-grid small {
  color: var(--muted);
  font-size: 12px;
}

.summary-grid strong {
  font-size: 28px;
}

.summary-grid .risk {
  background: rgba(223, 61, 52, 0.11);
}

.checklist {
  display: grid;
  gap: 4px;
}

.checklist div {
  display: grid;
  grid-template-columns: 14px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 11px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: #edf1f2;
  font-size: 13px;
}

.checklist strong {
  display: grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.ring {
  background: transparent;
  border: 2px solid #a6adb5;
}

.ring.green {
  border-color: #63df5c;
}

.ring.amber {
  border-color: #f4a544;
}

.ring.blue {
  border-color: #46aef4;
}

.ring.red {
  border-color: #ff554d;
}

.quick-action-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  padding: 14px;
}

.quick-action-strip button {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 12px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  text-align: left;
}

.quick-action-strip span {
  grid-column: 1;
  color: var(--muted);
  font-size: 12px;
}

.dtd-claim-card {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  background:
    linear-gradient(135deg, rgba(224, 68, 57, 0.12), transparent 42%),
    rgba(255, 255, 255, 0.045);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.18);
}

.dtd-claim-card .section-title small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.dtd-claim-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.dtd-claim-form label {
  display: grid;
  gap: 6px;
}

.dtd-claim-form label span,
.dtd-preview span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.dtd-claim-form input,
.dtd-claim-form select {
  width: 100%;
  min-height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(9, 12, 14, 0.72);
  color: #fff;
  padding: 0 10px;
  font: inherit;
}

.dtd-preview {
  display: grid;
  gap: 5px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 9px;
  background: rgba(0, 0, 0, 0.22);
}

.dtd-preview strong {
  color: #fff;
  font-size: clamp(14px, 1.1vw, 18px);
  letter-spacing: 0;
}

.dtd-claim-form button {
  min-height: 48px;
  align-self: end;
  border: 0;
  border-radius: 10px;
  background: #ee4038;
  color: #fff;
  font-weight: 900;
  cursor: pointer;
}

.dtd-claim-status {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.dtd-claim-status.success {
  color: #7fe47f;
}

.dtd-claim-status.error {
  color: #ff7b75;
}

.dtd-recent-claims {
  display: grid;
  gap: 6px;
}

.dtd-recent-claims:empty {
  display: none;
}

.dtd-claim-row {
  display: grid;
  grid-template-columns: minmax(170px, 0.9fr) minmax(160px, 1fr) minmax(90px, 0.45fr) auto;
  gap: 10px;
  align-items: center;
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--muted);
  font-size: 12px;
}

.dtd-claim-row strong {
  color: #fff;
  letter-spacing: 0;
}

.dtd-reserved-by {
  color: #d6dde0;
  font-weight: 800;
}

.dtd-reserved-by::before {
  content: "By ";
  color: var(--muted);
  font-weight: 700;
}

.dtd-claim-row em {
  justify-self: end;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(112, 231, 112, 0.12);
  color: #7fe47f;
  font-style: normal;
  font-size: 11px;
  font-weight: 800;
}

.dashboard-shell .assistant-rail {
  grid-column: 3;
  grid-row: 2;
  min-height: 0;
  max-height: calc(100vh - 78px);
  background: rgba(9, 11, 13, 0.92);
}

.dashboard-shell .assistant-head {
  min-height: 58px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.dashboard-shell .assistant-chat .message.assistant {
  background: rgba(255, 255, 255, 0.055);
}

.dashboard-shell .assistant-chat .message.user {
  background: rgba(255, 255, 255, 0.075);
}

@media (max-width: 1180px) {
  .portal-shell:not(.dashboard-shell) {
    grid-template-columns: 72px minmax(0, 1fr);
  }

  .portal-shell:not(.dashboard-shell) .assistant-rail {
    grid-column: 1 / -1;
    min-height: 520px;
    max-height: none;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-left: 0;
  }

  .portal-shell:not(.dashboard-shell) .portal-topbar {
    grid-template-columns: 1fr;
  }

  .portal-shell:not(.dashboard-shell) .module-grid,
  .portal-shell:not(.dashboard-shell) .workspace-drawer {
    grid-template-columns: 1fr;
  }

  .dashboard-shell {
    grid-template-columns: 190px minmax(480px, 1fr) 320px;
  }

  .dashboard-shell .assistant-rail {
    grid-column: auto;
    min-height: 100vh;
    max-height: 100vh;
    border-left: 1px solid rgba(255, 255, 255, 0.08);
    border-top: 0;
  }

  .dashboard-greeting,
  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-modules {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .dashboard-shell {
    grid-template-columns: 72px minmax(0, 1fr);
  }

  .dashboard-shell .assistant-rail {
    grid-column: 1 / -1;
    min-height: 560px;
    max-height: none;
    border-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }

  .dashboard-modules {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .login-stage {
    align-items: flex-start;
    justify-content: center;
    padding: 42px 28px 92px;
  }

  .login-card {
    transform: none;
  }

  .login-kicker {
    margin-bottom: 52px;
  }

  .login-form {
    margin: 0 auto;
  }

  .portal-shell {
    display: block;
  }

  .portal-shell:not(.dashboard-shell) .portal-rail {
    position: sticky;
    top: 0;
    z-index: 10;
    flex-direction: row;
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .portal-workspace {
    min-height: 72vh;
    padding: 18px;
  }

  .hero-strip {
    grid-template-columns: 1fr;
  }

  .operations-grid,
  .workbench-preview {
    grid-template-columns: 1fr;
  }

  .dashboard-sidebar {
    min-height: auto;
  }

  .sidebar-nav,
  .system-status {
    display: none;
  }

  .dashboard-topbar,
  .quick-action-strip,
  .dashboard-stats {
    grid-template-columns: 1fr;
  }
}

/* Dashboard critical guards: keep the reference layout intact even after cache/style collisions. */
body.dashboard-shell {
  display: grid !important;
  grid-template-columns: 220px minmax(520px, 1fr) minmax(320px, 29vw) !important;
  grid-template-rows: 78px minmax(0, 1fr) !important;
  min-height: 100vh !important;
  overflow: hidden !important;
}

.dashboard-shell .dashboard-sidebar {
  grid-row: 1 / 3 !important;
  min-width: 0 !important;
  min-height: 100vh !important;
  overflow: hidden auto !important;
}

.dashboard-shell .dashboard-main {
  grid-column: 2 !important;
  grid-row: 2 !important;
  min-width: 0 !important;
  min-height: 0 !important;
  max-height: calc(100vh - 78px) !important;
  overflow: auto !important;
}

.dashboard-shell .assistant-rail {
  grid-column: 3 !important;
  grid-row: 2 !important;
  min-width: 0 !important;
  min-height: 0 !important;
  max-height: calc(100vh - 78px) !important;
  overflow: hidden !important;
}

.dashboard-shell .dashboard-topbar {
  grid-column: 2 / 4 !important;
  grid-row: 1 !important;
  display: grid !important;
  grid-template-columns: auto auto minmax(260px, 1fr) 44px auto auto !important;
}

.dashboard-shell .user-chip img {
  width: 42px !important;
  height: 42px !important;
  max-width: 42px !important;
  max-height: 42px !important;
  object-fit: contain !important;
}

.dashboard-shell .sidebar-logo img {
  width: 132px !important;
  height: auto !important;
  max-width: 132px !important;
}

.dashboard-shell .dashboard-modules {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)) !important;
}

.dashboard-shell .dashboard-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)) !important;
}

@media (max-width: 1180px) {
  body.dashboard-shell {
    grid-template-columns: 190px minmax(480px, 1fr) 320px !important;
    grid-template-rows: 78px minmax(0, 1fr) !important;
  }
}

@media (max-width: 980px) {
  body.dashboard-shell {
    display: block !important;
    overflow: auto !important;
  }

  .dashboard-shell .dashboard-main,
  .dashboard-shell .assistant-rail {
    max-height: none !important;
    overflow: visible !important;
  }
}

/* Dashboard reference layout: top header + overview band, AI left, operations right. */
body.dashboard-shell {
  grid-template-columns: 220px minmax(380px, 31vw) minmax(620px, 1fr) !important;
  grid-template-rows: 54px 112px minmax(0, 1fr) !important;
  background:
    radial-gradient(circle at 56% 6%, rgba(223, 61, 52, 0.08), transparent 28%),
    linear-gradient(135deg, #0b1012, #07090a 62%, #050606) !important;
}

.dashboard-shell .dashboard-sidebar {
  grid-row: 1 / 4 !important;
}

.dashboard-shell .dashboard-topbar {
  grid-column: 2 / 4 !important;
  grid-row: 1 !important;
  min-height: 54px !important;
  padding: 0 18px !important;
  grid-template-columns: 34px auto minmax(280px, 1fr) 38px auto auto !important;
  gap: 10px !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
  background: rgba(10, 12, 14, 0.86) !important;
}

.dashboard-shell .dashboard-search input {
  height: 36px !important;
}

.dashboard-shell .hamburger,
.dashboard-shell .utility-icon {
  width: 34px !important;
  height: 34px !important;
  border-radius: 8px !important;
}

.dashboard-shell .user-chip {
  min-height: 40px !important;
}

.dashboard-shell .user-chip img {
  width: 34px !important;
  height: 34px !important;
  max-width: 34px !important;
  max-height: 34px !important;
}

.dashboard-hero {
  grid-column: 2 / 4;
  grid-row: 2;
  display: grid;
  grid-template-columns: minmax(190px, 0.56fr) minmax(360px, 1.05fr) minmax(520px, 1.45fr);
  align-items: center;
  gap: 22px;
  min-width: 0;
  min-height: 0;
  padding: 20px 24px 22px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(90deg, rgba(80, 34, 34, 0.24), rgba(18, 20, 22, 0.7) 52%, rgba(9, 11, 13, 0.5)),
    rgba(12, 14, 16, 0.72);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.045);
}

.dashboard-hero h1 {
  margin: 0;
  display: grid;
  gap: 2px;
  font-size: clamp(24px, 2vw, 32px);
  line-height: 0.96;
  letter-spacing: 0;
}

.dashboard-hero h1 strong {
  display: block;
  color: #fff;
}

.dashboard-hero p {
  max-width: 520px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(12px, 0.9vw, 15px);
  line-height: 1.32;
}

.dashboard-shell .dashboard-stats {
  display: grid !important;
  grid-template-columns: repeat(5, minmax(82px, 1fr)) !important;
  gap: 0 !important;
  align-items: center;
  min-width: 0;
}

.dashboard-shell .dashboard-stats div {
  min-height: 54px;
  padding: 2px 14px;
  border-left: 1px solid rgba(255, 255, 255, 0.11);
}

.dashboard-shell .dashboard-stats span,
.dashboard-shell .dashboard-stats small {
  font-size: 11px;
  line-height: 1.05;
}

.dashboard-shell .dashboard-stats strong {
  font-size: clamp(18px, 1.5vw, 24px);
  line-height: 1.05;
}

.dashboard-shell .assistant-rail {
  grid-column: 2 !important;
  grid-row: 3 !important;
  display: grid !important;
  grid-template-rows: auto minmax(150px, 1fr) auto auto !important;
  gap: 12px !important;
  min-height: 0 !important;
  max-height: calc(100vh - 166px) !important;
  padding: 14px 16px 18px !important;
  border-left: 0 !important;
  border-right: 1px solid rgba(255, 255, 255, 0.09) !important;
  background: rgba(8, 10, 12, 0.9) !important;
}

.dashboard-shell .assistant-head {
  min-height: 48px;
  padding-bottom: 6px;
}

.dashboard-shell .assistant-head h2 {
  font-size: 25px;
}

.dashboard-shell .chat-panel {
  min-height: 0;
  padding-right: 3px;
}

.dashboard-shell .assistant-side {
  display: grid;
  gap: 8px;
  max-height: 150px;
  overflow: auto;
  padding-right: 3px;
}

.dashboard-shell .assistant-composer {
  min-height: 104px;
}

.dashboard-shell .dashboard-main {
  grid-column: 3 !important;
  grid-row: 3 !important;
  max-height: calc(100vh - 166px) !important;
  padding: 14px 18px 18px !important;
  overflow: auto !important;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent 34%),
    transparent !important;
}

.dashboard-shell .dashboard-home {
  gap: 12px !important;
}

.dashboard-shell .dashboard-modules {
  grid-template-columns: repeat(2, minmax(190px, 1fr)) !important;
  gap: 10px !important;
}

.dashboard-shell .dashboard-modules .dtd-card {
  display: none !important;
}

.dashboard-shell .dashboard-module {
  min-height: 96px !important;
  align-content: end !important;
  gap: 6px !important;
  padding: 12px !important;
}

.dashboard-shell .dashboard-module::before {
  opacity: 0.34;
}

.dashboard-shell .dashboard-module strong {
  font-size: clamp(18px, 1.35vw, 23px);
}

.dashboard-shell .dashboard-module b {
  margin-top: 3px;
  padding: 6px 10px;
  font-size: 12px;
}

.dashboard-shell .dashboard-module span,
.dashboard-shell .dashboard-module small {
  font-size: 11px;
  line-height: 1.25;
}

.dashboard-shell .dashboard-grid {
  grid-template-columns: minmax(280px, 1.35fr) minmax(250px, 0.95fr) minmax(220px, 0.8fr) !important;
  gap: 12px !important;
}

.dashboard-shell .activity-card,
.dashboard-shell .summary-card,
.dashboard-shell .today-card,
.dashboard-shell .quick-action-strip {
  border-radius: 10px;
}

.dashboard-shell .activity-card,
.dashboard-shell .summary-card,
.dashboard-shell .today-card {
  padding: 14px;
}

.dashboard-shell .quick-action-strip {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding: 12px;
}

.admin-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.72fr) minmax(420px, 1.28fr);
  gap: 12px;
}

.admin-card,
.admin-tool-grid article {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  background:
    linear-gradient(135deg, rgba(223, 61, 52, 0.08), rgba(255, 255, 255, 0.035) 44%, rgba(255, 255, 255, 0.02)),
    rgba(12, 15, 16, 0.86);
}

.admin-card {
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 15px;
}

.admin-form {
  display: grid;
  gap: 10px;
}

.admin-form label {
  display: grid;
  gap: 5px;
  color: rgba(218, 226, 229, 0.86);
  font-size: 10px;
  font-weight: 760;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.admin-form input,
.admin-form select {
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  color: #f4f7f8;
  background: rgba(6, 10, 11, 0.78);
  font: inherit;
  font-size: 13px;
}

.admin-form button,
.person-row button {
  border: 0;
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(180deg, #f0443d, #dd302b);
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.admin-form button {
  min-height: 42px;
  margin-top: 2px;
}

.admin-form-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}

.admin-form .secondary-action {
  min-width: 92px;
  color: rgba(245, 247, 248, 0.9);
  background: rgba(255, 255, 255, 0.08);
}

.form-note {
  min-height: 18px;
  margin: 0;
  color: rgba(187, 210, 216, 0.76);
  font-size: 12px;
}

.hr-import-panel {
  display: grid;
  gap: 9px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.hr-import-panel .section-title small {
  color: #88c8ff;
}

.hr-import-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 78px;
  gap: 8px;
}

.hr-import-search input {
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  color: #f4f7f8;
  background: rgba(6, 10, 11, 0.78);
  font: inherit;
  font-size: 12px;
}

.hr-import-search button,
.hr-person-row button {
  border: 0;
  border-radius: 8px;
  color: #fff;
  background: rgba(223, 61, 52, 0.82);
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.hr-import-search button:disabled,
.hr-import-search input:disabled {
  cursor: not-allowed;
  opacity: 0.52;
}

.hr-import-results {
  display: grid;
  gap: 7px;
  max-height: 188px;
  overflow: auto;
}

.hr-person-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 70px;
  gap: 8px;
  align-items: center;
  padding: 9px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.hr-person-row strong,
.hr-person-row span,
.hr-person-row small,
.hr-import-empty {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hr-person-row strong {
  display: block;
  color: #f2f6f7;
  font-size: 12px;
}

.hr-person-row span,
.hr-person-row small,
.hr-import-empty {
  display: block;
  color: rgba(193, 205, 210, 0.72);
  font-size: 11px;
}

.hr-person-row button {
  min-height: 29px;
  padding: 0 8px;
}

.people-list {
  display: grid;
  gap: 8px;
  max-height: 395px;
  overflow: auto;
  padding-right: 3px;
}

.person-row {
  display: grid;
  grid-template-columns: minmax(168px, 1.05fr) minmax(132px, 0.82fr) minmax(122px, 0.62fr) 58px 82px 70px 74px;
  gap: 8px;
  align-items: center;
  min-height: 58px;
  padding: 10px 11px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.035);
}

.person-row div,
.person-row strong,
.person-row span {
  min-width: 0;
}

.person-row strong,
.person-row span,
.person-row em,
.person-row small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.person-row strong {
  display: block;
  color: #f2f6f7;
  font-size: 13px;
}

.person-row span {
  display: block;
  margin-top: 3px;
  color: rgba(193, 205, 210, 0.72);
  font-size: 11px;
}

.person-row em {
  color: rgba(239, 244, 246, 0.9);
  font-style: normal;
  font-size: 12px;
}

.person-row small {
  color: rgba(178, 197, 203, 0.76);
  font-size: 11px;
}

.person-row button {
  min-height: 30px;
  padding: 0 8px;
  background: rgba(255, 255, 255, 0.08);
}

.person-row button:hover {
  background: rgba(223, 61, 52, 0.8);
}

.person-row button.person-delete {
  color: #ffaaa5;
  background: rgba(223, 61, 52, 0.12);
}

.person-row button.person-delete:hover {
  color: #fff;
  background: rgba(223, 61, 52, 0.82);
}

.person-row.is-inactive {
  opacity: 0.64;
}

.admin-tool-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.admin-tool-grid article {
  display: grid;
  gap: 5px;
  min-height: 92px;
  padding: 13px;
}

.admin-tool-grid span {
  color: rgba(188, 207, 213, 0.72);
  font-size: 12px;
}

.admin-tool-grid strong {
  color: #f3f7f8;
  font-size: 18px;
}

.admin-tool-grid small {
  color: rgba(200, 212, 216, 0.74);
  font-size: 11px;
  line-height: 1.35;
}

@media (max-width: 1280px) {
  body.dashboard-shell {
    grid-template-columns: 190px minmax(340px, 33vw) minmax(520px, 1fr) !important;
    grid-template-rows: 54px 132px minmax(0, 1fr) !important;
  }

  .dashboard-hero {
    grid-template-columns: minmax(170px, 0.55fr) minmax(260px, 1fr) minmax(390px, 1.45fr);
    gap: 14px;
  }

  .dashboard-shell .dashboard-stats {
    grid-template-columns: repeat(5, minmax(58px, 1fr)) !important;
  }

  .dashboard-shell .dashboard-main,
  .dashboard-shell .assistant-rail {
    max-height: calc(100vh - 186px) !important;
  }
}

@media (max-width: 1040px) {
  body.dashboard-shell {
    display: grid !important;
    grid-template-columns: 160px minmax(300px, 34vw) minmax(420px, 1fr) !important;
    grid-template-rows: 54px 164px minmax(0, 1fr) !important;
    overflow: hidden !important;
  }

  .dashboard-shell .dashboard-main,
  .dashboard-shell .assistant-rail {
    max-height: calc(100vh - 218px) !important;
  }

  .dashboard-hero {
    grid-template-columns: 1fr;
    align-content: center;
    gap: 9px;
  }

  .dashboard-shell .dashboard-sidebar {
    grid-row: 1 / 4 !important;
  }

  .dashboard-shell .dashboard-topbar,
  .dashboard-hero {
    grid-column: 2 / 4 !important;
  }

  .dashboard-shell .assistant-rail {
    grid-column: 2 !important;
    grid-row: 3 !important;
  }

  .dashboard-shell .dashboard-main {
    grid-column: 3 !important;
    grid-row: 3 !important;
  }

  .dashboard-shell .dashboard-modules,
  .dashboard-shell .dashboard-grid,
  .dashboard-shell .quick-action-strip,
  .admin-layout,
  .admin-tool-grid {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 760px) {
  body.dashboard-shell {
    display: block !important;
    overflow: auto !important;
  }

  .dashboard-hero,
  .dashboard-shell .dashboard-main,
  .dashboard-shell .assistant-rail {
    max-height: none !important;
    overflow: visible !important;
  }
}

/* Approved DTD Portal polish: compact operating console with DTD as the main object. */
.dashboard-shell button:focus-visible,
.dashboard-shell a:focus-visible,
.dashboard-shell input:focus-visible,
.dashboard-shell select:focus-visible,
.dashboard-shell textarea:focus-visible {
  outline: 2px solid rgba(223, 61, 52, 0.86);
  outline-offset: 2px;
}

body.dashboard-shell {
  grid-template-columns: 210px minmax(370px, 30vw) minmax(720px, 1fr) !important;
  grid-template-rows: 64px 122px minmax(0, 1fr) !important;
}

.dashboard-shell .dashboard-sidebar {
  background:
    radial-gradient(circle at 52% 0%, rgba(223, 61, 52, 0.08), transparent 28%),
    rgba(7, 10, 11, 0.95) !important;
}

.dashboard-shell .sidebar-logo {
  min-height: 116px;
  padding: 18px 26px 16px;
}

.dashboard-shell .sidebar-logo img {
  width: 150px !important;
  max-width: 150px !important;
}

.dashboard-shell .sidebar-nav {
  gap: 7px;
}

.dashboard-shell .sidebar-nav hr {
  margin: 12px 18px;
}

.dashboard-shell .nav-item {
  min-height: 52px;
  border-left-width: 3px;
  color: rgba(245, 247, 248, 0.82);
  font-weight: 540;
}

.dashboard-shell .nav-item.active,
.dashboard-shell .nav-item:hover {
  background: linear-gradient(90deg, rgba(223, 61, 52, 0.24), rgba(223, 61, 52, 0.1) 72%, transparent);
}

.dashboard-shell .dashboard-topbar {
  min-height: 64px !important;
  padding: 0 20px !important;
  grid-template-columns: 34px auto minmax(360px, 1fr) 38px auto auto !important;
  background:
    linear-gradient(90deg, rgba(13, 17, 19, 0.98), rgba(10, 13, 15, 0.88)),
    rgba(10, 12, 14, 0.92) !important;
}

.dashboard-shell .dashboard-topbar > strong {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  white-space: nowrap;
}

.dashboard-shell .dashboard-topbar > strong::after {
  content: "";
  width: 1px;
  height: 22px;
  background: rgba(255, 255, 255, 0.18);
}

.dashboard-shell .dashboard-search input {
  height: 42px !important;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.038);
}

.dashboard-shell .user-chip {
  min-width: 178px;
}

.dashboard-shell .top-logout {
  min-height: 38px;
}

.dashboard-hero {
  min-height: 122px;
  grid-template-columns: minmax(220px, 0.58fr) minmax(360px, 1.08fr) minmax(560px, 1.4fr);
  padding: 18px 24px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-right: 0;
  border-left: 0;
  background:
    linear-gradient(90deg, rgba(87, 31, 31, 0.28), rgba(14, 17, 18, 0.86) 42%, rgba(11, 13, 15, 0.72)),
    url("/static/assets/we-login-background.jpg?v=20260425-2") 72% 50% / 360px auto no-repeat,
    rgba(12, 14, 16, 0.88);
}

.dashboard-hero h1 {
  font-size: clamp(27px, 1.95vw, 34px);
  line-height: 1.04;
}

.dashboard-hero p {
  max-width: 610px;
  color: rgba(245, 247, 248, 0.82);
  font-size: clamp(14px, 0.98vw, 17px);
  line-height: 1.42;
}

.dashboard-shell .dashboard-stats div {
  min-height: 66px;
  padding: 4px 18px;
}

.dashboard-shell .dashboard-stats strong {
  font-size: clamp(23px, 1.8vw, 31px);
}

.dashboard-shell .assistant-rail,
.dashboard-shell .dashboard-main {
  max-height: calc(100vh - 186px) !important;
}

.dashboard-shell .assistant-rail {
  padding: 14px 16px 14px !important;
  grid-template-rows: auto minmax(150px, 1fr) minmax(120px, 190px) auto !important;
  background: rgba(5, 8, 9, 0.94) !important;
}

.dashboard-shell .assistant-head {
  min-height: 50px;
  padding-bottom: 8px;
  justify-content: start;
}

.dashboard-shell .assistant-platform strong {
  font-size: 20px;
}

.dashboard-shell .assistant-platform span {
  font-size: 12px;
}

.dashboard-shell .assistant-head h2 {
  font-size: 23px;
}

.dashboard-shell .assistant-head strong {
  margin-left: auto;
}

.dashboard-shell .assistant-chat {
  gap: 10px;
}

.dashboard-shell .assistant-chat .message {
  padding: 13px 14px;
  border-radius: 10px;
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.052);
  font-size: 13px;
  line-height: 1.48;
}

.dashboard-shell .assistant-chat .message.user {
  margin-left: 20px;
  width: calc(100% - 20px);
  background: rgba(42, 55, 60, 0.42);
}

.dashboard-shell .assistant-side {
  max-height: 190px;
}

.dashboard-shell .panel-card.compact {
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.045);
}

.dashboard-shell .assistant-composer {
  min-height: 112px;
  border-radius: 12px;
  background: rgba(12, 15, 16, 0.92);
}

.dashboard-shell .assistant-composer textarea {
  min-height: 78px;
}

.dashboard-shell .dashboard-main {
  padding: 16px 18px 14px !important;
}

.dashboard-shell .dashboard-home {
  gap: 10px !important;
}

.dashboard-shell .dtd-claim-card {
  gap: 10px;
  padding: 16px;
  border-color: rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  background:
    linear-gradient(135deg, rgba(223, 61, 52, 0.16), rgba(255, 255, 255, 0.035) 38%, rgba(255, 255, 255, 0.025)),
    rgba(12, 14, 16, 0.88);
}

.dashboard-shell .dtd-claim-card .section-title {
  margin-bottom: 4px;
}

.dashboard-shell .dtd-claim-card .section-title > span {
  color: #f3f6f7;
  font-size: 18px;
}

.dashboard-shell .dtd-claim-form {
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.98fr);
  gap: 9px 14px;
}

.dashboard-shell .dtd-claim-form input,
.dashboard-shell .dtd-claim-form select,
.dashboard-shell .dtd-preview {
  min-height: 36px;
  border-radius: 7px;
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(7, 10, 11, 0.78);
}

.dashboard-shell .dtd-preview strong {
  font-size: clamp(16px, 1.22vw, 20px);
}

.dashboard-shell .dtd-claim-form button {
  min-height: 44px;
  border-radius: 8px;
  background: linear-gradient(180deg, #f0443d, #e6342e);
}

.dtd-recent-shell {
  display: grid;
  gap: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.025);
}

.dtd-recent-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 10px 6px;
  color: #dfe4e7;
  font-size: 13px;
  font-weight: 760;
}

.dtd-recent-title .mini-button {
  padding: 0;
  border: 0;
  color: #65a8ff;
  background: transparent;
}

.dtd-recent-claims {
  gap: 0;
}

.dtd-claim-row {
  grid-template-columns: minmax(210px, 1.18fr) minmax(150px, 1fr) minmax(100px, 0.52fr) minmax(64px, 0.36fr);
  gap: 12px;
  padding: 6px 10px;
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0;
  background: transparent;
  font-size: 12px;
}

.dtd-claim-head {
  color: rgba(245, 247, 248, 0.58);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.dtd-claim-row em {
  justify-self: start;
}

.dashboard-shell .dashboard-grid {
  grid-template-columns: minmax(300px, 1.32fr) minmax(250px, 0.95fr) minmax(240px, 0.86fr) !important;
  gap: 10px !important;
}

.dashboard-shell .sidebar-nav {
  gap: 3px;
}

.dashboard-shell .nav-item {
  min-height: 44px;
}

.dashboard-shell .sidebar-nav hr {
  margin: 8px 18px;
}

.sidebar-history {
  display: grid;
  gap: 8px;
  margin: 0 12px 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  min-height: 0;
}

.sidebar-section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: rgba(245, 247, 248, 0.72);
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.sidebar-section-title button {
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  padding: 4px 9px;
  background: rgba(255, 255, 255, 0.045);
  color: rgba(245, 247, 248, 0.82);
  font-size: 11px;
  font-weight: 560;
  cursor: pointer;
}

.sidebar-history .conversation-list {
  max-height: clamp(150px, 24vh, 260px);
  overflow: auto;
  padding-right: 3px;
}

.sidebar-history .conversation-item {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 3px;
  padding: 8px 9px;
  width: 100%;
  border: 1px solid transparent;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.04);
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.conversation-open {
  display: grid;
  gap: 3px;
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.sidebar-history .conversation-item:hover,
.sidebar-history .conversation-item.active {
  border-color: rgba(223, 61, 52, 0.22);
  background: rgba(223, 61, 52, 0.12);
}

.delete-chat {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: rgba(245, 247, 248, 0.46);
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
}

.delete-chat:hover,
.delete-chat:focus-visible {
  background: rgba(223, 61, 52, 0.18);
  color: #ff746d;
  outline: 0;
}

.sidebar-history .conversation-item:not(:hover):not(.active) .delete-chat {
  opacity: 0.35;
}

.sidebar-history .conversation-item strong {
  overflow: hidden;
  color: rgba(245, 247, 248, 0.9);
  font-size: 12px;
  font-weight: 520;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sidebar-history .conversation-item span {
  color: rgba(245, 247, 248, 0.42);
  font-size: 10px;
}

.dashboard-shell .system-status {
  margin-top: auto;
}

.dashboard-shell .assistant-rail {
  grid-template-rows: auto minmax(0, 1fr) auto !important;
}

.dashboard-shell .assistant-side {
  display: none !important;
}

.dtd-source-layout {
  display: grid;
  grid-template-columns: minmax(220px, 0.35fr) minmax(680px, 1fr);
  gap: 12px;
  align-items: stretch;
}

.sources-panel {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  min-width: 0;
  min-height: 0;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 10px;
  background:
    linear-gradient(135deg, rgba(67, 96, 103, 0.16), rgba(255, 255, 255, 0.03) 46%),
    rgba(10, 13, 15, 0.82);
}

.sources-panel .section-title {
  margin-bottom: 8px;
}

.sources-panel #sources {
  min-height: 0;
  max-height: 290px;
  overflow: auto;
  padding-right: 4px;
}

.sources-panel .sources-empty {
  display: grid;
  align-content: start;
  color: rgba(245, 247, 248, 0.52);
  font-size: 13px;
}

.sources-panel .source {
  padding: 9px 0;
}

.sources-panel .source strong {
  font-size: 12px;
}

.sources-panel .source span {
  font-size: 11px;
  line-height: 1.4;
}

.sources-panel .geo-source-card {
  display: grid;
  gap: 6px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.sources-panel .geo-source-topline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.sources-panel .geo-source-index {
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: rgba(239, 68, 68, 0.18);
  color: #f87171;
  font-size: 10px;
  font-weight: 900;
}

.sources-panel .geo-source-card code {
  border-radius: 999px;
  border: 1px solid rgba(96, 165, 250, 0.35);
  background: rgba(96, 165, 250, 0.1);
  color: #bfdbfe;
  padding: 2px 7px;
  font-size: 10px;
  font-weight: 800;
}

.sources-panel .geo-source-status {
  border-radius: 999px;
  border: 1px solid rgba(74, 222, 128, 0.28);
  background: rgba(74, 222, 128, 0.1);
  color: #86efac;
  padding: 2px 7px;
  font-size: 10px;
  font-style: normal;
  font-weight: 800;
}

.sources-panel .geo-source-card small {
  color: rgba(245, 247, 248, 0.48);
  font-size: 10px;
  line-height: 1.35;
}

.dtd-source-layout .dtd-claim-card {
  min-width: 0;
}

.dtd-source-layout .dtd-claim-form {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 10px;
}

.dtd-source-layout .dtd-preview {
  grid-column: 1 / 3;
}

.dtd-source-layout .dtd-claim-form button {
  grid-column: 1 / 3;
  grid-row: auto;
  min-height: 44px;
}

.dtd-source-layout .dtd-claim-row {
  grid-template-columns: minmax(160px, 1fr) minmax(120px, 0.85fr) minmax(84px, 0.5fr) minmax(58px, 0.32fr);
  gap: 8px;
}

.dashboard-shell .activity-card,
.dashboard-shell .summary-card,
.dashboard-shell .today-card,
.dashboard-shell .quick-action-strip {
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.038);
}

.dashboard-shell .activity-card,
.dashboard-shell .summary-card,
.dashboard-shell .today-card {
  padding: 14px 14px 12px;
}

.dashboard-shell .activity-list div {
  grid-template-columns: 64px 9px minmax(0, 1fr) auto;
  gap: 9px;
}

.dashboard-shell .activity-list strong {
  font-size: 12px;
}

.dashboard-shell .summary-grid div {
  padding: 11px 12px;
}

.dashboard-shell .summary-grid strong {
  font-size: 24px;
}

.dashboard-shell .quick-action-strip {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  padding: 10px;
}

.dashboard-shell .quick-action-strip button {
  min-height: 58px;
  border-radius: 9px;
}

.workspace-panel {
  display: none !important;
}

.workspace-panel.active {
  display: grid !important;
}

.workspace-panel-head {
  display: grid;
  gap: 5px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 10px;
  background:
    linear-gradient(135deg, rgba(223, 61, 52, 0.1), rgba(255, 255, 255, 0.028) 46%),
    rgba(10, 13, 15, 0.84);
}

.workspace-panel-head span {
  color: rgba(245, 247, 248, 0.96);
  font-size: 19px;
  font-weight: 720;
}

.workspace-panel-head p {
  max-width: 760px;
  margin: 0;
  color: rgba(245, 247, 248, 0.62);
  font-size: 13px;
  line-height: 1.45;
}

.analytics-strip,
.settings-grid,
.help-grid,
.work-board,
.workspace-two-column {
  display: grid;
  gap: 10px;
}

.analytics-strip,
.settings-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.analytics-strip article,
.settings-grid article,
.help-grid article,
.notification-list article {
  display: grid;
  gap: 6px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.038);
}

.analytics-strip span,
.settings-grid span {
  color: rgba(245, 247, 248, 0.58);
  font-size: 12px;
}

.analytics-strip strong,
.settings-grid strong {
  color: rgba(245, 247, 248, 0.96);
  font-size: 26px;
  line-height: 1;
}

.settings-grid {
  align-items: stretch;
}

.settings-grid article {
  min-width: 0;
  min-height: 126px;
  align-content: start;
  overflow: hidden;
}

.settings-grid article > * {
  min-width: 0;
}

.settings-grid strong {
  display: block;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
  color: rgba(245, 247, 248, 0.95);
  font-size: clamp(17px, 1.18vw, 22px);
  line-height: 1.08;
  letter-spacing: 0;
}

.settings-grid small {
  align-self: end;
}

.analytics-strip small,
.settings-grid small,
.help-grid span,
.notification-list span {
  color: rgba(245, 247, 248, 0.58);
  font-size: 12px;
  line-height: 1.4;
}

.workspace-two-column,
.work-board {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.compact-list div {
  grid-template-columns: 58px 9px minmax(0, 1fr) auto !important;
}

.models-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.models-toolbar button {
  min-height: 40px;
  border: 0;
  border-radius: 9px;
  padding: 0 16px;
  background: #ee4038;
  color: #fff;
  font-weight: 720;
  cursor: pointer;
}

.models-toolbar span {
  color: rgba(245, 247, 248, 0.58);
  font-size: 12px;
}

.model-list {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.notification-list {
  display: grid;
  gap: 10px;
}

.notification-list article {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

.notification-list strong,
.help-grid strong {
  color: rgba(245, 247, 248, 0.92);
  font-size: 14px;
}

.notification-list span {
  grid-column: 1;
}

.notification-list em {
  grid-column: 2;
  grid-row: 1 / 3;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(112, 231, 112, 0.12);
  color: #7fe47f;
  font-size: 11px;
  font-style: normal;
  font-weight: 700;
}

.notification-list em.danger {
  background: rgba(223, 61, 52, 0.14);
  color: #ff746d;
}

.help-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.help-action {
  cursor: pointer;
  transition:
    border-color 160ms ease,
    background 160ms ease,
    transform 160ms ease;
}

.help-action:hover,
.help-action:focus-visible {
  border-color: rgba(223, 61, 52, 0.38);
  background: rgba(223, 61, 52, 0.07);
  transform: translateY(-1px);
  outline: none;
}

.help-action em {
  justify-self: start;
  color: #67a8ff;
  font-size: 12px;
  font-style: normal;
  font-weight: 650;
}

.help-link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.help-link-row button {
  min-height: 30px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  color: rgba(245, 247, 248, 0.9);
  background: rgba(255, 255, 255, 0.045);
  font: inherit;
  font-size: 12px;
  font-weight: 650;
  cursor: pointer;
}

.help-link-row button:hover,
.help-link-row button:focus-visible {
  border-color: rgba(223, 61, 52, 0.38);
  background: rgba(223, 61, 52, 0.16);
}

.notification-action {
  cursor: pointer;
  transition:
    border-color 160ms ease,
    background 160ms ease,
    transform 160ms ease;
}

.notification-action:hover,
.notification-action:focus-visible {
  border-color: rgba(223, 61, 52, 0.38);
  background: rgba(223, 61, 52, 0.07);
  transform: translateY(-1px);
  outline: none;
}

@media (max-width: 1280px) {
  .analytics-strip,
  .settings-grid,
  .workspace-two-column,
  .work-board,
  .help-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1280px) {
  body.dashboard-shell {
    grid-template-columns: 190px minmax(330px, 33vw) minmax(560px, 1fr) !important;
    grid-template-rows: 64px 144px minmax(0, 1fr) !important;
  }

  .dashboard-shell .assistant-rail,
  .dashboard-shell .dashboard-main {
    max-height: calc(100vh - 208px) !important;
  }

  .dashboard-hero {
    grid-template-columns: minmax(170px, 0.55fr) minmax(270px, 1fr) minmax(420px, 1.4fr);
  }

  .dtd-source-layout {
    grid-template-columns: 1fr;
  }

  .sources-panel #sources {
    max-height: 150px;
  }

  .dtd-source-layout .dtd-claim-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dtd-source-layout .dtd-claim-form label:nth-child(3),
  .dtd-source-layout .dtd-preview,
  .dtd-source-layout .dtd-claim-form button {
    grid-column: auto;
    grid-row: auto;
  }

  .dtd-source-layout .dtd-claim-form button {
    min-height: 44px;
  }
}
