:root {
  --background: #fbf9f5;
  --surface: #fbf9f5;
  --surface-lowest: #ffffff;
  --surface-low: #f5f3ef;
  --surface-container: #f0eeea;
  --surface-high: #eae8e4;
  --surface-highest: #e4e2de;
  --on-surface: #1b1c1a;
  --on-surface-variant: #4d4632;
  --inverse-surface: #30312e;
  --inverse-on-surface: #f2f0ec;
  --outline: #7f7660;
  --outline-variant: #d1c6ab;
  --primary: #735c00;
  --primary-container: #facc15;
  --on-primary-container: #6c5700;
  --primary-fixed: #ffe083;
  --primary-fixed-dim: #eec200;
  --secondary: #a83639;
  --secondary-container: #fe7676;
  --on-secondary-container: #720b17;
  --tertiary: #555f6f;
  --tertiary-container: #c7d1e4;
  --on-tertiary-container: #505a69;
  --error: #ba1a1a;
  --error-container: #ffdad6;
  --on-error-container: #93000a;
  --shadow-soft: 0 20px 40px rgba(0, 0, 0, 0.04);
  --shadow-medium: 0 20px 40px rgba(0, 0, 0, 0.08);
  --shadow-popover: 0 24px 48px rgba(0, 0, 0, 0.14);
  --motion-pop: cubic-bezier(0.34, 1.56, 0.64, 1);
  --motion-spring: cubic-bezier(0.18, 0.89, 0.32, 1.28);
  --motion-soft: cubic-bezier(0.22, 1, 0.36, 1);
  --radius-sm: 8px;
  --radius-md: 24px;
  --radius-lg: 32px;
  --radius-xl: 48px;
  --page-margin: 40px;
  --gutter: 24px;
  --card-padding: 32px;
  --font-sans: "Plus Jakarta Sans", "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", Arial, sans-serif;
  --cursor-grab-outline: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'%3E%3Cpath fill='%23fff' stroke='%231b1c1a' stroke-width='2.4' stroke-linejoin='round' d='M11 13V7.5a2 2 0 0 1 4 0V14h1V6.5a2 2 0 0 1 4 0V14h1V9.5a2 2 0 0 1 4 0V18h1v-4.5a2 2 0 0 1 4 0V20c0 5.5-3.8 9-9.4 9h-4.3c-3.2 0-5.1-1.6-7-4.3l-3.6-5.2a2.2 2.2 0 0 1 3.3-2.9l2 2.2V13z'/%3E%3C/svg%3E") 12 12, grab;
  --cursor-grabbing-outline: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'%3E%3Cpath fill='%23fff' stroke='%231b1c1a' stroke-width='2.4' stroke-linejoin='round' d='M11 14V9a2 2 0 0 1 4 0v5h1V8a2 2 0 0 1 4 0v6h1v-3.5a2 2 0 0 1 4 0V18h1v-3.5a2 2 0 0 1 4 0V20c0 5.5-3.8 9-9.4 9h-4.2c-3.3 0-5.4-1.7-7.2-4.5L6 19.8a2.2 2.2 0 0 1 3.4-2.8l1.6 2V14z'/%3E%3C/svg%3E") 12 12, grabbing;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--background);
}

body {
  margin: 0;
  background: var(--background);
  color: var(--on-surface);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0;
}

body.modal-open {
  overflow: hidden;
}

.auth-gate {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.auth-card {
  width: min(520px, 100%);
  padding: 32px;
}

.auth-card h1 {
  margin: 24px 0 8px;
  font-size: clamp(2rem, 7vw, 4rem);
  line-height: 0.95;
}

.auth-card p {
  margin: 0;
  color: var(--on-surface-variant);
}

.vision-toggle {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  background: var(--surface-lowest);
  box-shadow: inset 0 0 0 1px rgba(209, 198, 171, 0.7);
  cursor: pointer;
}

.vision-toggle input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.toggle-track {
  width: 50px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  padding: 3px;
  border-radius: 999px;
  background: var(--surface-container);
  box-shadow: inset 0 0 0 1px var(--outline-variant);
  transition: background-color 180ms var(--motion-soft), box-shadow 180ms var(--motion-soft);
}

.toggle-track span {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: var(--surface-lowest);
  box-shadow: var(--shadow-soft);
  transition: transform 220ms var(--motion-pop);
}

.vision-toggle input:checked + .toggle-track {
  background: var(--primary-container);
  box-shadow: inset 0 0 0 1px var(--primary-fixed-dim);
}

.vision-toggle input:checked + .toggle-track span {
  transform: translateX(20px);
}

.vision-toggle input:focus-visible + .toggle-track {
  outline: 3px solid rgba(255, 203, 5, 0.35);
  outline-offset: 3px;
}

.vision-toggle-copy {
  display: grid;
  gap: 2px;
}

.vision-toggle-copy strong {
  color: var(--on-surface);
  font-size: 14px;
  font-weight: 950;
}

.vision-toggle-copy small {
  color: var(--outline);
  font-size: 12px;
  font-weight: 700;
}

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

select {
  appearance: none;
  -webkit-appearance: none;
}

button {
  border: 0;
}

button,
a,
select,
input,
textarea {
  outline-color: var(--primary-container);
}

h1,
h2,
h3,
p {
  margin: 0;
}

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

h1 {
  font-size: 32px;
  line-height: 40px;
  font-weight: 800;
}

h2 {
  font-size: 24px;
  line-height: 32px;
  font-weight: 800;
}

h3 {
  font-size: 18px;
  line-height: 26px;
  font-weight: 800;
}

small {
  color: var(--outline);
}

.app-shell {
  --sidebar-width: 288px;
  min-height: 100vh;
}

.app-shell.sidebar-collapsed {
  --sidebar-width: 104px;
}

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 30;
  width: 288px;
  display: flex;
  flex-direction: column;
  gap: 36px;
  padding: 40px 32px;
  background: var(--surface-lowest);
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  box-shadow: var(--shadow-soft);
  transition: width 460ms var(--motion-spring), padding 460ms var(--motion-spring), border-radius 360ms var(--motion-pop);
  will-change: width, padding;
}

.brand {
  display: grid;
  justify-items: center;
  gap: 10px;
  overflow: hidden;
}

.brand-mark {
  display: none;
}

.brand-name {
  display: inline-flex;
  align-items: baseline;
  justify-self: center;
  color: var(--on-surface);
  font-size: 50px;
  line-height: 54px;
  font-weight: 900;
  max-height: 64px;
  letter-spacing: 0;
  opacity: 1;
  transform: translateX(0) scale(1);
  transition: opacity 220ms var(--motion-soft), transform 460ms var(--motion-spring), max-height 300ms var(--motion-soft);
}

.brand-logo-go {
  color: var(--on-surface);
}

.brand-logo-offer {
  color: var(--primary);
}

.brand-progress {
  position: relative;
  width: 190px;
  height: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--surface-highest);
  box-shadow: inset 0 0 0 1px rgba(127, 118, 96, 0.1);
  transform-origin: left center;
  transition: opacity 220ms var(--motion-soft), transform 460ms var(--motion-spring), max-height 300ms var(--motion-soft), width 460ms var(--motion-spring);
}

.brand-progress span {
  position: absolute;
  inset: 0 auto 0 0;
  border-radius: inherit;
}

.brand-progress-applied {
  width: var(--applied-progress, 0%);
  background: #eadfbd;
  box-shadow: 3px 0 5px rgba(108, 87, 0, 0.18);
}

.brand-progress-offer {
  width: var(--offer-progress, 0%);
  background: var(--primary-container);
  box-shadow: 3px 0 5px rgba(108, 87, 0, 0.24);
}

.brand-subtitle {
  color: var(--outline);
  font-size: 13px;
  font-weight: 700;
  max-height: 24px;
  opacity: 1;
  transform: translateX(0);
  transition: opacity 220ms var(--motion-soft), transform 460ms var(--motion-spring), max-height 300ms var(--motion-soft);
}

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

.nav-item {
  width: 100%;
  min-height: 56px;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  padding: 0 16px;
  border-radius: 999px;
  background: transparent;
  color: var(--on-surface-variant);
  position: relative;
  text-align: left;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 300ms var(--motion-pop), background-color 220ms var(--motion-soft), color 220ms var(--motion-soft), box-shadow 220ms var(--motion-soft);
  backface-visibility: hidden;
}

.nav-label {
  min-width: 0;
  max-width: 160px;
  overflow: hidden;
  opacity: 1;
  transform: translateX(0);
  transition: max-width 420ms var(--motion-spring), opacity 180ms var(--motion-soft), transform 420ms var(--motion-spring);
}

.nav-item:hover {
  background: var(--surface-high);
  transform: scale(1.02);
}

.nav-item.active {
  background: var(--primary-container);
  color: var(--on-primary-container);
  font-weight: 900;
  box-shadow: var(--shadow-soft);
}

.nav-icon,
.button-icon,
.round-icon {
  display: inline-grid;
  place-items: center;
  font-size: 14px;
  font-weight: 900;
  line-height: 1;
}

.nav-icon {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: var(--surface-container);
  color: var(--outline);
  font-size: 20px;
  font-variation-settings: "FILL" 0, "wght" 500, "GRAD" 0, "opsz" 24;
}

.nav-item.active .nav-icon {
  background: rgba(255, 255, 255, 0.45);
  color: var(--on-primary-container);
  font-variation-settings: "FILL" 1, "wght" 700, "GRAD" 0, "opsz" 24;
}

.sidebar-user {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  border: 0;
  border-radius: var(--radius-lg);
  background: var(--surface-container);
  color: var(--on-surface);
  text-align: left;
  cursor: pointer;
  transition: width 460ms var(--motion-spring), height 460ms var(--motion-spring), padding 460ms var(--motion-spring), border-radius 360ms var(--motion-pop), background-color 220ms var(--motion-soft);
  backface-visibility: hidden;
  clip-path: inset(0 round var(--radius-lg));
  overflow: hidden;
}

.sidebar-bottom {
  width: 100%;
  margin-top: auto;
  display: grid;
  gap: 12px;
}

.sidebar-toggle {
  width: 48px;
  min-width: 48px;
  height: 48px;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  justify-self: end;
  border-radius: 999px;
  background: var(--surface-low);
  color: var(--on-surface-variant);
  box-shadow: none;
  font-weight: 900;
  overflow: hidden;
  backface-visibility: hidden;
  clip-path: inset(0 round 999px);
}

.sidebar-toggle .material-symbols-outlined {
  transition: transform 380ms var(--motion-pop), font-variation-settings 220ms var(--motion-soft);
}

.sidebar-toggle-label {
  position: absolute;
  width: 1px;
  height: 1px;
  max-width: none;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
}

.sidebar-toggle:hover,
.sidebar-toggle:focus-visible {
  background: var(--primary-container);
  color: var(--on-primary-container);
}

.sidebar-user:hover,
.sidebar-user:focus-visible {
  background: var(--surface-high);
}

.account-popover {
  position: absolute;
  left: 32px;
  right: 32px;
  bottom: 178px;
  z-index: 45;
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--outline-variant);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow-popover);
  animation: account-pop 320ms var(--motion-spring) both;
  backdrop-filter: blur(10px);
}

.account-popover-head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.account-popover-head strong,
.account-popover-head span {
  display: block;
}

.account-popover-head span {
  color: var(--outline);
  font-size: 12px;
  font-weight: 700;
}

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

.account-popover-grid span {
  padding: 10px;
  border-radius: var(--radius-sm);
  background: var(--surface-low);
}

.account-popover-grid strong,
.account-popover-grid small {
  display: block;
}

.account-popover-row {
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 10px;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--on-surface);
  font-weight: 850;
  text-align: left;
  cursor: pointer;
}

.account-popover-row:hover {
  background: var(--surface-low);
}

.account-popover-row .material-symbols-outlined {
  color: var(--primary);
  font-size: 20px;
}

.help-copy {
  display: grid;
  gap: 12px;
  color: var(--on-surface);
}

.help-copy h3 {
  margin: 8px 0 0;
  font-size: 18px;
}

.help-copy p {
  margin: 0;
  color: var(--on-surface-variant);
  font-weight: 650;
}

.help-copy pre,
.help-copy code {
  border-radius: var(--radius-sm);
  background: var(--surface-low);
  color: var(--on-surface);
}

.help-copy pre {
  overflow: auto;
  margin: 0;
  padding: 12px 14px;
  font-weight: 800;
}

.help-copy code {
  padding: 2px 6px;
}

.avatar,
.logo-tile {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  border-radius: 999px;
  font-weight: 900;
}

.avatar {
  width: 48px;
  min-width: 48px;
  height: 48px;
  min-height: 48px;
  background: var(--secondary-container);
  color: var(--on-secondary-container);
  line-height: 48px;
  text-align: center;
  font-size: 13px;
  padding: 0;
  overflow: hidden;
  white-space: nowrap;
  letter-spacing: 0;
}

.sidebar-user strong,
.sidebar-user div span {
  display: block;
}

.sidebar-user div span {
  color: var(--outline);
  font-size: 12px;
  font-weight: 700;
}

.sidebar-user > div {
  max-width: 150px;
  opacity: 1;
  transform: translateX(0);
  transition: max-width 420ms var(--motion-spring), opacity 180ms var(--motion-soft), transform 420ms var(--motion-spring);
}

.workspace {
  min-height: 100vh;
  width: calc(100% - var(--sidebar-width));
  margin-left: var(--sidebar-width);
  transition: margin-left 520ms var(--motion-spring), width 520ms var(--motion-spring);
  will-change: margin-left, width;
}

.app-shell.sidebar-collapsed .sidebar {
  width: 104px;
  align-items: center;
  gap: 36px;
  padding: 40px 20px;
}

.app-shell.sidebar-collapsed .brand {
  justify-items: center;
  gap: 0;
}

.app-shell.sidebar-collapsed .brand-mark {
  width: 56px;
  height: 56px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: var(--primary-container);
  color: var(--on-primary-container);
  font-size: 28px;
  font-variation-settings: "FILL" 1, "wght" 700, "GRAD" 0, "opsz" 28;
  box-shadow: var(--shadow-soft);
}

.app-shell.sidebar-collapsed .brand-name,
.app-shell.sidebar-collapsed .brand-subtitle,
.app-shell.sidebar-collapsed .brand-progress {
  width: 0;
  max-height: 0;
  opacity: 0;
  transform: translateX(-10px) scale(0.9);
  pointer-events: none;
}

.app-shell.sidebar-collapsed .nav-label,
.app-shell.sidebar-collapsed .sidebar-user > div {
  max-width: 0;
  opacity: 0;
  transform: translateX(-8px);
  pointer-events: none;
}

.app-shell.sidebar-collapsed .nav-label {
  position: absolute;
  width: 1px;
  height: 1px;
  max-width: none;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.app-shell.sidebar-collapsed .side-nav {
  width: 56px;
  justify-items: center;
}

.app-shell.sidebar-collapsed .nav-item {
  width: 56px;
  height: 56px;
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  gap: 0;
  text-align: center;
}

.app-shell.sidebar-collapsed .nav-icon {
  width: 32px;
  height: 32px;
  margin: 0;
  background: transparent;
}

.app-shell.sidebar-collapsed .nav-item.active .nav-icon {
  background: transparent;
}

.app-shell.sidebar-collapsed .sidebar-user {
  width: 56px;
  height: 56px;
  justify-content: center;
  gap: 0;
  padding: 7px;
  border-radius: 999px;
  clip-path: inset(0 round 999px);
}

.app-shell.sidebar-collapsed .sidebar-bottom {
  width: 56px;
  justify-items: center;
}

.app-shell.sidebar-collapsed .sidebar-toggle {
  width: 56px;
  min-width: 56px;
  height: 56px;
  padding: 0;
}

.app-shell.sidebar-collapsed .sidebar-toggle .material-symbols-outlined {
  transform: rotate(-180deg) scale(0.92);
}

.app-shell.sidebar-collapsed .account-popover {
  left: 20px;
  right: auto;
  bottom: 172px;
  width: 240px;
}

.app-shell.sidebar-collapsed .workspace {
  margin-left: var(--sidebar-width);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 60;
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px var(--page-margin) 16px;
  background: transparent;
  transition: min-height 220ms ease, padding 220ms ease, box-shadow 220ms ease, background 220ms ease;
  isolation: isolate;
}

.topbar::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(251, 249, 245, 1) 0%,
    rgba(251, 249, 245, 1) 48%,
    rgba(251, 249, 245, 0.66) 72%,
    rgba(251, 249, 245, 0) 100%
  );
  backdrop-filter: blur(8px);
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.topbar-title {
  color: var(--on-surface);
  font-size: 30px;
  line-height: 36px;
  font-weight: 800;
}

.topbar-heading {
  display: grid;
  gap: 4px;
}

.topbar-subtitle {
  max-height: 28px;
  color: var(--on-surface-variant);
  font-size: 16px;
  font-weight: 700;
  overflow: hidden;
  opacity: 1;
  transform: translateY(0);
  transition: max-height 220ms ease, opacity 180ms ease, transform 220ms ease;
}

body.is-scrolled .topbar {
  min-height: 60px;
  padding-top: 10px;
  padding-bottom: 10px;
}

body.is-scrolled .topbar-subtitle {
  max-height: 0;
  opacity: 0;
  transform: translateY(-6px);
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.content {
  width: 100%;
  max-width: none;
  padding: 0 var(--page-margin) 56px;
}

.shared-mode {
  overflow-x: hidden;
}

.shared-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: clamp(18px, 4vw, 56px);
}

.shared-card {
  width: min(960px, 100%);
  display: grid;
  gap: 28px;
}

.shared-head,
.shared-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.shared-hero {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 26px;
  align-items: start;
}

.shared-hero h1 {
  color: var(--on-surface);
  font-size: clamp(32px, 5vw, 58px);
  line-height: 1.06;
  font-weight: 950;
}

.shared-meta {
  margin: 12px 0;
  color: var(--on-surface-variant);
  font-size: 18px;
  font-weight: 850;
}

.shared-section {
  display: grid;
  gap: 12px;
}

.shared-section h2 {
  font-size: 24px;
  font-weight: 950;
}

.shared-description {
  max-width: 100%;
  color: var(--on-surface-variant);
  font-size: 17px;
  font-weight: 650;
  line-height: 1.72;
  white-space: pre-wrap;
}

.shared-interviews {
  display: grid;
  gap: 14px;
}

.shared-interview-card {
  display: grid;
  gap: 12px;
  padding: 18px;
  border-radius: var(--radius-md);
  background: var(--surface-low);
}

.shared-interview-card h3 {
  color: var(--on-surface);
  font-size: 18px;
  font-weight: 950;
}

.shared-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  padding: 20px;
  border-radius: var(--radius-md);
  background: var(--surface-low);
}

.shared-footer {
  color: var(--outline);
  font-size: 14px;
  font-weight: 800;
}

.page-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-bottom: 24px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  margin-bottom: 10px;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--primary-fixed);
  color: var(--primary);
  font-size: 12px;
  font-weight: 900;
}

.description {
  max-width: 760px;
  margin-top: 8px;
  color: var(--on-surface-variant);
  font-size: 16px;
  font-weight: 600;
}

.job-description-shell {
  display: grid;
  gap: 8px;
}

.job-description-text {
  white-space: pre-wrap;
}

.job-description-shell.is-collapsed .job-description-text {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.description-toggle {
  display: none;
  width: max-content;
  min-height: 32px;
  align-items: center;
  gap: 4px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--surface-container);
  color: var(--primary);
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
}

.job-description-shell.is-overflowing .description-toggle {
  display: inline-flex;
}

.description-toggle .material-symbols-outlined {
  font-size: 18px;
  font-variation-settings: "FILL" 1, "wght" 700, "GRAD" 0, "opsz" 20;
}

.button,
.icon-button,
.chip-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  border-radius: 999px;
  padding: 0 20px;
  color: var(--on-primary-container);
  background: var(--primary-container);
  font-weight: 900;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 260ms var(--motion-pop), box-shadow 220ms var(--motion-soft), background-color 220ms var(--motion-soft), color 220ms var(--motion-soft);
  backface-visibility: hidden;
}

.button:hover,
.icon-button:hover,
.chip-button:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-medium);
}

.button:active,
.icon-button:active,
.chip-button:active {
  transform: scale(0.96);
}

.button.dark {
  background: var(--inverse-surface);
  color: #fff;
}

.button.surface,
.chip-button {
  background: var(--surface-lowest);
  color: var(--on-surface);
  box-shadow: var(--shadow-soft);
}

.button.subtle {
  background: var(--surface-container);
  color: var(--on-surface-variant);
}

.button.danger {
  background: var(--error-container);
  color: var(--on-error-container);
}

.button[disabled] {
  cursor: wait;
  opacity: 0.72;
  transform: none;
}

.icon-button {
  width: 48px;
  min-width: 48px;
  padding: 0;
  background: var(--surface-lowest);
  color: var(--primary);
  box-shadow: var(--shadow-soft);
}

.topbar-back {
  width: 40px;
  min-width: 40px;
  min-height: 40px;
  background: transparent;
  color: var(--on-surface);
  box-shadow: none;
}

.topbar-back .material-symbols-outlined {
  transition: transform 360ms var(--motion-pop), font-variation-settings 220ms var(--motion-soft);
}

.topbar-back:hover:not([disabled]) .material-symbols-outlined {
  transform: translateX(-2px) scale(1.04);
}

.topbar-back:hover:not([disabled]) {
  background: var(--surface-high);
  box-shadow: none;
}

.topbar-back[disabled] {
  cursor: default;
  opacity: 0.42;
  transform: none;
}

.topbar-notification {
  position: relative;
  background: transparent;
  color: var(--on-surface-variant);
  box-shadow: none;
}

.topbar-notification::after {
  content: "";
  position: absolute;
  top: 10px;
  right: 10px;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--secondary);
}

.grid {
  display: grid;
  gap: var(--gutter);
}

.metric-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: var(--gutter);
}

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

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

.card {
  min-width: 0;
  border-radius: var(--radius-lg);
  background: var(--surface-lowest);
  box-shadow: var(--shadow-soft);
}

.card-pad {
  padding: var(--card-padding);
}

.interactive-card,
.metric-card,
.data-row,
.task-card,
.add-card,
.offer-card,
.job-card,
.job-list-row {
  transition: transform 300ms var(--motion-pop), box-shadow 220ms var(--motion-soft), background-color 220ms var(--motion-soft), border-color 220ms var(--motion-soft);
  backface-visibility: hidden;
  will-change: transform;
}

.interactive-card:hover,
.metric-card:hover,
.offer-card:hover,
.job-card:hover,
.job-list-row:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.06);
}

.interactive-card:active,
.metric-card:active,
.offer-card:active,
.job-card:active,
.data-row:active,
.task-card:active,
.add-card:active {
  transform: scale(0.98);
}

.metric-card {
  min-height: 132px;
  display: grid;
  align-content: center;
  gap: 10px;
  padding: 28px;
  border: 0;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.screen-jobs .metric-card {
  min-height: 112px;
  padding: 22px 28px;
  border-left: 4px solid var(--primary);
}

.screen-jobs .metric-card:nth-child(2) {
  border-left-color: var(--secondary-container);
}

.screen-jobs .metric-card:nth-child(3) {
  border-left-color: var(--tertiary-container);
}

.screen-jobs .metric-card:nth-child(4) {
  border-left-color: var(--error-container);
}

.metric-card.highlight {
  background: var(--primary-container);
  color: var(--on-primary-container);
}

.screen-jobs .metric-card.highlight {
  border-left-color: var(--primary);
  box-shadow: var(--shadow-medium);
}

.metric-card.dark {
  background: var(--inverse-surface);
  color: var(--inverse-on-surface);
}

.metric-label {
  color: inherit;
  opacity: 0.72;
  font-size: 14px;
  font-weight: 800;
}

.metric-value {
  display: block;
  font-size: 40px;
  line-height: 40px;
  font-weight: 900;
}

.metric-line {
  display: flex;
  align-items: flex-end;
  gap: 14px;
}

.metric-note {
  display: block;
  padding-bottom: 4px;
  color: inherit;
  opacity: 0.72;
  font-size: 13px;
  font-weight: 700;
}

.ai-hero {
  grid-column: span 4;
  min-height: 320px;
  display: grid;
  align-content: center;
  position: relative;
  overflow: hidden;
}

.panel-list {
  grid-column: span 8;
}

.dashboard-interview-card {
  align-content: start;
}

.dashboard-interview-list {
  max-height: 166px;
  overflow-y: auto;
  padding-right: 4px;
  scrollbar-width: thin;
  scrollbar-color: var(--outline-variant) transparent;
}

.dashboard-funnel-card {
  grid-column: 1 / -1;
  min-height: clamp(326px, 34vh, 460px);
  overflow: hidden;
}

.mini-funnel {
  display: grid;
  grid-template-columns: repeat(6, minmax(150px, 1fr));
  gap: 12px;
}

.mini-funnel-step {
  min-width: 0;
  min-height: clamp(244px, 26vh, 360px);
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 14px;
  border-radius: var(--radius-md);
  background: var(--surface-low);
  border-top: 4px solid var(--outline-variant);
  transition: transform 240ms var(--motion-pop), box-shadow 200ms var(--motion-soft), background-color 200ms var(--motion-soft);
}

.mini-funnel-step.drag-over {
  background: color-mix(in srgb, var(--primary-container) 20%, var(--surface-low));
  transform: translateY(-3px) scale(1.01);
  box-shadow: var(--shadow-medium);
}

.mini-funnel-step.applied {
  border-color: var(--primary-fixed);
}

.mini-funnel-step.interview {
  border-color: var(--secondary-container);
}

.mini-funnel-step.offer {
  border-color: var(--primary-fixed-dim);
}

.mini-funnel-step.reject {
  border-color: var(--error-container);
}

.mini-funnel-step.todo,
.mini-funnel-step.quit {
  border-color: var(--tertiary-container);
}

.mini-funnel-head {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr) auto;
  align-items: center;
  gap: 4px;
}

.mini-funnel-head .material-symbols-outlined {
  color: var(--primary);
  font-size: 18px;
  font-variation-settings: "FILL" 1, "wght" 700, "GRAD" 0, "opsz" 20;
}

.mini-funnel-head strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
  font-weight: 950;
}

.mini-funnel-head small {
  min-width: 22px;
  min-height: 22px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: var(--surface-lowest);
  color: var(--on-surface);
  font-size: 12px;
  font-weight: 950;
}

.mini-funnel-jobs {
  display: grid;
  gap: 5px;
  max-height: clamp(188px, 21vh, 288px);
  overflow-y: auto;
  padding-right: 2px;
  scrollbar-width: thin;
  scrollbar-color: var(--outline-variant) transparent;
}

.dashboard-interview-list::-webkit-scrollbar,
.mini-funnel-jobs::-webkit-scrollbar {
  width: 8px;
}

.dashboard-interview-list::-webkit-scrollbar-thumb,
.mini-funnel-jobs::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: var(--outline-variant);
}

.mini-funnel-jobs button {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  padding: 9px 10px;
  border-radius: 14px;
  background: var(--surface-lowest);
  color: var(--on-surface);
  text-align: left;
  cursor: pointer;
  transition: transform 220ms var(--motion-pop), box-shadow 180ms var(--motion-soft);
}

.mini-funnel-jobs button[draggable="true"] {
  cursor: var(--cursor-grab-outline);
}

.mini-funnel-jobs button[draggable="true"]:active {
  cursor: var(--cursor-grabbing-outline);
}

.mini-funnel-jobs button.is-dragging {
  opacity: 0.46;
}

.mini-funnel-jobs button:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
}

.mini-funnel-jobs strong,
.mini-funnel-jobs small,
.mini-funnel-jobs em {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mini-funnel-jobs strong {
  font-size: clamp(13px, 0.8vw, 15px);
  font-weight: 950;
}

.mini-funnel-jobs em {
  margin-top: 2px;
  color: var(--on-surface-variant);
  font-size: clamp(11px, 0.7vw, 13px);
  font-style: normal;
  font-weight: 850;
}

.mini-funnel-jobs small,
.mini-empty {
  color: var(--outline);
  font-size: clamp(11px, 0.68vw, 12px);
  font-weight: 750;
}

.dashboard-review-body {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
}

.dashboard-review-body h3 {
  font-size: 18px;
  line-height: 26px;
}

.dashboard-review-body p {
  margin-top: 6px;
  color: var(--on-surface-variant);
  font-weight: 750;
}

.full-span {
  grid-column: 1 / -1;
}

@media (min-width: 1181px) {
  .screen-dashboard .content {
    min-height: calc(100dvh - 98px);
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
  }

  .screen-dashboard .bento-grid {
    min-height: clamp(620px, calc(100dvh - 250px), 900px);
    grid-template-rows: minmax(340px, 1.35fr) minmax(190px, 0.8fr);
    align-items: stretch;
  }

  .screen-dashboard .dashboard-funnel-card,
  .screen-dashboard .dashboard-interview-card,
  .screen-dashboard .dashboard-review-card {
    height: 100%;
  }

  .screen-dashboard .dashboard-funnel-card {
    min-height: 0;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
  }

  .screen-dashboard .mini-funnel {
    height: 100%;
  }

  .screen-dashboard .mini-funnel-step {
    min-height: 0;
    height: 100%;
  }

  .screen-dashboard .mini-funnel-jobs {
    max-height: none;
  }

  .screen-dashboard .dashboard-interview-card {
    min-height: 0;
    align-content: stretch;
  }

  .screen-dashboard .dashboard-interview-list {
    max-height: none;
  }

  .screen-dashboard .dashboard-review-card {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
  }

  .screen-dashboard .dashboard-review-body {
    align-self: stretch;
    align-items: center;
  }

  .screen-detail .content,
  .screen-offers .content {
    min-height: calc(100dvh - 98px);
  }

  .screen-detail .detail-layout {
    min-height: clamp(620px, calc(100dvh - 160px), 940px);
    align-items: stretch;
  }

  .screen-detail .detail-layout > div,
  .screen-detail .side-stack {
    min-height: 0;
    display: grid;
  }

  .screen-detail .detail-layout > div {
    grid-template-rows: auto minmax(0, 1fr);
  }

  .screen-detail .hero-card {
    min-height: clamp(220px, 24vh, 340px);
  }

  .screen-detail .detail-layout > div > .stack {
    align-content: start;
    min-height: 0;
  }

  .screen-detail .side-stack {
    grid-auto-rows: minmax(0, auto);
  }

  .screen-detail .quick-info,
  .screen-detail .ai-card {
    min-height: clamp(190px, 22vh, 320px);
  }

  .screen-offers .content {
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto;
  }

  .screen-offers .offers-grid {
    min-height: clamp(560px, calc(100dvh - 330px), 860px);
    align-items: stretch;
  }

  .screen-offers .offer-card,
  .screen-offers .offers-grid .add-card {
    height: 100%;
  }

  .screen-offers .decision-grid {
    min-height: clamp(190px, 22vh, 300px);
  }

  .screen-offers .decision-card {
    height: 100%;
  }
}

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

.text-link {
  color: var(--primary);
  font-size: 14px;
  font-weight: 900;
  cursor: pointer;
}

.text-link:hover {
  text-decoration: underline;
}

.stack {
  display: grid;
  gap: 14px;
}

.data-row,
.task-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  min-height: 76px;
  padding: 16px;
  border-radius: var(--radius-md);
  background: var(--surface-low);
  cursor: pointer;
}

.task-card {
  grid-template-columns: 44px minmax(0, 1fr) auto;
}

.data-row:hover,
.task-card:hover {
  background: var(--surface-high);
  transform: translateY(-4px) scale(1.01);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.06);
}

.row-title {
  font-size: 15px;
  font-weight: 900;
}

.row-meta {
  margin-top: 4px;
  color: var(--outline);
  font-size: 13px;
  font-weight: 700;
}

.badge {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.badge.todo,
.badge.quit {
  background: var(--surface-highest);
  color: var(--on-surface-variant);
}

.badge.applied {
  background: var(--primary-fixed);
  color: var(--primary);
}

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

.badge.talk,
.badge.tertiary {
  background: var(--tertiary-container);
  color: var(--on-tertiary-container);
}

.badge.test,
.badge.wait {
  background: var(--primary-fixed);
  color: var(--primary);
}

.badge.interview,
.badge.urgent {
  background: var(--secondary-container);
  color: var(--on-secondary-container);
}

.badge.reject,
.badge.error {
  background: var(--error-container);
  color: var(--on-error-container);
}

.badge.dark {
  background: rgba(255, 255, 255, 0.12);
  color: var(--inverse-on-surface);
}

.status-quick {
  position: relative;
  width: auto;
  min-width: 96px;
  max-width: 176px;
  min-height: 30px;
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-self: end;
  border-radius: 999px;
  color: var(--on-surface-variant);
  background: var(--surface-highest);
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 260ms var(--motion-pop), box-shadow 220ms var(--motion-soft);
}

.status-quick:hover,
.status-quick:focus-within {
  transform: translateY(-1px) scale(1.02);
  box-shadow: var(--shadow-soft);
}

.status-quick .custom-select-trigger {
  width: auto;
  min-height: 30px;
  max-width: 176px;
  border: 0;
  border-radius: inherit;
  padding: 4px 30px 4px 12px;
  background: transparent;
  color: inherit;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
  outline: 0;
}

.status-quick .custom-select-value {
  max-width: 118px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.status-quick .select-arrow {
  right: 8px;
  color: currentColor;
  font-size: 16px;
}

.status-quick .custom-select-menu {
  right: 0;
  left: auto;
  min-width: 176px;
  color: var(--on-surface);
}

.hero-card .status-quick {
  width: 128px;
  max-width: none;
  min-width: 128px;
  margin-left: 0;
  overflow: visible;
}

.hero-card .status-quick .custom-select-trigger {
  width: 100%;
  min-height: 38px;
  max-width: none;
  padding: 4px 14px;
  justify-content: center;
  font-size: 14px;
  border-radius: inherit;
}

.hero-card .status-quick .custom-select-value {
  max-width: none;
}

.hero-card .status-quick .custom-select-menu {
  left: auto;
  right: 0;
  width: 144px;
  min-width: 144px;
}

.hero-card .priority-quick {
  width: 128px;
  min-width: 128px;
  margin-left: 0;
  border-radius: 999px;
  background: var(--surface-container);
  color: var(--on-surface);
  box-shadow: none;
  overflow: visible;
}

.hero-card .priority-quick .custom-select-trigger {
  width: 100%;
  min-height: 38px;
  border-radius: inherit;
  padding: 4px 14px;
  background: transparent;
  color: inherit;
  font-size: 14px;
  font-weight: 950;
  justify-content: center;
  box-shadow: none;
}

.hero-card .priority-quick .custom-select-trigger::before {
  content: "star";
  margin-right: 6px;
  color: var(--primary-container);
  font-family: "Material Symbols Outlined";
  font-size: 18px;
  font-variation-settings: "FILL" 1, "wght" 700, "GRAD" 0, "opsz" 20;
}

.hero-card .priority-quick .custom-select-value {
  max-width: none;
}

.hero-card .priority-quick .custom-select-value::after {
  content: "优先级";
}

.hero-card .priority-quick .custom-select-menu {
  left: auto;
  right: 0;
  min-width: 128px;
}

.hero-controls .select-arrow {
  right: -22px;
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity 180ms var(--motion-soft), transform 220ms var(--motion-pop), color 220ms var(--motion-soft);
}

.hero-controls .custom-select:hover .select-arrow,
.hero-controls .custom-select:focus-within .select-arrow,
.hero-controls .custom-select.open .select-arrow {
  opacity: 1;
  transform: translateX(0);
}

.hero-card .priority-quick.priority-high {
  background: var(--inverse-surface);
  color: var(--inverse-on-surface);
}

.hero-card .priority-quick.priority-medium {
  background: var(--primary-container);
  color: var(--on-primary-container);
}

.hero-card .priority-quick.priority-low {
  background: var(--surface-highest);
  color: var(--on-surface-variant);
}

.hero-controls {
  min-height: 100%;
  display: grid;
  align-content: space-between;
  justify-items: end;
  gap: 18px;
  margin-left: 20px;
}

.hero-controls .status-quick {
  width: 128px;
  min-width: 128px;
}

.status-quick.applied {
  background: var(--primary-fixed);
  color: var(--primary);
}

.status-quick.todo {
  background: var(--surface-highest);
  color: var(--on-surface-variant);
}

.status-quick.offer {
  background: var(--primary-container);
  color: var(--on-primary-container);
}

.status-quick.talk,
.status-quick.tertiary {
  background: var(--tertiary-container);
  color: var(--on-tertiary-container);
}

.status-quick.test,
.status-quick.wait {
  background: var(--primary-fixed);
  color: var(--primary);
}

.status-quick.interview,
.status-quick.urgent {
  background: var(--secondary-container);
  color: var(--on-secondary-container);
}

.status-quick.reject,
.status-quick.error {
  background: var(--error-container);
  color: var(--on-error-container);
}

.toolbar {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) repeat(4, minmax(132px, auto));
  gap: 12px;
  align-items: center;
  margin-bottom: var(--gutter);
}

.screen-jobs .toolbar {
  position: relative;
  z-index: 45;
  grid-template-columns: minmax(280px, 1fr) repeat(3, 148px) minmax(104px, auto);
  gap: 8px;
}

.screen-jobs .metric-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}

.screen-jobs .search-control {
  height: 48px;
}

.screen-jobs .toolbar-select {
  min-width: 0;
}

.screen-jobs .city-filter {
  min-width: 148px;
}

.screen-jobs .priority-filter {
  min-width: 148px;
}

.screen-jobs .sort-filter {
  min-width: 148px;
}

.screen-jobs .toolbar-select .custom-select-trigger {
  padding: 0 24px 0 12px;
  font-size: 13px;
}

.screen-jobs .jobs-view-tools .funnel-icon-button,
.screen-jobs .jobs-view-tools .view-switch button {
  width: 48px;
  min-width: 48px;
  height: 48px;
}

.search-control,
.select-shell,
.field input,
.field textarea {
  width: 100%;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--surface-lowest);
  color: var(--on-surface);
  box-shadow: var(--shadow-soft);
}

.search-control {
  height: 56px;
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 0 20px;
}

.search-control input {
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--on-surface);
}

.search-control input:focus {
  outline: 0;
}

.select-shell {
  position: relative;
  display: grid;
  align-items: center;
  transition: transform 260ms var(--motion-pop), box-shadow 220ms var(--motion-soft), border-color 220ms var(--motion-soft), background-color 220ms var(--motion-soft);
}

.select-shell:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-medium);
}

.select-shell:focus-within {
  border-color: var(--primary-fixed-dim);
  box-shadow: 0 0 0 3px rgba(250, 204, 21, 0.24), var(--shadow-soft);
}

.custom-select {
  min-width: 0;
  z-index: 1;
}

.custom-select.open {
  z-index: 30;
}

.custom-select input[type="hidden"] {
  display: none;
}

.custom-select-trigger {
  width: 100%;
  height: 100%;
  min-width: 0;
  border: 0;
  border-radius: inherit;
  background: transparent;
  color: inherit;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 44px 0 18px;
  text-align: left;
  font-weight: 800;
  cursor: pointer;
  outline: 0;
}

.custom-select-value {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.custom-select-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 40;
  display: grid;
  gap: 4px;
  max-height: 272px;
  overflow: auto;
  padding: 8px;
  border: 1px solid var(--outline-variant);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow-popover);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px) scale(0.98);
  transform-origin: top center;
  transition: opacity 180ms var(--motion-soft), transform 240ms var(--motion-pop);
  backdrop-filter: blur(10px);
}

.custom-select.open .custom-select-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.custom-select-option {
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  border-radius: 18px;
  padding: 0 12px;
  background: transparent;
  color: var(--on-surface);
  text-align: left;
  font-size: 14px;
  font-weight: 850;
  cursor: pointer;
  transition: transform 220ms var(--motion-pop), background-color 180ms var(--motion-soft), color 180ms var(--motion-soft);
}

.custom-select-option:hover,
.custom-select-option:focus-visible {
  background: var(--surface-low);
  transform: translateX(2px);
}

.custom-select-option.active {
  background: var(--primary-container);
  color: var(--on-primary-container);
}

.toolbar-select {
  height: 48px;
}

.select-arrow {
  position: absolute;
  right: 16px;
  color: var(--outline);
  font-size: 20px;
  pointer-events: none;
  transition: transform 220ms var(--motion-pop), color 220ms var(--motion-soft);
}

.select-shell:focus-within .select-arrow {
  color: var(--primary);
}

.custom-select.open .select-arrow {
  transform: rotate(180deg);
}

.view-switch {
  display: flex;
  justify-content: flex-end;
}

.view-switch button {
  width: 56px;
  height: 56px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: var(--surface-lowest);
  color: var(--on-surface-variant);
  box-shadow: var(--shadow-soft);
  cursor: pointer;
  transition: transform 260ms var(--motion-pop), box-shadow 220ms var(--motion-soft), background-color 220ms var(--motion-soft), color 220ms var(--motion-soft);
  backface-visibility: hidden;
}

.view-switch button:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: var(--shadow-medium);
}

.view-switch button.active {
  background: var(--primary-container);
  color: var(--on-primary-container);
}

.view-switch .material-symbols-outlined {
  font-size: 24px;
  font-variation-settings: "FILL" 1, "wght" 700, "GRAD" 0, "opsz" 24;
}

.jobs-view-tools {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.jobs-content-transition {
  width: 100%;
  min-width: 0;
  max-width: 100%;
}

.jobs-content-transition > .grid,
.jobs-content-transition > .jobs-list,
.jobs-content-transition > .funnel-board,
.jobs-content-transition > .funnel-list {
  width: 100%;
  max-width: 100%;
}

.funnel-standalone,
.funnel-controls {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
}

.funnel-icon-button,
.funnel-segment {
  width: 56px;
  min-width: 56px;
  height: 56px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: var(--surface-lowest);
  color: var(--on-surface-variant);
  box-shadow: var(--shadow-soft);
  cursor: pointer;
  transition: transform 280ms var(--motion-pop), box-shadow 220ms var(--motion-soft), background-color 220ms var(--motion-soft), color 220ms var(--motion-soft);
}

.funnel-icon-button:hover,
.funnel-segment:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: var(--shadow-medium);
}

.funnel-controls.active {
  transform-origin: right center;
  border-radius: 999px;
  background: var(--surface-lowest);
  box-shadow: var(--shadow-soft);
  animation: switcher-pop 460ms var(--motion-spring) both;
}

.funnel-controls.active.is-opening {
  animation: funnel-control-grow 560ms var(--motion-spring) both;
}

.funnel-standalone.is-closing {
  transform-origin: right center;
  animation: funnel-icon-rebound 460ms var(--motion-spring) both;
}

.funnel-controls.active .funnel-segment {
  box-shadow: none;
}

.funnel-controls.active.is-opening .funnel-segment {
  animation: funnel-segment-pop 520ms var(--motion-spring) both;
}

.funnel-controls.active.is-opening .funnel-segment.secondary {
  animation-delay: 60ms;
}

.funnel-segment.primary {
  border-radius: 999px 0 0 999px;
  background: var(--primary-container);
  color: var(--on-primary-container);
}

.funnel-segment.secondary {
  border-radius: 0 999px 999px 0;
  background: var(--surface-lowest);
  color: var(--on-surface-variant);
}

.funnel-panel {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  z-index: 80;
  width: 232px;
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid var(--outline-variant);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow-popover);
  backdrop-filter: blur(12px);
  animation: account-pop 260ms var(--motion-pop) both;
}

.funnel-panel-title {
  padding: 0 6px 4px;
  color: var(--outline);
  font-size: 12px;
  font-weight: 900;
}

.funnel-status-option {
  min-height: 42px;
  display: grid;
  grid-template-columns: 18px 24px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 18px;
  color: var(--on-surface);
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
  transition: transform 220ms var(--motion-pop), background-color 180ms var(--motion-soft);
}

.funnel-status-option:hover {
  background: var(--surface-low);
  transform: translateX(2px);
}

.funnel-status-option input {
  accent-color: var(--primary-fixed-dim);
}

.funnel-status-option .material-symbols-outlined {
  color: var(--primary);
  font-size: 20px;
  font-variation-settings: "FILL" 1, "wght" 700, "GRAD" 0, "opsz" 20;
}

.funnel-board {
  display: grid;
  grid-template-columns: repeat(var(--funnel-columns, 4), minmax(260px, 1fr));
  gap: clamp(12px, 1.5vw, var(--gutter));
  align-items: start;
  overflow-x: auto;
  overflow-y: visible;
  padding-bottom: 12px;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
  scrollbar-color: var(--outline-variant) transparent;
}

.funnel-board::-webkit-scrollbar,
.offers-grid::-webkit-scrollbar {
  height: 10px;
}

.funnel-board::-webkit-scrollbar-thumb,
.offers-grid::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: var(--outline-variant);
}

.funnel-column,
.funnel-list-section {
  min-width: 0;
  border-radius: var(--radius-lg);
  background: var(--surface-lowest);
  box-shadow: var(--shadow-soft);
  transition: transform 280ms var(--motion-pop), box-shadow 220ms var(--motion-soft), background-color 220ms var(--motion-soft), border-color 220ms var(--motion-soft);
  animation: switcher-pop 520ms var(--motion-spring) both;
}

.funnel-board.no-motion .funnel-column,
.funnel-list.no-motion .funnel-list-section {
  animation: none;
}

.funnel-column {
  min-height: 430px;
  padding: clamp(14px, 1.3vw, 18px);
  border-top: 5px solid var(--outline-variant);
  scroll-snap-align: start;
}

.funnel-column.applied,
.funnel-list-section.applied {
  border-color: var(--primary-fixed);
}

.funnel-column.interview,
.funnel-list-section.interview {
  border-color: var(--secondary-container);
}

.funnel-column.offer,
.funnel-list-section.offer {
  border-color: var(--primary-fixed-dim);
}

.funnel-column.reject,
.funnel-list-section.reject {
  border-color: var(--error-container);
}

.funnel-column.todo,
.funnel-list-section.todo,
.funnel-column.quit,
.funnel-list-section.quit {
  border-color: var(--tertiary-container);
}

.funnel-column.drag-over,
.funnel-list-section.drag-over {
  background: color-mix(in srgb, var(--primary-container) 18%, var(--surface-lowest));
  transform: translateY(-3px) scale(1.01);
  box-shadow: var(--shadow-medium);
}

.funnel-column-head,
.funnel-list-head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.funnel-column-head {
  margin-bottom: 16px;
}

.funnel-list-head {
  padding: 20px 22px 0;
}

.funnel-column-icon {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 999px;
  background: var(--primary-container);
  color: var(--on-primary-container);
  font-variation-settings: "FILL" 1, "wght" 700, "GRAD" 0, "opsz" 22;
}

.funnel-column-head h2,
.funnel-list-head h2 {
  font-size: clamp(16px, 1.4vw, 18px);
  line-height: 24px;
}

.funnel-column-head small,
.funnel-list-head small {
  color: var(--outline);
  font-size: 12px;
  font-weight: 800;
}

.funnel-column-body,
.funnel-list-body {
  display: grid;
  gap: 12px;
}

.funnel-job-card,
.funnel-list-row {
  position: relative;
  min-width: 0;
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  background: var(--surface-low);
  color: var(--on-surface);
  cursor: var(--cursor-grab-outline);
  transition: transform 300ms var(--motion-pop), box-shadow 220ms var(--motion-soft), background-color 220ms var(--motion-soft), border-color 220ms var(--motion-soft), opacity 180ms var(--motion-soft);
  backface-visibility: hidden;
  will-change: transform;
}

.funnel-job-card {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 12px;
  padding: clamp(12px, 1.2vw, 16px);
}

.funnel-job-card strong,
.funnel-list-row strong {
  display: block;
  font-weight: 950;
}

.funnel-job-card small,
.funnel-list-row small {
  display: block;
  margin-top: 3px;
  color: var(--outline);
  font-size: 12px;
  font-weight: 750;
}

.funnel-job-card .tag-row {
  grid-column: 1 / -1;
  margin-top: 2px;
}

.funnel-job-card:hover,
.funnel-job-card:focus-visible,
.funnel-list-row:hover,
.funnel-list-row:focus-visible {
  border-color: var(--primary-fixed-dim);
  background: var(--surface-lowest);
  box-shadow: var(--shadow-medium);
  transform: translateY(-4px) scale(1.015);
  outline: 0;
}

.funnel-job-card:active,
.funnel-list-row:active {
  cursor: var(--cursor-grabbing-outline);
  transform: scale(0.985);
}

.funnel-job-card.is-dragging,
.funnel-list-row.is-dragging {
  opacity: 0.46;
  transform: rotate(-1deg) scale(0.96);
}

.funnel-list {
  display: grid;
  gap: var(--gutter);
}

.funnel-list-section {
  padding-bottom: 14px;
  border-left: 5px solid var(--outline-variant);
}

.funnel-list-body {
  padding: 16px;
}

.funnel-list-row {
  min-height: 82px;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) minmax(96px, auto) minmax(112px, auto);
  align-items: center;
  gap: 16px;
  padding: 14px;
}

.funnel-empty {
  animation: switcher-pop 420ms var(--motion-spring) both;
}

.job-card {
  display: flex;
  min-height: 330px;
  flex-direction: column;
  justify-content: space-between;
  padding: var(--card-padding);
  cursor: pointer;
}

.job-card-top,
.job-footer,
.offer-top,
.inline-between {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.logo-tile {
  font-family: "Inter", "Microsoft YaHei", "PingFang SC", "Noto Sans CJK SC", "Source Han Sans SC", Arial, sans-serif;
  width: 64px;
  height: 64px;
  border-radius: var(--radius-md);
  background: var(--surface-high);
  color: var(--primary);
  border: 1px solid var(--outline-variant);
}

.logo-tile.large {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-lg);
  border-width: 4px;
}

.logo-tile.compact {
  width: 44px;
  height: 44px;
  border-radius: 18px;
  font-size: 13px;
}

.logo-red {
  background: var(--secondary-container);
  color: var(--on-secondary-container);
}

.logo-blue {
  background: var(--tertiary-container);
  color: var(--on-tertiary-container);
}

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

.job-title {
  margin-top: 24px;
}

.job-company {
  margin-top: 8px;
  color: var(--on-surface-variant);
  font-weight: 700;
}

.job-footer {
  align-items: center;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--surface-high);
}

.salary-label {
  color: var(--outline);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.salary {
  margin-top: 3px;
  color: var(--primary);
  font-size: 18px;
  font-weight: 900;
}

.priority-chip {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--surface-container);
  color: var(--on-surface);
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.priority-chip.priority-high {
  background: var(--inverse-surface);
  color: var(--inverse-on-surface);
}

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

.priority-chip.priority-low {
  background: var(--surface-highest);
  color: var(--on-surface-variant);
}

.priority-chip .material-symbols-outlined {
  color: var(--primary-fixed-dim);
  font-size: 16px;
  font-variation-settings: "FILL" 1, "wght" 700, "GRAD" 0, "opsz" 20;
}

.priority-chip.priority-low .material-symbols-outlined {
  color: var(--outline);
}

.jobs-list {
  display: grid;
  gap: 8px;
  padding: 10px;
}

.job-list-row {
  width: 100%;
  min-height: 92px;
  display: grid;
  grid-template-columns: 64px minmax(220px, 1fr) minmax(96px, auto) minmax(104px, auto) minmax(112px, auto);
  align-items: center;
  gap: 18px;
  padding: 14px 18px;
  border-radius: var(--radius-md);
  background: transparent;
  color: var(--on-surface);
  text-align: left;
  cursor: pointer;
}

.job-list-row:hover {
  background: var(--surface-low);
}

.job-list-main {
  display: grid;
  gap: 4px;
}

.job-list-main strong {
  font-size: 16px;
  font-weight: 900;
}

.job-list-main small,
.job-list-meta {
  color: var(--outline);
  font-size: 13px;
  font-weight: 700;
}

.job-list-status {
  display: flex;
  justify-content: flex-end;
}

.add-card {
  min-height: 330px;
  display: grid;
  place-items: center;
  padding: var(--card-padding);
  border: 4px dashed var(--outline-variant);
  border-radius: var(--radius-lg);
  background: transparent;
  color: var(--outline);
  text-align: center;
  cursor: pointer;
  transition: transform 300ms var(--motion-pop), box-shadow 220ms var(--motion-soft), background-color 220ms var(--motion-soft), border-color 220ms var(--motion-soft);
  backface-visibility: hidden;
}

.add-card:hover {
  transform: translateY(-4px) scale(1.01);
  border-color: var(--primary-fixed-dim);
  background: rgba(255, 255, 255, 0.42);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.06);
}

.add-card-icon {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  margin: 0 auto 16px;
  border-radius: 999px;
  background: var(--surface-container);
  font-size: 28px;
  font-weight: 900;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(320px, 1fr);
  gap: var(--gutter);
  align-items: start;
}

.detail-layout.detail-transition-next {
  animation: detail-slide-next 460ms var(--motion-spring) both;
}

.detail-layout.detail-transition-prev {
  animation: detail-slide-prev 460ms var(--motion-spring) both;
}

.detail-switcher {
  position: fixed;
  inset: auto 32px 32px calc(288px + 32px);
  z-index: 26;
  display: flex;
  justify-content: space-between;
  pointer-events: none;
}

.app-shell.sidebar-collapsed .detail-switcher {
  left: calc(104px + 32px);
}

.detail-switch-button {
  width: 52px;
  min-width: 52px;
  height: 52px;
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--on-surface);
  box-shadow: var(--shadow-popover);
  pointer-events: auto;
  font-size: 13px;
  font-weight: 950;
  cursor: pointer;
  backdrop-filter: blur(12px);
  animation: switcher-pop 520ms var(--motion-spring) both;
  transition: transform 260ms var(--motion-pop), background-color 180ms var(--motion-soft), color 180ms var(--motion-soft);
}

.detail-switch-button:hover,
.detail-switch-button:focus-visible {
  background: var(--primary-container);
  color: var(--on-primary-container);
  transform: translateY(-2px) scale(1.04);
  outline: 0;
}

.detail-switch-button .material-symbols-outlined {
  font-size: 22px;
  font-variation-settings: "FILL" 1, "wght" 700, "GRAD" 0, "opsz" 22;
}

.hero-card {
  position: relative;
  overflow: visible;
  margin-bottom: var(--gutter);
}

.hero-content {
  display: flex;
  flex: 1 1 auto;
  min-width: 0;
  align-items: flex-start;
  gap: 24px;
}

.hero-content > div {
  min-width: 0;
}

.hero-copy {
  flex: 1 1 auto;
  min-width: 0;
}

.hero-meta-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 14px;
}

.hero-meta-row .tag-row {
  flex: 1 1 auto;
  min-width: 0;
  margin-top: 0;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.interview-card {
  border-left: 8px solid var(--primary-container);
  cursor: pointer;
  transition: transform 260ms var(--motion-pop), box-shadow 220ms var(--motion-soft), border-color 220ms var(--motion-soft);
}

.interview-card:hover,
.interview-card:focus-visible {
  transform: translateY(-2px);
  box-shadow: var(--shadow-medium);
  outline: 0;
}

.interview-card:nth-child(even) {
  border-left-color: var(--tertiary-container);
}

.interview-result-select {
  width: 112px;
  min-width: 112px;
  min-height: 36px;
  align-self: flex-start;
  border-color: transparent;
  box-shadow: none;
}

.interview-result-select .custom-select-trigger {
  min-height: 36px;
  padding: 0 30px 0 12px;
  font-size: 13px;
}

.interview-result-select .custom-select-menu {
  left: auto;
  right: 0;
  min-width: 132px;
}

.question-box {
  display: grid;
  gap: 8px;
  margin-top: 14px;
  padding: 16px;
  border-radius: var(--radius-md);
  background: var(--surface-low);
}

.question-box strong {
  color: var(--primary);
}

.empty-dash {
  display: grid;
  place-items: center;
  min-height: 128px;
  padding: 24px;
  border: 2px dashed var(--outline-variant);
  border-radius: var(--radius-lg);
  color: var(--outline);
  text-align: center;
}

.side-stack {
  display: grid;
  gap: var(--gutter);
}

.action-stack {
  display: grid;
  gap: 14px;
}

.action-stack .button {
  width: 100%;
}

.action-stack.offer-won {
  animation: offer-action-pop 520ms var(--motion-spring) both;
}

.button.offer-won-action {
  min-height: 110px;
  border-radius: var(--radius-lg);
  background: var(--primary-container);
  color: var(--on-primary-container);
  box-shadow: var(--shadow-medium);
  font-size: 18px;
}

.button.offer-won-action .material-symbols-outlined {
  width: 44px;
  height: 44px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.44);
  color: var(--on-primary-container);
  font-size: 26px;
  font-variation-settings: "FILL" 1, "wght" 700, "GRAD" 0, "opsz" 28;
}

.quick-info {
  display: grid;
  gap: 18px;
  overflow: visible;
}

.quick-info .field-select {
  position: relative;
  z-index: 2;
  background: var(--surface-lowest);
  box-shadow: var(--shadow-soft);
}

.quick-info .field-select.open {
  z-index: 45;
}

.quick-item {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
}

.round-icon {
  width: 48px;
  height: 48px;
  border-radius: 999px;
  background: var(--surface-container);
  color: var(--primary);
}

.quick-item span {
  color: var(--outline);
  font-size: 12px;
  font-weight: 800;
}

.quick-item strong {
  display: block;
  margin-top: 2px;
}

.quick-value-button {
  max-width: 100%;
  display: block;
  margin-top: 2px;
  padding: 0;
  border-radius: 8px;
  color: var(--on-surface);
  text-align: left;
  cursor: pointer;
}

.quick-value-button:hover,
.quick-value-button:focus-visible {
  color: var(--primary);
  outline: 0;
}

.quick-value-button strong {
  overflow-wrap: anywhere;
}

.source-quick-item .quick-value-button {
  width: 100%;
  max-width: 100%;
}

.source-quick-item .quick-value-button strong {
  display: block;
  max-width: min(100%, 360px);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow-wrap: normal;
}

.quick-edit-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 8px;
  align-items: center;
  margin-top: 6px;
}

.quick-edit-form:has(.quick-unit-select) {
  grid-template-columns: minmax(0, 1fr) 74px auto auto;
}

.quick-edit-form input {
  width: 100%;
  min-height: 38px;
  border: 0;
  border-radius: 999px;
  padding: 0 14px;
  background: var(--surface-lowest);
  color: var(--on-surface);
  font-size: 14px;
  font-weight: 800;
  box-shadow: inset 0 0 0 1px var(--outline-variant);
}

.quick-edit-form input:focus {
  outline: 3px solid var(--primary-fixed);
}

.quick-unit-select,
.quick-unit-select .custom-select-trigger {
  width: 74px;
  min-width: 74px;
  min-height: 38px;
}

.quick-unit-select .custom-select-trigger {
  padding: 0 26px 0 12px;
  background: var(--surface-lowest);
  box-shadow: inset 0 0 0 1px var(--outline-variant);
}

.quick-unit-select .custom-select-menu {
  left: auto;
  right: 0;
  min-width: 86px;
}

.quick-edit-icon {
  width: 38px;
  min-width: 38px;
  height: 38px;
  min-height: 38px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: var(--primary-container);
  color: var(--on-primary-container);
  cursor: pointer;
}

.quick-edit-icon.surface {
  background: var(--surface-container);
  color: var(--outline);
}

.quick-edit-icon .material-symbols-outlined {
  font-size: 19px;
}

.quick-item .round-icon {
  color: var(--primary);
  font-size: 24px;
  font-variation-settings: "FILL" 1, "wght" 600, "GRAD" 0, "opsz" 24;
}

.source-link-button {
  min-height: 34px;
  width: max-content;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--primary-container);
  color: var(--on-primary-container);
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
  box-shadow: var(--shadow-soft);
  transition: transform 220ms var(--motion-pop), box-shadow 180ms var(--motion-soft);
}

.source-link-button:hover,
.source-link-button:focus-visible {
  transform: translateY(-1px);
  box-shadow: var(--shadow-medium);
}

.source-link-button .material-symbols-outlined {
  font-size: 18px;
  font-variation-settings: "FILL" 1, "wght" 700, "GRAD" 0, "opsz" 20;
}

.ai-card {
  position: relative;
  overflow: hidden;
  background: var(--inverse-surface);
  color: var(--inverse-on-surface);
}

.ai-card .section-head,
.ai-card h2,
.ai-card h3 {
  color: var(--inverse-on-surface);
}

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

.ai-card-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.ai-card-title .material-symbols-outlined {
  color: var(--primary-container);
  font-size: 24px;
  font-variation-settings: "FILL" 1, "wght" 700, "GRAD" 0, "opsz" 24;
}

.ai-section {
  margin-top: 16px;
  padding: 16px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.10);
}

.ai-card > .button {
  margin-top: 22px;
}

.ai-section p,
.ai-section li {
  color: var(--inverse-on-surface);
}

.offers-grid {
  grid-template-columns: repeat(var(--offer-grid-count, 3), minmax(320px, 1fr));
  gap: clamp(12px, 1.45vw, var(--gutter));
  align-items: stretch;
  overflow-x: auto;
  overflow-y: visible;
  padding-bottom: 12px;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
  scrollbar-color: var(--outline-variant) transparent;
}

.offer-card {
  position: relative;
  min-height: 520px;
  padding: var(--card-padding);
  border-radius: var(--radius-xl);
  scroll-snap-align: start;
}

.offer-card.best {
  outline: 3px solid var(--primary-container);
}

.offer-meta {
  margin-top: 6px;
  color: var(--on-surface-variant);
  font-size: 14px;
  font-weight: 700;
}

.offer-block {
  margin-top: 12px;
  padding: 12px;
  border: 1px solid var(--surface-highest);
  border-radius: var(--radius-md);
  background: var(--surface-lowest);
}

.offer-edit-block {
  width: 100%;
  display: block;
  color: var(--on-surface);
  text-align: left;
  cursor: pointer;
  transition: transform 240ms var(--motion-pop), box-shadow 180ms var(--motion-soft), border-color 180ms var(--motion-soft);
}

.offer-edit-block:hover,
.offer-edit-block:focus-visible {
  transform: translateY(-2px);
  border-color: var(--primary-fixed-dim);
  box-shadow: var(--shadow-soft);
}

.offer-block-label {
  color: var(--on-surface-variant);
  font-size: 12px;
  font-weight: 800;
}

.offer-block-value {
  display: block;
  margin-top: 2px;
  font-size: 20px;
  font-weight: 900;
}

.progress {
  height: 8px;
  margin-top: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--surface-container);
}

.progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--primary);
}

.rating-bars {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 5px;
  margin-top: 9px;
}

.rating-control {
  position: relative;
  min-height: 24px;
  display: grid;
  align-items: center;
}

.rating-bars span {
  height: 7px;
  border-radius: 999px;
  background: var(--surface-container);
  transition: background-color 160ms var(--motion-soft), transform 160ms var(--motion-soft);
}

.rating-bars span.filled {
  background: var(--secondary);
}

.rating-control input[type="range"] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: ew-resize;
}

.rating-block:hover .rating-bars span.filled,
.rating-block:focus-within .rating-bars span.filled {
  transform: scaleY(1.28);
}

.score-line {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 2px dashed var(--surface-highest);
  text-align: center;
}

.score-line strong {
  display: block;
  color: var(--primary);
  font-size: 36px;
  line-height: 40px;
  font-weight: 900;
}

.decision-grid {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: var(--gutter);
  margin-top: var(--gutter);
}

.decision-card {
  border-radius: var(--radius-xl);
}

.decision-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

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

.job-edit-form {
  grid-template-columns: 1fr;
  gap: 18px;
}

.interview-form .form-section-grid {
  align-items: start;
}

.form-section {
  display: grid;
  gap: 16px;
  padding: 18px;
  border: 1px solid rgba(209, 198, 171, 0.56);
  border-radius: var(--radius-lg);
  background: var(--surface-low);
}

.form-section-head {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
}

.form-section-head > .material-symbols-outlined {
  width: 44px;
  height: 44px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: var(--primary-container);
  color: var(--on-primary-container);
  font-variation-settings: "FILL" 1, "wght" 700, "GRAD" 0, "opsz" 24;
}

.form-section-head h3 {
  font-size: 16px;
  line-height: 22px;
}

.form-section-head p {
  margin-top: 2px;
  color: var(--outline);
  font-size: 12px;
  font-weight: 700;
}

.form-section-action {
  align-self: start;
  justify-self: end;
}

.section-action-button {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 12px;
  border: 1px solid var(--outline-variant);
  border-radius: 999px;
  background: var(--surface-lowest);
  color: var(--primary);
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 240ms var(--motion-pop), box-shadow 180ms var(--motion-soft), background-color 180ms var(--motion-soft);
}

.section-action-button:hover,
.section-action-button:focus-visible {
  transform: translateY(-1px);
  background: var(--primary-container);
  box-shadow: var(--shadow-soft);
}

.section-action-button .material-symbols-outlined {
  font-size: 18px;
  font-variation-settings: "FILL" 1, "wght" 700, "GRAD" 0, "opsz" 20;
}

.job-upload-input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.job-recognition-panel {
  grid-column: 1 / -1;
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px dashed var(--outline-variant);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.55);
}

.job-recognition-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.job-recognition-head strong {
  display: block;
  font-size: 14px;
  font-weight: 950;
}

.job-recognition-head small,
.recognition-status {
  display: block;
  margin-top: 2px;
  color: var(--outline);
  font-size: 12px;
  font-weight: 700;
}

.job-paste-textarea {
  min-height: 118px;
  border: 0;
  background: transparent;
  box-shadow: none;
  padding: 0;
  resize: vertical;
}

.job-recognition-input {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--outline-variant);
  border-radius: var(--radius-md);
  background: var(--surface-lowest);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.7);
  transition: border-color 180ms var(--motion-soft), box-shadow 180ms var(--motion-soft), background-color 180ms var(--motion-soft);
}

.job-recognition-input:focus-within {
  border-color: var(--primary-fixed-dim);
  box-shadow: 0 0 0 4px rgba(255, 203, 5, 0.18);
}

.job-recognition-input > .material-symbols-outlined {
  margin-top: 2px;
  color: var(--primary);
  font-size: 22px;
  font-variation-settings: "FILL" 1, "wght" 700, "GRAD" 0, "opsz" 24;
}

.job-recognition-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.recognition-status {
  margin: 0;
}

.recognition-preview {
  display: grid;
  gap: 6px;
}

.recognition-preview img {
  width: min(100%, 220px);
  max-height: 140px;
  object-fit: cover;
  border-radius: var(--radius-sm);
}

.recognition-preview small {
  color: var(--outline);
  font-size: 11px;
  font-weight: 700;
}

.form-section[data-job-recognition].is-complete {
  border-color: var(--primary-fixed-dim);
}

.section-action-button.is-loading::after {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: currentColor;
  animation: pulse-dot 760ms var(--motion-soft) infinite alternate;
}

.section-action-button.is-loading {
  cursor: wait;
  opacity: 0.78;
}

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

.rating-slider-field {
  gap: 10px;
}

.rating-slider-field > span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.rating-slider-field output {
  min-width: 34px;
  min-height: 28px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: var(--primary-container);
  color: var(--on-primary-container);
  font-weight: 950;
}

.rating-slider-field input[type="range"] {
  width: 100%;
  accent-color: var(--primary);
  cursor: ew-resize;
}

.rating-slider-field small {
  color: var(--outline);
  font-size: 11px;
  font-weight: 700;
}

.offer-select-form {
  display: grid;
  gap: 16px;
}

.offer-select-note {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 14px;
  border-radius: var(--radius-md);
  background: var(--surface-low);
}

.offer-select-note > .material-symbols-outlined {
  width: 44px;
  height: 44px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: var(--primary-container);
  color: var(--on-primary-container);
  font-variation-settings: "FILL" 1, "wght" 700, "GRAD" 0, "opsz" 24;
}

.offer-select-note strong,
.offer-select-note small {
  display: block;
}

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

.offer-select-row {
  min-height: 82px;
  display: grid;
  grid-template-columns: 24px 56px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--surface-highest);
  border-radius: var(--radius-md);
  background: var(--surface-lowest);
  cursor: pointer;
  transition: transform 240ms var(--motion-pop), box-shadow 180ms var(--motion-soft), border-color 180ms var(--motion-soft);
}

.offer-select-row:hover,
.offer-select-row:focus-within {
  transform: translateY(-2px);
  border-color: var(--primary-fixed-dim);
  box-shadow: var(--shadow-soft);
}

.offer-select-row input {
  width: 20px;
  height: 20px;
  accent-color: var(--primary-container);
}

.offer-select-row .logo-tile {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
}

.offer-select-row strong,
.offer-select-row small {
  display: block;
}

.field {
  display: grid;
  gap: 8px;
  align-content: start;
}

.field.full {
  grid-column: 1 / -1;
}

.field > span:first-child {
  color: var(--on-surface-variant);
  font-size: 13px;
  font-weight: 900;
}

.field input {
  height: 48px;
  padding: 0 16px;
  border-radius: var(--radius-md);
  box-shadow: none;
}

.field-select {
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--surface-lowest);
  box-shadow: none;
}

.field-select .custom-select-trigger {
  height: 100%;
  padding: 0 44px 0 16px;
  font-weight: 800;
}

.field-select .custom-select-menu {
  border-radius: var(--radius-md);
}

.field textarea {
  min-height: 116px;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  resize: vertical;
  box-shadow: none;
}

.field input:focus,
.field textarea:focus {
  border-color: var(--primary-fixed-dim);
  box-shadow: 0 0 0 3px rgba(250, 204, 21, 0.26);
}

.round-input-shell,
.input-with-suffix,
.money-input-shell,
.date-time-picker {
  position: relative;
  min-height: 48px;
  display: grid;
  align-items: center;
}

.round-input-shell,
.input-with-suffix,
.money-input-shell {
  grid-template-columns: auto minmax(0, 1fr);
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  background: var(--surface-lowest);
}

.round-input-shell:focus-within,
.input-with-suffix:focus-within,
.money-input-shell:focus-within {
  border-color: var(--primary-fixed-dim);
  box-shadow: 0 0 0 3px rgba(250, 204, 21, 0.26);
}

.round-prefix,
.input-with-suffix > span {
  height: 100%;
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  color: var(--primary);
  font-size: 14px;
  font-weight: 900;
  white-space: nowrap;
}

.round-input-shell input,
.input-with-suffix input,
.money-input-shell input[data-money-amount] {
  border: 0;
  box-shadow: none;
  background: transparent;
}

.input-with-suffix {
  grid-template-columns: minmax(0, 1fr) auto;
}

.input-with-suffix > span {
  color: var(--outline);
}

.money-input-shell {
  grid-template-columns: minmax(0, 1fr) 76px;
  gap: 6px;
  padding-right: 6px;
}

.money-input-shell input[type="hidden"] {
  display: none;
}

.money-input-shell input[data-money-amount] {
  min-width: 0;
  padding-right: 8px;
}

.money-unit-select {
  min-width: 70px;
  height: 38px;
  border-radius: 999px;
  background: var(--surface-low);
  box-shadow: none;
}

.money-unit-select:hover,
.money-unit-select:focus-within {
  transform: none;
  box-shadow: none;
}

.money-unit-select .custom-select-trigger {
  min-height: 38px;
  height: 38px;
  padding: 0 30px 0 14px;
  font-weight: 950;
}

.money-unit-select .custom-select-menu {
  left: auto;
  right: 0;
  min-width: 76px;
}

.date-time-trigger {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  padding: 0 14px 0 16px;
  background: var(--surface-lowest);
  color: var(--on-surface);
  text-align: left;
  font-weight: 800;
}

.date-time-display.muted {
  color: var(--outline);
  font-weight: 700;
}

.date-time-trigger .material-symbols-outlined {
  color: var(--primary);
  font-variation-settings: "FILL" 1, "wght" 650, "GRAD" 0, "opsz" 22;
}

.date-time-picker.open .date-time-trigger,
.date-time-trigger:focus-visible {
  border-color: var(--primary-fixed-dim);
  box-shadow: 0 0 0 3px rgba(250, 204, 21, 0.26);
  outline: 0;
}

.date-time-popover {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 50;
  width: min(320px, 82vw);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--outline-variant);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow-popover);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px) scale(0.98);
  transform-origin: top left;
  transition: opacity 180ms var(--motion-soft), transform 240ms var(--motion-pop);
  backdrop-filter: blur(10px);
}

.date-time-picker.open .date-time-popover {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

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

.picker-field small {
  color: var(--outline);
  font-weight: 850;
}

.picker-field input {
  width: 100%;
  height: 42px;
  border: 1px solid var(--outline-variant);
  border-radius: 14px;
  padding: 0 10px;
  box-shadow: none;
}

.date-time-popover .button {
  grid-column: 1 / -1;
  min-height: 42px;
}

.qa-list-field {
  gap: 12px;
}

.qa-list-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.qa-list-head > span {
  color: var(--on-surface-variant);
  font-size: 13px;
  font-weight: 900;
}

.qa-list-head .button {
  min-height: 38px;
  padding: 0 16px;
}

.qa-list {
  display: grid;
  gap: 14px;
}

.qa-pair {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--outline-variant);
  border-radius: var(--radius-md);
  background: var(--surface-lowest);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.025);
}

.qa-pair-title {
  color: var(--primary);
  font-size: 13px;
  font-weight: 950;
}

#interview-form .qa-field textarea {
  min-height: 58px;
  border: 1px solid var(--outline-variant);
  background: var(--surface-lowest);
  resize: vertical;
}

.tag-field {
  align-self: start;
}

.tag-preview {
  min-height: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.tag-preview small {
  color: var(--outline);
  font-size: 12px;
  font-weight: 700;
}

.form-error {
  margin-bottom: 16px;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  background: var(--error-container);
  color: var(--on-error-container);
  font-weight: 800;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(27, 28, 26, 0.36);
}

.modal {
  width: min(100%, 720px);
  max-height: min(86vh, 780px);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: var(--surface-lowest);
  box-shadow: var(--shadow-popover);
}

.modal-header,
.modal-footer {
  padding: 24px 28px;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--surface-high);
}

.modal-body {
  overflow: auto;
  padding: 24px 28px;
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  border-top: 1px solid var(--surface-high);
}

.modal-footer-split {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.modal-footer-split > span {
  display: inline-flex;
  gap: 12px;
}

.delete-confirm {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 18px;
  border: 1px solid var(--error-container);
  border-radius: var(--radius-lg);
  background: color-mix(in srgb, var(--error-container) 52%, var(--surface-lowest));
  color: var(--on-error-container);
  animation: switcher-pop 380ms var(--motion-spring) both;
}

.delete-confirm > .material-symbols-outlined {
  width: 48px;
  height: 48px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 999px;
  background: var(--error-container);
  color: var(--error);
  font-variation-settings: "FILL" 1, "wght" 700, "GRAD" 0, "opsz" 24;
}

.delete-confirm h3 {
  font-size: 20px;
  line-height: 28px;
}

.delete-confirm p {
  margin-top: 8px;
  color: var(--on-surface-variant);
  font-weight: 750;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: max(24px, env(safe-area-inset-bottom));
  z-index: 80;
  max-width: min(360px, calc(100vw - 32px));
  padding: 14px 18px;
  border-radius: var(--radius-md);
  background: var(--inverse-surface);
  color: var(--inverse-on-surface);
  box-shadow: var(--shadow-popover);
  font-weight: 800;
  text-align: center;
  transform: translateX(-50%);
}

.celebration-layer {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  pointer-events: none;
}

.celebration-card {
  min-height: 84px;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 18px 26px;
  border-radius: var(--radius-lg);
  background: var(--inverse-surface);
  color: var(--inverse-on-surface);
  box-shadow: var(--shadow-popover);
  animation: celebration-pop 1100ms var(--motion-spring) both;
}

.celebration-card .material-symbols-outlined {
  width: 48px;
  height: 48px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: var(--primary-container);
  color: var(--on-primary-container);
  font-size: 26px;
  font-variation-settings: "FILL" 1, "wght" 700, "GRAD" 0, "opsz" 26;
}

.celebration-card strong {
  font-size: 18px;
  font-weight: 900;
}

.confetti-field {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}

.confetti {
  width: 11px;
  height: 18px;
  border-radius: 4px;
  background: var(--primary-container);
  opacity: 0;
  transform: translate(0, 0) rotate(0deg) scale(0.8);
  animation: confetti-burst 920ms var(--motion-pop) var(--delay) forwards;
}

.confetti.secondary {
  background: var(--secondary-container);
}

.confetti.tertiary {
  background: var(--tertiary-container);
}

.confetti:nth-child(3n) {
  width: 16px;
  height: 16px;
  border-radius: 999px;
}

.confetti:nth-child(4n) {
  width: 18px;
  height: 8px;
}

.bottom-nav {
  display: none;
}

.fab {
  position: fixed;
  right: 28px;
  bottom: 28px;
  z-index: 25;
  width: 64px;
  height: 64px;
  padding: 0;
  border-radius: 999px;
  box-shadow: var(--shadow-popover);
}

.mobile-only {
  display: none;
}

@keyframes pulse-dot {
  from {
    opacity: 0.35;
    transform: scale(0.78);
  }

  to {
    opacity: 1;
    transform: scale(1.12);
  }
}

@keyframes offer-action-pop {
  0% {
    opacity: 0;
    transform: translateY(-8px) scale(0.94);
  }

  68% {
    opacity: 1;
    transform: translateY(2px) scale(1.03);
  }

  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes switcher-pop {
  0% {
    opacity: 0;
    transform: translateY(12px) scale(0.86);
  }

  70% {
    opacity: 1;
    transform: translateY(-2px) scale(1.06);
  }

  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes funnel-control-grow {
  0% {
    opacity: 0.35;
    transform: scaleX(0.42) scaleY(0.92);
    filter: blur(1px);
  }

  64% {
    opacity: 1;
    transform: scaleX(1.08) scaleY(1.02);
    filter: blur(0);
  }

  100% {
    opacity: 1;
    transform: scale(1);
    filter: none;
  }
}

@keyframes funnel-segment-pop {
  0% {
    transform: scale(0.82);
  }

  72% {
    transform: scale(1.08);
  }

  100% {
    transform: scale(1);
  }
}

@keyframes funnel-icon-rebound {
  0% {
    transform: scaleX(1.16) scaleY(0.94);
  }

  72% {
    transform: scaleX(0.94) scaleY(1.08);
  }

  100% {
    transform: scale(1);
  }
}

@keyframes detail-slide-next {
  0% {
    opacity: 0.28;
    transform: translateX(26px) scale(0.985);
  }

  72% {
    opacity: 1;
    transform: translateX(-4px) scale(1.006);
  }

  100% {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

@keyframes detail-slide-prev {
  0% {
    opacity: 0.28;
    transform: translateX(-26px) scale(0.985);
  }

  72% {
    opacity: 1;
    transform: translateX(4px) scale(1.006);
  }

  100% {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

@keyframes account-pop {
  0% {
    opacity: 0;
    transform: translateY(10px) scale(0.96);
  }

  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

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

  .celebration-layer {
    display: none;
  }
}

@keyframes celebration-pop {
  0% {
    opacity: 0;
    transform: translateY(18px) scale(0.82);
  }

  26% {
    opacity: 1;
    transform: translateY(0) scale(1.08);
  }

  68% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }

  100% {
    opacity: 0;
    transform: translateY(-12px) scale(0.96);
  }
}

@keyframes confetti-burst {
  0% {
    opacity: 0;
    transform: translate(0, 0) rotate(0deg) scale(0.6);
  }

  16% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    transform: translate(var(--x), var(--y)) rotate(540deg) scale(1);
  }
}

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

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

  .bento-grid,
  .detail-layout,
  .decision-grid {
    grid-template-columns: 1fr;
  }

  .ai-hero,
  .panel-list,
  .full-span {
    grid-column: auto;
  }

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

  .job-list-row {
    grid-template-columns: 64px minmax(0, 1fr) auto;
  }

  .job-list-meta {
    display: none;
  }

  .job-list-status {
    justify-content: flex-start;
  }

  .funnel-list-row {
    grid-template-columns: 44px minmax(0, 1fr) auto;
  }

  .funnel-list-row .priority-chip {
    grid-column: 2;
    justify-self: start;
  }
}

@media (max-width: 860px) {
  .shared-page {
    align-items: start;
    padding: 14px;
  }

  .shared-card {
    gap: 22px;
    border-radius: 28px;
  }

  .shared-head,
  .shared-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .shared-hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }

  .shared-hero .logo-tile.large {
    width: 88px;
    height: 88px;
    font-size: 24px;
  }

  .shared-facts {
    grid-template-columns: minmax(0, 1fr);
    padding: 16px;
  }

  html,
  body,
  .app-shell,
  .workspace,
  .content {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  .app-shell {
    min-height: 100dvh;
  }

  .sidebar {
    display: none;
  }

  .workspace {
    width: 100%;
    margin-left: 0;
    padding-bottom: 88px;
  }

  .topbar {
    min-height: 64px;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 12px 8px;
    background: var(--background);
  }

  .content {
    padding: 8px 12px 28px;
  }

  .content > * {
    min-width: 0;
    max-width: 100%;
  }

  .topbar-left {
    min-width: 0;
    gap: 8px;
  }

  .topbar-heading {
    gap: 2px;
  }

  .topbar-title {
    max-width: 52vw;
    overflow: hidden;
    font-size: 22px;
    line-height: 28px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .topbar-subtitle {
    display: none;
  }

  .topbar-actions {
    flex: 0 0 auto;
    gap: 6px;
  }

  .topbar-actions .button {
    min-height: 40px;
    padding: 0 12px;
    border-radius: 999px;
    font-size: 13px;
  }

  .topbar-actions .button.subtle,
  .topbar-actions .button.surface {
    min-width: 40px;
    padding: 0 10px;
  }

  .topbar-actions .button.subtle span:not(.material-symbols-outlined),
  .topbar-notification {
    display: none;
  }

  .mobile-account-button {
    width: 40px;
    min-width: 40px;
    height: 40px;
    min-height: 40px;
    display: inline-grid;
    place-items: center;
    border-radius: 999px;
    background: var(--surface-lowest);
    color: var(--primary);
    box-shadow: var(--shadow-soft);
  }

  .mobile-account-button .mobile-avatar {
    width: 32px;
    min-width: 32px;
    height: 32px;
    min-height: 32px;
    line-height: 32px;
    font-size: 11px;
  }

  .mobile-account-popover {
    position: fixed;
    top: 58px;
    left: 12px;
    right: 12px;
    z-index: 70;
  }

  .mobile-account-popover .account-popover {
    position: static;
    width: 100%;
    padding: 14px;
  }

  .account-popover-head {
    min-width: 0;
  }

  .account-popover-head > div {
    min-width: 0;
  }

  .account-popover-head strong,
  .account-popover-head span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .page-actions {
    flex-direction: column;
    margin-bottom: 24px;
  }

  .bento-grid,
  .detail-layout,
  .decision-grid,
  .jobs-grid,
  .offers-grid {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    gap: 12px;
  }

  .bento-grid,
  .detail-layout,
  .decision-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .jobs-grid,
  .form-grid,
  .form-section-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .metric-grid {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .screen-jobs .metric-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .metric-card,
  .card,
  .job-card,
  .offer-card,
  .add-card {
    min-width: 0;
    max-width: 100%;
    border-radius: 24px;
  }

  .metric-card {
    min-height: 104px;
    align-content: start;
    gap: 6px;
    padding: 14px;
  }

  .screen-jobs .metric-card {
    min-height: 86px;
    gap: 4px;
    padding: 12px 10px;
  }

  .metric-value {
    font-size: 32px;
    line-height: 34px;
  }

  .metric-label {
    font-size: 12px;
  }

  .metric-line {
    align-items: flex-end;
    gap: 8px;
  }

  .metric-note {
    padding-bottom: 3px;
    font-size: 11px;
  }

  .toolbar {
    position: relative;
    z-index: 15;
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 8px;
    align-items: start;
    margin-bottom: 14px;
  }

  .screen-jobs .toolbar {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .search-control {
    grid-column: 1 / 5;
    grid-row: 1;
    height: 44px;
    padding: 0 14px;
  }

  .toolbar-select {
    grid-row: 2;
    height: 42px;
    min-width: 0;
  }

  .city-filter {
    grid-column: 1 / 3;
  }

  .priority-filter {
    grid-column: 3 / 5;
  }

  .sort-filter {
    grid-column: 5 / 7;
  }

  .screen-jobs .city-filter,
  .screen-jobs .priority-filter,
  .screen-jobs .sort-filter {
    min-width: 0;
  }

  .custom-select-trigger {
    gap: 4px;
    padding: 0 24px 0 8px;
    font-size: 12px;
  }

  .select-arrow {
    right: 7px;
    font-size: 16px;
  }

  .custom-select-menu {
    min-width: 160px;
  }

  .jobs-view-tools {
    grid-column: 5 / 7;
    grid-row: 1;
    justify-content: flex-end;
    gap: 4px;
  }

  .view-switch button,
  .funnel-icon-button,
  .funnel-segment {
    width: 38px;
    min-width: 38px;
    height: 42px;
    min-height: 42px;
  }

  .funnel-controls.active {
    padding: 0;
    gap: 4px;
    background: transparent;
  }

  .funnel-panel {
    right: 0;
    left: auto;
    width: min(260px, calc(100vw - 24px));
  }

  .dashboard-funnel-card {
    overflow: hidden;
  }

  .mini-funnel {
    grid-auto-flow: column;
    grid-auto-columns: minmax(132px, 42vw);
    grid-template-columns: none;
    gap: 8px;
    margin-inline: -6px;
    padding: 0 6px 10px;
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-x: contain;
    scroll-snap-type: none;
    -webkit-overflow-scrolling: touch;
  }

  .mini-funnel-step {
    min-height: 178px;
    scroll-snap-align: none;
  }

  .funnel-board {
    grid-auto-flow: column;
    grid-auto-columns: minmax(252px, 82vw);
    grid-template-columns: none;
    gap: 12px;
    margin-inline: -12px;
    padding: 0 12px 14px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-padding-inline: 12px;
    scroll-snap-type: none;
    -webkit-overflow-scrolling: touch;
  }

  .jobs-content-transition {
    overflow: visible;
  }

  .jobs-content-transition > .grid,
  .jobs-content-transition > .jobs-list,
  .jobs-content-transition > .funnel-list {
    overflow: visible;
  }

  .funnel-column {
    min-width: 0;
    min-height: 360px;
    padding: 12px;
  }

  .funnel-column-head {
    gap: 10px;
    margin-bottom: 12px;
  }

  .funnel-column-icon {
    width: 34px;
    height: 34px;
    font-size: 20px;
  }

  .funnel-job-card {
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 10px;
    padding: 12px;
  }

  .job-list-row {
    grid-template-columns: 56px minmax(0, 1fr);
    gap: 12px;
  }

  .job-list-row .logo-tile {
    width: 56px;
    height: 56px;
  }

  .job-list-status,
  .priority-chip {
    grid-column: 2;
    justify-self: start;
  }

  .funnel-list-row {
    grid-template-columns: 44px minmax(0, 1fr);
    padding-right: 56px;
  }

  .funnel-list-row .job-list-meta,
  .funnel-list-row .priority-chip {
    grid-column: 2;
    justify-self: start;
  }

  .hero-content,
  .job-footer,
  .offer-top {
    flex-direction: column;
  }

  .hero-copy,
  .hero-card .status-quick {
    width: 100%;
    min-width: 0;
  }

  .hero-card .inline-between {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
  }

  .hero-card .priority-quick {
    width: 112px;
    min-width: 112px;
    margin-left: 0;
  }

  .hero-controls {
    height: 100%;
    margin-left: 0;
  }

  .hero-controls .status-quick {
    width: 108px;
    min-width: 108px;
  }

  .hero-meta-row {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-card {
    overflow: hidden;
  }

  .hero-content {
    gap: 16px;
  }

  .hero-copy h1,
  .offer-card h2,
  .job-card h2 {
    word-break: break-word;
  }

  .offers-grid {
    grid-auto-flow: column;
    grid-auto-columns: minmax(228px, 68vw);
    grid-template-columns: none !important;
    margin-inline: -12px;
    padding: 10px 12px 14px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: none;
    -webkit-overflow-scrolling: touch;
  }

  .offer-card,
  .offers-grid .add-card {
    scroll-snap-align: none;
  }

  .offer-card {
    min-height: 0;
    padding: 14px;
    border-radius: 22px;
  }

  .screen-offers .offer-card:hover,
  .screen-offers .offer-card:focus-visible {
    transform: none;
  }

  .offer-card .logo-tile.large {
    width: 48px;
    height: 48px;
    font-size: 15px;
  }

  .offer-card h2 {
    margin-top: 10px !important;
    font-size: 22px;
    line-height: 28px;
  }

  .offer-meta {
    font-size: 12px;
    line-height: 18px;
  }

  .offer-block {
    margin-top: 8px;
    padding: 10px;
    border-radius: 18px;
  }

  .offer-block-value {
    font-size: 18px;
  }

  .rating-bars {
    gap: 4px;
    margin-top: 7px;
  }

  .rating-bars span {
    height: 6px;
  }

  .score-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 10px;
    padding-top: 10px;
    text-align: left;
  }

  .score-line strong {
    font-size: 24px;
    line-height: 28px;
  }

  .detail-switcher {
    inset: auto 16px 96px;
  }

  .detail-switch-button {
    width: 48px;
    min-width: 48px;
    height: 48px;
    min-height: 48px;
  }

  .bottom-nav {
    position: fixed;
    inset: auto 0 0;
    z-index: 50;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 4px;
    padding: 8px 10px max(10px, env(safe-area-inset-bottom));
    border-radius: 22px 22px 0 0;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(12px);
  }

  .bottom-nav button {
    min-height: 44px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    background: transparent;
    color: var(--on-surface-variant);
    font-size: 11px;
    font-weight: 900;
  }

  .bottom-nav button.active {
    background: var(--primary-container);
    color: var(--on-primary-container);
  }

  .fab {
    left: 50%;
    right: auto;
    bottom: 70px;
    width: 54px;
    height: 54px;
    transform: translateX(-50%);
  }

  .fab:hover,
  .fab:focus-visible {
    transform: translateX(-50%) translateY(-2px);
  }

  .fab:active {
    transform: translateX(-50%) scale(0.96);
  }

  .desktop-only {
    display: none;
  }

  .mobile-only {
    display: inline-flex;
  }

  .mobile-account-button.mobile-only {
    display: inline-grid;
  }

  .mobile-account-popover.mobile-only {
    display: block;
  }
}

@media (max-width: 520px) {
  h1 {
    font-size: 24px;
    line-height: 32px;
  }

  .brand-name,
  .metric-value,
  .score-line strong {
    font-size: 40px;
    line-height: 44px;
  }

  .card-pad,
  .job-card,
  .offer-card,
  .modal-body {
    padding: 18px;
  }

  .modal-backdrop {
    align-items: stretch;
    padding: 8px;
  }

  .modal {
    width: 100%;
    max-height: calc(100dvh - 16px);
    border-radius: 24px;
  }

  .modal-login {
    align-self: center;
    grid-template-rows: auto auto auto;
    max-height: none;
  }

  .modal-header,
  .modal-footer {
    padding: 16px 18px;
  }

  .modal-header h2 {
    font-size: 24px;
    line-height: 30px;
  }

  .modal-footer {
    gap: 8px;
  }

  .modal-footer .button {
    min-height: 44px;
    padding: 0 16px;
    border-radius: 999px;
    font-size: 14px;
  }

  .modal-login .modal-body {
    overflow: visible;
    padding: 16px 18px;
  }

  .modal-login .modal-header,
  .modal-login .modal-footer {
    padding: 14px 18px;
  }

  .modal-login .job-edit-form {
    gap: 12px;
  }

  .modal-login .form-section {
    gap: 12px;
    padding: 14px;
    border-radius: 20px;
  }

  .modal-login .form-section-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .modal-login .field input {
    min-height: 50px;
  }

  .modal-footer-split {
    align-items: stretch;
    flex-direction: column-reverse;
  }

  .modal-footer-split > span {
    width: 100%;
    justify-content: flex-end;
  }

  .form-section {
    padding: 18px;
    border-radius: 24px;
  }

  .form-section-head {
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 12px;
  }

  .form-section-head > .material-symbols-outlined {
    width: 40px;
    height: 40px;
  }

  .field input,
  .field textarea {
    min-height: 48px;
    border-radius: 24px;
    padding: 12px 14px;
  }
}
