:root {
  color-scheme: light;
  --gb-ink: #172033;
  --gb-muted: #687386;
  --gb-soft: #f5f7fb;
  --gb-panel: #ffffff;
  --gb-line: #dfe5ee;
  --gb-red: #d94b4b;
  --gb-green: #12805c;
  --gb-teal: #0f766e;
  --gb-gold: #b7791f;
  --gb-coral: #e05d47;
  --gb-blue: #2563eb;
  --gb-shadow: 0 16px 42px rgba(23, 32, 51, 0.12);
  --gb-radius: 8px;
  --gb-bottom: calc(88px + env(safe-area-inset-bottom, 0px));
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  color: var(--gb-ink);
  background: linear-gradient(180deg, #fbfcff 0%, #eef3f7 62%, #f8fafb 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.gb-app {
  min-height: 100vh;
}

.gb-shell {
  min-height: 100vh;
  padding: env(safe-area-inset-top, 0px) 0 var(--gb-bottom);
}

.gb-main {
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  padding: 14px 14px 34px;
}

.gb-boot {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 100vh;
  padding: 28px;
}

.gb-boot-mark,
.gb-brand-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(145deg, #172033 0%, #0f766e 100%);
  font-weight: 900;
  box-shadow: var(--gb-shadow);
}

.gb-boot-title {
  font-size: 24px;
  font-weight: 900;
}

.gb-boot-subtitle {
  margin-top: 4px;
  color: var(--gb-muted);
  font-size: 14px;
}

.gb-topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  width: 100%;
  border-bottom: 1px solid rgba(223, 229, 238, 0.84);
  background: rgba(251, 252, 255, 0.92);
  backdrop-filter: blur(18px);
}

.gb-topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  max-width: 760px;
  margin: 0 auto;
  padding: 10px 14px;
}

.gb-brand {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  min-width: 0;
  border: 0;
  background: transparent;
  color: inherit;
  gap: 10px;
  padding: 0;
  text-align: left;
}

.gb-brand > span:last-child {
  min-width: 0;
}

.gb-brand-mark {
  width: 38px;
  height: 38px;
  font-size: 13px;
}

.gb-brand-title {
  font-size: 17px;
  font-weight: 900;
  line-height: 1.2;
}

.gb-brand-subtitle {
  max-width: 210px;
  overflow: hidden;
  color: var(--gb-muted);
  font-size: 12px;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gb-header-action {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  min-width: 92px;
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid var(--gb-line);
  border-radius: 8px;
  color: var(--gb-ink);
  background: #fff;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

.gb-hero {
  padding: 18px 0 14px;
}

.gb-eyebrow {
  color: var(--gb-teal);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.gb-title {
  margin: 6px 0 0;
  font-size: 28px;
  line-height: 1.12;
  font-weight: 950;
}

.gb-subtitle {
  margin: 8px 0 0;
  color: var(--gb-muted);
  font-size: 14px;
  line-height: 1.55;
}

.gb-auth-card,
.gb-panel,
.gb-job-card,
.gb-application-card,
.gb-chat-row,
.gb-profile-card {
  border: 1px solid rgba(223, 229, 238, 0.92);
  border-radius: var(--gb-radius);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 10px 28px rgba(23, 32, 51, 0.07);
}

.gb-auth-card,
.gb-panel,
.gb-profile-card {
  padding: 16px;
}

.gb-stack {
  display: grid;
  gap: 12px;
}

.gb-grid-two {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.gb-form {
  display: grid;
  gap: 12px;
}

.gb-field {
  display: grid;
  gap: 6px;
}

.gb-label {
  color: var(--gb-ink);
  font-size: 13px;
  font-weight: 850;
}

.gb-input,
.gb-select,
.gb-textarea {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--gb-line);
  border-radius: 8px;
  color: var(--gb-ink);
  background: #fff;
  outline: none;
  padding: 11px 12px;
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.gb-textarea {
  min-height: 98px;
  resize: vertical;
}

.gb-input:focus,
.gb-select:focus,
.gb-textarea:focus {
  border-color: rgba(15, 118, 110, 0.74);
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.12);
}

.gb-input:disabled,
.gb-textarea:disabled {
  color: #8792a3;
  background: #f3f6f9;
  cursor: not-allowed;
}

.gb-button-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.gb-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 0 14px;
  font-weight: 900;
  line-height: 1.2;
  text-decoration: none;
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.gb-btn-primary {
  color: #fff;
  background: linear-gradient(135deg, #172033 0%, #0f766e 100%);
  box-shadow: 0 10px 22px rgba(15, 118, 110, 0.2);
}

.gb-btn-coral {
  color: #fff;
  background: linear-gradient(135deg, #c84735 0%, #e05d47 100%);
  box-shadow: 0 10px 22px rgba(224, 93, 71, 0.2);
}

.gb-btn-secondary {
  color: var(--gb-ink);
  border-color: var(--gb-line);
  background: #fff;
}

.gb-btn-ghost {
  color: var(--gb-teal);
  background: transparent;
}

.gb-btn-full {
  width: 100%;
}

.gb-btn:disabled {
  opacity: 0.62;
  cursor: not-allowed;
}

.gb-btn:not(:disabled):active {
  transform: translateY(1px);
}

.gb-link {
  border: 0;
  color: var(--gb-teal);
  background: transparent;
  font-weight: 850;
  padding: 0;
  text-decoration: none;
}

.gb-search-row,
.gb-filter-row {
  display: grid;
  gap: 10px;
}

.gb-filter-row {
  grid-template-columns: 1fr;
}

.gb-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.gb-chip {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  max-width: 100%;
  padding: 0 10px;
  border: 1px solid #d7efe8;
  border-radius: 999px;
  color: #0f5f52;
  background: #eefaf6;
  font-size: 12px;
  font-weight: 850;
}

.gb-chip-gold {
  border-color: #f1dfa8;
  color: #855b12;
  background: #fff8df;
}

.gb-chip-coral {
  border-color: #f7c9bf;
  color: #a83d2d;
  background: #fff0ec;
}

.gb-chip-muted {
  border-color: var(--gb-line);
  color: var(--gb-muted);
  background: #f7f9fc;
}

.gb-list {
  display: grid;
  gap: 12px;
}

.gb-job-card,
.gb-application-card,
.gb-chat-row {
  padding: 14px;
}

.gb-job-top,
.gb-card-top,
.gb-chat-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.gb-job-title,
.gb-card-title {
  margin: 0;
  font-size: 17px;
  line-height: 1.32;
  font-weight: 950;
}

.gb-card-sub {
  margin-top: 5px;
  color: var(--gb-muted);
  font-size: 13px;
  line-height: 1.5;
}

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

.gb-meta {
  min-height: 52px;
  padding: 9px;
  border: 1px solid #e8edf4;
  border-radius: 8px;
  background: #fbfcfe;
}

.gb-meta-label {
  color: var(--gb-muted);
  font-size: 11px;
  font-weight: 750;
}

.gb-meta-value {
  margin-top: 3px;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.gb-section-title {
  margin: 18px 0 10px;
  font-size: 16px;
  font-weight: 950;
}

.gb-divider {
  height: 1px;
  margin: 14px 0;
  background: var(--gb-line);
}

.gb-state {
  display: grid;
  place-items: center;
  min-height: 220px;
  padding: 26px 18px;
  border: 1px solid rgba(223, 229, 238, 0.92);
  border-radius: var(--gb-radius);
  background: rgba(255, 255, 255, 0.8);
  text-align: center;
}

.gb-state-icon {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  margin-bottom: 12px;
  border-radius: 8px;
  color: #0f5f52;
  background: #e8f7f2;
  font-weight: 950;
}

.gb-state-title {
  font-size: 17px;
  font-weight: 950;
}

.gb-state-copy {
  max-width: 330px;
  margin-top: 8px;
  color: var(--gb-muted);
  font-size: 14px;
  line-height: 1.55;
}

.gb-spinner {
  width: 24px;
  height: 24px;
  border: 3px solid #d8e6e2;
  border-top-color: var(--gb-teal);
  border-radius: 50%;
  animation: gb-spin 0.8s linear infinite;
}

@keyframes gb-spin {
  to {
    transform: rotate(360deg);
  }
}

.gb-tabs {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 4px;
  border: 1px solid var(--gb-line);
  border-radius: 8px;
  background: #fff;
  scrollbar-width: none;
}

.gb-tabs::-webkit-scrollbar {
  display: none;
}

.gb-tab-btn {
  flex: 0 0 auto;
  min-height: 36px;
  border: 0;
  border-radius: 7px;
  color: var(--gb-muted);
  background: transparent;
  font-size: 12px;
  font-weight: 900;
  padding: 0 11px;
  white-space: nowrap;
}

.gb-tab-btn.is-active {
  color: #fff;
  background: var(--gb-ink);
}

.gb-bottom-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  border-top: 1px solid rgba(223, 229, 238, 0.9);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(18px);
  padding: 7px 10px calc(7px + env(safe-area-inset-bottom, 0px));
}

.gb-bottom-inner {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 4px;
  max-width: 760px;
  margin: 0 auto;
}

.gb-nav-item {
  display: grid;
  place-items: center;
  min-height: 54px;
  border: 0;
  border-radius: 8px;
  color: #6b7280;
  background: transparent;
  text-decoration: none;
}

.gb-nav-icon {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 7px;
  background: #eef2f6;
  font-size: 15px;
  font-weight: 950;
  line-height: 1;
}

.gb-nav-label {
  margin-top: 4px;
  font-size: 11px;
  font-weight: 850;
  line-height: 1.1;
  white-space: nowrap;
}

.gb-nav-item.is-active {
  color: #0f5f52;
  background: #ecf8f4;
}

.gb-nav-item.is-active .gb-nav-icon {
  color: #fff;
  background: var(--gb-teal);
}

.gb-toast-root {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: calc(var(--gb-bottom) + 8px);
  z-index: 80;
  pointer-events: none;
}

.gb-toast {
  max-width: 520px;
  margin: 0 auto 8px;
  padding: 12px 14px;
  border-radius: 8px;
  color: #fff;
  background: rgba(23, 32, 51, 0.96);
  box-shadow: var(--gb-shadow);
  font-size: 13px;
  font-weight: 800;
}

.gb-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: grid;
  align-items: end;
  padding-top: env(safe-area-inset-top, 0px);
  background: rgba(23, 32, 51, 0.38);
}

.gb-modal {
  width: 100%;
  max-width: 760px;
  max-height: min(86vh, 720px);
  overflow-y: auto;
  margin: 0 auto;
  border-radius: 8px 8px 0 0;
  background: #fff;
  padding: 16px 16px calc(16px + env(safe-area-inset-bottom, 0px));
  box-shadow: var(--gb-shadow);
}

.gb-chat-messages {
  display: grid;
  gap: 10px;
  min-height: 300px;
}

.gb-chat-messages .gb-state {
  min-height: 260px;
}

.gb-message {
  max-width: 82%;
  padding: 10px 12px;
  border-radius: 8px;
  background: #eef2f6;
}

.gb-message.me {
  justify-self: end;
  color: #fff;
  background: var(--gb-teal);
}

.gb-message-name {
  margin-bottom: 3px;
  font-size: 11px;
  font-weight: 900;
  opacity: 0.8;
}

.gb-message-body {
  font-size: 14px;
  line-height: 1.45;
  white-space: pre-wrap;
}

.gb-message-time {
  margin-top: 5px;
  font-size: 10px;
  font-weight: 800;
  opacity: 0.64;
}

.gb-chat-composer {
  display: grid;
  gap: 10px;
}

.gb-chat-send-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.gb-chat-send-row .gb-btn {
  min-width: 96px;
}

.gb-form-hint {
  color: var(--gb-muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
}

.gb-profile-head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.gb-avatar {
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  overflow: hidden;
  border: 1px solid var(--gb-line);
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(135deg, #0f766e, #e05d47);
  font-size: 20px;
  font-weight: 950;
}

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

.gb-hide {
  display: none !important;
}

@media (min-width: 520px) {
  .gb-filter-row,
  .gb-grid-two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 720px) {
  .gb-shell {
    padding-bottom: 32px;
  }

  .gb-main {
    padding: 22px 18px 44px;
  }

  .gb-title {
    font-size: 34px;
  }

  .gb-bottom-nav {
    left: 50%;
    right: auto;
    bottom: 18px;
    width: min(560px, calc(100vw - 36px));
    transform: translateX(-50%);
    border: 1px solid rgba(223, 229, 238, 0.9);
    border-radius: 8px;
    box-shadow: var(--gb-shadow);
    padding: 8px;
  }

  .gb-modal-backdrop {
    align-items: center;
    padding: 20px;
  }

  .gb-modal {
    border-radius: 8px;
  }
}
