/* One GBil theme. All surfaces share the same charcoal palette. No motion. */
@font-face {
  font-family: "GBil Sans";
  src: url("/assets/space-grotesk-latin-wght-normal.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "GBil Sans";
  src: url("/assets/space-grotesk-latin-ext-wght-normal.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-024F;
}
:root {
  --bg: #0d1017;
  --surface: #141923;
  --soft: #1b2230;
  --ink: #edf0f6;
  --muted: #9aa6b8;
  --line: #293140;
  --blue: #91baff;
  --yellow: #f8cb46;
  --green: #a0cf72;
  --danger: #ffacb9;
  color-scheme: dark;
  font:
    15px/1.6 "GBil Sans",
    "Segoe UI",
    system-ui,
    sans-serif;
  color: var(--ink);
  background: var(--bg);
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}
* {
  box-sizing: border-box;
}
html {
  height: 100%;
  overflow: hidden;
}
body {
  margin: 0;
  height: 100dvh;
  overflow: hidden;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  background: var(--bg);
}
button,
input,
select,
textarea {
  font: inherit;
  max-width: 100%;
}
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
[hidden] {
  display: none !important;
}
.ui-icon {
  width: 19px;
  height: 19px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Original headset pixels are cropped by a viewport, not recoloured or redrawn. */
.brand-symbol {
  display: block;
  flex: 0 0 auto;
  width: 48px;
  height: 46px;
  overflow: hidden;
}
.brand-symbol img {
  display: block;
  width: 96px !important;
  height: 45px !important;
  max-width: none !important;
  object-fit: fill;
}
.hero-symbol {
  width: 74px;
  height: 69px;
}
.hero-symbol img {
  width: 148px !important;
  height: 69px !important;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--ink);
  text-decoration: none;
  width: 188px;
  flex: 0 0 auto;
}
.brand-word {
  font-size: 29px;
  font-weight: 650;
  letter-spacing: -1.7px;
  line-height: 1;
}
.brand-dot {
  color: var(--yellow);
}
body > header {
  display: flex;
  align-items: center;
  gap: 26px;
  min-height: 76px;
  padding: 10px 28px;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.header-caption {
  font-size: 12px;
  color: var(--muted);
  padding-left: 24px;
  border-left: 1px solid var(--line);
}
.header-tools {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-left: auto;
  min-width: 0;
}
#account {
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
  color: #c0c9d8;
}
body > header button {
  min-height: 38px;
  padding: 7px 12px;
  font-size: 12px;
  background: transparent;
}
#menu-toggle {
  display: none;
}

main {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  grid-template-rows: auto minmax(0, 1fr);
  width: 100%;
  min-height: 0;
  overflow: hidden;
}
#notice {
  grid-column: 1 / -1;
  grid-row: 1;
  background: #302719;
  color: #f4d491;
  border-bottom: 1px solid #6b5632;
  padding: 11px 24px;
  max-height: 25dvh;
  overflow: auto;
  overflow-wrap: anywhere;
  font-size: 13px;
}
#notice:empty {
  display: none;
}
nav {
  grid-column: 1;
  grid-row: 2;
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-height: 0;
  height: 100%;
  overflow: auto;
  padding: 24px 15px 18px;
  border-right: 1px solid var(--line);
  background: var(--bg);
  scrollbar-width: thin;
  scrollbar-color: #354052 transparent;
}
nav::before {
  content: "ÇALIŞMA ALANI";
  padding: 0 13px 14px;
  font-size: 10px;
  font-weight: 500;
  color: #778396;
  letter-spacing: 0.15em;
}
nav button {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 11px;
  text-align: left;
  padding: 10px 13px;
  min-height: 43px;
  border-color: transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 450;
}
nav button .ui-icon {
  width: 18px;
  height: 18px;
  color: #7d8a9d;
}
nav button:hover {
  background: #171d28;
  color: var(--ink);
}
nav button[aria-current="page"] {
  background: #202837;
  color: var(--ink);
}
nav button[aria-current="page"] .ui-icon {
  color: var(--yellow);
}
nav .nav-account {
  font-size: 12px;
}
nav button.nav-account:nth-last-of-type(2) {
  margin-top: auto;
  border-top: 1px solid var(--line);
  border-radius: 0;
  padding-top: 18px;
}
nav:empty {
  display: none;
}
#content {
  grid-column: 2;
  grid-row: 2;
  min-width: 0;
  min-height: 0;
  height: 100%;
  overflow: hidden;
  padding: 26px 32px;
}
main:has(nav:empty) {
  grid-template-columns: minmax(0, 1fr);
}
main:has(nav:empty) #content {
  grid-column: 1;
}
body:has(nav:empty) #menu-toggle {
  display: none;
}

button {
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface);
  color: var(--ink);
  font-weight: 550;
  cursor: pointer;
}
button:hover:not(:disabled) {
  border-color: #647186;
}
button.primary {
  background: var(--yellow);
  border-color: var(--yellow);
  color: #171a21;
  font-weight: 650;
}
button.primary:hover:not(:disabled) {
  background: #ffd969;
  border-color: #ffd969;
}
button.danger {
  color: var(--danger);
  border-color: #714250;
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}
input:not([type="checkbox"]),
select,
textarea {
  display: block;
  width: 100%;
  min-height: 46px;
  padding: 11px 13px;
  border: 1px solid #333d4e;
  border-radius: 9px;
  color: var(--ink);
  background: #10151f;
}
input::placeholder,
textarea::placeholder {
  color: #7d8a9e;
  opacity: 1;
}
textarea {
  min-height: 112px;
  resize: vertical;
}
label {
  display: block;
  margin: 16px 0 7px;
  font-size: 13px;
  font-weight: 500;
  color: #c6cfdd;
}
label.check {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 38px;
  margin: 8px 0;
  font-size: 12px;
  font-weight: 400;
  color: var(--muted);
}
input[type="checkbox"] {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
  accent-color: var(--yellow);
}
h1,
h2,
h3 {
  color: var(--ink);
}
h1 {
  margin: 0 0 10px;
  font-size: 25px;
  font-weight: 550;
  line-height: 1.25;
  letter-spacing: -0.8px;
}
h2 {
  margin: 0 0 8px;
  font-size: 19px;
  font-weight: 550;
  letter-spacing: -0.3px;
}
h3 {
  margin: 22px 0 8px;
  font-size: 14px;
  font-weight: 600;
}
.muted {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 13px;
}
.eyebrow {
  display: block;
  color: var(--muted);
  font-size: 10px;
  font-weight: 550;
  letter-spacing: 0.13em;
}
.panel,
.card {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  overflow-wrap: anywhere;
}
.panel {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  overflow: hidden;
  margin: 0;
}
.card {
  padding: 24px;
  margin-bottom: 16px;
}
.workspace-heading {
  flex: 0 0 auto;
  padding: 24px 28px 20px;
  border-bottom: 1px solid var(--line);
}
.workspace-heading h1 {
  margin: 0;
  font-size: 22px;
}
.workspace-heading .muted {
  margin: 6px 0 0;
}
.workspace-body {
  flex: 1;
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
  padding: 24px 28px;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}
.actions button:only-child {
  flex: 1;
}
.tag {
  display: inline-block;
  background: #253422;
  color: #c0e5a4;
  padding: 4px 9px;
  border-radius: 5px;
  font-size: 11px;
  font-weight: 500;
  margin: 4px 0;
}
.status {
  font-weight: 600;
}
.answer-heading {
  padding-left: 12px;
  border-left: 2px solid var(--blue);
}
pre {
  font: inherit;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  max-height: 400px;
  overflow: auto;
}
details {
  border-top: 1px solid var(--line);
  padding: 12px 0;
}
summary {
  cursor: pointer;
  min-height: 32px;
  color: var(--muted);
  font-size: 13px;
}
fieldset {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 14px;
  margin: 16px 0;
}
legend {
  font-size: 13px;
  font-weight: 500;
}
ol {
  padding-left: 24px;
}
li {
  margin-bottom: 12px;
}
a {
  color: var(--blue);
}
small {
  display: block;
  color: var(--muted);
  font-size: 12px;
}
hr {
  border: 0;
  border-top: 1px solid var(--line);
}
:is(.panel, .card) img {
  max-width: 100%;
  height: auto;
}

/* Focused authentication screen: one brand, one form, one dark surface. */
body:has(#content > .auth) {
  grid-template-rows: minmax(0, 1fr);
}
body:has(#content > .auth) > header {
  display: none;
}
#content:has(> .auth) {
  display: grid;
  place-items: center;
  padding: 28px 18px;
}
.auth {
  display: flex;
  flex-direction: column;
  width: min(420px, 100%);
  height: auto;
  max-height: 100%;
  border: 1px solid #303849;
  border-radius: 20px;
  background: #141923;
  box-shadow: 0 24px 80px #00000030;
}
.auth .workspace-heading {
  flex: 0 0 auto;
  padding: 26px 28px 14px;
  text-align: center;
  border: 0;
  background: transparent;
}
.auth .hero-symbol {
  width: 52px;
  height: 48px;
  margin: 0 auto 16px;
}
.auth .hero-symbol img {
  width: 104px !important;
  height: 48px !important;
}
.auth .workspace-heading h1 {
  font-size: 27px;
  font-weight: 550;
  letter-spacing: -1px;
}
.auth .workspace-heading .muted {
  font-size: 13px;
  margin: 7px 0 0;
}
.auth .workspace-body {
  padding: 0 28px 26px;
}
.auth label {
  margin: 14px 0 7px;
  font-size: 12px;
  color: #c3cbd9;
}
.auth-input {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 0 13px;
  min-height: 48px;
  border: 1px solid #354055;
  border-radius: 10px;
  background: #10151f;
}
.auth-input > .ui-icon {
  width: 17px;
  height: 17px;
  color: #8492a9;
  pointer-events: none;
}
.auth-input input {
  flex: 1;
  width: 100%;
  min-width: 0;
  min-height: 46px;
  padding: 11px 0;
  border: 0;
  background: transparent;
  border-radius: 0;
  font-size: 14px;
}
.auth-input:focus-within {
  border-color: #91baff;
  box-shadow: 0 0 0 3px #91baff12;
}
.auth-input input:focus-visible {
  outline: 0;
}
.password-visibility {
  display: grid;
  place-items: center;
  flex: 0 0 40px;
  width: 40px;
  min-height: 40px;
  padding: 8px;
  margin-right: -7px;
  border: 0;
  background: transparent;
  color: #9ba9be;
}
.password-visibility:hover:not(:disabled) {
  color: var(--ink);
  background: #202a3a;
}
.password-visibility .ui-icon {
  width: 18px;
  height: 18px;
}
.auth details {
  border: 0;
  margin-top: 14px;
  padding: 0;
}
.auth summary {
  font-size: 12px;
  min-height: 32px;
  padding: 4px 0;
}
.auth .actions {
  margin-top: 18px;
}
.auth .primary {
  width: 100%;
  min-height: 48px;
  border-radius: 10px;
  font-size: 14px;
}
.auth-invitation {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px;
  border-top: 1px solid var(--line);
  margin-top: 22px;
  padding-top: 14px;
  font-size: 12px;
  color: #8e9cb2;
}
.auth-invitation button {
  padding: 5px 3px;
  min-height: 34px;
  border: 0;
  background: transparent;
  color: #d7e2f3;
  font-size: 12px;
}
.auth .workspace-body > button {
  display: block;
  border: 0;
  background: transparent;
  color: var(--muted);
  margin: 12px auto 0;
  font-size: 12px;
}

#content:has(> .chat-panel) {
  padding: 0;
}
.chat-panel {
  border: 0;
  border-radius: 0;
  background: var(--bg);
}
.chat-panel .workspace-heading {
  position: relative;
  padding: 24px 36px 18px;
  border: 0;
}
.chat-panel .workspace-heading h1 {
  font-size: 18px;
}
.chat-panel .workspace-heading .muted {
  font-size: 12px;
  margin-top: 4px;
}
.new-chat {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  min-height: 38px;
  font-size: 12px;
  background: transparent;
}
.new-chat .ui-icon {
  width: 16px;
  height: 16px;
}
.chat-panel .workspace-heading .new-chat {
  position: absolute;
  right: 36px;
  top: 24px;
}
.chat-panel .workspace-body {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  gap: 18px;
  padding: 0 36px 30px;
}
.chat-log {
  flex: 1;
  min-height: 0;
  width: 100%;
  overflow: auto;
  overscroll-behavior: contain;
  padding: 12px 2px;
  scrollbar-width: thin;
  scrollbar-color: #354052 transparent;
}
.chat-welcome {
  display: grid;
  place-items: center;
  height: 100%;
  min-height: 200px;
  text-align: center;
}
.chat-welcome > div {
  width: min(790px, 100%);
  margin: auto;
}
.chat-welcome .hero-symbol {
  margin: 0 auto 24px;
}
.chat-welcome .eyebrow {
  color: #8c9bb0;
  margin-bottom: 16px;
  font-size: 10px;
}
.chat-welcome h2 {
  font-size: clamp(28px, 3.2vw, 44px);
  font-weight: 500;
  letter-spacing: -1.7px;
  line-height: 1.2;
  margin: 0 0 15px;
}
.chat-welcome .muted {
  margin: 0;
  font-size: 14px;
}
.chat-suggestions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 9px;
  margin: 30px auto 0;
}
.chat-suggestions button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 13px;
  min-height: 42px;
  background: transparent;
  color: #b1bfd2;
  border-color: #30394a;
  border-radius: 24px;
  font-size: 12px;
  font-weight: 400;
}
.chat-suggestions .ui-icon {
  width: 16px;
  height: 16px;
  color: #8d9fb7;
}
.chat-message {
  max-width: 790px;
  margin: 0 auto 24px;
  overflow-wrap: anywhere;
}
.chat-message > p {
  margin: 0 0 12px;
  white-space: pre-wrap;
}
.user-message {
  background: #222b3a;
  padding: 13px 18px;
  border-radius: 17px 17px 4px 17px;
  max-width: min(80%, 650px);
  margin-left: auto;
  width: fit-content;
}
.assistant-message {
  padding: 8px 0;
}
.assistant-message .card {
  margin: 14px 0 0;
}
.chat-pending {
  max-width: 790px;
  margin: 12px auto;
  font-size: 13px;
  color: var(--muted);
}
.chat-compose {
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 8px;
  width: min(800px, 100%);
  margin: 0 auto;
  padding: 9px;
  border: 1px solid #364156;
  border-radius: 18px;
  background: #171e2a;
  box-shadow: 0 10px 30px #00000016;
}
.chat-compose:focus-within {
  border-color: #7388a5;
}
.chat-compose > label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
}
.chat-compose textarea {
  height: 54px;
  min-height: 54px;
  max-height: 128px;
  resize: none;
  background: transparent;
  border: 0;
  border-radius: 10px;
  padding: 15px 13px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #526279 transparent;
}
.chat-compose textarea:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: -2px;
}
.chat-compose .actions {
  margin: 0;
}
.chat-compose button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 46px;
  min-width: 46px;
  margin-bottom: 4px;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 12px;
}

.form-tabs {
  flex: 0 0 auto;
  display: flex;
  gap: 5px;
  overflow-x: auto;
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
  scrollbar-width: thin;
}
.form-tabs button {
  flex: 0 0 auto;
  padding: 8px 13px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  white-space: nowrap;
}
.form-tabs button[aria-selected="true"] {
  color: var(--ink);
  background: #253044;
  box-shadow: inset 0 -2px var(--yellow);
}
.workspace-body:has(> form > .form-tabs) {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
form:has(> .form-tabs) {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}
.form-step {
  flex: 1;
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
  padding: 6px 3px 10px;
}
form:has(> .form-tabs) > .actions {
  flex: 0 0 auto;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.workspace-body > button {
  flex: 0 0 auto;
  margin-top: 8px;
}

@media (max-width: 1100px) {
  body > header {
    padding: 10px 22px;
    gap: 18px;
  }
  .brand {
    width: 168px;
  }
  main {
    grid-template-columns: 212px minmax(0, 1fr);
  }
  .header-caption {
    padding-left: 18px;
  }
  #account {
    max-width: 170px;
  }
  #content {
    padding: 22px;
  }
}
@media (max-width: 760px) {
  body > header {
    min-height: 64px;
    padding: 8px 18px;
    gap: 12px;
  }
  .brand {
    width: auto;
    gap: 6px;
  }
  .brand-word {
    font-size: 25px;
  }
  .brand .brand-symbol {
    width: 38px;
    height: 36px;
  }
  .brand .brand-symbol img {
    width: 76px !important;
    height: 36px !important;
  }
  .header-caption {
    display: none;
  }
  #menu-toggle {
    display: block;
    padding: 8px 10px;
    min-height: 40px;
  }
  #account {
    max-width: 120px;
    font-size: 11px;
  }
  .header-tools {
    gap: 7px;
  }
  body > header #install-app {
    font-size: 10px;
    padding: 7px;
  }
  main {
    position: relative;
    grid-template-columns: minmax(0, 1fr);
  }
  #content {
    grid-column: 1;
    padding: 14px;
  }
  nav {
    display: none;
    position: absolute;
    inset: 0;
    grid-column: 1;
    grid-row: 2;
    z-index: 5;
    padding: 18px;
    border-right: 0;
  }
  body.nav-open nav {
    display: flex;
  }
  nav button {
    min-height: 44px;
  }
  .workspace-heading {
    padding: 20px;
  }
  .workspace-heading h1 {
    font-size: 21px;
  }
  .workspace-body {
    padding: 20px;
  }
  .chat-panel .workspace-heading {
    padding: 18px 22px 14px;
  }
  .chat-panel .workspace-heading .new-chat {
    right: 22px;
    top: 18px;
  }
  .chat-panel .workspace-body {
    padding: 0 20px 20px;
    gap: 12px;
  }
  .chat-welcome .hero-symbol {
    margin-bottom: 20px;
  }
  .chat-welcome h2 {
    font-size: 31px;
    letter-spacing: -1.2px;
  }
  .chat-welcome .muted {
    font-size: 13px;
    max-width: 300px;
    margin: auto;
  }
  .chat-suggestions {
    margin-top: 24px;
    gap: 8px;
  }
  .chat-suggestions button {
    font-size: 11px;
    padding: 8px 12px;
    min-height: 38px;
  }
  .chat-compose textarea {
    font-size: 14px;
    padding: 14px 9px;
  }
  .chat-compose button {
    padding: 10px;
    font-size: 0;
    gap: 0;
  }
  .chat-compose button .ui-icon {
    width: 20px;
    height: 20px;
  }
}
@media (max-width: 380px) {
  body > header {
    padding: 6px 14px;
    gap: 9px;
  }
  .brand-word {
    font-size: 23px;
  }
  #account {
    max-width: 85px;
  }
  #content {
    padding: 10px;
  }
  .chat-panel .workspace-heading {
    padding: 16px;
  }
  .chat-panel .workspace-heading .new-chat {
    right: 16px;
    top: 16px;
    padding: 8px;
  }
  .chat-panel .workspace-heading .muted {
    max-width: 150px;
  }
  .chat-panel .workspace-body {
    padding: 0 14px 14px;
  }
  .chat-welcome h2 {
    font-size: 28px;
  }
  .chat-suggestions button {
    gap: 6px;
    padding: 8px 11px;
  }
}
@media (max-height: 650px) {
  .chat-welcome .hero-symbol {
    width: 52px;
    height: 48px;
    margin-bottom: 16px;
  }
  .chat-welcome .hero-symbol img {
    width: 104px !important;
    height: 48px !important;
  }
  .chat-welcome .eyebrow {
    margin-bottom: 10px;
  }
  .chat-welcome h2 {
    font-size: 28px;
  }
  .chat-suggestions {
    margin-top: 18px;
  }
}
@media (max-height: 430px) {
  .chat-welcome .hero-symbol,
  .chat-welcome .eyebrow,
  .chat-suggestions {
    display: none;
  }
  .chat-panel .workspace-heading {
    padding-top: 10px;
    padding-bottom: 8px;
  }
  .chat-panel .workspace-heading .new-chat {
    top: 10px;
  }
  .chat-welcome {
    min-height: 80px;
  }
}

@media (max-width: 480px) {
  #content:has(> .auth) {
    padding: 16px 14px;
  }
  .auth {
    border-radius: 16px;
  }
  .auth .workspace-heading {
    padding: 24px 24px 12px;
  }
  .auth .workspace-body {
    padding: 0 24px 22px;
  }
}
@media (max-height: 600px) {
  #content:has(> .auth) {
    padding-top: 12px;
    padding-bottom: 12px;
  }
  .auth .workspace-heading {
    padding-top: 18px;
    padding-bottom: 10px;
  }
  .auth .hero-symbol {
    width: 44px;
    height: 41px;
    margin-bottom: 10px;
  }
  .auth .hero-symbol img {
    width: 88px !important;
    height: 41px !important;
  }
  .auth .workspace-heading h1 {
    font-size: 24px;
  }
  .auth label {
    margin-top: 10px;
  }
  .auth-invitation {
    margin-top: 16px;
    padding-top: 10px;
  }
}

/* Three equal workspaces share the viewport; only each workspace's body scrolls. */
#content:has(> .ops-frame) {
  padding: 16px;
}
main:has(.ops-frame) {
  grid-template-columns: 184px minmax(0, 1fr);
}
.ops-frame {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  min-width: 0;
}
.ops-tabs {
  display: none;
}
.operations-grid {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  min-height: 0;
  min-width: 0;
}
.ops-slot {
  min-width: 0;
  min-height: 0;
  height: 100%;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
}
.ops-panel {
  display: flex;
  flex-direction: column;
  padding: 18px 16px 12px;
  overflow-wrap: anywhere;
}
.ops-heading {
  flex: 0 0 auto;
  margin-bottom: 14px;
}
.ops-heading h2 {
  font-size: 1.14rem;
  line-height: 1.3;
  margin-bottom: 6px;
}
.ops-heading .muted {
  margin: 0;
  font-size: .9rem;
}
.ops-controls {
  flex: 0 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.ops-controls button {
  flex: 1 1 auto;
  min-height: 44px;
  padding: 8px 9px;
  border-radius: 7px;
  font-size: .94rem;
  font-weight: 500;
}
.ops-controls button[aria-pressed="true"] {
  background: #303521;
  border-color: #9c8741;
  color: #ffe091;
}
.ops-select-label {
  margin: 12px 0 5px;
  font-size: .94rem;
}
.ops-panel > select {
  flex: 0 0 auto;
  font-size: .94rem;
}
.ops-status {
  flex: 0 0 auto;
  margin: 12px 0;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--muted);
  font-size: .94rem;
  line-height: 1.5;
  max-height: 24%;
  overflow: auto;
}
.ops-warning {
  border-color: #6b5632;
  color: #f4d491;
  background: #302719;
}
.ops-scroll {
  flex: 1 1 0;
  min-height: 0;
  min-width: 0;
  overflow: auto;
  overscroll-behavior: contain;
  padding: 1px 3px 8px 0;
  scrollbar-width: thin;
  scrollbar-color: #46536a transparent;
  scrollbar-gutter: stable;
}
.ops-empty {
  margin: 0;
  padding: 16px 12px;
  border: 1px dashed #435068;
  border-radius: 9px;
  color: #c6cfdd;
  font-size: 1rem;
}
.ops-card {
  margin: 0 0 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #10151f;
  font-size: 1rem;
  line-height: 1.5;
}
.ops-card h3 {
  margin: 0 0 8px;
  font-size: 1rem;
}
.ops-card p {
  margin: 8px 0;
}
.ops-card .muted,
.ops-time,
.ops-card a {
  font-size: .94rem;
}
.ops-time {
  color: #c3cfdf;
  font-variant-numeric: tabular-nums;
}
.ops-card summary {
  min-height: 44px;
  font-size: 1rem;
  color: #d1d9e7;
}
.ops-province > summary,
.ops-districts summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  list-style: none;
}
.ops-province > summary::before,
.ops-districts summary::before {
  content: "+";
  flex: 0 0 auto;
  color: var(--blue);
}
.ops-province[open] > summary::before,
.ops-districts details[open] > summary::before {
  content: "−";
}
.ops-province summary > span,
.ops-districts summary > span {
  flex: 1;
  min-width: 0;
}
.ops-province summary strong {
  font-size: .94rem;
  color: var(--yellow);
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.ops-districts details {
  padding: 6px 0;
}
.ops-footnote {
  flex: 0 0 auto;
  margin: 10px 0 0;
  font-size: .87rem;
  line-height: 1.5;
  color: var(--muted);
}
.ops-frame .chat-panel .workspace-heading {
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 5px 10px;
  padding: 18px 16px 12px;
}
.ops-frame .chat-panel .workspace-heading h1 {
  flex: 1;
  font-size: 1.2rem;
  margin: 0;
}
.ops-frame .chat-panel .workspace-heading .muted {
  flex: 1 0 100%;
  order: 1;
  font-size: .9rem;
  margin: 0;
}
.ops-frame .chat-panel .workspace-heading .new-chat {
  position: static;
  min-height: 36px;
  padding: 5px 8px;
  font-size: .87rem;
}
.ops-frame .chat-panel .workspace-body {
  padding: 0 14px 14px;
  gap: 12px;
}
.ops-frame .chat-welcome h2 {
  font-size: clamp(25px, 2.2vw, 34px);
  letter-spacing: -1px;
}
.ops-frame .chat-welcome .muted {
  font-size: 1rem;
}
.ops-frame .chat-welcome .hero-symbol {
  margin-bottom: 18px;
}
.ops-frame .chat-suggestions {
  margin-top: 22px;
}
.ops-frame .chat-suggestions button {
  font-size: .94rem;
}
.ops-frame .chat-compose {
  position: relative;
  border-radius: 12px;
  padding: 5px;
}
.ops-frame .chat-compose textarea {
  font-size: 1rem;
  padding: 13px 8px;
}
.ops-frame .chat-compose button {
  font-size: 0;
  padding: 10px;
  gap: 0;
}
.ops-frame .chat-compose .ui-icon {
  width: 20px;
  height: 20px;
}
@media (max-width: 1100px) {
  .ops-tabs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    flex: 0 0 auto;
    padding: 3px 3px 12px;
  }
  .ops-tabs button {
    min-width: 0;
    padding: 8px 6px;
    font-size: .94rem;
    color: var(--muted);
  }
  .ops-tabs button[aria-selected="true"] {
    color: var(--ink);
    border-color: #938044;
    background: #252b24;
    box-shadow: inset 0 -2px var(--yellow);
  }
  .operations-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }
  .ops-slot:not(.ops-active) {
    display: none;
  }
}
@media (max-width: 760px) {
  main:has(.ops-frame) {
    grid-template-columns: minmax(0, 1fr);
  }
  #content:has(> .ops-frame) {
    padding: 10px;
  }
  .ops-panel {
    padding: 14px 12px 10px;
  }
}
/* At short heights the entire side panel scrolls so filters never hide its data. */
@media (max-height: 600px) {
  .ops-panel {
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
  }
  .ops-panel .ops-scroll {
    flex: 0 0 auto;
    overflow: visible;
  }
  .ops-heading {
    margin-bottom: 9px;
  }
  .ops-status {
    max-height: none;
  }
  .ops-frame .chat-panel .workspace-heading {
    padding-top: 10px;
    padding-bottom: 8px;
  }
  .ops-frame .chat-panel .workspace-body {
    padding-bottom: 8px;
    gap: 8px;
  }
}

/* Plain clock; no decorative motion or network request. */
#app-clock { color: var(--muted); font-size: 14px; font-variant-numeric: tabular-nums; white-space: nowrap; }
@media (max-width: 760px) {
  #app-clock { max-width: 86px; white-space: normal; text-align: right; line-height: 1.2; }
  .header-tools { min-width: 0; }
}
@media (max-width: 480px) {
  body > header { flex-wrap: wrap; }
  body > header .brand { margin-right: auto; }
  .header-tools { flex: 1 0 100%; margin-left: 0; }
  #install-app { order: 1; }
  #account { order: 2; max-width: 64px; }
  #app-clock { order: 3; margin-left: auto; flex: 0 0 86px; }
}
