:root {
  --green-950: #1F3730;
  --green-800: #53665b;
  --green-700: #728574;
  --green-200: #dfe7df;
  --green-100: #edf2ed;
  --surface: #ffffff;
  --surface-soft: #f7faf6;
  --surface-warm: #fbfbf7;
  --text: #1b2d26;
  --muted: #6b7b71;
  --border: rgba(31, 55, 48, 0.12);
  --border-strong: rgba(31, 55, 48, 0.2);
  --danger: #b13d3d;
  --shadow: 0 24px 70px rgba(31, 55, 48, 0.1);
  --shadow-soft: 0 12px 34px rgba(31, 55, 48, 0.08);
  --radius-xl: 34px;
  --radius-lg: 26px;
  --radius-md: 18px;
  --radius-sm: 14px;
  --ease: 180ms ease;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  min-height: 100vh;
  margin: 0;
  font: 16px/1.5 "Segoe UI", Arial, sans-serif;
  color: var(--text);
  background: #1F3730;
}

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

.is-hidden {
  display: none !important;
}

.cabinet-page {
  min-height: 100vh;
}

.login-screen {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px;
}

.login-card {
  width: min(100%, 500px);
  padding: clamp(28px, 5vw, 44px);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

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

.login-brand-mark,
.cabinet-brand-mark {
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--border);
  flex: 0 0 auto;
  box-shadow: 0 10px 24px rgba(31, 55, 48, 0.06);
}

.login-brand-mark {
  width: 64px;
  height: 64px;
  border-radius: 20px;
}

.cabinet-brand-mark {
  width: 54px;
  height: 54px;
  border-radius: 18px;
}

.login-brand strong,
.cabinet-brand strong {
  display: block;
  font-size: 1.25rem;
  line-height: 1.1;
  color: var(--green-950);
}

.login-brand small,
.cabinet-brand small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
}

.login-hero {
  margin: 34px 0 26px;
}

.eyebrow {
  margin: 0 0 9px;
  color: var(--green-700);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.login-hero h1,
.cabinet-header h1,
.welcome-panel h2,
.chat-list-head h2,
.chat-panel-head h2,
.info-card h2,
.simple-panel h2,
.profile-card h2 {
  margin: 0;
  color: var(--green-950);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.login-hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
}

.login-hero p,
.cabinet-header p,
.welcome-panel p,
.simple-panel p,
.profile-card p {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 1.02rem;
}

.login-form {
  display: grid;
  gap: 15px;
}

.field {
  display: grid;
  gap: 8px;
  color: var(--green-950);
  font-weight: 800;
}

.field input,
.chat-composer textarea {
  width: 100%;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text);
  outline: none;
  transition: border-color var(--ease), box-shadow var(--ease), background var(--ease);
}

.field input {
  min-height: 58px;
  padding: 0 18px;
  border-radius: var(--radius-md);
}

.field input:focus,
.chat-composer textarea:focus {
  border-color: rgba(114, 133, 116, 0.72);
  box-shadow: 0 0 0 5px rgba(114, 133, 116, 0.16);
}

.login-error {
  min-height: 22px;
  margin: 0;
  color: var(--danger);
  font-weight: 800;
}

.primary-btn,
.send-btn,
.new-chat-btn {
  border: 0;
  border-radius: var(--radius-md);
  background: var(--green-700);
  color: #fff;
  font-weight: 900;
  box-shadow: 0 16px 30px rgba(114, 133, 116, 0.22);
  transition: transform var(--ease), background var(--ease), box-shadow var(--ease);
}

.primary-btn {
  min-height: 60px;
}

.primary-btn:hover,
.send-btn:hover,
.new-chat-btn:hover {
  background: var(--green-950);
  transform: translateY(-1px);
  box-shadow: 0 18px 34px rgba(31, 55, 48, 0.2);
}

.workspace {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
}

.cabinet-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding: 24px 18px;
  border-right: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(18px);
}

.cabinet-nav {
  display: grid;
  gap: 8px;
}

.cabinet-nav-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 52px;
  padding: 0 14px;
  border: 1px solid transparent;
  border-radius: 18px;
  background: transparent;
  color: var(--muted);
  font-weight: 900;
  text-align: left;
  transition: background var(--ease), color var(--ease), border-color var(--ease), transform var(--ease);
}

.cabinet-nav-item span,
.card-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: rgba(31, 55, 48, 0.06);
  color: var(--green-950);
  flex: 0 0 auto;
}

.cabinet-nav-item:hover {
  background: rgba(255, 255, 255, 0.85);
  border-color: var(--border);
  color: var(--green-950);
  transform: translateX(2px);
}

.cabinet-nav-item.is-active {
  background: linear-gradient(135deg, rgba(114, 133, 116, 0.18), rgba(255, 255, 255, 0.86));
  border-color: rgba(114, 133, 116, 0.28);
  color: var(--green-950);
}

.cabinet-nav-item.is-active span {
  background: var(--green-950);
  color: #fff;
}

.cabinet-main {
  min-width: 0;
  padding: clamp(22px, 3vw, 38px);
}

.cabinet-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.cabinet-header h1 {
  font-size: clamp(2.5rem, 5vw, 5.4rem);
}

.cabinet-header p {
  max-width: 640px;
  font-size: clamp(1rem, 1.7vw, 1.25rem);
}

.cabinet-header-actions {
  display: flex;
  gap: 10px;
  flex: 0 0 auto;
}

.ghost-btn,
.ghost-link {
  display: inline-grid;
  place-items: center;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.74);
  color: var(--green-950);
  font-weight: 900;
  transition: background var(--ease), border-color var(--ease), transform var(--ease);
}

.ghost-btn:hover,
.ghost-link:hover {
  background: #fff;
  border-color: var(--border-strong);
  transform: translateY(-1px);
}

.cabinet-view {
  display: none;
}

.cabinet-view.is-active {
  display: block;
  animation: viewIn 0.24s ease both;
}

@keyframes viewIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.welcome-panel,
.simple-panel,
.profile-layout,
.info-card,
.ai-shell {
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow-soft);
}

.welcome-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 170px;
  align-items: center;
  gap: 24px;
  padding: clamp(24px, 4vw, 40px);
  overflow: hidden;
}

.welcome-panel h2 {
  font-size: clamp(2rem, 4vw, 4rem);
}

.welcome-panel img {
  justify-self: center;
  max-height: 190px;
  object-fit: contain;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.dashboard-card {
  min-height: 174px;
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.82);
  color: var(--green-950);
  text-align: left;
  box-shadow: 0 12px 28px rgba(31, 55, 48, 0.05);
  transition: transform var(--ease), box-shadow var(--ease), border-color var(--ease), background var(--ease);
}

.dashboard-card:hover {
  transform: translateY(-3px);
  background: #fff;
  border-color: var(--border-strong);
  box-shadow: var(--shadow-soft);
}

.dashboard-card strong,
.dashboard-card small {
  display: block;
}

.dashboard-card strong {
  margin: 22px 0 8px;
  font-size: 1.24rem;
}

.dashboard-card small {
  color: var(--muted);
  line-height: 1.45;
}

.dashboard-card-primary {
  background: linear-gradient(145deg, var(--green-950), #2a493f);
  color: #fff;
  border-color: transparent;
}

.dashboard-card-primary small {
  color: rgba(255, 255, 255, 0.76);
}

.dashboard-card-primary .card-icon {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

.ai-shell {
  display: grid;
  grid-template-columns: 292px minmax(0, 1fr);
  min-height: calc(100vh - 132px);
  overflow: hidden;
}

.workspace:not(.is-home-view) .cabinet-header {
  display: none;
}

.workspace.is-ai-view .cabinet-main {
  display: flex;
  height: 100vh;
  min-height: 0;
  padding: 0;
  overflow: hidden;
}

.workspace.is-ai-view .cabinet-view.is-active {
  display: flex;
  width: 100%;
  height: 100vh;
  min-height: 0;
  overflow: hidden;
}

.workspace.is-ai-view .ai-shell {
  width: 100%;
  height: 100vh;
  min-height: 0;
  border-width: 0;
  border-radius: 0;
}

.chat-list-panel {
  min-width: 0;
  padding: 22px;
  background: rgba(247, 250, 246, 0.78);
}

.chat-list-panel {
  border-right: 1px solid var(--border);
}

.chat-list-head {
  display: grid;
  gap: 16px;
}

.chat-list-head h2,
.chat-panel-head h2,
.info-card h2 {
  font-size: 1.35rem;
}

.new-chat-btn {
  min-height: 44px;
  padding: 0 14px;
}

.chat-list {
  display: grid;
  gap: 8px;
  margin-top: 20px;
  max-height: calc(100vh - 290px);
  overflow: auto;
  padding-right: 3px;
}

.chat-item {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  width: 100%;
  min-height: 64px;
  padding: 12px 12px 12px 14px;
  border: 1px solid transparent;
  border-radius: 18px;
  background: transparent;
  color: var(--green-950);
  text-align: left;
  transition: background var(--ease), border-color var(--ease), transform var(--ease);
}

.chat-item:hover,
.chat-item.is-active {
  background: #fff;
  border-color: var(--border);
}

.chat-item:hover {
  transform: translateY(-1px);
}

.chat-item.is-active::before {
  content: "";
  position: absolute;
  left: 0;
  top: 14px;
  bottom: 14px;
  width: 4px;
  border-radius: 999px;
  background: var(--green-700);
}

.chat-item-title {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 900;
  letter-spacing: -0.01em;
}

.chat-item-meta {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.78rem;
}

.delete-chat-btn {
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 12px;
  background: rgba(31, 55, 48, 0.06);
  color: rgba(83, 101, 92, 0.78);
  font-weight: 900;
  transition: background var(--ease), color var(--ease), opacity var(--ease);
}

.delete-chat-btn:hover,
.delete-chat-btn:focus-visible {
  background: rgba(177, 61, 61, 0.1);
  color: var(--danger);
  outline: none;
}

.chat-panel {
  min-width: 0;
  min-height: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  background:
    radial-gradient(circle at 100% 0%, rgba(114, 133, 116, 0.12), transparent 34%),
    #ffffff;
}

.chat-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 24px 28px 16px;
}

.chat-status {
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(114, 133, 116, 0.13);
  color: var(--green-800);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.template-grid button {
  flex: 0 0 auto;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--green-950);
  font-weight: 800;
  transition: background var(--ease), border-color var(--ease), transform var(--ease);
}

.template-grid button:hover {
  background: var(--green-950);
  border-color: var(--green-950);
  color: #fff;
  transform: translateY(-1px);
}

.messages {
  display: flex;
  flex-direction: column;
  gap: 16px;
  overflow: auto;
  min-height: 0;
  padding: 28px min(5vw, 68px);
}

.message {
  display: flex;
  gap: 12px;
  max-width: min(760px, 84%);
  animation: messageIn 0.22s ease both;
}

@keyframes messageIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.message.is-user {
  align-self: flex-end;
  flex-direction: row-reverse;
}

.message-avatar {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 15px;
  background: var(--green-950);
  color: #fff;
  font-weight: 900;
  flex: 0 0 auto;
  overflow: hidden;
}

.message-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  background: var(--green-100);
}

.message.is-user .message-avatar {
  background: var(--green-700);
}

.message-bubble {
  padding: 16px 18px;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 12px 30px rgba(31, 55, 48, 0.06);
  white-space: pre-wrap;
  color: #1f312b;
}

.message.is-user .message-bubble {
  background: #eef4ef;
  border-color: rgba(114, 133, 116, 0.24);
  box-shadow: none;
}

.message-author {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.typing {
  color: var(--muted);
}

.typing::after {
  content: "";
  display: inline-block;
  width: 1.4em;
  animation: dots 1s steps(4, end) infinite;
}

@keyframes dots {
  0% {
    content: "";
  }

  25% {
    content: ".";
  }

  50% {
    content: "..";
  }

  75%,
  100% {
    content: "...";
  }
}

.chat-composer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  padding: 18px 28px 24px;
  border-top: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.82);
}

.chat-composer textarea {
  min-height: 58px;
  max-height: 150px;
  resize: none;
  padding: 17px 18px;
  border-radius: 20px;
  background: rgba(247, 250, 246, 0.95);
}

.send-btn {
  min-height: 58px;
  padding: 0 24px;
  background: var(--green-950);
}

.info-card,
.simple-panel,
.profile-layout {
  padding: clamp(22px, 3vw, 30px);
}

.info-card-head {
  margin-bottom: 16px;
}

.recent-dialogs,
.dialog-history-list {
  display: grid;
  gap: 10px;
}

.recent-dialog-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 54px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: rgba(247, 250, 246, 0.74);
  color: var(--green-950);
  font-weight: 900;
  text-align: left;
}

.recent-dialog-item small {
  display: block;
  color: var(--muted);
  font-weight: 700;
}

.capability-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.capability-grid div {
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: rgba(247, 250, 246, 0.74);
}

.capability-grid strong,
.capability-grid span {
  display: block;
}

.capability-grid strong {
  color: var(--green-950);
}

.capability-grid span {
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.92rem;
}

.template-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.profile-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 18px;
}

.profile-card {
  display: flex;
  align-items: center;
  gap: 18px;
}

.profile-avatar {
  display: grid;
  place-items: center;
  width: 92px;
  height: 92px;
  border-radius: 28px;
  background: var(--green-950);
  color: #fff;
  font-size: 2rem;
  font-weight: 900;
}

.profile-details {
  display: grid;
  gap: 12px;
}

.profile-details div {
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: rgba(247, 250, 246, 0.74);
}

.profile-details span,
.profile-details strong {
  display: block;
}

.profile-details span {
  color: var(--muted);
}

.profile-details strong {
  margin-top: 3px;
  color: var(--green-950);
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(114, 133, 116, 0.34);
  outline-offset: 3px;
}

@media (max-width: 1180px) {
  .workspace {
    grid-template-columns: 1fr;
  }

  .cabinet-sidebar {
    position: static;
    height: auto;
    gap: 18px;
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }

  .cabinet-nav {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .cabinet-nav-item {
    justify-content: center;
  }

  .ai-shell {
    grid-template-columns: 1fr;
  }

  .workspace.is-ai-view {
    height: 100vh;
    grid-template-rows: auto minmax(0, 1fr);
    overflow: hidden;
  }

  .workspace.is-ai-view .cabinet-main,
  .workspace.is-ai-view .cabinet-view.is-active,
  .workspace.is-ai-view .ai-shell {
    height: 100%;
    min-height: 0;
  }

  .chat-list-panel {
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }

  .chat-list {
    grid-auto-flow: column;
    grid-auto-columns: minmax(210px, 1fr);
    overflow-x: auto;
    max-height: none;
  }
}

@media (max-width: 860px) {
  .cabinet-main {
    padding: 18px;
  }

  .cabinet-header {
    flex-direction: column;
  }

  .cabinet-header-actions {
    width: 100%;
  }

  .ghost-link,
  .ghost-btn {
    flex: 1;
  }

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

  .dashboard-grid,
  .profile-layout,
  .capability-grid {
    grid-template-columns: 1fr;
  }

  .welcome-panel {
    grid-template-columns: 1fr;
  }

  .welcome-panel img {
    max-height: 170px;
  }

}

@media (max-width: 620px) {
  .login-screen {
    padding: 12px;
  }

  .login-card {
    border-radius: 26px;
  }

  .cabinet-main {
    padding: 12px;
  }

  .cabinet-sidebar {
    padding: 16px 12px;
  }

  .cabinet-brand {
    align-items: center;
  }

  .cabinet-nav {
    gap: 6px;
  }

  .cabinet-nav-item {
    min-height: 48px;
    padding: 0 10px;
    border-radius: 15px;
    font-size: 0.92rem;
  }

  .cabinet-header h1 {
    font-size: clamp(2.25rem, 15vw, 4rem);
  }

  .welcome-panel,
  .simple-panel,
  .profile-layout,
  .info-card,
  .ai-shell {
    border-radius: 24px;
  }

  .dashboard-card {
    min-height: 142px;
  }

  .chat-panel-head,
  .chat-list-panel,
  .chat-composer {
    padding: 16px;
  }

  .messages {
    gap: 12px;
    padding: 18px 12px;
  }

  .message {
    max-width: 96%;
    gap: 8px;
  }

  .message-avatar {
    width: 36px;
    height: 36px;
    border-radius: 13px;
  }

  .message-bubble {
    padding: 13px 14px;
    border-radius: 18px;
  }

  .chat-composer {
    grid-template-columns: 1fr;
  }

  .send-btn {
    width: 100%;
  }

}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }
}

/* 2026-05-21 unified product design layer for employee cabinet. */
:root {
  --cabinet-dark: #1F3730;
  --cabinet-green: #728574;
  --cabinet-soft: #AEBDA8;
  --cabinet-bg: #F6F7F2;
  --cabinet-card: rgba(255, 255, 255, 0.96);
  --cabinet-text: #16231d;
  --cabinet-muted: #53655c;
  --cabinet-border: rgba(31, 55, 48, 0.12);
  --cabinet-radius-md: 22px;
  --cabinet-radius-lg: 28px;
  --cabinet-shadow-sm: 0 12px 32px rgba(31, 55, 48, 0.08);
  --cabinet-shadow-md: 0 22px 60px rgba(31, 55, 48, 0.13);
}

body {
  background: #1F3730 !important;
  color: var(--cabinet-text) !important;
}

.login-card,
.cabinet-sidebar,
.cabinet-header,
.welcome-panel,
.dashboard-card,
.simple-panel,
.profile-card,
.profile-details div,
.ai-shell,
.chat-list-panel,
.chat-panel,
.message-bubble,
.template-grid button {
  background: var(--cabinet-card) !important;
  border: 1px solid var(--cabinet-border) !important;
  box-shadow: var(--cabinet-shadow-sm) !important;
}

.login-card,
.welcome-panel,
.ai-shell {
  border-radius: var(--cabinet-radius-lg) !important;
}

.cabinet-sidebar,
.cabinet-header,
.dashboard-card,
.simple-panel,
.profile-card,
.profile-details div,
.chat-list-panel,
.chat-panel,
.template-grid button {
  border-radius: var(--cabinet-radius-md) !important;
}

.cabinet-brand-logo,
.login-logo,
.message-avatar {
  border: 1px solid var(--cabinet-border) !important;
  box-shadow: 0 10px 28px rgba(31, 55, 48, 0.10) !important;
}

.cabinet-nav-item,
.ghost-link,
.ghost-btn,
.primary-btn,
.send-btn,
.new-chat-btn,
.template-grid button,
.chat-item,
.delete-chat-btn {
  transition:
    transform 0.22s ease,
    border-color 0.22s ease,
    background 0.22s ease,
    box-shadow 0.22s ease,
    color 0.22s ease !important;
}

.cabinet-nav-item {
  border: 1px solid transparent !important;
  color: var(--cabinet-muted) !important;
}

.cabinet-nav-item:hover,
.chat-item:hover,
.template-grid button:hover {
  transform: translateY(-2px);
  border-color: rgba(114, 133, 116, 0.24) !important;
  background: rgba(114, 133, 116, 0.08) !important;
  color: var(--cabinet-dark) !important;
}

.cabinet-nav-item.is-active,
.chat-item.is-active {
  background: rgba(114, 133, 116, 0.14) !important;
  border-color: rgba(114, 133, 116, 0.28) !important;
  color: var(--cabinet-dark) !important;
  box-shadow: inset 4px 0 0 rgba(114, 133, 116, 0.92) !important;
}

.primary-btn,
.send-btn,
.new-chat-btn {
  background: linear-gradient(135deg, var(--cabinet-green), var(--cabinet-dark)) !important;
  border: 1px solid rgba(31, 55, 48, 0.18) !important;
  color: #fff !important;
  box-shadow: 0 16px 36px rgba(31, 55, 48, 0.18) !important;
}

.primary-btn:hover,
.send-btn:hover,
.new-chat-btn:hover,
.ghost-link:hover,
.ghost-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--cabinet-shadow-md) !important;
}

.ghost-link,
.ghost-btn {
  background: rgba(255, 255, 255, 0.72) !important;
  border: 1px solid var(--cabinet-border) !important;
  color: var(--cabinet-dark) !important;
}

.field input,
.chat-composer textarea {
  background: rgba(255, 255, 255, 0.88) !important;
  border: 1px solid var(--cabinet-border) !important;
  border-radius: 18px !important;
  color: var(--cabinet-text) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75) !important;
}

.field input:focus,
.chat-composer textarea:focus {
  border-color: rgba(114, 133, 116, 0.52) !important;
  box-shadow: 0 0 0 4px rgba(114, 133, 116, 0.14) !important;
}

.cabinet-header .eyebrow,
.welcome-panel .eyebrow,
.login-card .eyebrow {
  color: var(--cabinet-green) !important;
  letter-spacing: 0.08em !important;
}

.message.user .message-bubble {
  background: linear-gradient(135deg, rgba(31, 55, 48, 0.96), rgba(114, 133, 116, 0.96)) !important;
  color: #fff !important;
  border-color: rgba(31, 55, 48, 0.16) !important;
}

.message.ai .message-bubble {
  background: rgba(246, 247, 242, 0.92) !important;
}

.typing-indicator {
  color: var(--cabinet-green) !important;
}

.delete-chat-btn:hover {
  background: rgba(179, 70, 70, 0.10) !important;
  border-color: rgba(179, 70, 70, 0.22) !important;
  color: #8f3030 !important;
}

@media (max-width: 760px) {
  .login-card,
  .cabinet-sidebar,
  .cabinet-header,
  .welcome-panel,
  .dashboard-card,
  .simple-panel,
  .ai-shell {
    border-radius: 22px !important;
  }

  .cabinet-nav-item.is-active,
  .chat-item.is-active {
    box-shadow: inset 0 3px 0 rgba(114, 133, 116, 0.92) !important;
  }
}

/* Corporate consistency layer shared with the public pages. */
:root {
  --cabinet-radius-sm: 12px;
  --cabinet-radius-md: 16px;
  --cabinet-radius-lg: 24px;
  --cabinet-shadow-sm: 0 10px 24px rgba(10, 19, 16, 0.09);
  --cabinet-shadow-md: 0 18px 42px rgba(10, 19, 16, 0.14);
}

.login-card,
.cabinet-sidebar,
.cabinet-header,
.welcome-panel,
.ai-shell {
  border-radius: var(--cabinet-radius-lg) !important;
  box-shadow: var(--cabinet-shadow-md) !important;
}

.dashboard-card,
.simple-panel,
.chat-panel,
.chat-item,
.template-grid button,
.message-bubble {
  border-radius: var(--cabinet-radius-md) !important;
  border-color: rgba(31, 55, 48, 0.12) !important;
  box-shadow: var(--cabinet-shadow-sm) !important;
}

.primary-btn,
.send-btn,
.new-chat-btn,
.ghost-link,
.ghost-btn,
.cabinet-nav-item {
  border-radius: var(--cabinet-radius-md) !important;
}

.primary-btn,
.send-btn,
.new-chat-btn {
  background: var(--cabinet-dark) !important;
  box-shadow: 0 10px 22px rgba(31, 55, 48, 0.16) !important;
}

.ghost-link,
.ghost-btn,
.cabinet-nav-item {
  background: rgba(255, 255, 255, 0.9) !important;
  box-shadow: none !important;
}

.dashboard-card:hover,
.chat-item:hover,
.template-grid button:hover,
.primary-btn:hover,
.send-btn:hover,
.new-chat-btn:hover,
.ghost-link:hover,
.ghost-btn:hover {
  transform: translateY(-1px) !important;
  box-shadow: 0 12px 26px rgba(10, 19, 16, 0.11) !important;
}

@media (max-width: 760px) {
  .login-card,
  .cabinet-sidebar,
  .cabinet-header,
  .welcome-panel,
  .dashboard-card,
  .simple-panel,
  .ai-shell,
  .chat-panel {
    border-radius: 18px !important;
  }
}

/* Elba Technologist MVP */
.technologist-page {
  display: grid;
  gap: 18px;
}

.technologist-hero,
.tech-tool-card,
.tech-input-panel,
.tech-result-panel,
.tech-warning,
.tech-recent {
  border: 1px solid var(--cabinet-border);
  border-radius: var(--cabinet-radius-lg);
  background: var(--cabinet-card);
  box-shadow: var(--cabinet-shadow-sm);
}

.technologist-hero {
  padding: clamp(24px, 4vw, 38px);
}

.technologist-hero h2 {
  margin: 0;
  color: var(--cabinet-dark);
  font-size: clamp(2.25rem, 5vw, 4.7rem);
  line-height: 1.04;
  letter-spacing: -0.03em;
}

.technologist-hero p {
  max-width: 760px;
  margin: 14px 0 0;
  color: var(--cabinet-muted);
  font-size: clamp(1rem, 1.7vw, 1.2rem);
}

.tech-tools-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.tech-tool-card {
  min-height: 138px;
  display: flex;
  gap: 14px;
  padding: 18px;
}

.tech-tool-card h3,
.tech-section-head h3 {
  margin: 0;
  color: var(--cabinet-dark);
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.tech-tool-card h3 {
  font-size: 1.08rem;
}

.tech-tool-card p {
  margin: 8px 0 0;
  color: var(--cabinet-muted);
  font-size: 0.94rem;
}

.tech-tool-card.is-active {
  border-color: rgba(114, 133, 116, 0.32);
  box-shadow: inset 4px 0 0 var(--cabinet-green), var(--cabinet-shadow-sm);
}

.tech-tool-card.is-disabled {
  opacity: 0.68;
  background: rgba(255, 255, 255, 0.7);
}

.tech-tool-icon,
.tech-upload-icon {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 14px;
  background: rgba(31, 55, 48, 0.08);
  color: var(--cabinet-dark);
  font-weight: 900;
}

.tech-tool-icon {
  width: 38px;
  height: 38px;
}

.tech-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 16px;
  align-items: start;
}

.tech-input-panel,
.tech-result-panel,
.tech-recent {
  padding: clamp(18px, 3vw, 26px);
}

.tech-section-head {
  margin-bottom: 16px;
}

.tech-section-head .eyebrow {
  margin-bottom: 6px;
}

.tech-section-head h3 {
  font-size: clamp(1.35rem, 2.4vw, 1.8rem);
}

.tech-upload {
  display: grid;
  place-items: center;
  gap: 8px;
  min-height: 178px;
  padding: 22px;
  border: 1.5px dashed rgba(114, 133, 116, 0.48);
  border-radius: var(--cabinet-radius-md);
  background: rgba(246, 247, 242, 0.74);
  color: var(--cabinet-dark);
  text-align: center;
  cursor: pointer;
  transition: border-color var(--ease), background var(--ease), transform var(--ease);
}

.tech-upload input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.tech-upload strong,
.tech-upload small {
  display: block;
}

.tech-upload small {
  max-width: 390px;
  color: var(--cabinet-muted);
}

.tech-upload-icon {
  width: 46px;
  height: 46px;
  font-size: 1.55rem;
}

.tech-upload:hover,
.tech-upload.is-dragover {
  border-color: var(--cabinet-green);
  background: rgba(114, 133, 116, 0.1);
  transform: translateY(-1px);
}

.tech-preview,
.tech-result {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 250px;
  margin-top: 14px;
  overflow: hidden;
  border: 1px solid var(--cabinet-border);
  border-radius: var(--cabinet-radius-md);
  background: #f6f7f2;
}

.tech-preview span {
  color: var(--cabinet-muted);
  font-weight: 800;
}

.tech-preview img,
.tech-result img {
  display: none;
  width: 100%;
  height: 100%;
  max-height: 430px;
  object-fit: contain;
  background: #fff;
}

.tech-preview.has-image span,
.tech-result.has-image .tech-result-empty,
.tech-result.has-image .tech-result-loading,
.tech-result.is-loading .tech-result-empty {
  display: none;
}

.tech-preview.has-image img,
.tech-result.has-image img {
  display: block;
}

.tech-comment-field {
  margin-top: 16px;
}

.tech-comment-field textarea {
  width: 100%;
  min-height: 118px;
  resize: vertical;
  padding: 15px 16px;
  border: 1px solid var(--cabinet-border);
  border-radius: var(--cabinet-radius-md);
  background: rgba(255, 255, 255, 0.88);
  color: var(--cabinet-text);
  outline: none;
  transition: border-color var(--ease), box-shadow var(--ease);
}

.tech-comment-field textarea:focus {
  border-color: rgba(114, 133, 116, 0.52);
  box-shadow: 0 0 0 4px rgba(114, 133, 116, 0.14);
}

.tech-mode-group {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 16px 0 0;
  padding: 0;
  border: 0;
}

.tech-mode-group legend {
  grid-column: 1 / -1;
  margin-bottom: 2px;
  color: var(--cabinet-dark);
  font-weight: 900;
}

.tech-mode-group label {
  position: relative;
  min-height: 48px;
}

.tech-mode-group input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.tech-mode-group span {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid var(--cabinet-border);
  border-radius: var(--cabinet-radius-md);
  background: rgba(255, 255, 255, 0.9);
  color: var(--cabinet-muted);
  font-weight: 850;
  transition: background var(--ease), border-color var(--ease), color var(--ease);
}

.tech-mode-group input:checked + span {
  border-color: rgba(31, 55, 48, 0.28);
  background: var(--cabinet-dark);
  color: #fff;
}

.tech-submit-btn {
  width: 100%;
  margin-top: 18px;
  background: var(--cabinet-dark) !important;
}

.tech-submit-btn:disabled {
  cursor: wait;
  opacity: 0.78;
  transform: none !important;
}

.tech-result-panel {
  position: sticky;
  top: 24px;
}

.tech-result {
  min-height: 430px;
  margin-top: 0;
}

.tech-result-empty,
.tech-result-loading {
  display: grid;
  gap: 8px;
  max-width: 310px;
  padding: 22px;
  color: var(--cabinet-muted);
  text-align: center;
}

.tech-result-empty strong,
.tech-result-loading {
  color: var(--cabinet-dark);
  font-weight: 900;
}

.tech-result-note {
  min-height: 22px;
  margin: 12px 0 0;
  color: var(--cabinet-muted);
  font-size: 0.92rem;
}

.tech-warning {
  padding: 16px 18px;
  background: rgba(114, 133, 116, 0.1);
  color: var(--cabinet-dark);
  font-weight: 850;
  line-height: 1.45;
}

.tech-recent-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.tech-recent-grid article {
  min-height: 96px;
  padding: 16px;
  border: 1px solid var(--cabinet-border);
  border-radius: var(--cabinet-radius-md);
  background: rgba(246, 247, 242, 0.72);
}

.tech-recent-grid strong,
.tech-recent-grid span {
  display: block;
}

.tech-recent-grid strong {
  color: var(--cabinet-dark);
}

.tech-recent-grid span {
  margin-top: 6px;
  color: var(--cabinet-muted);
  font-size: 0.92rem;
}

@media (max-width: 1180px) {
  .cabinet-nav {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .tech-workspace {
    grid-template-columns: 1fr;
  }

  .tech-result-panel {
    position: static;
  }
}

@media (max-width: 860px) {
  .tech-tools-grid,
  .tech-recent-grid {
    grid-template-columns: 1fr;
  }

  .tech-tool-card {
    min-height: auto;
  }
}

@media (max-width: 620px) {
  .cabinet-nav {
    grid-template-columns: 1fr;
  }

  .technologist-page {
    gap: 12px;
  }

  .technologist-hero,
  .tech-tool-card,
  .tech-input-panel,
  .tech-result-panel,
  .tech-warning,
  .tech-recent {
    border-radius: 18px;
  }

  .tech-mode-group {
    grid-template-columns: 1fr;
  }

  .tech-preview,
  .tech-result {
    min-height: 220px;
  }
}

/* Elba Technologist workspace */
.technologist-page {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 16px;
  min-height: calc(100vh - 168px);
}

.tech-history-panel,
.tech-chat-panel,
.tech-application-preview,
.tech-visual-options {
  border: 1px solid var(--cabinet-border);
  border-radius: var(--cabinet-radius-lg);
  background: var(--cabinet-card);
  box-shadow: var(--cabinet-shadow-sm);
}

.tech-history-panel {
  min-width: 0;
  padding: 20px;
}

.tech-history-panel .tech-section-head h2,
.tech-chat-head h2 {
  margin: 0;
  color: var(--cabinet-dark);
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.tech-history-panel .tech-section-head h2 {
  font-size: 1.55rem;
}

.tech-history-list {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.tech-history-item {
  width: 100%;
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid var(--cabinet-border);
  border-radius: var(--cabinet-radius-md);
  background: rgba(246, 247, 242, 0.76);
  color: var(--cabinet-dark);
  text-align: left;
}

.tech-history-item strong,
.tech-history-item span {
  display: block;
}

.tech-history-item strong {
  font-size: 0.98rem;
  line-height: 1.25;
}

.tech-history-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  color: var(--cabinet-muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.tech-status {
  width: max-content;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(114, 133, 116, 0.14);
  color: var(--cabinet-dark);
  font-size: 0.75rem;
  font-weight: 900;
}

.tech-status.is-draft {
  background: rgba(31, 55, 48, 0.08);
}

.tech-status.is-review {
  background: rgba(114, 133, 116, 0.18);
}

.tech-status.is-approved {
  background: rgba(67, 128, 86, 0.14);
}

.tech-status.is-rejected {
  background: rgba(179, 70, 70, 0.12);
  color: #873333;
}

.tech-chat-panel {
  min-width: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto auto;
  overflow: hidden;
}

.tech-chat-head {
  padding: clamp(20px, 3vw, 28px) clamp(20px, 3vw, 32px) 16px;
  border-bottom: 1px solid var(--cabinet-border);
}

.tech-chat-head h2 {
  font-size: clamp(2.1rem, 4.2vw, 4.2rem);
}

.tech-chat-head p:not(.eyebrow) {
  max-width: 760px;
  margin: 10px 0 0;
  color: var(--cabinet-muted);
  font-size: clamp(1rem, 1.5vw, 1.15rem);
}

.tech-chat-messages {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 0;
  padding: 22px clamp(16px, 3vw, 32px);
  overflow: auto;
  background: #fbfcf8;
}

.tech-message {
  max-width: min(760px, 92%);
  display: grid;
  gap: 8px;
}

.tech-message.is-user {
  align-self: flex-end;
}

.tech-message-bubble {
  padding: 14px 16px;
  border: 1px solid var(--cabinet-border);
  border-radius: var(--cabinet-radius-md);
  background: #fff;
  color: var(--cabinet-text);
  box-shadow: 0 8px 18px rgba(10, 19, 16, 0.05);
}

.tech-message.is-user .tech-message-bubble {
  background: var(--cabinet-dark);
  border-color: var(--cabinet-dark);
  color: #fff;
}

.tech-message-author {
  display: block;
  margin-bottom: 5px;
  color: var(--cabinet-green);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.tech-message.is-user .tech-message-author {
  color: rgba(255, 255, 255, 0.72);
}

.tech-action-row,
.tech-choice-grid,
.tech-confirm-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tech-choice-grid {
  margin-top: 2px;
}

.tech-action-btn,
.tech-secondary-btn,
.tech-danger-btn {
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid var(--cabinet-border);
  border-radius: var(--cabinet-radius-md);
  font-weight: 900;
  transition: background var(--ease), border-color var(--ease), color var(--ease), transform var(--ease);
}

.tech-action-btn {
  background: var(--cabinet-dark);
  border-color: var(--cabinet-dark);
  color: #fff;
}

.tech-secondary-btn,
.tech-danger-btn {
  background: rgba(255, 255, 255, 0.92);
  color: var(--cabinet-dark);
}

.tech-danger-btn {
  color: #873333;
}

.tech-action-btn:hover,
.tech-secondary-btn:hover,
.tech-danger-btn:hover {
  transform: translateY(-1px);
}

.tech-upload-inline {
  display: grid;
  gap: 8px;
}

.tech-upload-inline input {
  width: 100%;
  padding: 12px;
  border: 1px dashed rgba(114, 133, 116, 0.54);
  border-radius: var(--cabinet-radius-md);
  background: rgba(246, 247, 242, 0.86);
}

.tech-upload-preview {
  max-width: 260px;
  max-height: 180px;
  object-fit: contain;
  border: 1px solid var(--cabinet-border);
  border-radius: var(--cabinet-radius-md);
  background: #fff;
}

.tech-visual-options {
  display: grid;
  gap: 12px;
  padding: 14px;
  box-shadow: none;
}

.tech-visual-options strong {
  color: var(--cabinet-dark);
}

.tech-visual-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.tech-visual-option {
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid var(--cabinet-border);
  border-radius: var(--cabinet-radius-md);
  background: #fff;
  color: var(--cabinet-muted);
  font-weight: 850;
  text-align: left;
}

.tech-visual-option.is-selected {
  background: var(--cabinet-dark);
  border-color: var(--cabinet-dark);
  color: #fff;
}

.tech-ai-placeholder {
  margin: 0;
  padding: 12px;
  border-radius: var(--cabinet-radius-md);
  background: rgba(114, 133, 116, 0.1);
  color: var(--cabinet-muted);
  font-weight: 800;
}

.tech-application-preview {
  display: grid;
  gap: 12px;
  padding: 16px;
  box-shadow: none;
}

.tech-application-preview h3 {
  margin: 0;
  color: var(--cabinet-dark);
}

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

.tech-preview-grid div {
  padding: 12px;
  border: 1px solid var(--cabinet-border);
  border-radius: var(--cabinet-radius-md);
  background: rgba(246, 247, 242, 0.7);
}

.tech-preview-grid span,
.tech-preview-grid strong {
  display: block;
}

.tech-preview-grid span {
  color: var(--cabinet-muted);
  font-size: 0.78rem;
  font-weight: 850;
}

.tech-preview-grid strong {
  margin-top: 3px;
  color: var(--cabinet-dark);
}

.tech-preview-image {
  max-width: 220px;
  max-height: 160px;
  object-fit: contain;
  border: 1px solid var(--cabinet-border);
  border-radius: var(--cabinet-radius-md);
  background: #fff;
}

.tech-chat-composer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  padding: 16px clamp(16px, 3vw, 32px);
  border-top: 1px solid var(--cabinet-border);
  background: rgba(255, 255, 255, 0.92);
}

.tech-chat-composer.is-hidden {
  display: none;
}

.tech-chat-composer textarea {
  width: 100%;
  min-height: 54px;
  max-height: 140px;
  resize: none;
  padding: 15px 16px;
  border: 1px solid var(--cabinet-border);
  border-radius: var(--cabinet-radius-md);
  background: rgba(246, 247, 242, 0.9);
  color: var(--cabinet-text);
  outline: none;
}

.tech-chat-composer textarea:focus {
  border-color: rgba(114, 133, 116, 0.52);
  box-shadow: 0 0 0 4px rgba(114, 133, 116, 0.14);
}

.tech-chat-warning {
  margin: 0;
  padding: 12px clamp(16px, 3vw, 32px);
  border-top: 1px solid var(--cabinet-border);
  background: rgba(114, 133, 116, 0.1);
  color: var(--cabinet-dark);
  font-weight: 850;
}

@media (max-width: 1180px) {
  .technologist-page {
    grid-template-columns: 1fr;
  }

  .tech-history-list {
    grid-auto-flow: column;
    grid-auto-columns: minmax(230px, 1fr);
    overflow-x: auto;
    padding-bottom: 4px;
  }
}

@media (max-width: 700px) {
  .tech-chat-panel,
  .tech-history-panel,
  .tech-application-preview,
  .tech-visual-options {
    border-radius: 18px;
  }

  .tech-chat-messages {
    padding: 16px 12px;
  }

  .tech-message {
    max-width: 100%;
  }

  .tech-choice-grid,
  .tech-action-row,
  .tech-confirm-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .tech-visual-grid,
  .tech-preview-grid,
  .tech-chat-composer {
    grid-template-columns: 1fr;
  }

  .tech-chat-composer .send-btn {
    width: 100%;
  }
}

/* Modern compact pass for Elba Technologist */
.technologist-page {
  grid-template-columns: 300px minmax(0, 980px);
  align-items: start;
  justify-content: center;
  min-height: auto;
  gap: 18px;
}

.tech-history-panel,
.tech-chat-panel {
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 12px 28px rgba(10, 19, 16, 0.08);
}

.tech-history-panel {
  position: sticky;
  top: 22px;
  max-height: min(720px, calc(100vh - 132px));
  overflow: hidden;
  padding: 16px;
}

.tech-history-panel .tech-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.tech-history-panel .tech-section-head h2 {
  font-size: 1.35rem;
}

.tech-history-list {
  max-height: calc(100vh - 230px);
  overflow: auto;
  padding-right: 2px;
  margin-top: 0;
}

.tech-history-item {
  gap: 7px;
  padding: 12px;
  border-radius: 14px;
  background: #f7f9f4;
  box-shadow: none;
  transition: transform var(--ease), border-color var(--ease), background var(--ease);
}

.tech-history-item:hover {
  transform: translateY(-1px);
  border-color: rgba(114, 133, 116, 0.28);
  background: #fff;
}

.tech-history-meta {
  justify-content: space-between;
  font-size: 0.72rem;
}

.tech-status {
  padding: 3px 8px;
  font-size: 0.7rem;
}

.tech-chat-panel {
  height: min(760px, calc(100vh - 132px));
  min-height: 600px;
  grid-template-rows: auto minmax(0, 1fr) auto auto;
}

.tech-chat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 20px;
  background: #fff;
}

.tech-chat-head h2 {
  font-size: clamp(1.8rem, 3vw, 2.65rem);
  letter-spacing: -0.02em;
}

.tech-chat-head p:not(.eyebrow) {
  max-width: 580px;
  margin-top: 6px;
  font-size: 0.98rem;
}

.tech-chat-head-aside {
  display: grid;
  justify-items: end;
  gap: 10px;
  flex: 0 0 auto;
}

.tech-live-chip {
  display: inline-grid;
  min-height: 28px;
  place-items: center;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(114, 133, 116, 0.12);
  color: var(--cabinet-dark);
  font-size: 0.72rem;
  font-weight: 900;
}

.tech-head-actions {
  display: flex;
  gap: 8px;
}

.tech-head-actions .tech-action-btn,
.tech-head-actions .tech-secondary-btn {
  min-height: 38px;
  padding: 0 12px;
  border-radius: 12px;
}

.tech-chat-messages {
  gap: 12px;
  padding: 18px 20px;
  background:
    linear-gradient(#f7f9f4 1px, transparent 1px),
    #fbfcf8;
  background-size: 100% 42px;
}

.tech-message {
  max-width: min(680px, 86%);
}

.tech-message-bubble {
  padding: 12px 14px;
  border-radius: 16px;
  box-shadow: none;
}

.tech-message.is-bot .tech-message-bubble {
  border-color: rgba(31, 55, 48, 0.1);
}

.tech-message.is-user .tech-message-bubble {
  border-radius: 16px 16px 4px 16px;
  background: #1f3730;
}

.tech-message.is-bot .tech-message-bubble {
  border-radius: 16px 16px 16px 4px;
}

.tech-message-author {
  margin-bottom: 4px;
  font-size: 0.66rem;
}

.tech-action-row {
  margin-top: 4px;
}

.tech-action-btn,
.tech-secondary-btn,
.tech-danger-btn {
  min-height: 38px;
  border-radius: 12px;
  font-size: 0.9rem;
}

.tech-chat-composer {
  align-items: end;
  padding: 12px 16px;
  background: #fff;
}

.tech-chat-composer textarea {
  min-height: 46px;
  padding: 12px 14px;
  border-radius: 14px;
  background: #f7f9f4;
}

.tech-chat-composer .send-btn {
  min-height: 46px;
  padding: 0 18px;
  border-radius: 14px !important;
}

.tech-chat-warning {
  padding: 10px 16px;
  font-size: 0.88rem;
  background: #eef3ed;
}

.tech-visual-options,
.tech-application-preview {
  border-radius: 14px;
  background: #fff;
}

.tech-preview-grid div {
  border-radius: 12px;
  background: #f7f9f4;
}

@media (max-width: 1180px) {
  .technologist-page {
    grid-template-columns: minmax(0, 1fr);
    justify-content: stretch;
  }

  .tech-history-panel {
    position: static;
    max-height: none;
  }

  .tech-history-list {
    max-height: none;
  }

  .tech-chat-panel {
    height: min(760px, calc(100vh - 190px));
  }
}

@media (max-width: 760px) {
  .tech-chat-panel {
    height: auto;
    min-height: 0;
  }

  .tech-chat-head {
    display: grid;
    padding: 16px;
  }

  .tech-chat-head-aside {
    justify-items: stretch;
  }

  .tech-head-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .tech-chat-messages {
    max-height: 58vh;
    padding: 14px 12px;
  }

  .tech-message {
    max-width: 100%;
  }
}

@media (max-width: 460px) {
  .tech-head-actions {
    grid-template-columns: 1fr;
  }
}

/* 2026-06 Technologist-only wow redesign */
.workspace.is-technologist-view {
  background:
    radial-gradient(circle at 82% 8%, rgba(174, 189, 168, 0.28), transparent 28%),
    radial-gradient(circle at 12% 18%, rgba(114, 133, 116, 0.22), transparent 26%),
    linear-gradient(145deg, #10241f 0%, #1f3730 42%, #f5f7f1 42.2%, #f8faf5 100%);
}

.workspace.is-technologist-view .cabinet-sidebar {
  background: rgba(255, 255, 255, 0.9) !important;
  border-right-color: rgba(255, 255, 255, 0.32);
  box-shadow: 18px 0 48px rgba(10, 19, 16, 0.16) !important;
}

.workspace.is-technologist-view .cabinet-main {
  padding: clamp(18px, 2.4vw, 30px);
}

.workspace.is-technologist-view .cabinet-header {
  align-items: center;
  margin-bottom: 18px;
  padding: 16px 18px;
  border-radius: 22px !important;
  background: rgba(255, 255, 255, 0.82) !important;
  backdrop-filter: blur(18px);
  box-shadow: 0 20px 44px rgba(10, 19, 16, 0.14) !important;
}

.workspace.is-technologist-view .cabinet-header h1 {
  font-size: clamp(2rem, 4vw, 3.8rem);
  letter-spacing: -0.03em;
}

.workspace.is-technologist-view .cabinet-header p:not(.eyebrow) {
  margin-top: 6px;
  max-width: 560px;
  font-size: 1rem;
}

.workspace.is-technologist-view .cabinet-nav {
  grid-template-columns: 1fr;
}

.workspace.is-technologist-view .cabinet-nav-item {
  min-height: 58px;
  background: #1f3730 !important;
  color: #fff !important;
  box-shadow: 0 16px 28px rgba(31, 55, 48, 0.18) !important;
}

.workspace.is-technologist-view .cabinet-nav-item span {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}

.tech-wow-shell {
  display: grid;
  gap: 18px;
}

.tech-wow-hero {
  position: relative;
  min-height: 300px;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.75fr);
  gap: clamp(20px, 4vw, 46px);
  align-items: center;
  overflow: hidden;
  padding: clamp(24px, 4vw, 46px);
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 30px;
  background:
    radial-gradient(circle at 68% 24%, rgba(174, 189, 168, 0.22), transparent 34%),
    linear-gradient(135deg, rgba(31, 55, 48, 0.98), rgba(20, 39, 34, 0.94));
  color: #fff;
  box-shadow: 0 28px 70px rgba(10, 19, 16, 0.28);
}

.tech-wow-hero::before {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 24px;
  pointer-events: none;
}

.tech-wow-copy {
  position: relative;
  z-index: 1;
}

.tech-wow-copy .eyebrow {
  color: rgba(223, 231, 223, 0.84);
}

.tech-wow-copy h2 {
  max-width: 780px;
  margin: 0;
  font-size: clamp(2.3rem, 4.4vw, 4.65rem);
  line-height: 1;
  letter-spacing: -0.04em;
}

.tech-wow-copy p:not(.eyebrow) {
  max-width: 650px;
  margin: 14px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(1rem, 1.55vw, 1.22rem);
}

.tech-wow-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.tech-wow-actions .tech-action-btn,
.tech-wow-actions .tech-secondary-btn {
  min-height: 50px;
  padding: 0 20px;
  border-radius: 14px;
}

.tech-wow-actions .tech-action-btn {
  background: #fff;
  border-color: #fff;
  color: #1f3730;
}

.tech-wow-actions .tech-secondary-btn {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.24);
  color: #fff;
}

.tech-wow-visual {
  position: relative;
  min-height: 270px;
  perspective: 980px;
  transform-style: preserve-3d;
}

.tech-orbit-card {
  position: absolute;
  display: grid;
  align-content: center;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  backdrop-filter: blur(16px);
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.22);
  transform-style: preserve-3d;
}

.tech-orbit-card span,
.tech-orbit-card strong,
.tech-orbit-card small {
  display: block;
}

.tech-orbit-card span {
  color: #dfe7df;
  font-weight: 950;
  letter-spacing: 0;
}

.tech-orbit-card small {
  color: rgba(255, 255, 255, 0.72);
}

.tech-orbit-main {
  inset: 24px 34px 28px 18px;
  padding: 28px;
  border-radius: 30px;
  transform: rotateY(-18deg) rotateX(10deg) translateZ(40px);
}

.tech-orbit-main span {
  font-size: clamp(3.8rem, 8vw, 7rem);
  line-height: 0.9;
}

.tech-orbit-main strong {
  font-size: 1.45rem;
}

.tech-orbit-top,
.tech-orbit-bottom {
  width: 154px;
  min-height: 112px;
  padding: 18px;
  border-radius: 22px;
}

.tech-orbit-top {
  top: 0;
  right: 0;
  transform: rotateY(-26deg) rotateX(12deg) translateZ(90px);
}

.tech-orbit-bottom {
  left: 0;
  bottom: 0;
  transform: rotateY(18deg) rotateX(-10deg) translateZ(70px);
}

.tech-orbit-top span,
.tech-orbit-bottom span {
  font-size: 2.1rem;
}

.tech-wow-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.tech-wow-metrics div {
  padding: 16px 18px;
  border: 1px solid rgba(31, 55, 48, 0.12);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 14px 32px rgba(10, 19, 16, 0.08);
}

.tech-wow-metrics span,
.tech-wow-metrics strong {
  display: block;
}

.tech-wow-metrics span {
  color: var(--cabinet-green);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.tech-wow-metrics strong {
  margin-top: 4px;
  color: var(--cabinet-dark);
}

.tech-wow-shell .technologist-page {
  grid-template-columns: minmax(280px, 330px) minmax(0, 1fr);
  justify-content: stretch;
}

.tech-wow-shell .tech-history-panel,
.tech-wow-shell .tech-chat-panel {
  border: 1px solid rgba(31, 55, 48, 0.1);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 22px 54px rgba(10, 19, 16, 0.12);
}

.tech-wow-shell .tech-chat-panel {
  height: min(760px, calc(100vh - 132px));
}

.tech-wow-shell .tech-chat-head {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(246, 250, 244, 0.92));
}

.tech-wow-shell .tech-chat-messages {
  background:
    radial-gradient(circle at 88% 12%, rgba(114, 133, 116, 0.1), transparent 26%),
    #fbfcf8;
}

.tech-wow-shell .tech-message-bubble {
  box-shadow: 0 12px 28px rgba(10, 19, 16, 0.06);
}

@media (max-width: 1180px) {
  .workspace.is-technologist-view {
    background: linear-gradient(180deg, #1f3730 0%, #1f3730 330px, #f8faf5 330px, #f8faf5 100%);
  }

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

  .tech-wow-visual {
    min-height: 240px;
  }

  .tech-wow-shell .technologist-page {
    grid-template-columns: 1fr;
  }

  .tech-wow-shell .tech-chat-panel {
    height: min(780px, calc(100vh - 210px));
  }
}

@media (max-width: 760px) {
  .workspace.is-technologist-view .cabinet-main {
    padding: 12px;
  }

  .workspace.is-technologist-view .cabinet-header {
    align-items: stretch;
  }

  .tech-wow-hero {
    min-height: 0;
    padding: 20px;
    border-radius: 24px;
  }

  .tech-wow-copy h2 {
    font-size: clamp(2rem, 10.5vw, 3.2rem);
    line-height: 1.03;
  }

  .tech-wow-actions,
  .tech-wow-metrics {
    grid-template-columns: 1fr;
  }

  .tech-wow-actions {
    display: grid;
  }

  .tech-wow-metrics {
    display: grid;
  }

  .tech-wow-visual {
    display: none;
  }

  .tech-wow-shell .tech-chat-panel {
    height: auto;
  }
}

/* Reference-style Technologist cockpit */
.workspace.is-technologist-view {
  grid-template-columns: 160px minmax(0, 1fr);
  background: #f8faf8;
}

.workspace.is-technologist-view .cabinet-sidebar {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 28px;
  padding: 28px 10px 18px;
  background:
    radial-gradient(circle at 40% 0%, rgba(114, 133, 116, 0.28), transparent 30%),
    linear-gradient(180deg, #073127, #09241f 62%, #0f342c) !important;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0 !important;
  color: #fff;
  box-shadow: none !important;
}

.workspace.is-technologist-view .cabinet-brand {
  padding: 0 10px;
  color: #fff;
}

.workspace.is-technologist-view .cabinet-brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: none;
}

.workspace.is-technologist-view .cabinet-brand strong {
  color: #fff;
  font-size: 1.45rem;
  letter-spacing: 0.03em;
}

.workspace.is-technologist-view .cabinet-brand small {
  display: none;
}

.workspace.is-technologist-view .cabinet-nav {
  align-content: start;
  gap: 8px;
}

.cabinet-nav-ghost,
.workspace.is-technologist-view .cabinet-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 12px;
  border-radius: 10px;
  color: rgba(255, 255, 255, 0.82);
  font-weight: 850;
  font-size: 0.94rem;
}

.cabinet-nav-ghost span,
.workspace.is-technologist-view .cabinet-nav-item span {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  color: #fff;
  background: transparent;
}

.workspace.is-technologist-view .cabinet-nav-item {
  min-height: 62px;
  background: rgba(255, 255, 255, 0.12) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
}

.cabinet-user-mini {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 10px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.cabinet-user-mini > span {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  font-weight: 900;
}

.cabinet-user-mini strong,
.cabinet-user-mini small {
  display: block;
  color: #fff;
}

.cabinet-user-mini small {
  color: rgba(255, 255, 255, 0.72);
}

.workspace.is-technologist-view .cabinet-main {
  padding: 0;
}

.workspace.is-technologist-view .cabinet-header {
  display: none;
}

.tech-wow-shell {
  min-height: 100vh;
  display: block;
}

.tech-wow-shell .technologist-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 296px minmax(480px, 1fr) 344px;
  gap: 0;
  align-items: stretch;
  justify-content: stretch;
}

.tech-wow-shell .tech-history-panel,
.tech-wow-shell .tech-chat-panel,
.tech-request-panel {
  height: 100vh;
  min-height: 0;
  border: 0;
  border-radius: 0;
  background: #fff;
  box-shadow: none;
}

.tech-wow-shell .tech-history-panel {
  position: static;
  max-height: none;
  padding: 34px 14px 24px 24px;
  border-right: 1px solid #e5e9e5;
  overflow: hidden;
}

.tech-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
}

.tech-section-head h2 {
  margin: 0;
  color: #101816;
  font-size: 1.28rem;
  letter-spacing: -0.02em;
}

.tech-icon-action {
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 9px;
  background: #0f3b31;
  color: #fff;
  font-size: 1.4rem;
  box-shadow: 0 12px 24px rgba(15, 59, 49, 0.18);
}

.tech-history-list {
  max-height: calc(100vh - 108px);
  overflow: auto;
  padding-right: 8px;
}

.tech-history-item {
  min-height: 134px;
  padding: 16px;
  border: 1px solid #e1e7e1;
  border-radius: 12px;
  background: #fff;
}

.tech-history-item:first-child {
  background: #eef5ef;
  border-color: #dce7dc;
}

.tech-history-item strong {
  font-size: 1rem;
}

.tech-history-meta {
  justify-content: flex-start;
  gap: 10px;
}

.tech-wow-shell .tech-chat-panel {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto auto;
  border-right: 1px solid #e5e9e5;
  overflow: hidden;
}

.tech-wow-shell .tech-chat-head {
  min-height: 118px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 30px 44px 20px;
  border-bottom: 1px solid #e8ece8;
  background: #fff;
}

.tech-wow-shell .tech-chat-head h2 {
  color: #07110f;
  font-size: clamp(2rem, 3vw, 2.55rem);
  letter-spacing: -0.03em;
}

.tech-wow-shell .tech-chat-head p {
  margin-top: 8px;
  color: #626d68;
}

.tech-chat-head-aside {
  display: flex;
  align-items: center;
  gap: 14px;
}

.tech-top-icon {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid #cfd7d0;
  border-radius: 50%;
  color: #34433d;
  font-weight: 900;
}

.tech-head-actions {
  display: none;
}

.tech-wow-shell .tech-chat-messages {
  padding: 26px 44px;
  background: #fff;
}

.tech-message {
  max-width: min(650px, 92%);
}

.tech-message-bubble {
  padding: 18px 20px;
  border: 0;
  border-radius: 12px;
  background: #f4f6f5;
  box-shadow: none;
  font-size: 0.98rem;
}

.tech-message.is-user .tech-message-bubble {
  background: #0f3b31;
  color: #fff;
}

.tech-action-row {
  margin-top: 16px;
}

.tech-action-btn,
.tech-secondary-btn,
.tech-danger-btn {
  min-height: 46px;
  border-radius: 8px;
}

.tech-action-btn {
  background: #0f3b31;
}

.tech-wow-shell .tech-chat-composer {
  margin: 0 44px 18px;
  padding: 12px;
  border: 1px solid #dfe5df;
  border-radius: 12px;
  background: #fff;
}

.tech-chat-composer textarea {
  min-height: 48px;
  background: transparent;
  border: 0;
  box-shadow: none !important;
}

.tech-chat-composer .send-btn {
  width: 44px;
  min-height: 44px;
  padding: 0;
  border-radius: 8px !important;
  font-size: 0;
}

.tech-chat-composer .send-btn::before {
  content: "➤";
  font-size: 1rem;
}

.tech-chat-warning {
  padding: 0 44px 28px;
  border: 0;
  background: #fff;
  color: #66716c;
  font-weight: 700;
}

.tech-request-panel {
  padding: 34px 22px 24px;
  overflow: auto;
}

.tech-request-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 22px;
  border-bottom: 1px solid #e8ece8;
}

.tech-request-head h2 {
  margin: 0;
  color: #111a17;
  font-size: 1.2rem;
}

.tech-request-fields {
  display: grid;
  gap: 22px;
  padding-top: 22px;
}

.tech-request-fields article {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px 10px;
}

.tech-request-fields span {
  grid-column: 1 / -1;
  color: #6c7671;
  font-weight: 750;
}

.tech-request-fields strong {
  color: #0f1714;
  line-height: 1.3;
}

.tech-request-fields button {
  width: 28px;
  height: 28px;
  border: 0;
  background: transparent;
  color: #53665b;
  font-weight: 900;
}

.tech-side-image {
  display: grid;
  place-items: center;
  min-height: 154px;
  margin-top: 24px;
  overflow: hidden;
  border-radius: 9px;
  background: #eef2ee;
  color: #6c7671;
  text-align: center;
  font-weight: 750;
}

.tech-side-image img {
  width: 100%;
  height: 100%;
  max-height: 180px;
  object-fit: cover;
}

.tech-request-actions {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}

.tech-request-actions .tech-secondary-btn {
  display: none;
}

@media (max-width: 1280px) {
  .tech-wow-shell .technologist-page {
    grid-template-columns: 280px minmax(420px, 1fr);
  }

  .tech-request-panel {
    display: none;
  }
}

@media (max-width: 980px) {
  .workspace.is-technologist-view {
    grid-template-columns: 1fr;
  }

  .workspace.is-technologist-view .cabinet-sidebar {
    position: static;
    height: auto;
    grid-template-rows: auto;
    padding: 14px;
  }

  .workspace.is-technologist-view .cabinet-brand,
  .cabinet-user-mini,
  .cabinet-nav-ghost {
    display: none;
  }

  .tech-wow-shell .technologist-page {
    grid-template-columns: 1fr;
  }

  .tech-wow-shell .tech-history-panel,
  .tech-wow-shell .tech-chat-panel {
    height: auto;
  }

  .tech-wow-shell .tech-history-panel {
    padding: 18px;
  }

  .tech-history-list {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(230px, 1fr);
    max-height: none;
    overflow-x: auto;
  }

  .tech-wow-shell .tech-chat-head,
  .tech-wow-shell .tech-chat-messages {
    padding-left: 18px;
    padding-right: 18px;
  }

  .tech-wow-shell .tech-chat-composer {
    margin-left: 18px;
    margin-right: 18px;
  }

  .tech-chat-warning {
    padding-left: 18px;
    padding-right: 18px;
  }
}

/* AI Command Center refresh */
.workspace.is-technologist-view {
  grid-template-columns: 172px minmax(0, 1fr);
  min-height: 100vh;
  background:
    linear-gradient(135deg, rgba(31, 55, 48, 0.06), rgba(114, 133, 116, 0.04) 36%, transparent 58%),
    #f4f7f2;
}

.workspace.is-technologist-view .cabinet-sidebar {
  padding: 26px 12px 18px;
  background:
    linear-gradient(180deg, #082a23 0%, #123f35 48%, #071f1a 100%) !important;
  box-shadow:
    inset -1px 0 0 rgba(255, 255, 255, 0.08),
    18px 0 50px rgba(8, 42, 35, 0.18) !important;
}

.workspace.is-technologist-view .cabinet-brand {
  gap: 10px;
  padding: 0 10px 10px;
}

.workspace.is-technologist-view .cabinet-brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.12);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    0 16px 30px rgba(0, 0, 0, 0.18);
}

.workspace.is-technologist-view .cabinet-brand strong {
  font-size: 1.35rem;
  letter-spacing: 0;
}

.cabinet-nav-ghost,
.workspace.is-technologist-view .cabinet-nav-item {
  position: relative;
  border-radius: 14px;
  font-size: 0.9rem;
  letter-spacing: 0;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.cabinet-nav-ghost {
  color: rgba(255, 255, 255, 0.68);
}

.cabinet-nav-ghost:hover,
.workspace.is-technologist-view .cabinet-nav-item:hover {
  transform: translateX(2px);
  background: rgba(255, 255, 255, 0.1);
}

.workspace.is-technologist-view .cabinet-nav-item {
  color: #fff;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.08)) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    0 18px 34px rgba(0, 0, 0, 0.18) !important;
}

.workspace.is-technologist-view .cabinet-nav-item::before {
  content: "";
  position: absolute;
  left: -12px;
  top: 14px;
  bottom: 14px;
  width: 3px;
  border-radius: 999px;
  background: #dfece3;
}

.cabinet-user-mini {
  margin: 0 4px;
  padding: 14px 8px 0;
}

.cabinet-user-mini > span {
  background: rgba(255, 255, 255, 0.18);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.tech-wow-shell {
  min-height: 100vh;
  padding: 16px;
}

.tech-wow-shell .technologist-page {
  min-height: calc(100vh - 32px);
  grid-template-columns: 302px minmax(520px, 1fr) 364px;
  gap: 14px;
}

.tech-wow-shell .tech-history-panel,
.tech-wow-shell .tech-chat-panel,
.tech-request-panel {
  height: calc(100vh - 32px);
  border: 1px solid rgba(31, 55, 48, 0.1);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow:
    0 24px 70px rgba(31, 55, 48, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.74);
}

.tech-panel-kicker {
  display: inline-flex;
  margin-bottom: 6px;
  color: #728574;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.tech-wow-shell .tech-history-panel {
  padding: 22px 14px 18px;
  border-right: 1px solid rgba(31, 55, 48, 0.1);
}

.tech-section-head {
  margin-bottom: 14px;
}

.tech-section-head h2,
.tech-request-head h2,
.tech-wow-shell .tech-chat-head h2 {
  letter-spacing: 0;
}

.tech-section-head h2 {
  font-size: 1.2rem;
}

.tech-icon-action {
  border-radius: 14px;
  background:
    linear-gradient(145deg, #1f3730, #0d2a23);
  box-shadow:
    0 16px 32px rgba(31, 55, 48, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  cursor: pointer;
}

.tech-history-search {
  display: grid;
  gap: 7px;
  margin-bottom: 12px;
  color: #728574;
  font-size: 0.78rem;
  font-weight: 850;
}

.tech-history-search input {
  width: 100%;
  min-height: 42px;
  padding: 0 13px;
  border: 1px solid rgba(31, 55, 48, 0.12);
  border-radius: 14px;
  background: #f8faf7;
  color: #1b2723;
  font: inherit;
  outline: none;
}

.tech-history-search input:focus {
  border-color: rgba(31, 55, 48, 0.36);
  box-shadow: 0 0 0 4px rgba(31, 55, 48, 0.08);
}

.tech-filter-row {
  display: flex;
  gap: 7px;
  margin-bottom: 16px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.tech-filter-row button {
  flex: 0 0 auto;
  min-height: 34px;
  padding: 0 11px;
  border: 1px solid rgba(31, 55, 48, 0.1);
  border-radius: 999px;
  background: #fff;
  color: #596b61;
  font-weight: 850;
  cursor: pointer;
}

.tech-filter-row button.is-active {
  border-color: transparent;
  background: #1f3730;
  color: #fff;
}

.tech-history-list {
  display: grid;
  gap: 12px;
  max-height: calc(100vh - 194px);
  padding-right: 4px;
}

.tech-history-item {
  position: relative;
  min-height: 118px;
  padding: 15px;
  border-radius: 18px;
  background:
    linear-gradient(180deg, #fff, #f8faf7);
  box-shadow:
    0 14px 34px rgba(31, 55, 48, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.72);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
}

.tech-history-item::before {
  content: "";
  position: absolute;
  inset: 12px auto 12px 0;
  width: 3px;
  border-radius: 999px;
  background: #728574;
  opacity: 0;
}

.tech-history-item:first-child,
.tech-history-item:hover {
  transform: translateY(-2px);
  border-color: rgba(31, 55, 48, 0.22);
  background:
    linear-gradient(135deg, rgba(31, 55, 48, 0.1), rgba(255, 255, 255, 0.96) 52%),
    #fff;
  box-shadow: 0 20px 46px rgba(31, 55, 48, 0.14);
}

.tech-history-item:first-child::before,
.tech-history-item:hover::before {
  opacity: 1;
}

.tech-history-meta {
  font-size: 0.76rem;
  color: #728574;
}

.tech-history-item strong {
  margin-top: 10px;
  color: #15221e;
  line-height: 1.25;
}

.tech-wow-shell .tech-chat-panel {
  grid-template-rows: auto minmax(0, 1fr) auto auto;
  border-right: 1px solid rgba(31, 55, 48, 0.1);
}

.tech-wow-shell .tech-chat-head {
  min-height: 206px;
  padding: 28px 34px;
  border-bottom: 1px solid rgba(31, 55, 48, 0.08);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(236, 243, 237, 0.74));
}

.tech-chat-title {
  max-width: 570px;
}

.tech-wow-shell .tech-chat-head h2 {
  margin: 0;
  color: #08130f;
  font-size: 2.2rem;
  line-height: 1.04;
}

.tech-wow-shell .tech-chat-head p {
  max-width: 520px;
  margin-top: 12px;
  color: #526158;
  font-size: 1rem;
  line-height: 1.5;
}

.tech-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.tech-chat-head-aside {
  align-self: stretch;
  align-items: flex-start;
}

.tech-3d-card {
  position: relative;
  width: 210px;
  height: 150px;
  padding: 18px;
  overflow: hidden;
  border: 1px solid rgba(31, 55, 48, 0.12);
  border-radius: 24px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(226, 237, 228, 0.78));
  box-shadow:
    0 28px 60px rgba(31, 55, 48, 0.17),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  transform: perspective(800px) rotateX(7deg) rotateY(-9deg) translateY(0) !important;
  transform-style: preserve-3d;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.tech-3d-card:hover {
  transform: perspective(800px) rotateX(4deg) rotateY(-5deg) translateY(-2px) !important;
}

.tech-3d-grid {
  position: absolute;
  inset: 18px;
  border-radius: 18px;
  background-image:
    linear-gradient(rgba(31, 55, 48, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(31, 55, 48, 0.08) 1px, transparent 1px);
  background-size: 18px 18px;
  transform: skewY(-10deg);
}

.tech-3d-cube {
  position: absolute;
  right: 34px;
  bottom: 32px;
  width: 72px;
  height: 66px;
  border: 2px solid rgba(31, 55, 48, 0.68);
  border-radius: 14px;
  background:
    linear-gradient(145deg, rgba(31, 55, 48, 0.14), rgba(255, 255, 255, 0.42));
  box-shadow:
    14px -12px 0 rgba(114, 133, 116, 0.15),
    0 18px 24px rgba(31, 55, 48, 0.16);
  transform: skewY(-8deg);
}

.tech-3d-line {
  position: absolute;
  height: 2px;
  border-radius: 999px;
  background: rgba(31, 55, 48, 0.44);
}

.tech-3d-line.is-one {
  right: 100px;
  bottom: 82px;
  width: 58px;
  transform: rotate(-16deg);
}

.tech-3d-line.is-two {
  right: 72px;
  bottom: 112px;
  width: 42px;
  transform: rotate(18deg);
}

.tech-3d-dot {
  position: absolute;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #1f3730;
  box-shadow: 0 0 0 7px rgba(31, 55, 48, 0.09);
}

.tech-3d-dot.is-one {
  right: 150px;
  bottom: 76px;
}

.tech-3d-dot.is-two {
  right: 58px;
  bottom: 108px;
}

.tech-3d-card strong,
.tech-3d-card small {
  position: relative;
  z-index: 1;
  display: block;
}

.tech-3d-card strong {
  color: #1f3730;
  font-size: 1.75rem;
  line-height: 1;
}

.tech-3d-card small {
  max-width: 92px;
  margin-top: 8px;
  color: #66776d;
  font-size: 0.76rem;
  font-weight: 850;
  line-height: 1.25;
}

.tech-top-icon {
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 10px 20px rgba(31, 55, 48, 0.08);
}

.tech-wow-shell .tech-chat-messages {
  display: grid;
  align-content: start;
  gap: 16px;
  padding: 28px 34px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.7), rgba(247, 250, 247, 0.96));
}

.tech-message {
  max-width: min(720px, 94%);
}

.tech-message.is-user {
  justify-self: end;
}

.tech-message-bubble {
  border: 1px solid rgba(31, 55, 48, 0.08);
  border-radius: 22px;
  background: #fff;
  box-shadow:
    0 18px 44px rgba(31, 55, 48, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.85);
  line-height: 1.55;
}

.tech-message.is-bot .tech-message-bubble {
  border-top-left-radius: 8px;
}

.tech-message.is-user .tech-message-bubble {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-top-right-radius: 8px;
  background:
    linear-gradient(145deg, #1f3730, #0b2e26);
  box-shadow:
    0 20px 46px rgba(31, 55, 48, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.tech-message-author {
  color: #728574;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tech-message.is-user .tech-message-author {
  color: rgba(255, 255, 255, 0.72);
}

.tech-action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tech-action-btn,
.tech-secondary-btn,
.tech-danger-btn {
  min-height: 44px;
  border-radius: 14px;
  font-weight: 900;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.tech-action-btn:hover,
.tech-secondary-btn:hover,
.tech-danger-btn:hover {
  transform: translateY(-1px);
}

.tech-action-btn {
  background:
    linear-gradient(145deg, #1f3730, #0c2e27);
  box-shadow: 0 16px 34px rgba(31, 55, 48, 0.2);
}

.tech-secondary-btn {
  border-color: rgba(31, 55, 48, 0.18);
  background: rgba(255, 255, 255, 0.86);
  color: #1f3730;
}

.tech-wow-shell .tech-chat-composer {
  margin: 0 34px 16px;
  padding: 10px 10px 10px 16px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow:
    0 18px 44px rgba(31, 55, 48, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.86);
}

.tech-chat-composer textarea {
  color: #15221e;
}

.tech-chat-composer .send-btn {
  width: 48px;
  min-height: 48px;
  border-radius: 16px !important;
  background:
    linear-gradient(145deg, #1f3730, #0b2e26);
  box-shadow: 0 14px 24px rgba(31, 55, 48, 0.2);
}

.tech-chat-warning {
  margin: 0;
  padding: 0 34px 22px;
  background: transparent;
  color: #68786e;
}

.tech-request-panel {
  padding: 22px;
}

.tech-request-head {
  align-items: flex-start;
  padding-bottom: 18px;
}

.tech-request-head h2 {
  font-size: 1.25rem;
}

.tech-readiness {
  display: grid;
  gap: 12px;
  margin: 18px 0;
  padding: 16px;
  border: 1px solid rgba(31, 55, 48, 0.09);
  border-radius: 20px;
  background:
    linear-gradient(145deg, rgba(31, 55, 48, 0.07), rgba(255, 255, 255, 0.88));
}

.tech-readiness > div:first-child {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.tech-readiness span {
  color: #728574;
  font-weight: 850;
}

.tech-readiness strong {
  color: #1f3730;
}

.tech-progress-track {
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(31, 55, 48, 0.09);
}

.tech-progress-track span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background:
    linear-gradient(90deg, #728574, #1f3730);
  transition: width 0.25s ease;
}

.tech-status-path {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-bottom: 18px;
}

.tech-status-path span {
  min-height: 34px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #f2f5f1;
  color: #6b776f;
  font-size: 0.78rem;
  font-weight: 900;
}

.tech-status-path span.is-active {
  background: #1f3730;
  color: #fff;
}

.tech-request-fields {
  gap: 12px;
  padding-top: 0;
}

.tech-request-fields article {
  min-height: 64px;
  padding: 12px;
  border: 1px solid rgba(31, 55, 48, 0.08);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
}

.tech-request-fields span {
  font-size: 0.78rem;
}

.tech-request-fields strong {
  font-size: 0.94rem;
}

.tech-request-fields button {
  border-radius: 10px;
  background: #f3f6f2;
  cursor: pointer;
}

.tech-side-image {
  min-height: 170px;
  border: 1px dashed rgba(31, 55, 48, 0.24);
  border-radius: 20px;
  background:
    linear-gradient(145deg, #eef4ef, #f9fbf8);
}

.tech-request-actions {
  position: sticky;
  bottom: 0;
  padding-top: 12px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.98) 20%);
}

.tech-upload-inline,
.tech-visual-options,
.tech-application-preview {
  border-radius: 18px;
  border-color: rgba(31, 55, 48, 0.1);
  background: #f8faf7;
}

.tech-visual-grid {
  gap: 9px;
}

.tech-visual-option {
  border-radius: 14px;
}

.tech-visual-option.is-selected,
.tech-visual-option:hover {
  background: #1f3730;
  color: #fff;
}

@media (max-width: 1440px) {
  .workspace.is-technologist-view {
    grid-template-columns: 152px minmax(0, 1fr);
  }

  .tech-wow-shell .technologist-page {
    grid-template-columns: 282px minmax(460px, 1fr) 330px;
  }

  .tech-3d-card {
    width: 170px;
  }
}

@media (max-width: 1280px) {
  .tech-wow-shell .technologist-page {
    grid-template-columns: 280px minmax(420px, 1fr);
  }

  .tech-request-panel {
    display: none;
  }

  .tech-3d-card {
    display: none;
  }
}

@media (max-width: 980px) {
  .workspace.is-technologist-view {
    min-height: 100vh;
    grid-template-columns: 1fr;
  }

  .tech-wow-shell {
    padding: 10px;
  }

  .tech-wow-shell .technologist-page {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .tech-wow-shell .tech-history-panel,
  .tech-wow-shell .tech-chat-panel {
    height: auto;
    border-radius: 22px;
  }

  .tech-wow-shell .tech-history-panel {
    padding: 18px;
  }

  .tech-history-list {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(238px, 78vw);
    gap: 10px;
    max-height: none;
    padding: 2px 2px 8px;
  }

  .tech-filter-row {
    margin-bottom: 10px;
  }

  .tech-wow-shell .tech-chat-head {
    min-height: auto;
    display: grid;
    padding: 22px 18px;
  }

  .tech-wow-shell .tech-chat-head h2 {
    font-size: 1.85rem;
  }

  .tech-hero-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .tech-wow-shell .tech-chat-messages {
    padding: 18px;
  }

  .tech-message {
    max-width: 100%;
  }

  .tech-wow-shell .tech-chat-composer {
    margin: 0 18px 14px;
  }

  .tech-chat-warning {
    padding: 0 18px 20px;
  }
}

/* Minimal Technologist workspace */
.workspace.is-technologist-view {
  display: block;
  min-height: 100vh;
  background: #f6f8f5;
}

.workspace.is-technologist-view .cabinet-sidebar,
.workspace.is-technologist-view .cabinet-header,
.tech-history-panel,
.tech-3d-card,
.tech-top-icon,
.tech-head-actions,
.tech-hero-actions,
.tech-readiness,
.tech-status-path {
  display: none !important;
}

.workspace.is-technologist-view .cabinet-main {
  min-height: 100vh;
  padding: 24px;
}

.tech-wow-shell {
  min-height: calc(100vh - 48px);
  padding: 0;
}

.tech-wow-shell .technologist-page {
  width: min(1280px, 100%);
  min-height: calc(100vh - 48px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 16px;
}

.tech-wow-shell .tech-chat-panel,
.tech-request-panel {
  height: calc(100vh - 48px);
  min-height: 620px;
  border: 1px solid #e1e7df;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 12px 34px rgba(31, 55, 48, 0.07);
}

.tech-wow-shell .tech-chat-panel {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto auto;
  overflow: hidden;
}

.tech-wow-shell .tech-chat-head {
  min-height: auto;
  display: block;
  padding: 28px 32px 22px;
  border-bottom: 1px solid #e6ebe4;
  background: #fff;
}

.tech-chat-title {
  max-width: 720px;
}

.tech-wow-shell .tech-chat-head h2 {
  margin: 0;
  color: #14231f;
  font-size: 2rem;
  line-height: 1.12;
  letter-spacing: 0;
}

.tech-wow-shell .tech-chat-head p {
  max-width: 620px;
  margin: 8px 0 0;
  color: #66746c;
  font-size: 0.98rem;
  line-height: 1.45;
}

.tech-wow-shell .tech-chat-messages {
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 24px 32px;
  background: #fbfcfa;
}

.tech-message {
  max-width: min(680px, 92%);
}

.tech-message.is-user {
  justify-self: end;
}

.tech-message-bubble {
  padding: 16px 18px;
  border: 1px solid #e6ebe4;
  border-radius: 16px;
  background: #fff;
  box-shadow: none;
  color: #17241f;
  line-height: 1.5;
}

.tech-message.is-bot .tech-message-bubble {
  border-top-left-radius: 6px;
}

.tech-message.is-user .tech-message-bubble {
  border-color: #1f3730;
  border-top-right-radius: 6px;
  background: #1f3730;
  color: #fff;
  box-shadow: none;
}

.tech-message-author {
  margin-bottom: 6px;
  color: #728574;
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: none;
}

.tech-message.is-user .tech-message-author {
  color: rgba(255, 255, 255, 0.72);
}

.tech-action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.tech-action-btn,
.tech-secondary-btn,
.tech-danger-btn {
  min-height: 42px;
  border-radius: 10px;
  font-weight: 850;
  box-shadow: none;
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.tech-action-btn:hover,
.tech-secondary-btn:hover,
.tech-danger-btn:hover {
  transform: translateY(-1px);
}

.tech-action-btn {
  background: #1f3730;
}

.tech-secondary-btn {
  border-color: #cfd9cf;
  background: #fff;
  color: #1f3730;
}

.tech-danger-btn {
  border-color: #f0cece;
  background: #fff6f6;
  color: #a33b3b;
}

.tech-wow-shell .tech-chat-composer {
  margin: 0 32px 16px;
  padding: 10px;
  border: 1px solid #dfe6dd;
  border-radius: 14px;
  background: #fff;
  box-shadow: none;
}

.tech-chat-composer textarea {
  min-height: 46px;
  color: #17241f;
}

.tech-chat-composer .send-btn {
  width: 46px;
  min-height: 46px;
  border-radius: 10px !important;
  background: #1f3730;
  box-shadow: none;
}

.tech-chat-warning {
  margin: 0;
  padding: 0 32px 22px;
  border: 0;
  background: transparent;
  color: #728574;
  font-size: 0.88rem;
  font-weight: 700;
}

.tech-request-panel {
  display: block;
  padding: 22px;
  overflow: auto;
}

.tech-request-head {
  align-items: center;
  padding-bottom: 18px;
  border-bottom: 1px solid #e6ebe4;
}

.tech-request-head h2 {
  margin: 0;
  color: #14231f;
  font-size: 1.15rem;
  letter-spacing: 0;
}

.tech-request-fields {
  display: grid;
  gap: 0;
  padding-top: 8px;
}

.tech-request-fields article {
  min-height: auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 4px;
  padding: 13px 0;
  border: 0;
  border-bottom: 1px solid #edf1ec;
  border-radius: 0;
  background: transparent;
}

.tech-request-fields span {
  color: #728574;
  font-size: 0.78rem;
  font-weight: 800;
}

.tech-request-fields strong {
  color: #18251f;
  font-size: 0.95rem;
  line-height: 1.35;
}

.tech-side-image {
  min-height: 140px;
  margin-top: 18px;
  border: 1px dashed #cfd9cf;
  border-radius: 14px;
  background: #f7faf6;
  color: #728574;
}

.tech-request-actions {
  position: static;
  display: grid;
  gap: 10px;
  margin-top: 18px;
  padding-top: 0;
  background: transparent;
}

.tech-request-actions .tech-secondary-btn {
  background: #fff;
}

.tech-upload-inline,
.tech-visual-options,
.tech-application-preview {
  border-radius: 14px;
  border-color: #e1e7df;
  background: #f7faf6;
}

@media (max-width: 1100px) {
  .workspace.is-technologist-view .cabinet-main {
    padding: 16px;
  }

  .tech-wow-shell .technologist-page {
    min-height: calc(100vh - 32px);
    grid-template-columns: 1fr;
  }

  .tech-wow-shell .tech-chat-panel {
    height: calc(100vh - 32px);
    min-height: 620px;
  }

  .tech-request-panel {
    display: none;
  }
}

@media (max-width: 640px) {
  .workspace.is-technologist-view .cabinet-main {
    padding: 10px;
  }

  .tech-wow-shell .technologist-page {
    min-height: calc(100vh - 20px);
  }

  .tech-wow-shell .tech-chat-panel {
    height: calc(100vh - 20px);
    min-height: 560px;
    border-radius: 16px;
  }

  .tech-wow-shell .tech-chat-head,
  .tech-wow-shell .tech-chat-messages {
    padding-left: 18px;
    padding-right: 18px;
  }

  .tech-wow-shell .tech-chat-head h2 {
    font-size: 1.65rem;
  }

  .tech-wow-shell .tech-chat-composer {
    margin-left: 18px;
    margin-right: 18px;
  }

  .tech-chat-warning {
    padding-left: 18px;
    padding-right: 18px;
  }

  .tech-message {
    max-width: 100%;
  }
}
/* 2026-06-22 audit: iPhone standalone and form stability. */
html,
body {
  min-height: 100%;
  -webkit-text-size-adjust: 100%;
}

@supports (min-height: 100dvh) {
  .cabinet-page,
  .login-screen {
    min-height: 100dvh;
  }
}

@media (max-width: 768px) {
  input,
  textarea,
  select {
    font-size: 16px !important;
  }
}

/* 2026-06-27 technologist polish */
.tech-wow-shell .tech-chat-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.tech-chat-quick-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.tech-chat-quick-actions .tech-action-btn,
.tech-chat-quick-actions .tech-secondary-btn,
.tech-chat-quick-actions .tech-clear-btn {
  min-height: 40px;
  padding: 0 16px;
  white-space: nowrap;
}

.tech-clear-btn {
  border: 1px solid #e1e8df;
  border-radius: 12px;
  background: #ffffff;
  color: #728574;
  font: inherit;
  font-weight: 850;
  cursor: pointer;
  transition: color 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.tech-clear-btn:hover,
.tech-clear-btn:focus-visible {
  border-color: rgba(31, 55, 48, 0.3);
  background: #f7faf6;
  color: #1f3730;
}

.tech-chat-composer .send-btn:disabled {
  cursor: wait;
  opacity: 0.68;
}

.tech-manager-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
  max-width: 560px;
}

.tech-manager-strip button {
  position: relative;
  min-height: 78px;
  padding: 14px 15px;
  overflow: hidden;
  border: 1px solid #e1e9df;
  border-radius: 18px;
  background: #ffffff;
  color: #1f3730;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 12px 34px rgba(31, 55, 48, 0.07);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.tech-manager-strip button::after {
  content: "";
  position: absolute;
  inset: auto 14px 10px 14px;
  height: 2px;
  border-radius: 999px;
  background: #1f3730;
  opacity: 0;
  transform: scaleX(0.45);
  transform-origin: left;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.tech-manager-strip button:hover,
.tech-manager-strip button:focus-visible {
  border-color: rgba(31, 55, 48, 0.32);
  box-shadow: 0 18px 42px rgba(31, 55, 48, 0.12);
  transform: translateY(-2px);
}

.tech-manager-strip button:hover::after,
.tech-manager-strip button:focus-visible::after {
  opacity: 1;
  transform: scaleX(1);
}

.tech-manager-strip strong,
.tech-manager-strip span {
  position: relative;
  z-index: 1;
  display: block;
}

.tech-manager-strip strong {
  font-size: 0.94rem;
  line-height: 1.25;
}

.tech-manager-strip span {
  margin-top: 6px;
  color: #728574;
  font-size: 0.8rem;
  font-weight: 750;
  line-height: 1.35;
}

.tech-request-head p {
  margin: 6px 0 0;
  color: #728574;
  font-size: 0.82rem;
  font-weight: 750;
  line-height: 1.35;
}

.tech-request-progress {
  display: grid;
  gap: 10px;
  margin: 16px 0 6px;
  padding: 14px;
  border: 1px solid #e5ece3;
  border-radius: 14px;
  background: #f8faf7;
}

.tech-request-progress > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.tech-request-progress span {
  color: #728574;
  font-size: 0.82rem;
  font-weight: 800;
}

.tech-request-progress strong {
  color: #1f3730;
  font-size: 0.92rem;
}

.tech-progress-line {
  display: block;
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: #e2e9df;
}

.tech-progress-line span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: #1f3730;
  transition: width 0.22s ease;
}

.tech-request-checklist {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 12px 0 8px;
}

.tech-request-checklist span {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  padding: 8px 10px;
  border: 1px solid #e5ece3;
  border-radius: 12px;
  background: #ffffff;
  color: #728574;
  font-size: 0.76rem;
  font-weight: 850;
  line-height: 1.2;
  transition: color 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.tech-request-checklist span::before {
  content: "";
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #cbd6c8;
}

.tech-request-checklist span.is-complete {
  border-color: rgba(31, 55, 48, 0.26);
  background: #f3f7f1;
  color: #1f3730;
}

.tech-request-checklist span.is-complete::before {
  background: #1f3730;
  box-shadow: 0 0 0 4px rgba(31, 55, 48, 0.08);
}

.tech-request-note {
  margin: 0 0 14px;
  color: #728574;
  font-size: 0.78rem;
  font-weight: 750;
  line-height: 1.45;
}

.tech-message-bubble {
  font-size: 0.96rem;
  line-height: 1.55;
  white-space: pre-line;
  word-break: break-word;
}

.tech-message.is-bot .tech-message-bubble {
  background: #fff;
  max-width: min(720px, 100%);
}

.tech-message.is-user .tech-message-bubble {
  background: #1f3730;
}

.tech-request-actions .tech-secondary-btn {
  display: none;
}

.tech-request-actions .tech-action-btn {
  width: 100%;
}

@media (max-width: 1100px) {
  .tech-wow-shell .tech-chat-head {
    display: grid;
  }

  .tech-chat-quick-actions {
    justify-content: flex-start;
  }

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

@media (max-width: 640px) {
  .tech-manager-strip {
    gap: 8px;
    margin-top: 14px;
  }

  .tech-manager-strip button {
    min-height: auto;
    padding: 13px 14px;
    border-radius: 14px;
  }

  .tech-chat-quick-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .tech-chat-quick-actions .tech-action-btn,
  .tech-chat-quick-actions .tech-secondary-btn,
  .tech-chat-quick-actions .tech-clear-btn {
    width: 100%;
  }
}
