/* Smart Inbox – Google Workspace (Material 3) look */
:root {
  --bg: #f6f8fc;
  --surface: #ffffff;
  --surface-container: #f0f4f9;
  --surface-container-high: #e9eef6;
  --border: #dadce0;
  --outline-variant: #c4c7c5;
  --outline: #747775;
  --text: #1f1f1f;
  --text-muted: #444746;
  --text-subtle: #5f6368;
  --primary: #0b57d0;
  --primary-hover: #0842a0;
  --primary-container: #d3e3fd;
  --on-primary-container: #041e49;
  --secondary-container: #c2e7ff;
  --on-secondary-container: #001d35;
  --success: #146c2e;
  --success-container: #c4eed0;
  --error: #b3261e;
  --error-container: #f9dedc;
  --g-blue: #4285f4;
  --g-red: #ea4335;
  --g-yellow: #fbbc04;
  --g-green: #34a853;
  --shadow-1: 0 1px 2px 0 rgba(60, 64, 67, 0.3), 0 1px 3px 1px rgba(60, 64, 67, 0.15);
  --shadow-2: 0 1px 2px 0 rgba(60, 64, 67, 0.3), 0 2px 6px 2px rgba(60, 64, 67, 0.15);
  --shadow-3: 0 4px 8px 3px rgba(60, 64, 67, 0.15), 0 1px 3px rgba(60, 64, 67, 0.3);
  --radius: 16px;
  --radius-sm: 8px;
  --radius-pill: 999px;
  --font-head: "Google Sans", "Google Sans Text", Roboto, Arial, sans-serif;
  --font-body: "Google Sans Text", "Google Sans", Roboto, Arial, sans-serif;
  --font-mono: "Roboto Mono", ui-monospace, monospace;
  --topbar-h: 64px;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--primary);
}

code {
  font-family: var(--font-mono);
  font-size: 0.85em;
  padding: 0.1rem 0.4rem;
  background: var(--surface-container);
  border-radius: 4px;
  color: var(--text);
}

.app {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

.material-symbols-outlined {
  font-family: "Material Symbols Outlined";
  font-weight: normal;
  font-style: normal;
  font-size: 20px;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  white-space: nowrap;
  direction: ltr;
  -webkit-font-smoothing: antialiased;
  font-variation-settings: "FILL" 0, "wght" 400, "GRAD" 0, "opsz" 20;
  flex-shrink: 0;
  user-select: none;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  height: 36px;
  padding: 0 1.25rem;
  font-family: var(--font-head);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.2s, box-shadow 0.2s, border-color 0.2s, color 0.2s;
}

.btn .material-symbols-outlined {
  font-size: 18px;
  margin-left: -0.25rem;
}

.btn:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.btn:disabled {
  opacity: 0.38;
  cursor: default;
  box-shadow: none;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}

.btn-primary:hover:not(:disabled) {
  background: var(--primary-hover);
  box-shadow: var(--shadow-1);
}

.btn-secondary {
  background: transparent;
  color: var(--primary);
  border-color: var(--outline);
}

.btn-secondary:hover:not(:disabled) {
  background: rgba(11, 87, 208, 0.08);
}

.btn-text {
  background: transparent;
  color: var(--primary);
  padding: 0 0.75rem;
}

.btn-text:hover {
  background: rgba(11, 87, 208, 0.08);
}

.btn-lg {
  height: 48px;
  padding: 0 1.75rem;
  font-size: 1rem;
}

/* Google sign-in style (white, outlined, multicolour G) */
.btn-google {
  background: #fff;
  color: #1f1f1f;
  border-color: var(--outline);
  gap: 0.75rem;
}

.btn-google:hover:not(:disabled) {
  background: #f8faff;
  box-shadow: var(--shadow-1);
}

.btn-google img,
.btn-oshaani img {
  flex-shrink: 0;
}

/* Oshaani brand button */
.btn-oshaani {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  gap: 0.6rem;
  padding-left: 0.6rem;
}

.btn-oshaani img {
  border-radius: 50%;
  background: #fff;
  padding: 1px;
}

.btn-oshaani:hover:not(:disabled) {
  box-shadow: 0 2px 8px rgba(118, 75, 162, 0.45);
  filter: brightness(1.05);
}

/* Flash + connect banners */
.flash-banner {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.8rem 1rem;
  margin-bottom: 1.25rem;
  border-radius: 12px;
  background: var(--primary-container);
  color: var(--on-primary-container);
  font-size: 0.9rem;
}

.connect-banner {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
  border-radius: var(--radius);
  background: #fef7e0;
}

.connect-banner-text {
  flex: 1;
  min-width: 220px;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.connect-banner-text strong {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 1rem;
  color: var(--text);
}

/* Connected accounts panel */
.account-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0.75rem;
  margin-bottom: 0.5rem;
  background: var(--surface);
  border-radius: 12px;
}

.account-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.account-name {
  font-family: var(--font-head);
  font-weight: 500;
  color: var(--text);
}

.account-detail {
  font-size: 0.8rem;
  color: var(--text-subtle);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chip {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 0.6rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-head);
  font-size: 0.75rem;
  font-weight: 500;
  white-space: nowrap;
}

.chip-ok {
  background: var(--success-container);
  color: var(--success);
}

.chip-off {
  background: var(--error-container);
  color: var(--error);
}

/* Oshaani agent picker */
.agent-box {
  grid-column: 1 / -1;
}

.agent-current {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 0.5rem;
  font-family: var(--font-head);
  font-weight: 500;
  color: var(--text-muted);
}

.agent-current:empty {
  display: none;
}

.agent-current.status-key-set {
  color: var(--success);
}

.agent-list {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-top: 0.75rem;
  max-height: 260px;
  overflow-y: auto;
  padding-right: 2px;
}

.agent-list-empty {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0;
  padding: 0.9rem 1rem;
  background: var(--surface);
  border-radius: 12px;
  color: var(--text-subtle);
  font-size: 0.875rem;
}

.agent-option {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0.9rem;
  background: var(--surface);
  border: 1px solid transparent;
  border-radius: 12px;
  cursor: pointer;
  transition: border-color 0.15s, background-color 0.15s;
}

.agent-option:hover {
  border-color: var(--outline-variant);
}

.agent-option:has(input:checked) {
  border-color: var(--primary);
  background: #f8faff;
}

.agent-option.is-disabled {
  cursor: default;
  opacity: 0.6;
}

.agent-option input {
  accent-color: var(--primary);
  width: 18px;
  height: 18px;
  margin: 0;
  flex-shrink: 0;
}

.agent-option-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.agent-name {
  font-family: var(--font-head);
  font-weight: 500;
  color: var(--text);
}

.agent-desc {
  font-size: 0.8rem;
  color: var(--text-subtle);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chip-neutral {
  background: var(--surface-container-high);
  color: var(--text-subtle);
}

.agent-manual {
  margin-top: 0.9rem;
  font-size: 0.85rem;
}

.agent-manual summary {
  cursor: pointer;
  color: var(--primary);
  font-family: var(--font-head);
  font-weight: 500;
}

.agent-manual .key-input {
  max-width: 420px;
}

/* Connect Google consent screen */
.connect-page {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 1.5rem 1rem 3rem;
}

.connect-card {
  width: 100%;
  max-width: 560px;
  padding: 2rem 2.25rem;
  background: var(--surface);
  border-radius: 28px;
  box-shadow: var(--shadow-1);
  text-align: center;
  animation: fadeInUp 0.35s ease-out both;
}

.connect-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  margin-bottom: 1.75rem;
  font-family: var(--font-head);
  font-size: 0.8rem;
  font-weight: 500;
}

.connect-step {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  white-space: nowrap;
  color: var(--text-subtle);
}

.connect-step.done {
  color: var(--success);
}

.connect-step.done .material-symbols-outlined {
  font-size: 18px;
  font-variation-settings: "FILL" 1, "wght" 400, "GRAD" 0, "opsz" 20;
}

.connect-step.current {
  color: var(--primary);
}

.connect-step-num {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  color: #fff;
  font-size: 0.7rem;
}

.connect-step-line {
  width: 32px;
  height: 1px;
  background: var(--outline-variant);
}

.connect-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
  color: var(--text-subtle);
}

.connect-logos .material-symbols-outlined {
  font-size: 28px;
}

.connect-card h1 {
  font-family: var(--font-head);
  font-weight: 400;
  font-size: 1.75rem;
  margin: 0 0 0.6rem;
  color: var(--text);
}

.connect-sub {
  margin: 0 auto 1.5rem;
  max-width: 440px;
  color: var(--text-muted);
  font-size: 0.925rem;
  line-height: 1.6;
}

.connect-sub strong {
  color: var(--text);
  font-weight: 500;
}

.permission-list {
  list-style: none;
  margin: 0 0 1.75rem;
  padding: 0;
  text-align: left;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.permission-list li {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.8rem 1rem;
}

.permission-list li + li {
  border-top: 1px solid var(--border);
}

.permission-list li div {
  display: flex;
  flex-direction: column;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.permission-list li strong {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text);
}

.connect-actions {
  display: flex;
  justify-content: center;
  margin-bottom: 1rem;
}

.connect-fine {
  margin: 0;
  font-size: 0.8rem;
  color: var(--text-subtle);
}

.connect-fine a {
  color: var(--primary);
  text-decoration: none;
}

.connect-fine a:hover {
  text-decoration: underline;
}

.connect-card .flash-banner {
  text-align: left;
}

/* ---------- Top app bar ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--topbar-h);
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0 1rem 0 1.25rem;
  background: var(--bg);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--text-subtle);
  margin-right: auto;
}

.brand-logo {
  width: 40px;
  height: 40px;
}

.brand-name {
  font-family: var(--font-head);
  font-size: 22px;
  font-weight: 400;
  color: var(--text-subtle);
  letter-spacing: 0;
}

.topbar-user {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.topbar-user .email {
  color: var(--text-muted);
  font-size: 0.875rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 260px;
}

.avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  color: #fff;
  font-family: var(--font-head);
  font-size: 0.95rem;
  font-weight: 500;
  flex-shrink: 0;
}

.site-topbar {
  border-bottom: 1px solid transparent;
}

.site-topbar-nav {
  display: flex;
  gap: 0.25rem;
}

.site-topbar-nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-family: var(--font-head);
  font-weight: 500;
  padding: 0.5rem 0.9rem;
  border-radius: var(--radius-pill);
}

.site-topbar-nav a:hover {
  background: var(--surface-container-high);
  color: var(--text);
}

/* ---------- Dashboard layout ---------- */
.layout {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.layout-body {
  flex: 1;
  display: flex;
  min-height: 0;
}

.sidebar {
  width: 256px;
  flex-shrink: 0;
  padding: 0.5rem 0.75rem 1rem 0;
  position: sticky;
  top: var(--topbar-h);
  align-self: flex-start;
}

.sidebar nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sidebar nav a {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  height: 40px;
  padding: 0 1rem 0 1.6rem;
  border-radius: 0 var(--radius-pill) var(--radius-pill) 0;
  color: var(--text);
  text-decoration: none;
  font-family: var(--font-body);
  font-size: 0.875rem;
  transition: background-color 0.15s;
}

.sidebar nav a:hover {
  background: var(--surface-container-high);
}

.sidebar nav a.active {
  background: var(--primary-container);
  color: var(--on-primary-container);
  font-weight: 700;
}

.sidebar nav a.active .material-symbols-outlined {
  font-variation-settings: "FILL" 1, "wght" 400, "GRAD" 0, "opsz" 20;
}

.main {
  flex: 1;
  min-width: 0;
  padding: 1.5rem 2rem 2rem;
  overflow-x: hidden;
}

.dashboard-main {
  background: var(--surface);
  border-radius: var(--radius);
  margin: 0 1rem 1rem 0;
}

.dashboard-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.main h1,
.dashboard-title {
  font-family: var(--font-head);
  font-weight: 400;
  font-size: 1.75rem;
  margin: 0;
  color: var(--text);
}

/* Status chip */
.status-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.status-strip .badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  height: 32px;
  padding: 0 0.9rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-head);
  font-size: 0.875rem;
  font-weight: 500;
  background: var(--success-container);
  color: var(--success);
}

.status-strip .badge::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
}

.status-strip .badge.off {
  background: var(--surface-container);
  color: var(--text-subtle);
  border: 1px solid var(--border);
}

/* ---------- Key boxes ---------- */
.keys-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.api-key-box {
  background: var(--surface-container);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  min-width: 0;
}

.api-key-box h2 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 500;
  margin: 0 0 0.75rem 0;
  color: var(--text);
}

.api-key-box h2 .material-symbols-outlined {
  color: var(--primary);
}

.api-key-box .key-value {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  word-break: break-all;
  padding: 0.7rem 0.9rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 0.75rem;
  color: var(--text-subtle);
}

.api-key-box .key-value.revealed {
  color: var(--text);
}

.api-key-box .actions,
.card .actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.api-key-box .actions {
  margin-top: 0.75rem;
}

.hint {
  font-size: 0.8rem;
  color: var(--text-subtle);
  margin: 0.6rem 0 0;
}

.hint:empty {
  display: none;
}

.hint.status-key-set {
  color: var(--success);
  font-weight: 500;
}

.key-input,
.api-key-box .key-input {
  width: 100%;
  height: 44px;
  padding: 0 0.9rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  border: 1px solid var(--outline);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text);
  margin-top: 0.75rem;
}

.key-input::placeholder {
  color: var(--text-subtle);
}

.key-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: inset 0 0 0 1px var(--primary);
}

/* ---------- Workflow cards ---------- */
.workflows-heading {
  font-family: var(--font-head);
  font-size: 1.25rem;
  font-weight: 400;
  margin: 0 0 0.25rem;
  color: var(--text);
}

.workflows-hint {
  margin: 0 0 1rem;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1rem;
}

.card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.1rem 1.25rem 1.25rem;
  transition: box-shadow 0.2s, border-color 0.2s, opacity 0.2s;
}

.card:hover {
  box-shadow: var(--shadow-2);
  border-color: transparent;
}

.card-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.card h3 {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 1rem;
  margin: 0;
  color: var(--text);
}

.card-icon,
.capability-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  background: #e8f0fe;
  color: #1967d2;
}

.card-icon--blue { background: #e8f0fe; color: #1967d2; }
.card-icon--red { background: #fce8e6; color: #c5221f; }
.card-icon--yellow { background: #fef7e0; color: #b06000; }
.card-icon--green { background: #e6f4ea; color: #137333; }

.card .desc {
  color: var(--text-muted);
  font-size: 0.875rem;
  line-height: 1.45;
  margin: 0 0 1rem;
  flex: 1;
}

.card .desc strong {
  color: var(--text);
  font-weight: 500;
}

.card.workflow-off {
  background: var(--surface-container);
  border-color: transparent;
}

.card.workflow-off .desc,
.card.workflow-off .actions,
.card.workflow-off .workflow-interval-row,
.card.workflow-off h3 {
  opacity: 0.72;
}

/* Material switch */
.toggle-wrap {
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  flex-shrink: 0;
  position: relative;
}

.workflow-toggle,
.automation-toggle {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  display: inline-block;
  width: 44px;
  height: 24px;
  background: var(--surface-container-high);
  border: 2px solid var(--outline);
  border-radius: var(--radius-pill);
  position: relative;
  transition: background-color 0.2s, border-color 0.2s;
}

.toggle-slider::after {
  content: "";
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--outline);
  top: 50%;
  left: 4px;
  transform: translateY(-50%);
  transition: left 0.2s, width 0.2s, height 0.2s, background-color 0.2s;
}

.workflow-toggle:checked + .toggle-slider,
.automation-toggle:checked + .toggle-slider {
  background: var(--primary);
  border-color: var(--primary);
}

.workflow-toggle:checked + .toggle-slider::after,
.automation-toggle:checked + .toggle-slider::after {
  width: 16px;
  height: 16px;
  left: 22px;
  background: #fff;
}

.workflow-toggle:focus-visible + .toggle-slider,
.automation-toggle:focus-visible + .toggle-slider {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.workflow-interval-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0 0 1rem;
  font-size: 0.8rem;
}

.workflow-interval-row label {
  color: var(--text-subtle);
  white-space: nowrap;
}

.workflow-interval-input {
  width: 5rem;
  height: 32px;
  padding: 0 0.6rem;
  font-family: inherit;
  font-size: 0.875rem;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--outline-variant);
  border-radius: var(--radius-sm);
}

.workflow-interval-input:hover {
  border-color: var(--outline);
}

.workflow-interval-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: inset 0 0 0 1px var(--primary);
}

.chat-auto-reply-picker {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.9rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--border);
}

.chat-auto-reply-picker label {
  font-size: 0.85rem;
  color: var(--text-subtle);
}

.chat-auto-reply-picker select {
  flex: 1;
  min-width: 10rem;
  height: 36px;
  padding: 0 0.6rem;
  font-family: inherit;
  font-size: 0.875rem;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--outline);
  border-radius: var(--radius-sm);
}

.chat-auto-reply-picker select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: inset 0 0 0 1px var(--primary);
}

.loading {
  opacity: 0.6;
  pointer-events: none;
}

/* ---------- Help section ---------- */
.dashboard-info {
  margin-top: 2rem;
  padding: 1.5rem;
  background: var(--surface-container);
  border-radius: var(--radius);
}

.dashboard-info-heading {
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 500;
  margin: 0 0 1rem;
  color: var(--text);
}

.dashboard-info .video-embed-wrap {
  margin-bottom: 1rem;
}

.dashboard-info-video-caption {
  margin: 0 0 1rem;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.dashboard-info-list {
  margin: 0;
  padding-left: 1.25rem;
  color: var(--text-muted);
  font-size: 0.875rem;
  line-height: 1.6;
}

.dashboard-info-list li {
  margin-bottom: 0.5rem;
}

.dashboard-info-list li:last-child {
  margin-bottom: 0;
}

.dashboard-info a,
.hint a {
  color: var(--primary);
  text-decoration: none;
}

.dashboard-info a:hover,
.hint a:hover {
  text-decoration: underline;
}

/* Responsive video embed */
.video-embed-wrap {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 12px;
  background: #000;
  aspect-ratio: 16 / 9;
  max-height: 90vh;
  padding-bottom: 56.25%;
  height: 0;
}

@supports (aspect-ratio: 16 / 9) {
  .video-embed-wrap {
    height: auto;
    padding-bottom: 0;
    min-height: 12rem;
  }
}

.video-embed {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ---------- Response modal (Material dialog) ---------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.modal.is-open {
  opacity: 1;
  visibility: visible;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(32, 33, 36, 0.5);
  cursor: pointer;
}

.modal-box {
  position: relative;
  width: 100%;
  max-width: 680px;
  max-height: 85vh;
  background: var(--surface);
  border-radius: 28px;
  box-shadow: var(--shadow-3);
  display: flex;
  flex-direction: column;
  transform: translateY(8px) scale(0.98);
  transition: transform 0.2s ease;
}

.modal.is-open .modal-box {
  transform: none;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1rem 0.5rem 1.5rem;
  flex-shrink: 0;
}

.modal-title {
  font-family: var(--font-head);
  font-size: 1.375rem;
  font-weight: 400;
  margin: 0;
  color: var(--text);
}

.modal-close {
  width: 40px;
  height: 40px;
  padding: 0;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-close:hover {
  background: var(--surface-container-high);
  color: var(--text);
}

.modal-body {
  padding: 0.5rem 1.5rem 1.5rem;
  overflow-y: auto;
  flex: 1;
  min-height: 120px;
}

.modal-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 2rem;
}

.modal-loading-text {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.loading-spinner {
  width: 44px;
  height: 44px;
  border: 4px solid transparent;
  border-top-color: var(--g-blue);
  border-radius: 50%;
  animation: modal-spin 0.9s linear infinite, google-colors 3.6s step-end infinite;
}

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

@keyframes google-colors {
  0% { border-top-color: var(--g-blue); }
  25% { border-top-color: var(--g-red); }
  50% { border-top-color: var(--g-yellow); }
  75% { border-top-color: var(--g-green); }
}

/* Result rendering (modal and inline fallback) */
.modal-content,
.run-result {
  font-size: 0.9rem;
  color: var(--text);
}

.modal-content .result-section,
.run-result .result-section { margin-bottom: 1.25rem; }
.modal-content .result-section:last-of-type,
.run-result .result-section:last-of-type { margin-bottom: 0; }

.modal-content .result-heading,
.run-result .result-heading {
  font-family: var(--font-head);
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--primary);
  margin: 0 0 0.5rem;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid var(--border);
}

.modal-content .result-text,
.run-result .result-text { white-space: pre-wrap; word-break: break-word; line-height: 1.55; }
.modal-content .result-tasks-list,
.run-result .result-tasks-list { margin: 0.5rem 0 0; padding-left: 1.25rem; line-height: 1.55; }
.modal-content .result-row,
.run-result .result-row { display: flex; flex-wrap: wrap; gap: 0.5rem 1rem; margin-bottom: 0.35rem; font-size: 0.85rem; }
.modal-content .result-key,
.run-result .result-key { color: var(--text-subtle); flex-shrink: 0; }
.modal-content .result-value,
.run-result .result-value { color: var(--text); word-break: break-word; }
.modal-content .result-workflows,
.run-result .result-workflows { display: flex; flex-direction: column; gap: 0.75rem; }

.modal-content .result-workflow-card,
.run-result .result-workflow-card {
  padding: 0.75rem 1rem;
  background: var(--surface-container);
  border-radius: 12px;
}

.modal-content .result-workflow-name,
.run-result .result-workflow-name { font-weight: 500; text-transform: capitalize; color: var(--primary); margin-right: 0.5rem; }
.modal-content .result-workflow-status,
.run-result .result-workflow-status { font-size: 0.8rem; color: var(--text-subtle); }
.modal-content .result-workflow-preview,
.run-result .result-workflow-preview { margin: 0.5rem 0 0; font-size: 0.85rem; line-height: 1.45; }
.modal-content .result-raw,
.run-result .result-raw { white-space: pre-wrap; word-break: break-word; margin: 0; font-family: var(--font-mono); font-size: 0.8rem; color: var(--text-muted); }
.modal-content .result-copy,
.run-result .result-copy { margin-top: 1rem; }

.modal-content .result-gsuite-links {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.modal-content .result-gsuite-heading {
  font-size: 0.85rem;
  color: var(--text-subtle);
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.modal-content .result-gsuite-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.modal-content .result-gsuite-btn {
  height: 32px;
  padding: 0 1rem;
  font-size: 0.85rem;
}

.modal-content.error .result-text,
.run-result.error .result-text { color: var(--error); }

.modal-content .result-error-wrap {
  padding: 0.25rem 0;
}

.modal-content .result-error-heading {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 1rem;
  color: var(--error);
  margin-bottom: 0.75rem;
}

.modal-content .result-error-detail {
  color: #410e0b;
  line-height: 1.5;
  white-space: pre-wrap;
  word-break: break-word;
  padding: 0.75rem 1rem;
  background: var(--error-container);
  border-radius: 12px;
}

.run-result {
  margin-top: 1.5rem;
  padding: 1.25rem 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  max-height: 420px;
  overflow-y: auto;
}

.run-result.error {
  border-color: var(--error);
  background: var(--error-container);
}

/* ---------- Landing (logged out) ---------- */
.landing-page {
  width: 100%;
  max-width: 1040px;
  margin: 0 auto;
  padding: 2rem 1.5rem 3rem;
}

.landing-hero {
  text-align: center;
  padding: 3rem 0 3.5rem;
}

.hero-logo {
  width: 72px;
  height: 72px;
  margin-bottom: 1.25rem;
}

.landing-hero .logo {
  font-family: var(--font-head);
  font-weight: 400;
  font-size: clamp(2.5rem, 6vw, 3.75rem);
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0 0 1rem;
  color: var(--text);
}

.landing-hero .tagline {
  max-width: 620px;
  margin: 0 auto 2rem;
  font-size: 1.15rem;
  line-height: 1.6;
  color: var(--text-muted);
}

.landing-hero .tagline a {
  color: var(--primary);
  text-decoration: none;
}

.landing-hero .tagline a:hover {
  text-decoration: underline;
}

.hero-cta {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
}

.hero-capabilities {
  max-width: 560px;
  margin: 0 auto;
  padding: 1.25rem 1.5rem;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow-1);
  text-align: left;
}

.hero-capabilities-label {
  font-family: var(--font-head);
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary);
  margin: 0 0 0.75rem;
}

.hero-capabilities-list {
  list-style: none;
  margin: 0;
  padding: 0;
  color: var(--text-muted);
  font-size: 0.925rem;
}

.hero-capabilities-list li {
  position: relative;
  padding-left: 1.75rem;
  margin-bottom: 0.45rem;
}

.hero-capabilities-list li:last-child {
  margin-bottom: 0;
}

.hero-capabilities-list li::before {
  content: "check_circle";
  font-family: "Material Symbols Outlined";
  font-size: 18px;
  line-height: 1;
  position: absolute;
  left: 0;
  top: 0.1rem;
  color: var(--g-green);
  font-variation-settings: "FILL" 1, "wght" 400, "GRAD" 0, "opsz" 20;
}

.home-section {
  max-width: 760px;
  margin: 0 auto 2.5rem;
}

.capabilities-section {
  max-width: none;
}

.home-section h2 {
  font-family: var(--font-head);
  font-size: 1.75rem;
  font-weight: 400;
  margin: 0 0 0.75rem;
  color: var(--text);
}

.capabilities-section h2,
.capabilities-intro {
  text-align: center;
}

.home-section .capabilities-intro {
  color: var(--text-muted);
  margin: 0 auto 1.75rem;
  font-size: 1rem;
  max-width: 620px;
}

.capabilities-grid {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 1rem;
}

.capability-item {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-1);
  transition: box-shadow 0.2s;
}

.capability-item:hover {
  box-shadow: var(--shadow-3);
}

.capability-icon {
  margin-bottom: 0.9rem;
}

.capability-item h3 {
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 500;
  margin: 0 0 0.4rem;
  color: var(--text);
}

.capability-item p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--text-muted);
}

.capability-item p strong {
  color: var(--text);
  font-weight: 500;
}

.capabilities-section .home-note {
  text-align: center;
  margin-bottom: 0;
}

.home-section p {
  color: var(--text-muted);
  line-height: 1.65;
  margin: 0 0 0.75rem;
  font-size: 0.95rem;
}

.home-section a {
  color: var(--primary);
  text-decoration: none;
}

.home-section a:hover {
  text-decoration: underline;
}

.home-steps,
.home-list {
  margin: 0 0 1rem;
  padding-left: 1.5rem;
  color: var(--text-muted);
  line-height: 1.65;
  font-size: 0.95rem;
}

.home-steps li,
.home-list li {
  margin-bottom: 0.5rem;
}

.home-steps li::marker {
  color: var(--primary);
  font-family: var(--font-head);
  font-weight: 500;
}

.home-steps strong,
.home-list strong {
  color: var(--text);
  font-weight: 500;
}

.home-note {
  font-size: 0.875rem;
  color: var(--text-subtle);
}

#how-it-works,
#oshaani-key,
#upgrade {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 1.75rem 2rem;
}

.home-section-highlight {
  padding: 1.75rem 2rem;
  background: var(--primary-container);
  border-radius: var(--radius);
}

.home-section-highlight h2,
.home-section-highlight p,
.home-section-highlight .home-list,
.home-section-highlight strong {
  color: var(--on-primary-container);
}

.video-embed-wrap.home-video-wrap {
  margin: 0 0 1.25rem;
}

.landing-footer {
  max-width: 760px;
  margin: 3rem auto 0;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  text-align: center;
}

.landing-footer .meta {
  margin: 1.5rem 0 0;
  color: var(--text-subtle);
  font-size: 0.85rem;
  line-height: 2;
}

.landing-footer .meta a {
  color: var(--text-subtle);
  text-decoration: none;
}

.landing-footer .meta a:hover {
  color: var(--primary);
  text-decoration: underline;
}

/* ---------- Legal pages ---------- */
.legal-page {
  width: 100%;
  max-width: 800px;
  margin: 2rem auto;
  padding: 2rem 2.5rem;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow-1);
}

.legal-header {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.legal-back {
  display: inline-flex;
  align-items: center;
  height: 36px;
  padding: 0 0.9rem;
  margin: 0 0 1rem -0.9rem;
  border-radius: var(--radius-pill);
  color: var(--primary);
  text-decoration: none;
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 0.875rem;
}

.legal-back:hover {
  background: rgba(11, 87, 208, 0.08);
}

.legal-title {
  font-family: var(--font-head);
  font-weight: 400;
  font-size: 2rem;
  margin: 0 0 0.25rem;
  color: var(--text);
}

.legal-updated {
  color: var(--text-subtle);
  font-size: 0.875rem;
  margin: 0;
}

.legal-intro {
  color: var(--text-muted);
  margin-bottom: 2rem;
  line-height: 1.65;
}

.legal-section {
  margin-bottom: 2rem;
}

.legal-section h2 {
  font-family: var(--font-head);
  font-size: 1.2rem;
  font-weight: 500;
  margin: 0 0 0.75rem;
  color: var(--text);
}

.legal-section p,
.legal-section li {
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 0.5rem;
}

.legal-section strong {
  color: var(--text);
  font-weight: 500;
}

.legal-section ul {
  margin: 0.5rem 0 1rem 1.25rem;
  padding: 0;
}

.legal-section a,
.legal-intro a {
  color: var(--primary);
  text-decoration: none;
}

.legal-section a:hover,
.legal-intro a:hover {
  text-decoration: underline;
}

.legal-footer {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  font-size: 0.875rem;
}

.legal-footer a {
  color: var(--text-subtle);
  text-decoration: none;
}

.legal-footer a:hover {
  color: var(--primary);
}

/* ---------- Motion ---------- */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

.landing-hero,
.dashboard-head,
.dashboard-keys,
.dashboard-card {
  animation: fadeInUp 0.35s ease-out both;
}

.dashboard-keys { animation-delay: 0.05s; }
.dashboard-card:nth-child(n) { animation-delay: 0.1s; }

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

/* ---------- Responsive ---------- */
@media (pointer: coarse) {
  .btn,
  .sidebar nav a,
  .modal-close {
    min-height: 44px;
  }
  .toggle-wrap {
    padding: 0.5rem 0;
  }
}

@media (max-width: 900px) {
  .site-topbar-nav {
    display: none;
  }
}

@media (max-width: 768px) {
  .topbar {
    padding: 0 0.75rem;
    gap: 0.5rem;
  }
  .brand-name {
    font-size: 20px;
  }
  .topbar-user .email {
    display: none;
  }
  .layout-body {
    flex-direction: column;
  }
  .sidebar {
    position: static;
    width: 100%;
    padding: 0 0.75rem 0.75rem;
    overflow-x: auto;
  }
  .sidebar nav {
    flex-direction: row;
    gap: 0.5rem;
  }
  .sidebar nav a {
    flex-shrink: 0;
    height: 36px;
    gap: 0.5rem;
    padding: 0 0.9rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--outline-variant);
    background: var(--surface);
  }
  .sidebar nav a.active {
    border-color: transparent;
  }
  .dashboard-main {
    margin: 0 0.5rem 0.5rem;
    padding: 1.25rem 1rem 1.5rem;
  }
  .dashboard-title {
    font-size: 1.5rem;
  }
  .keys-row,
  .cards {
    grid-template-columns: 1fr;
  }
  .api-key-box {
    padding: 1rem 1.1rem;
  }
  .workflow-interval-row {
    flex-wrap: wrap;
  }
  .chat-auto-reply-picker {
    flex-direction: column;
    align-items: stretch;
  }
  .chat-auto-reply-picker select {
    width: 100%;
  }
  .dashboard-info {
    padding: 1.1rem;
  }
  .modal {
    padding: 0;
    align-items: flex-end;
  }
  .modal-box {
    max-height: 90vh;
    border-radius: 28px 28px 0 0;
    padding-bottom: env(safe-area-inset-bottom, 0);
  }
  .landing-page {
    padding: 1rem 1rem 2.5rem;
  }
  .landing-hero {
    padding: 1.5rem 0 2.5rem;
  }
  .landing-hero .tagline {
    font-size: 1rem;
  }
  .home-section h2 {
    font-size: 1.4rem;
  }
  .capabilities-grid {
    grid-template-columns: 1fr;
  }
  #how-it-works,
  #oshaani-key,
  #upgrade,
  .home-section-highlight {
    padding: 1.25rem;
  }
  .legal-page {
    margin: 0;
    padding: 1.5rem 1.25rem;
    border-radius: 0;
    box-shadow: none;
  }
  .legal-title {
    font-size: 1.6rem;
  }
}

@media (max-width: 480px) {
  .connect-card {
    padding: 1.5rem 1.1rem;
    border-radius: 20px;
  }
  .connect-steps {
    font-size: 0.72rem;
    gap: 0.4rem;
  }
  .connect-step-line {
    width: 16px;
  }
  .connect-actions .btn {
    width: 100%;
  }
  .connect-banner .btn {
    width: 100%;
  }
  .topbar-user .logout {
    padding: 0 0.6rem;
  }
  .site-topbar .btn {
    padding: 0 1rem;
  }
  .hero-cta .btn {
    width: 100%;
    max-width: 320px;
  }
  .api-key-box .actions .btn {
    flex: 1 1 auto;
  }
}

/* ---------- Credits ---------- */
.credit-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  height: 32px;
  padding: 0 0.75rem;
  border-radius: var(--radius-pill);
  background: var(--surface-container-high);
  color: var(--text);
  font-family: var(--font-head);
  font-size: 0.85rem;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}

.credit-chip[hidden] {
  display: none;
}

.credit-chip .material-symbols-outlined {
  font-size: 18px;
  color: var(--primary);
}

.credit-chip:hover {
  background: var(--primary-container);
  color: var(--on-primary-container);
}

.credit-chip.is-low,
.credit-chip.is-low .material-symbols-outlined {
  background: var(--error-container);
  color: var(--error);
}

.chip-primary {
  background: var(--primary-container);
  color: var(--on-primary-container);
}

.credit-summary {
  margin-bottom: 0.5rem;
}

.credit-balance-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.credit-label {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-subtle);
}

.credit-balance {
  margin: 0.1rem 0 0;
  font-family: var(--font-head);
  font-size: 2.25rem;
  line-height: 1.15;
  color: var(--text);
}

.credit-unit {
  font-size: 1rem;
  color: var(--text-subtle);
}

.credit-low {
  gap: 0.25rem;
  margin-left: auto;
}

.credit-low .material-symbols-outlined {
  font-size: 16px;
}

.credit-facts {
  margin: 0.75rem 0 0;
  padding-left: 1.1rem;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.credit-facts:empty {
  display: none;
}

.credit-facts li + li {
  margin-top: 0.25rem;
}

.credits-note {
  margin: 0 0 2rem;
}

.credits-section {
  margin-bottom: 2.25rem;
  scroll-margin-top: calc(var(--topbar-h) + 1rem);
}

.package-group-title {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 500;
  margin: 1.25rem 0 0;
  color: var(--text);
}

.package-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
  margin-top: 0.75rem;
}

.package-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  min-width: 0;
}

.package-card.is-popular {
  border-color: var(--primary);
  box-shadow: inset 0 0 0 1px var(--primary);
}

.package-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.package-head h3 {
  margin: 0;
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 500;
}

.package-credits {
  margin: 0.75rem 0 0;
  color: var(--text-subtle);
  font-size: 0.875rem;
}

.package-credits-num {
  font-family: var(--font-head);
  font-size: 1.75rem;
  color: var(--text);
}

.package-bonus {
  margin: 0.15rem 0 0;
  font-size: 0.8rem;
  color: var(--success);
}

.package-price {
  margin: 0.75rem 0 0;
  font-family: var(--font-head);
  font-size: 1.25rem;
  font-weight: 500;
}

.package-price span {
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--text-subtle);
}

.package-desc {
  margin: 0.5rem 0 0;
  font-size: 0.8rem;
  color: var(--text-subtle);
}

.package-spacer {
  flex: 1;
  min-height: 1rem;
}

.package-card .btn {
  justify-content: center;
}

.package-footnote {
  display: flex;
  align-items: flex-start;
  gap: 0.4rem;
  margin-top: 1rem;
}

.package-footnote .material-symbols-outlined {
  font-size: 16px;
  color: var(--success);
}

.table-wrap {
  overflow-x: auto;
  margin-top: 0.75rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.credit-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.credit-table th,
.credit-table td {
  padding: 0.65rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--surface-container-high);
}

.credit-table th {
  font-family: var(--font-head);
  font-weight: 500;
  color: var(--text-subtle);
  background: var(--surface-container);
}

.credit-table tbody tr:last-child td {
  border-bottom: 0;
}

.credit-table .num {
  text-align: right;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.credit-table .nowrap {
  white-space: nowrap;
}

.credit-table .muted {
  color: var(--text-subtle);
}

.credit-table .credit-desc {
  min-width: 200px;
}

.credit-table .spend {
  color: var(--error);
}

.credit-table .gain {
  color: var(--success);
}

@media (max-width: 768px) {
  .topbar-user .credit-chip {
    padding: 0 0.6rem;
  }
  .credit-balance {
    font-size: 1.85rem;
  }
  .credit-low {
    margin-left: 0;
  }
}

@media (max-width: 480px) {
  .topbar-user .email,
  .credit-chip-unit,
  .dashboard-app .topbar .brand-name {
    display: none;
  }
}
