:root {
  --primary: #1a73e8;
  --primary-2: #1a73e8;
  --primary-dark: #0d2b5b;
  --deep-blue: #0f2d5c;
  --accent: #4da3ff;
  --soft-blue: #e6f1ff;
  --info-blue: #edf6ff;
  --bg: #e6f1fb;
  --app-bg: #dfeaf5;
  --surface: #ffffff;
  --card: #fdfeff;
  --border: #e1e7f0;
  --border-light: #e8eef5;
  --text: #0f172a;
  --text-blue: #102449;
  --secondary: #64748b;
  --muted: #8a94a6;
  --success: #22c55e;
  --success-soft: #eaf8f0;
  --warning: #f59e0b;
  --warning-soft: #fef3c7;
  --danger: #ef4444;
  --danger-soft: #fee2e2;
  --inactive: #cbd5e1;
  --shadow-xs: 0 1px 2px rgba(13, 43, 91, 0.04);
  --shadow-sm: 0 4px 12px rgba(13, 43, 91, 0.06);
  --shadow-md: 0 8px 24px rgba(13, 43, 91, 0.08);
  --shadow-lg: 0 20px 40px rgba(13, 43, 91, 0.1);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background:
    radial-gradient(circle at 0 0, rgba(77, 163, 255, 0.2), transparent 34rem),
    var(--app-bg);
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--text-blue);
  font-family:
    Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.45;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.38), rgba(223, 234, 245, 0.98)),
    var(--app-bg);
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  cursor: pointer;
}

.app-shell {
  width: min(100%, 1480px);
  min-height: 100vh;
  margin: 0 auto;
  padding: 14px;
}

.app-frame {
  min-height: calc(100vh - 28px);
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 30px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.86), rgba(225, 239, 253, 0.98)),
    var(--bg);
  box-shadow: var(--shadow-lg);
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin-bottom: 24px;
}

.brand-pill,
.section-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid #c9d8eb;
  border-radius: 999px;
  color: var(--text-blue);
  background: rgba(255, 255, 255, 0.74);
  box-shadow: var(--shadow-xs);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0;
  white-space: nowrap;
}

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

.icon-button {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--text-blue);
  background: rgba(255, 255, 255, 0.76);
  box-shadow: var(--shadow-sm);
}

.icon-button:hover,
.icon-button:focus-visible,
.soft-button:hover,
.soft-button:focus-visible,
.primary-button:hover,
.primary-button:focus-visible,
.outline-button:hover,
.outline-button:focus-visible,
.text-button:hover,
.text-button:focus-visible {
  transform: translateY(-1px);
}

.icon {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
}

.page-head {
  display: grid;
  gap: 14px;
  margin-bottom: 18px;
}

.eyebrow {
  margin: 0;
  color: var(--primary);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 0;
  color: var(--text);
  font-size: clamp(32px, 8vw, 48px);
  line-height: 1.12;
  font-weight: 700;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 16px;
  color: var(--text);
  font-size: 24px;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 4px;
  color: var(--text-blue);
  font-size: 18px;
  line-height: 1.24;
  font-weight: 700;
  letter-spacing: 0;
}

.lead {
  max-width: 720px;
  margin-bottom: 0;
  color: var(--secondary);
  font-size: 15px;
}

.operator-dashboard {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-areas:
    "plan plan"
    "operator operator"
    "clients clients"
    "products money";
  gap: 10px;
}

.mobile-work-header {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
}

.operator-photo-button {
  display: block;
  width: 64px;
  height: 64px;
  padding: 0;
  overflow: hidden;
  border: 3px solid #fff;
  border-radius: 22px;
  background: #edf6ff;
  box-shadow: var(--shadow-sm);
}

.operator-photo-button img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mobile-work-header > img {
  width: 64px;
  height: 64px;
  border: 3px solid #fff;
  border-radius: 22px;
  object-fit: cover;
  box-shadow: var(--shadow-sm);
}

.mobile-work-header span,
.mobile-work-header strong,
.mobile-work-header em {
  display: block;
}

.mobile-work-header span {
  color: var(--secondary);
  font-size: 15px;
  font-weight: 700;
}

.mobile-work-header strong {
  color: var(--text);
  font-size: clamp(22px, 6vw, 28px);
  line-height: 1.12;
  font-weight: 800;
  white-space: nowrap;
}

.mobile-work-header em {
  color: var(--muted);
  font-size: 16px;
  font-style: normal;
  white-space: nowrap;
}

.mobile-work-header > div,
.mobile-work-header__identity {
  min-width: 0;
}

.mobile-work-header__identity {
  display: block;
  width: 100%;
  padding: 4px 0;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.mobile-work-header__identity:hover strong,
.mobile-work-header__identity:focus-visible strong {
  color: var(--primary);
}

.mobile-work-header__identity:focus-visible {
  border-radius: 10px;
  outline: 3px solid rgba(26, 115, 232, 0.22);
  outline-offset: 4px;
}

.mobile-work-header__actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.mobile-work-header__actions .icon-button {
  flex: 0 0 auto;
}

.mobile-work-header .icon-button {
  width: 60px;
  height: 60px;
}

.operator-card,
.plan-fact-card,
.client-hub,
.dashboard-tile {
  border: 1px solid rgba(225, 231, 240, 0.86);
  border-radius: 28px;
  box-shadow: var(--shadow-md);
}

.plan-fact-card {
  grid-area: plan;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 132px;
  align-items: center;
  min-height: 92px;
  padding: 14px 16px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.84);
}

.plan-fact-card__copy span,
.plan-fact-card__copy strong,
.plan-fact-card__copy em {
  display: block;
}

.plan-fact-card__copy span {
  color: var(--secondary);
  font-size: 13px;
  font-weight: 700;
}

.plan-fact-card__copy strong {
  margin-top: 4px;
  color: var(--text);
  font-size: 28px;
  line-height: 1;
  font-weight: 800;
}

.plan-fact-card__copy em {
  margin-top: 6px;
  color: var(--secondary);
  font-size: 12px;
  font-style: normal;
  font-weight: 500;
}

.activity-gauge {
  --gauge-size: 118px;
  position: relative;
  display: grid;
  justify-items: center;
  align-content: center;
  min-width: 0;
  min-height: 72px;
  color: var(--text);
}

.activity-gauge__svg {
  display: block;
  width: var(--gauge-size);
  height: calc(var(--gauge-size) * 0.82);
}

.activity-gauge__arc {
  fill: none;
  stroke-linecap: butt;
  stroke-width: 7.5;
}

.activity-gauge__arc--red {
  stroke: #e05267;
}

.activity-gauge__arc--orange {
  stroke: #f08f45;
}

.activity-gauge__arc--yellow {
  stroke: #e5ca37;
}

.activity-gauge__arc--green {
  stroke: #22b86a;
}

.activity-gauge__dot {
  fill: var(--text);
  stroke: #ffffff;
  stroke-width: 2.4;
  filter: drop-shadow(0 3px 5px rgba(15, 23, 42, 0.26));
}

.activity-gauge strong {
  position: absolute;
  top: 34px;
  color: var(--text);
  font-size: 20px;
  line-height: 1;
  font-weight: 800;
}

.activity-gauge__label {
  position: absolute;
  top: 56px;
  margin: 0;
  color: var(--secondary);
  font-size: 11px;
  line-height: 1;
  font-weight: 700;
}

.app-frame--focus {
  width: min(100%, 760px);
  max-width: 760px;
  margin: 0 auto;
  padding: 18px;
  border-color: rgba(255, 255, 255, 0.86);
  border-radius: 34px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.94), rgba(226, 239, 252, 0.98)),
    var(--bg);
  box-shadow: 0 22px 42px rgba(13, 43, 91, 0.095);
}

.focus-view {
  display: grid;
  gap: 14px;
}

.focus-week-nav,
.focus-overview,
.focus-board,
.focus-history {
  border: 1px solid rgba(202, 217, 235, 0.86);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 10px 26px rgba(13, 43, 91, 0.07);
}

.focus-week-nav {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 48px;
  align-items: center;
  min-height: 76px;
  padding: 12px;
}

.focus-week-nav__title {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 14px;
  min-width: 0;
  color: var(--text);
}

.focus-week-nav__title span {
  color: var(--secondary);
  font-size: 18px;
  font-weight: 700;
}

.focus-week-nav__title strong {
  font-size: clamp(25px, 7vw, 38px);
  line-height: 1;
  font-weight: 850;
}

.focus-overview {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 18px;
}

.focus-overview span,
.focus-overview em {
  display: block;
  color: var(--secondary);
  font-style: normal;
  font-weight: 700;
}

.focus-overview span {
  font-size: 14px;
}

.focus-overview strong {
  display: block;
  margin-top: 2px;
  color: var(--text);
  font-size: 42px;
  line-height: 1;
  font-weight: 850;
}

.focus-overview em {
  margin-top: 6px;
  font-size: 13px;
}

.focus-overview__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.focus-overview__actions .soft-button,
.focus-overview__actions .primary-button {
  min-height: 42px;
  padding-inline: 13px;
}

.focus-board {
  overflow-x: auto;
  padding: 14px;
}

.focus-row {
  display: grid;
  grid-template-columns: minmax(210px, 1fr) 88px 88px 88px 74px;
  gap: 8px;
  align-items: center;
  min-width: 610px;
  margin-bottom: 10px;
}

.focus-row.is-editing {
  grid-template-columns: minmax(210px, 1fr) 88px 88px 88px 74px 42px;
}

.focus-row--head {
  margin-bottom: 8px;
  color: var(--secondary);
  font-size: 13px;
  line-height: 1.1;
  font-weight: 800;
}

.focus-row--head span:first-child {
  color: var(--text);
  font-size: 18px;
}

.focus-row--head span:last-child {
  justify-self: center;
  color: var(--text);
  font-size: 22px;
}

.focus-activity,
.focus-cell {
  min-width: 0;
}

.focus-activity span,
.focus-activity input,
.focus-cell input,
.focus-percent {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 58px;
  border-radius: 17px;
  border: 1px solid rgba(225, 231, 240, 0.72);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow-xs);
}

.focus-activity span {
  padding: 10px 14px;
  color: var(--text);
  font-size: 16px;
  font-weight: 700;
}

.focus-activity input,
.focus-cell input {
  padding: 0 12px;
  outline: none;
}

.focus-cell input {
  justify-content: center;
  color: var(--text);
  text-align: center;
  font-size: 20px;
  font-weight: 850;
}

.focus-cell input:focus,
.focus-activity input:focus,
.focus-add-row input:focus {
  border-color: rgba(26, 115, 232, 0.72);
  box-shadow: 0 0 0 4px rgba(26, 115, 232, 0.1);
}

.focus-percent {
  justify-content: center;
  border: 0;
  font-size: 19px;
  font-weight: 850;
}

.focus-percent--red {
  color: #ef1d1d;
  background: #fee2e2;
}

.focus-percent--orange {
  color: #b86b00;
  background: #fff0cf;
}

.focus-percent--green {
  color: #0c8f54;
  background: #dcf7e8;
}

.focus-remove {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  color: #ffffff;
  background: var(--danger);
  box-shadow: 0 8px 18px rgba(239, 68, 68, 0.2);
}

.focus-remove .icon {
  width: 18px;
  height: 18px;
}

.focus-add-row {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) 160px;
  gap: 10px;
  min-width: 610px;
  padding-top: 4px;
}

/* Last-mile overrides for the current mobile CRM layout. */
.app-frame--dashboard .plan-fact-card {
  grid-template-columns: minmax(0, 1fr) 142px;
  height: 124px;
  min-height: 124px;
  padding: 14px 16px;
  border-radius: 24px;
}

.app-frame--dashboard .plan-fact-card__copy {
  align-content: center;
  justify-items: start;
}

.app-frame--dashboard .plan-fact-card__title {
  gap: 9px;
  width: auto;
  color: #0f1d42;
  font-size: 19px;
  font-weight: 400;
  letter-spacing: 0;
}

.app-frame--dashboard .plan-fact-card__title img {
  width: 36px;
  height: 36px;
}

.app-frame--dashboard .plan-fact-card__title b {
  font-weight: 500;
}

.app-frame--dashboard .plan-fact-card__copy strong {
  margin-top: 10px;
  color: #071640;
  font-size: 46px;
  line-height: 0.95;
}

.app-frame--dashboard .plan-fact-card__divider {
  position: relative;
  display: block;
  width: 150px;
  height: 1px;
  margin-top: 10px;
  background: linear-gradient(90deg, transparent, rgba(117, 135, 166, 0.25), transparent);
}

.app-frame--dashboard .plan-fact-card__divider::after {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #d8e3f5;
  content: "";
  transform: translate(-50%, -50%);
}

.app-frame--dashboard .plan-fact-card__copy em {
  min-height: 26px;
  margin-top: 9px;
  padding: 0 14px;
  font-size: 14px;
  font-weight: 650;
}

.app-frame--dashboard .plan-fact-card__copy em i {
  width: 6px;
  height: 6px;
}

.app-frame--dashboard .activity-gauge {
  --gauge-size: 126px;
  min-height: 88px;
  border: 1px solid rgba(202, 217, 235, 0.88);
  border-radius: 18px;
}

.app-frame--dashboard .activity-gauge__svg {
  width: var(--gauge-size);
  height: 88px;
}

.app-frame--dashboard .activity-gauge__arc {
  stroke-width: 6.5;
}

.app-frame--dashboard .activity-gauge strong {
  top: 37px;
  color: #071640;
  font-size: 27px;
}

.app-frame--dashboard .activity-gauge__label {
  top: 65px;
  color: #697386;
  font-size: 12px;
  font-weight: 750;
  text-transform: uppercase;
}

.app-frame--focus {
  width: min(100%, 1080px);
  max-width: 1080px;
  min-height: 100vh;
  padding: 14px;
  border: 0;
  border-radius: 0;
  background: #eef0f4;
  box-shadow: none;
}

.app-frame--focus .focus-view {
  gap: 28px;
}

.app-frame--focus .focus-week-nav {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) 56px;
  min-height: 124px;
  padding: 0 16px;
  border: 0;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: none;
}

.app-frame--focus .focus-week-nav .icon-button {
  width: 46px;
  height: 46px;
  border: 0;
  color: #05070d;
  background: transparent;
  box-shadow: none;
}

.app-frame--focus .focus-week-nav .icon {
  width: 34px;
  height: 34px;
  stroke-width: 2.4;
}

.app-frame--focus .focus-week-nav__title {
  gap: 36px;
  color: #05070d;
}

.app-frame--focus .focus-week-nav__title span {
  color: #05070d;
  font-size: 30px;
  font-weight: 400;
}

.app-frame--focus .focus-week-nav__title strong {
  color: #05070d;
  font-size: 38px;
  font-weight: 850;
}

.app-frame--focus .focus-overview {
  display: none;
}

.app-frame--focus .focus-board {
  overflow-x: auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.app-frame--focus .focus-row {
  display: grid;
  grid-template-columns: 588px 96px 96px 96px 96px;
  gap: 14px;
  align-items: center;
  min-width: 946px;
  margin-bottom: 24px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.app-frame--focus .focus-row.is-editing {
  grid-template-columns: 588px 96px 96px 96px 96px 42px;
}

.app-frame--focus .focus-row--head {
  margin-bottom: 14px;
  color: #19172a;
}

.app-frame--focus .focus-row--head span {
  min-height: auto;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.app-frame--focus .focus-row--head span:first-child {
  display: flex;
  align-items: end;
  color: #19172a;
  font-size: 38px;
  line-height: 1;
  font-weight: 850;
}

.app-frame--focus .focus-row--head span:not(:first-child) {
  color: #19172a;
  text-align: center;
  font-size: 28px;
  line-height: 1.08;
  font-weight: 850;
}

.app-frame--focus .focus-activity span,
.app-frame--focus .focus-activity input,
.app-frame--focus .focus-cell input,
.app-frame--focus .focus-percent {
  min-height: 112px;
  border: 0;
  border-radius: 20px;
  background: #ffffff;
  box-shadow: none;
}

.app-frame--focus .focus-activity span {
  display: flex;
  align-items: center;
  padding: 0 16px;
  color: #19172a;
  font-size: 26px;
  line-height: 1.22;
  font-weight: 400;
}

.app-frame--focus .focus-activity input {
  padding: 0 16px;
  color: #19172a;
  font-size: 24px;
  font-weight: 400;
}

.app-frame--focus .focus-cell {
  display: block;
  padding: 0;
  background: transparent;
}

.app-frame--focus .focus-cell input {
  width: 100%;
  justify-content: center;
  padding: 0;
  color: #505050;
  text-align: center;
  font-size: 34px;
  font-style: normal;
  font-weight: 850;
}

.app-frame--focus .focus-row .focus-cell:nth-of-type(2) input {
  color: #999999;
}

.app-frame--focus .focus-row .focus-cell:nth-of-type(4) input {
  color: #0878f2;
  font-style: italic;
}

.app-frame--focus .focus-percent {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ff0000;
  font-size: 34px;
  font-weight: 850;
}

.app-frame--focus .focus-percent--orange {
  color: #d97900;
}

.app-frame--focus .focus-percent--green {
  color: #0f9f5d;
}

.app-frame--focus .focus-history {
  border: 0;
  background: #ffffff;
  box-shadow: none;
}

/* Final mobile reference layer for the compact "Цель | Фокус" dashboard card. */
.app-frame--dashboard .plan-fact-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 150px;
  align-items: center;
  gap: 12px;
  height: 116px;
  min-height: 116px;
  padding: 12px 16px;
  border: 1px solid rgba(199, 216, 238, 0.95);
  border-radius: 26px;
  background:
    radial-gradient(circle at 78% 14%, rgba(234, 243, 255, 0.98), transparent 42%),
    linear-gradient(180deg, #ffffff 0%, #f9fcff 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.94),
    0 14px 32px rgba(9, 35, 77, 0.06);
}

.app-frame--dashboard .plan-fact-card__copy {
  display: grid;
  align-content: center;
  justify-items: start;
  min-width: 0;
}

.app-frame--dashboard .plan-fact-card__title {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  width: auto;
  color: #0a1740;
  font-size: 20px;
  line-height: 1;
  font-weight: 400;
  letter-spacing: 0;
}

.app-frame--dashboard .plan-fact-card__title img {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
}

.app-frame--dashboard .plan-fact-card__title b {
  color: #1a73e8;
  font-weight: 500;
}

.app-frame--dashboard .plan-fact-card__copy strong {
  margin-top: 9px;
  color: #061541;
  font-size: clamp(38px, 11vw, 48px);
  line-height: 0.92;
  font-weight: 850;
  letter-spacing: -0.01em;
}

.app-frame--dashboard .plan-fact-card__divider {
  position: relative;
  display: block;
  width: min(150px, 100%);
  height: 1px;
  margin-top: 10px;
  background: linear-gradient(90deg, transparent, rgba(135, 153, 184, 0.32), transparent);
}

.app-frame--dashboard .plan-fact-card__divider::after {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #d9e4f6;
  content: "";
  transform: translate(-50%, -50%);
}

.app-frame--dashboard .plan-fact-card__copy em {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 24px;
  margin-top: 8px;
  padding: 0 13px;
  border-radius: 999px;
  color: #0a1740;
  background: rgba(230, 241, 255, 0.86);
  font-size: 14px;
  line-height: 1;
  font-style: normal;
  font-weight: 650;
}

.app-frame--dashboard .plan-fact-card__copy em i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #1a73e8;
}

.app-frame--dashboard .plan-fact-card__gauge {
  min-width: 0;
}

.app-frame--dashboard .activity-gauge {
  --gauge-size: 132px;
  position: relative;
  display: grid;
  justify-items: center;
  align-content: center;
  width: 100%;
  min-height: 86px;
  border: 1px solid rgba(206, 221, 241, 0.9);
  border-radius: 19px;
  background:
    radial-gradient(circle at 50% 0, rgba(255, 255, 255, 0.86), transparent 58%),
    rgba(232, 242, 255, 0.82);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.app-frame--dashboard .activity-gauge__svg {
  display: block;
  width: var(--gauge-size);
  height: 86px;
}

.app-frame--dashboard .activity-gauge__arc {
  stroke-width: 6.6;
}

.app-frame--dashboard .activity-gauge__dot {
  fill: #071640;
  stroke: #ffffff;
  stroke-width: 3;
  filter: drop-shadow(0 2px 4px rgba(7, 22, 64, 0.25));
}

.app-frame--dashboard .activity-gauge strong {
  position: absolute;
  top: 39px;
  color: #071640;
  font-size: 29px;
  line-height: 1;
  font-weight: 850;
  letter-spacing: -0.01em;
}

.app-frame--dashboard .activity-gauge__label {
  position: absolute;
  top: 65px;
  color: #697386;
  font-size: 12px;
  line-height: 1;
  font-weight: 750;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

@media (max-width: 390px) {
  .app-frame--dashboard .plan-fact-card {
    grid-template-columns: minmax(0, 1fr) 142px;
    height: 112px;
    min-height: 112px;
    padding: 11px 14px;
  }

  .app-frame--dashboard .plan-fact-card__title {
    gap: 8px;
    font-size: 18px;
  }

  .app-frame--dashboard .plan-fact-card__title img {
    width: 32px;
    height: 32px;
  }

  .app-frame--dashboard .plan-fact-card__copy strong {
    margin-top: 8px;
    font-size: 42px;
  }

  .app-frame--dashboard .plan-fact-card__divider {
    width: 136px;
    margin-top: 9px;
  }

  .app-frame--dashboard .plan-fact-card__copy em {
    min-height: 23px;
    margin-top: 7px;
    font-size: 13px;
  }

  .app-frame--dashboard .activity-gauge {
    --gauge-size: 124px;
    min-height: 82px;
  }

  .app-frame--dashboard .activity-gauge__svg {
    height: 82px;
  }

  .app-frame--dashboard .activity-gauge strong {
    top: 37px;
    font-size: 27px;
  }

  .app-frame--dashboard .activity-gauge__label {
    top: 61px;
    font-size: 11px;
  }
}

/* Final reference pass: keep the focus tile compact and prevent gauge/text overlap. */
.app-frame--dashboard .plan-fact-card {
  grid-template-columns: minmax(0, 1fr) 158px;
  gap: 10px;
  height: 126px;
  min-height: 126px;
  padding: 14px 16px;
  border-radius: 28px;
}

.app-frame--dashboard .plan-fact-card__copy {
  align-content: center;
}

.app-frame--dashboard .plan-fact-card__copy .plan-fact-card__title,
.app-frame--dashboard .plan-fact-card__copy .plan-fact-card__title > span {
  color: #0a1740;
  font-size: 20px;
  line-height: 1;
  font-weight: 400;
  letter-spacing: 0;
}

.app-frame--dashboard .plan-fact-card__title img {
  width: 34px;
  height: 34px;
}

.app-frame--dashboard .plan-fact-card__copy .plan-fact-card__title b {
  color: #1a73e8;
  font-weight: 500;
}

.app-frame--dashboard .plan-fact-card__copy strong {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 9px;
  color: #061541;
  font-size: clamp(42px, 11.4vw, 50px);
  line-height: 0.9;
  font-weight: 850;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.app-frame--dashboard .plan-fact-card__copy strong b {
  color: #7f8aa3;
  font-size: 0.92em;
  line-height: 1;
  font-weight: 500;
}

.app-frame--dashboard .plan-fact-card__copy strong > span {
  display: inline;
  color: inherit;
  font-size: inherit;
  line-height: inherit;
  font-weight: inherit;
  letter-spacing: inherit;
}

.app-frame--dashboard .plan-fact-card__divider {
  width: min(150px, 100%);
  margin-top: 11px;
}

.app-frame--dashboard .plan-fact-card__copy em {
  min-height: 25px;
  margin-top: 8px;
  padding: 0 14px;
  font-size: 14px;
  font-weight: 650;
}

.app-frame--dashboard .activity-gauge {
  --gauge-size: 150px;
  min-height: 98px;
  overflow: hidden;
  border-radius: 20px;
}

.app-frame--dashboard .activity-gauge__svg {
  width: var(--gauge-size);
  height: 96px;
}

.app-frame--dashboard .activity-gauge__arc {
  stroke-width: 9;
}

.app-frame--dashboard .activity-gauge__dot {
  fill: #071640;
  stroke: #ffffff;
  stroke-width: 4;
}

.app-frame--dashboard .activity-gauge strong {
  top: 44px;
  z-index: 1;
  font-size: 30px;
  line-height: 1;
}

.app-frame--dashboard .activity-gauge__label {
  top: 72px;
  z-index: 1;
  font-size: 12px;
  line-height: 1;
}

.app-frame--focus {
  width: min(100%, 430px);
  max-width: 430px;
  min-height: 100vh;
  overflow-x: hidden;
  padding: 12px 10px 24px;
  border: 0;
  border-radius: 0;
  background: #eef2f6;
  box-shadow: none;
}

.app-frame--focus .focus-view {
  gap: 14px;
  overflow: hidden;
}

.app-frame--focus .focus-week-nav {
  grid-template-columns: 42px minmax(0, 1fr) 42px;
  min-height: 84px;
  padding: 0 10px;
  border-radius: 22px;
  background: #ffffff;
}

.app-frame--focus .focus-week-nav .icon-button {
  width: 40px;
  height: 40px;
}

.app-frame--focus .focus-week-nav .icon {
  width: 28px;
  height: 28px;
  stroke-width: 2.4;
}

.app-frame--focus .focus-week-nav__title {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 14px;
  min-width: 0;
  white-space: nowrap;
}

.app-frame--focus .focus-week-nav__title span {
  font-size: 24px;
  line-height: 1;
  font-weight: 400;
}

.app-frame--focus .focus-week-nav__title strong {
  font-size: 30px;
  line-height: 1;
  font-weight: 850;
}

.app-frame--focus .focus-overview {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px;
  border: 0;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: none;
}

.app-frame--focus .focus-overview > div:first-child {
  min-width: 0;
}

.app-frame--focus .focus-overview span {
  color: #6e7890;
  font-size: 12px;
  font-weight: 650;
}

.app-frame--focus .focus-overview strong {
  display: block;
  color: #071640;
  font-size: 26px;
  line-height: 1;
  font-weight: 850;
}

.app-frame--focus .focus-overview em {
  color: #6e7890;
  font-size: 12px;
  font-style: normal;
  font-weight: 500;
}

.app-frame--focus .focus-overview__actions {
  display: flex;
  flex: 0 0 auto;
  gap: 6px;
}

.app-frame--focus .focus-overview__actions .soft-button,
.app-frame--focus .focus-overview__actions .primary-button {
  min-height: 34px;
  padding: 0 9px;
  border-radius: 12px;
  font-size: 12px;
}

.app-frame--focus .focus-overview__actions .soft-button:first-child {
  display: none;
}

.app-frame--focus .focus-board {
  overflow-x: visible;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.app-frame--focus .focus-row,
.app-frame--focus .focus-row.is-editing {
  display: grid;
  grid-template-columns: minmax(128px, 1fr) repeat(4, clamp(44px, 12vw, 54px));
  gap: 6px;
  align-items: center;
  min-width: 0;
  margin-bottom: 10px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.app-frame--focus .focus-row.is-editing {
  grid-template-columns: minmax(102px, 1fr) repeat(4, 40px) 30px;
}

.app-frame--focus .focus-row--head {
  margin: 8px 0 10px;
}

.app-frame--focus .focus-row--head span {
  min-height: auto;
  padding: 0;
  border: 0;
  background: transparent;
}

.app-frame--focus .focus-row--head span:first-child {
  align-items: end;
  overflow: visible;
  color: #19172a;
  font-size: 22px;
  line-height: 1.05;
  font-weight: 850;
  white-space: normal;
}

.app-frame--focus .focus-row--head span:not(:first-child) {
  color: #19172a;
  text-align: center;
  font-size: 11px;
  line-height: 1.05;
  font-weight: 800;
}

.app-frame--focus .focus-row--head span:last-child {
  color: #19172a;
  font-size: 20px;
  font-weight: 850;
}

.app-frame--focus .focus-activity span,
.app-frame--focus .focus-activity input,
.app-frame--focus .focus-cell input,
.app-frame--focus .focus-percent {
  min-height: 64px;
  border: 0;
  border-radius: 13px;
  background: #ffffff;
  box-shadow: none;
}

.app-frame--focus .focus-activity span {
  padding: 0 10px;
  color: #19172a;
  font-size: 15px;
  line-height: 1.14;
  font-weight: 400;
}

.app-frame--focus .focus-activity input {
  padding: 0 8px;
  color: #19172a;
  font-size: 14px;
  font-weight: 400;
}

.app-frame--focus .focus-cell input {
  width: 100%;
  padding: 0;
  color: #505050;
  text-align: center;
  font-size: 20px;
  line-height: 1;
  font-style: normal;
  font-weight: 800;
}

.app-frame--focus .focus-row .focus-cell:nth-of-type(2) input {
  color: #999999;
}

.app-frame--focus .focus-row .focus-cell:nth-of-type(4) input {
  color: #0878f2;
  font-style: italic;
}

.app-frame--focus .focus-percent {
  color: #ff0000;
  font-size: 20px;
  line-height: 1;
  font-weight: 850;
}

.app-frame--focus .focus-remove {
  width: 30px;
  height: 30px;
}

.app-frame--focus .focus-add-row {
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  padding: 10px;
  border-radius: 16px;
}

@media (max-width: 390px) {
  .app-frame--dashboard .plan-fact-card {
    grid-template-columns: minmax(0, 1fr) 146px;
    height: 122px;
    min-height: 122px;
    padding: 13px 14px;
  }

  .app-frame--dashboard .plan-fact-card__copy .plan-fact-card__title,
  .app-frame--dashboard .plan-fact-card__copy .plan-fact-card__title > span {
    font-size: 18px;
  }

  .app-frame--dashboard .plan-fact-card__copy strong {
    gap: 8px;
    font-size: 42px;
  }

  .app-frame--dashboard .activity-gauge {
    --gauge-size: 140px;
    min-height: 92px;
  }

  .app-frame--dashboard .activity-gauge__svg {
    height: 92px;
  }

  .app-frame--dashboard .activity-gauge strong {
    top: 42px;
    font-size: 27px;
  }

  .app-frame--dashboard .activity-gauge__label {
    top: 67px;
    font-size: 11px;
  }
}

/* Absolute final focus-screen compaction for mobile. */
.app-frame--focus .focus-view {
  gap: 12px;
}

.app-frame--focus .focus-week-nav {
  min-height: 74px;
  border-radius: 20px;
}

.app-frame--focus .focus-week-nav__title {
  gap: 12px;
}

.app-frame--focus .focus-week-nav__title span {
  font-size: 22px;
}

.app-frame--focus .focus-week-nav__title strong {
  font-size: 28px;
}

.app-frame--focus .focus-overview {
  padding: 10px 12px;
  border-radius: 17px;
}

.app-frame--focus .focus-overview span {
  font-size: 11px;
}

.app-frame--focus .focus-overview strong {
  font-size: 27px;
}

.app-frame--focus .focus-overview em {
  font-size: 11px;
}

.app-frame--focus .focus-overview__actions .soft-button,
.app-frame--focus .focus-overview__actions .primary-button {
  min-height: 32px;
  padding: 0 8px;
  border-radius: 12px;
  font-size: 11px;
}

.app-frame--focus .focus-row,
.app-frame--focus .focus-row.is-editing {
  grid-template-columns: minmax(132px, 1fr) 44px 48px 48px 62px;
  gap: 5px;
  margin-bottom: 9px;
}

.app-frame--focus .focus-row.is-editing {
  grid-template-columns: minmax(104px, 1fr) 38px 40px 40px 52px 28px;
}

.app-frame--focus .focus-row--head {
  margin: 10px 0 9px;
}

.app-frame--focus .focus-row--head span:first-child {
  font-size: 20px;
  line-height: 1.04;
}

.app-frame--focus .focus-row--head span:not(:first-child) {
  display: grid;
  place-items: end center;
  min-height: 38px;
  font-size: 10px;
  line-height: 1.05;
}

.app-frame--focus .focus-row--head span:last-child {
  font-size: 18px;
  line-height: 1;
}

.app-frame--focus .focus-activity span,
.app-frame--focus .focus-activity input,
.app-frame--focus .focus-cell input,
.app-frame--focus .focus-percent {
  min-height: 58px;
  border-radius: 12px;
}

.app-frame--focus .focus-activity span {
  padding: 0 9px;
  font-size: 14px;
  line-height: 1.12;
}

.app-frame--focus .focus-cell input {
  display: grid;
  place-items: center;
  height: 58px;
  font-size: 18px;
  line-height: 1;
}

.app-frame--focus .focus-percent {
  display: grid;
  place-items: center;
  min-width: 0;
  font-size: 17px;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

@media (max-width: 390px) {
  .app-frame--focus {
    padding-inline: 8px;
  }

  .app-frame--focus .focus-row,
  .app-frame--focus .focus-row.is-editing {
    grid-template-columns: minmax(112px, 1fr) 38px 42px 42px 56px;
    gap: 4px;
  }

  .app-frame--focus .focus-row--head span:first-child {
    font-size: 18px;
  }

  .app-frame--focus .focus-row--head span:not(:first-child) {
    font-size: 9px;
  }

  .app-frame--focus .focus-cell input {
    font-size: 17px;
  }

  .app-frame--focus .focus-percent {
    font-size: 16px;
  }
}

/* Last layer: calmer one-line week navigation on the focus screen. */
.app-frame--focus .focus-week-nav {
  grid-template-columns: 34px minmax(0, 1fr) 34px;
  min-height: 58px;
  padding: 0 12px;
  border-radius: 18px;
}

.app-frame--focus .focus-week-nav .icon-button {
  width: 34px;
  height: 34px;
}

.app-frame--focus .focus-week-nav .icon {
  width: 23px;
  height: 23px;
  stroke-width: 2.25;
}

.app-frame--focus .focus-week-nav__title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  white-space: nowrap;
}

.app-frame--focus .focus-week-nav__title span {
  font-size: 19px;
  line-height: 1;
  font-weight: 450;
}

.app-frame--focus .focus-week-nav__title strong {
  font-size: 23px;
  line-height: 1;
  font-weight: 800;
}

@media (max-width: 390px) {
  .app-frame--focus .focus-week-nav {
    min-height: 56px;
    padding: 0 10px;
  }

  .app-frame--focus .focus-week-nav__title span {
    font-size: 18px;
  }

  .app-frame--focus .focus-week-nav__title strong {
    font-size: 22px;
  }
}

/* Last layer: refine the dashboard focus card internals without changing card size. */
.app-frame--dashboard .plan-fact-card {
  grid-template-columns: minmax(0, 1fr) 160px;
  height: 126px;
  min-height: 126px;
  padding: 14px 16px;
}

.app-frame--dashboard .plan-fact-card__copy {
  align-content: center;
}

.app-frame--dashboard .plan-fact-card__copy .plan-fact-card__title,
.app-frame--dashboard .plan-fact-card__copy .plan-fact-card__title > span {
  font-size: 19px;
  font-weight: 400;
}

.app-frame--dashboard .plan-fact-card__copy strong {
  display: flex;
  align-items: center;
  justify-self: center;
  gap: 12px;
  margin-top: 8px;
  font-size: 48px;
  line-height: 0.92;
}

.app-frame--dashboard .plan-fact-card__copy strong > span {
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
}

.app-frame--dashboard .plan-fact-card__copy strong b {
  color: #7c879e;
  font-size: 0.9em;
  font-weight: 500;
}

.app-frame--dashboard .plan-fact-card__divider {
  justify-self: center;
  width: 150px;
  margin-top: 9px;
}

.app-frame--dashboard .plan-fact-card__copy em {
  justify-self: center;
  min-height: 24px;
  margin-top: 8px;
  padding: 0 16px;
  font-size: 14px;
  font-weight: 650;
}

.app-frame--dashboard .activity-gauge {
  --gauge-size: 166px;
  width: 100%;
  min-height: 92px;
  transform: translateY(-5px);
  border-radius: 20px;
}

.app-frame--dashboard .activity-gauge__svg {
  width: var(--gauge-size);
  height: 102px;
  transform: translateY(-10px);
}

.app-frame--dashboard .activity-gauge__arc {
  stroke-width: 9.5;
  stroke-linecap: butt;
}

.app-frame--dashboard .activity-gauge__dot {
  fill: #071640;
  stroke: #ffffff;
  stroke-width: 4;
  filter: drop-shadow(0 2px 4px rgba(7, 22, 64, 0.28));
}

.app-frame--dashboard .activity-gauge strong {
  top: 38px;
  font-size: 30px;
  line-height: 1;
}

.app-frame--dashboard .activity-gauge__label {
  top: 70px;
  color: #6f778a;
  font-size: 12px;
  line-height: 1;
}

@media (max-width: 390px) {
  .app-frame--dashboard .plan-fact-card {
    grid-template-columns: minmax(0, 1fr) 148px;
  }

  .app-frame--dashboard .plan-fact-card__copy strong {
    gap: 8px;
    font-size: 42px;
  }

  .app-frame--dashboard .activity-gauge {
    --gauge-size: 152px;
  }

  .app-frame--dashboard .activity-gauge strong {
    top: 39px;
    font-size: 27px;
  }

  .app-frame--dashboard .activity-gauge__label {
    top: 68px;
    font-size: 11px;
  }
}

/* Mobile polish for the focus detail screen: compact, centered, no clipped cells. */
.app-frame--focus .focus-view {
  gap: 12px;
}

.app-frame--focus .focus-week-nav {
  min-height: 76px;
  border-radius: 20px;
}

.app-frame--focus .focus-week-nav__title {
  gap: 12px;
}

.app-frame--focus .focus-week-nav__title span {
  font-size: 22px;
}

.app-frame--focus .focus-week-nav__title strong {
  font-size: 28px;
}

.app-frame--focus .focus-overview {
  padding: 10px 12px;
  border-radius: 17px;
}

.app-frame--focus .focus-overview span {
  font-size: 11px;
}

.app-frame--focus .focus-overview strong {
  font-size: 28px;
}

.app-frame--focus .focus-overview em {
  font-size: 11px;
}

.app-frame--focus .focus-overview__actions .soft-button,
.app-frame--focus .focus-overview__actions .primary-button {
  min-height: 32px;
  padding: 0 8px;
  font-size: 11px;
}

.app-frame--focus .focus-row,
.app-frame--focus .focus-row.is-editing {
  grid-template-columns: minmax(132px, 1fr) 44px 48px 48px 62px;
  gap: 5px;
  margin-bottom: 9px;
}

.app-frame--focus .focus-row.is-editing {
  grid-template-columns: minmax(104px, 1fr) 38px 40px 40px 52px 28px;
}

.app-frame--focus .focus-row--head {
  margin: 10px 0 9px;
}

.app-frame--focus .focus-row--head span:first-child {
  font-size: 20px;
  line-height: 1.04;
}

.app-frame--focus .focus-row--head span:not(:first-child) {
  display: grid;
  place-items: end center;
  min-height: 40px;
  font-size: 10px;
  line-height: 1.05;
}

.app-frame--focus .focus-row--head span:last-child {
  font-size: 19px;
  line-height: 1;
}

.app-frame--focus .focus-activity span,
.app-frame--focus .focus-activity input,
.app-frame--focus .focus-cell input,
.app-frame--focus .focus-percent {
  min-height: 58px;
  border-radius: 12px;
}

.app-frame--focus .focus-activity span {
  padding: 0 9px;
  font-size: 14px;
  line-height: 1.12;
}

.app-frame--focus .focus-cell input {
  display: grid;
  place-items: center;
  height: 58px;
  font-size: 18px;
  line-height: 1;
}

.app-frame--focus .focus-percent {
  display: grid;
  place-items: center;
  min-width: 0;
  font-size: 17px;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

@media (max-width: 390px) {
  .app-frame--focus {
    padding-inline: 8px;
  }

  .app-frame--focus .focus-row,
  .app-frame--focus .focus-row.is-editing {
    grid-template-columns: minmax(112px, 1fr) 38px 42px 42px 56px;
    gap: 4px;
  }

  .app-frame--focus .focus-row--head span:first-child {
    font-size: 18px;
  }

  .app-frame--focus .focus-row--head span:not(:first-child) {
    font-size: 9px;
  }

  .app-frame--focus .focus-cell input {
    font-size: 17px;
  }

  .app-frame--focus .focus-percent {
    font-size: 16px;
  }
}

.app-frame--dashboard .plan-fact-card__copy .plan-fact-card__title,
.app-frame--dashboard .plan-fact-card__copy .plan-fact-card__title > span {
  color: #0a1740;
  font-size: 20px;
  line-height: 1;
  font-weight: 400;
  letter-spacing: 0;
}

.app-frame--dashboard .plan-fact-card__copy .plan-fact-card__title b {
  color: #1a73e8;
  font-weight: 500;
}

@media (max-width: 390px) {
  .app-frame--dashboard .plan-fact-card__copy .plan-fact-card__title,
  .app-frame--dashboard .plan-fact-card__copy .plan-fact-card__title > span {
    font-size: 18px;
  }
}

/* Final focus-card tuning: compact dashboard tile, reference-like plan/fact screen. */
.app-frame--dashboard .plan-fact-card {
  grid-template-columns: minmax(0, 1fr) 126px;
  min-height: 72px;
  padding: 10px 12px;
  border-radius: 20px;
}

.app-frame--dashboard .plan-fact-card__copy {
  align-content: center;
  justify-items: start;
}

.app-frame--dashboard .plan-fact-card__title {
  gap: 6px;
  font-size: 13px;
  font-weight: 650;
}

.app-frame--dashboard .plan-fact-card__title img {
  width: 26px;
  height: 26px;
}

.app-frame--dashboard .plan-fact-card__copy strong {
  margin-top: 4px;
  font-size: 27px;
  line-height: 0.95;
}

.app-frame--dashboard .plan-fact-card__divider {
  display: none;
}

.app-frame--dashboard .plan-fact-card__copy em {
  min-height: 22px;
  margin-top: 4px;
  padding: 0 10px;
  font-size: 12px;
}

.app-frame--dashboard .plan-fact-card__copy em i {
  width: 6px;
  height: 6px;
}

.app-frame--dashboard .plan-fact-card__gauge {
  display: grid;
  place-items: center;
}

.app-frame--dashboard .activity-gauge {
  --gauge-size: 108px;
  min-height: 58px;
  border-radius: 16px;
  border-width: 1px;
}

.app-frame--dashboard .activity-gauge__arc {
  stroke-width: 6.5;
}

.app-frame--dashboard .activity-gauge__dot {
  r: 3.2px;
}

.app-frame--dashboard .activity-gauge strong {
  top: 27px;
  font-size: 20px;
}

.app-frame--dashboard .activity-gauge__label {
  top: 47px;
  font-size: 9px;
  text-transform: uppercase;
}

.app-frame--focus {
  width: min(100%, 1080px);
  max-width: 1080px;
  min-height: 100vh;
  padding: 14px;
  border: 0;
  border-radius: 0;
  background: #eef0f4;
  box-shadow: none;
}

.app-frame--focus .focus-view {
  gap: 28px;
}

.app-frame--focus .focus-week-nav {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) 56px;
  min-height: 124px;
  padding: 0 16px;
  border: 0;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: none;
}

.app-frame--focus .focus-week-nav .icon-button {
  width: 46px;
  height: 46px;
  border: 0;
  color: #05070d;
  background: transparent;
  box-shadow: none;
}

.app-frame--focus .focus-week-nav .icon {
  width: 34px;
  height: 34px;
  stroke-width: 2.4;
}

.app-frame--focus .focus-week-nav__title {
  gap: 36px;
  color: #05070d;
}

.app-frame--focus .focus-week-nav__title span {
  color: #05070d;
  font-size: 30px;
  font-weight: 400;
}

.app-frame--focus .focus-week-nav__title strong {
  color: #05070d;
  font-size: 38px;
  font-weight: 850;
}

.app-frame--focus .focus-overview {
  display: none;
}

.app-frame--focus .focus-board {
  overflow-x: auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.app-frame--focus .focus-row {
  display: grid;
  grid-template-columns: 588px 96px 96px 96px 96px;
  gap: 14px;
  align-items: center;
  min-width: 946px;
  margin-bottom: 24px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.app-frame--focus .focus-row.is-editing {
  grid-template-columns: 588px 96px 96px 96px 96px 42px;
}

.app-frame--focus .focus-row--head {
  margin-bottom: 14px;
  color: #19172a;
}

.app-frame--focus .focus-row--head span {
  min-height: auto;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.app-frame--focus .focus-row--head span:first-child {
  display: flex;
  align-items: end;
  color: #19172a;
  font-size: 38px;
  line-height: 1;
  font-weight: 850;
}

.app-frame--focus .focus-row--head span:not(:first-child) {
  color: #19172a;
  text-align: center;
  font-size: 28px;
  line-height: 1.08;
  font-weight: 850;
}

.app-frame--focus .focus-row--head span:not(:first-child)::first-line {
  font-weight: 850;
}

.app-frame--focus .focus-activity span,
.app-frame--focus .focus-activity input,
.app-frame--focus .focus-cell input,
.app-frame--focus .focus-percent {
  min-height: 112px;
  border: 0;
  border-radius: 20px;
  background: #ffffff;
  box-shadow: none;
}

.app-frame--focus .focus-activity span {
  display: flex;
  align-items: center;
  padding: 0 16px;
  color: #19172a;
  font-size: 26px;
  line-height: 1.22;
  font-weight: 400;
}

.app-frame--focus .focus-activity input {
  padding: 0 16px;
  color: #19172a;
  font-size: 24px;
  font-weight: 400;
}

.app-frame--focus .focus-cell {
  display: block;
  padding: 0;
  background: transparent;
}

.app-frame--focus .focus-cell input {
  width: 100%;
  justify-content: center;
  padding: 0;
  color: #505050;
  text-align: center;
  font-size: 34px;
  font-style: normal;
  font-weight: 850;
}

.app-frame--focus .focus-row .focus-cell:nth-of-type(2) input {
  color: #999999;
}

.app-frame--focus .focus-row .focus-cell:nth-of-type(4) input {
  color: #0878f2;
  font-style: italic;
}

.app-frame--focus .focus-percent {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ff0000;
  font-size: 34px;
  font-weight: 850;
}

.app-frame--focus .focus-percent--orange {
  color: #d97900;
}

.app-frame--focus .focus-percent--green {
  color: #0f9f5d;
}

.app-frame--focus .focus-history {
  border: 0;
  background: #ffffff;
  box-shadow: none;
}

.focus-add-row input {
  min-height: 50px;
  padding: 0 16px;
  border: 1px solid rgba(202, 217, 235, 0.86);
  border-radius: 17px;
  background: rgba(255, 255, 255, 0.94);
  outline: none;
}

.focus-history {
  padding: 16px;
}

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

.focus-history-card {
  min-height: 92px;
  padding: 12px;
  border: 1px solid rgba(202, 217, 235, 0.86);
  border-radius: 18px;
  color: var(--text);
  text-align: left;
  background: rgba(255, 255, 255, 0.82);
}

.focus-history-card.is-active {
  border-color: rgba(26, 115, 232, 0.42);
  background: var(--info-blue);
}

.focus-history-card span,
.focus-history-card em {
  display: block;
  color: var(--secondary);
  font-style: normal;
  font-weight: 700;
}

.focus-history-card strong {
  display: block;
  margin: 6px 0 4px;
  color: var(--primary);
  font-size: 28px;
  line-height: 1;
}

.operator-card {
  position: relative;
  grid-area: operator;
  min-height: 430px;
  padding: 24px;
  overflow: hidden;
  background:
    radial-gradient(circle at 88% 10%, rgba(77, 163, 255, 0.26), transparent 13rem),
    linear-gradient(145deg, #ffffff, #e6f1ff);
}

.operator-card__content {
  position: relative;
  z-index: 1;
  color: var(--text);
}

.operator-card__label {
  display: none;
}

.operator-card__content h1 {
  max-width: 11ch;
  color: var(--text);
  font-size: clamp(28px, 8vw, 34px);
}

.operator-card__content p {
  max-width: 18ch;
  margin: 10px 0 0;
  color: var(--secondary);
  font-size: 13px;
  font-weight: 700;
}

.progress-ring {
  --progress: 45;
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 122px;
  height: 122px;
  border-radius: 50%;
  background:
    radial-gradient(circle closest-side, #ffffff 70%, transparent 72%),
    conic-gradient(var(--primary-2) calc(var(--progress) * 1%), #d7e7fb 0);
  box-shadow:
    inset 0 0 0 12px rgba(255, 255, 255, 0.36),
    0 12px 24px rgba(26, 115, 232, 0.14);
}

.progress-ring span,
.progress-ring em {
  position: absolute;
  display: block;
  text-align: center;
}

.progress-ring span {
  margin-top: -10px;
  color: var(--text);
  font-size: 26px;
  font-weight: 800;
}

.progress-ring em {
  margin-top: 26px;
  color: var(--secondary);
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

.finance-widget {
  display: grid;
  align-content: space-between;
  gap: 16px;
}

.finance-widget__head {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.finance-widget__label,
.finance-widget__forecast span {
  display: block;
  color: var(--primary);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
}

.finance-widget__head h1 {
  margin-top: 0;
  color: var(--text);
  font-size: clamp(28px, 7vw, 38px);
  line-height: 1;
  font-weight: 800;
}

.finance-widget__head p {
  margin: 6px 0 0;
  color: var(--secondary);
  font-size: 14px;
  font-weight: 500;
}

.finance-widget__forecast {
  min-width: 134px;
  padding: 13px 14px;
  border: 1px solid rgba(225, 231, 240, 0.92);
  border-radius: 18px;
  background: #e6f1ff;
  text-align: left;
}

.finance-widget__forecast strong {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 0;
  color: var(--primary);
  font-size: 22px;
  line-height: 1;
  font-weight: 800;
}

.finance-widget__forecast strong .icon {
  width: 26px;
  height: 26px;
}

.finance-widget__forecast span {
  display: block;
  margin-top: 8px;
  color: var(--secondary);
  font-size: 14px;
  line-height: 1.2;
  font-weight: 700;
}

.finance-chart {
  position: relative;
  z-index: 1;
  min-height: 176px;
}

.finance-chart svg {
  display: block;
  width: 100%;
  height: auto;
}

.finance-chart__grid {
  stroke: #dbe8f5;
  stroke-width: 1;
}

.finance-chart__axis {
  stroke: rgba(26, 115, 232, 0.24);
  stroke-dasharray: 4 7;
}

.finance-chart__area {
  fill: none;
  stroke: rgba(26, 115, 232, 0.08);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 8;
}

.finance-chart__line {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.6;
}

.finance-chart__line--actual {
  stroke: var(--primary-2);
}

.finance-chart__line--forecast {
  stroke: #8fb8f5;
  stroke-dasharray: 7 8;
}

.finance-chart__dot {
  fill: #ffffff;
  stroke: var(--primary-2);
  stroke-width: 2.2;
}

.finance-chart__dot--forecast {
  stroke: #8fb8f5;
}

.finance-chart__current {
  fill: none;
  stroke: rgba(26, 115, 232, 0.12);
  stroke-width: 9;
}

.finance-chart__label {
  fill: var(--secondary);
  font-size: 8px;
  font-weight: 600;
  text-anchor: middle;
}

.finance-chart__scale {
  fill: var(--secondary);
  font-size: 8px;
  font-weight: 600;
}

.finance-chart__current-label {
  fill: var(--primary);
  font-size: 9px;
  font-weight: 800;
  text-anchor: middle;
}

.finance-chart__legend {
  display: flex;
  gap: 12px;
  margin-top: -2px;
  color: var(--secondary);
  font-size: 11px;
  font-weight: 800;
}

.finance-chart__legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.finance-chart__legend i {
  width: 18px;
  height: 4px;
  border-radius: 999px;
  background: var(--primary-2);
}

.finance-chart__legend span:last-child i {
  background: var(--deep-blue);
}

.finance-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid var(--border-light);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.66);
  overflow: hidden;
}

.finance-summary div {
  min-width: 0;
  padding: 16px 10px;
}

.finance-summary div + div {
  border-left: 1px solid var(--border-light);
}

.finance-summary span,
.finance-summary strong,
.finance-summary em {
  display: block;
}

.finance-summary span {
  color: var(--secondary);
  font-size: 14px;
  font-weight: 800;
}

.finance-summary strong {
  margin-top: 8px;
  color: var(--text);
  font-size: clamp(16px, 4.3vw, 28px);
  line-height: 1;
  font-weight: 800;
  white-space: nowrap;
}

.finance-summary em {
  margin-top: 10px;
  color: var(--primary);
  font-size: 16px;
  font-style: normal;
  font-weight: 800;
}

.client-hub {
  grid-area: clients;
  padding: 18px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(230, 241, 255, 0.96)),
    var(--card);
}

.client-hub__main {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  width: 100%;
  min-height: 88px;
  padding: 10px 10px 16px;
  border: 0;
  border-radius: 22px;
  color: var(--text-blue);
  background: linear-gradient(145deg, #ffffff, #edf6ff);
  text-align: left;
}

.client-hub__label,
.client-hub__caption {
  display: block;
}

.client-hub__label {
  color: var(--text-blue);
  font-size: 20px;
  font-weight: 800;
}

.client-hub__main strong {
  display: block;
  color: var(--text);
  font-size: 38px;
  line-height: 1;
}

.client-hub__caption {
  color: var(--secondary);
  font-size: 13px;
}

.client-hub__arrow {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: var(--primary);
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.pipeline-mini {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.pipeline-mini__item {
  min-height: 82px;
  padding: 10px 12px;
  border: 1px solid transparent;
  border-radius: 18px;
  text-align: left;
}

.pipeline-mini__item span,
.pipeline-mini__item strong,
.pipeline-mini__item em {
  display: block;
}

.pipeline-mini__item span {
  color: var(--secondary);
  font-size: 12px;
  font-weight: 700;
}

.pipeline-mini__item strong {
  margin-top: 4px;
  color: var(--text);
  font-size: 22px;
  line-height: 1;
}

.pipeline-mini__item em {
  position: absolute;
  right: 10px;
  bottom: 10px;
  color: currentColor;
  font-style: normal;
}

.pipeline-mini__item {
  position: relative;
}

.pipeline-mini__item .icon {
  width: 26px;
  height: 26px;
}

.pipeline-mini__item--blue {
  color: var(--primary);
  background: #e6f1ff;
}

.pipeline-mini__item--green {
  color: #15865a;
  background: #eaf8f0;
}

.pipeline-mini__item--gold {
  color: #d98200;
  background: #fff4dc;
}

.pipeline-mini__item--violet {
  color: #426b9f;
  background: #edf6ff;
}

.dashboard-tile {
  position: relative;
  display: grid;
  align-content: space-between;
  min-height: 132px;
  padding: 18px;
  overflow: hidden;
  text-align: left;
}

.dashboard-tile::after {
  position: absolute;
  right: -34px;
  bottom: -48px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
  content: "";
}

.dashboard-tile--tasks {
  grid-area: tasks;
  color: #fff;
  background:
    radial-gradient(circle at 86% 10%, rgba(77, 163, 255, 0.34), transparent 14rem),
    linear-gradient(145deg, #0f4b99, #0d2b5b);
}

.dashboard-tile--tasks .tile-copy {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 10px;
}

.dashboard-tile--products {
  grid-area: products;
  color: var(--text-blue);
  background: linear-gradient(145deg, #ffffff, #edf6ff);
}

.dashboard-tile--money {
  grid-area: money;
  color: #fff;
  background: #0d4b8f;
}

.dashboard-tile--money::after {
  display: none;
}

.tile-icon {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.2);
}

.dashboard-tile--products .tile-icon {
  color: var(--primary);
  background: var(--soft-blue);
}

.mini-line-chart {
  position: absolute;
  right: 10px;
  bottom: 12px;
  width: 48%;
  color: var(--primary-2);
  opacity: 0.98;
}

.mini-line-chart svg {
  display: block;
  width: 100%;
  height: auto;
}

.mini-bars {
  position: absolute;
  right: 14px;
  bottom: 18px;
  display: inline-flex;
  align-items: end;
  gap: 8px;
  height: 70px;
  opacity: 0.28;
}

.mini-bars i {
  display: block;
  width: 10px;
  border-radius: 999px;
  background: #fff;
}

.mini-bars i:nth-child(1) {
  height: 34px;
}

.mini-bars i:nth-child(2) {
  height: 52px;
}

.mini-bars i:nth-child(3) {
  height: 44px;
}

.mini-bars i:nth-child(4) {
  height: 48px;
}

.mini-bars i:nth-child(5) {
  height: 36px;
}

.mini-bars i:nth-child(6) {
  height: 64px;
}

.tile-copy {
  position: relative;
  z-index: 1;
  display: block;
}

.tile-copy span,
.tile-copy strong,
.tile-copy em {
  display: block;
}

.dashboard-tile--money .tile-copy strong {
  font-size: clamp(24px, 6vw, 36px);
}

.tile-copy span {
  font-size: 15px;
  font-weight: 800;
}

.tile-copy strong {
  margin-top: 8px;
  color: inherit;
  font-size: clamp(28px, 7vw, 42px);
  line-height: 1;
  font-style: normal;
  font-weight: 800;
}

.tile-copy em {
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 12px;
  font-style: normal;
  font-weight: 700;
}

.dashboard-tile--products .tile-copy em {
  color: var(--secondary);
}

.dashboard-tables {
  display: grid;
  gap: 14px;
  margin-top: 14px;
}

.panel--work,
.panel--products,
.panel--task-list {
  overflow: hidden;
}

.work-table,
.inventory-table {
  display: grid;
  gap: 8px;
}

.work-row,
.inventory-row {
  display: grid;
  align-items: center;
  width: 100%;
  min-height: 70px;
  padding: 12px;
  border: 1px solid var(--border-light);
  border-radius: 18px;
  color: var(--text-blue);
  background: rgba(255, 255, 255, 0.78);
  text-align: left;
}

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

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

.work-row__icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 15px;
  color: var(--primary);
  background: var(--soft-blue);
}

.inventory-row__icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 15px;
  color: var(--primary);
  background: var(--soft-blue);
}

.work-row__main,
.inventory-row__main,
.work-row__side,
.inventory-row__side {
  min-width: 0;
}

.work-row__main strong,
.inventory-row__main strong,
.work-row__side strong,
.inventory-row__side strong {
  display: block;
  color: var(--text-blue);
  font-size: 14px;
}

.work-row__main span,
.inventory-row__main span {
  display: block;
  overflow: hidden;
  color: var(--secondary);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.work-row__side,
.inventory-row__side {
  display: grid;
  justify-items: end;
  gap: 6px;
}

.row-arrow {
  display: grid;
  place-items: center;
  width: 20px;
  color: var(--text-blue);
}

.row-arrow .icon {
  width: 18px;
  height: 18px;
}

.task-dashboard {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.task-scope-card {
  min-height: 116px;
  padding: 16px;
  border: 1px solid rgba(225, 231, 240, 0.86);
  border-radius: 24px;
  color: var(--text-blue);
  background: #fff;
  box-shadow: var(--shadow-sm);
  text-align: left;
}

.task-scope-card span,
.task-scope-card strong {
  display: block;
}

.task-scope-card span {
  color: var(--secondary);
  font-size: 13px;
  font-weight: 800;
}

.task-scope-card strong {
  margin-top: 14px;
  color: var(--text);
  font-size: 34px;
  line-height: 1;
}

.task-scope-card.is-active {
  outline: 3px solid rgba(37, 99, 235, 0.14);
}

.task-scope-card--blue {
  background: #eaf3ff;
}

.task-scope-card--green {
  background: #eaf8f0;
}

.task-scope-card--red {
  background: #fee2e2;
}

.task-scope-card--violet {
  background: #f1eaff;
}

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

.work-card,
.panel,
.client-card,
.detail-card,
.modal-card {
  border: 1px solid rgba(225, 231, 240, 0.86);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(248, 252, 255, 0.84)),
    var(--card);
  box-shadow: var(--shadow-md);
}

.work-card {
  position: relative;
  min-height: 154px;
  padding: 18px;
  overflow: hidden;
  border-radius: 26px;
  color: var(--text-blue);
  text-align: left;
}

.work-card::after {
  position: absolute;
  right: -28px;
  bottom: -42px;
  width: 112px;
  height: 112px;
  border-radius: 50%;
  background: rgba(26, 115, 232, 0.08);
  content: "";
}

.work-card strong {
  display: block;
  margin-top: 14px;
  color: var(--text);
  font-size: 34px;
  line-height: 1;
  font-weight: 700;
}

.work-card span {
  position: relative;
  z-index: 1;
  display: block;
}

.work-card .card-title {
  min-height: 42px;
  color: var(--text-blue);
  font-size: 15px;
  font-weight: 700;
}

.work-card .card-caption {
  margin-top: 8px;
  color: var(--secondary);
  font-size: 12px;
}

.work-card .icon-bubble {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 16px;
  color: var(--primary);
  background: var(--soft-blue);
}

.work-card.is-dark {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.18);
  background:
    radial-gradient(circle at 85% 0, rgba(77, 163, 255, 0.32), transparent 16rem),
    linear-gradient(145deg, #0f4b99, #0d2b5b);
}

.work-card.is-dark .card-title,
.work-card.is-dark strong,
.work-card.is-dark .card-caption {
  color: #fff;
}

.work-card.is-dark .icon-bubble {
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
}

.dashboard-panels {
  display: grid;
  gap: 14px;
  margin-top: 14px;
}

.panel {
  padding: 18px;
  border-radius: 26px;
}

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

.panel-head h2 {
  margin-bottom: 0;
}

.panel-link {
  border: 0;
  color: var(--primary);
  background: transparent;
  font-size: 13px;
  font-weight: 700;
}

.task-list,
.product-list,
.history-list,
.summary-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.task-item,
.product-item,
.history-item,
.summary-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  min-height: 66px;
  padding: 12px;
  border: 1px solid var(--border-light);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.76);
}

.product-item {
  grid-template-columns: 1fr auto;
  align-items: start;
}

.history-item {
  grid-template-columns: auto 1fr;
}

.summary-item {
  grid-template-columns: auto 1fr auto;
}

.item-icon {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 16px;
  color: var(--primary);
  background: var(--soft-blue);
}

.task-title,
.product-title,
.summary-title {
  margin: 0;
  color: var(--text-blue);
  font-size: 14px;
  font-weight: 700;
}

.task-meta,
.product-meta,
.history-meta,
.summary-meta {
  margin: 2px 0 0;
  color: var(--secondary);
  font-size: 12px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: max-content;
  min-height: 26px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

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

.badge--client,
.badge--active,
.badge--done,
.badge--success {
  color: #0f8b58;
  background: var(--success-soft);
}

.badge--vip,
.badge--meeting,
.badge--thinking {
  color: #0b64d8;
  background: var(--soft-blue);
}

.badge--partner {
  color: #7c3aed;
  background: #f1eaff;
}

.badge--new,
.badge--call,
.badge--work {
  color: var(--primary);
  background: var(--info-blue);
}

.badge--later,
.badge--soon,
.badge--pending {
  color: #b76a00;
  background: var(--warning-soft);
}

.badge--noanswer,
.badge--overdue,
.badge--ended,
.badge--reject {
  color: #dc2626;
  background: var(--danger-soft);
}

.badge--inactive {
  color: #5f6f85;
  background: #edf2f7;
}

.view-head {
  display: grid;
  gap: 14px;
  margin-bottom: 16px;
}

.view-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.view-title-row > div,
.toolbar,
.search-field {
  min-width: 0;
  max-width: 100%;
}

.back-button,
.soft-button,
.primary-button,
.outline-button,
.text-button,
.danger-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 16px;
  border-radius: 16px;
  text-decoration: none;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease;
}

.back-button,
.soft-button {
  border: 1px solid var(--border);
  color: var(--text-blue);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow-sm);
  font-weight: 700;
}

.primary-button {
  border: 1px solid rgba(37, 99, 235, 0.26);
  color: #fff;
  background: linear-gradient(180deg, #1a73e8, #0f68dd);
  box-shadow: 0 10px 22px rgba(26, 115, 232, 0.22);
  font-weight: 700;
}

.outline-button {
  border: 1px solid rgba(37, 99, 235, 0.34);
  color: var(--primary);
  background: rgba(255, 255, 255, 0.78);
  font-weight: 700;
}

.text-button {
  min-height: 40px;
  border: 0;
  color: var(--primary);
  background: transparent;
  font-weight: 700;
}

.danger-button {
  border: 1px solid rgba(239, 68, 68, 0.24);
  color: #fff;
  background: linear-gradient(180deg, #ef4444, #dc2626);
  font-weight: 700;
}

.toolbar {
  display: grid;
  gap: 12px;
}

.search-field {
  position: relative;
}

.search-field .icon {
  position: absolute;
  top: 50%;
  left: 14px;
  color: var(--muted);
  transform: translateY(-50%);
}

.search-field input,
.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--border);
  border-radius: 16px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow-xs);
  outline: none;
}

.search-field input {
  padding: 0 16px 0 44px;
}

.field input,
.field select,
.field textarea {
  padding: 12px 14px;
}

.field textarea {
  min-height: 92px;
  resize: vertical;
}

.search-field input:focus,
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: rgba(37, 99, 235, 0.58);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.field label {
  display: block;
  margin-bottom: 6px;
  color: var(--secondary);
  font-size: 12px;
  font-weight: 700;
}

.chip-row {
  display: flex;
  gap: 8px;
  max-width: 100%;
  padding: 0 0 4px;
  overflow-x: auto;
  scrollbar-width: none;
}

.chip-row::-webkit-scrollbar {
  display: none;
}

.filter-chip {
  flex: 0 0 auto;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-blue);
  background: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  font-weight: 700;
}

.filter-chip.is-active {
  color: #fff;
  border-color: rgba(37, 99, 235, 0.2);
  background: var(--primary);
  box-shadow: 0 10px 22px rgba(37, 99, 235, 0.2);
}

.client-grid {
  display: grid;
  gap: 12px;
}

.client-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  padding: 14px;
  border-radius: 24px;
  text-align: left;
}

.client-card-main {
  min-width: 0;
}

.client-card h3 {
  margin-bottom: 2px;
}

.client-card .phone {
  margin-bottom: 10px;
  color: var(--secondary);
  font-size: 13px;
}

.avatar,
.avatar-fallback {
  width: 62px;
  height: 62px;
  border: 3px solid rgba(255, 255, 255, 0.88);
  border-radius: 22px;
  box-shadow: var(--shadow-sm);
  object-fit: cover;
  background: #dcecff;
}

.avatar-fallback {
  display: inline-grid;
  place-items: center;
  color: var(--primary-dark);
  font-weight: 800;
}

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

.mini-stat {
  min-height: 54px;
  padding: 8px 10px;
  border: 1px solid var(--border-light);
  border-radius: 16px;
  background: rgba(244, 249, 255, 0.74);
}

.mini-stat strong,
.client-total {
  display: block;
  color: var(--text);
  font-size: 15px;
  font-weight: 800;
}

.mini-stat span {
  color: var(--secondary);
  font-size: 11px;
}

.client-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.next-task {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 16px;
  color: var(--text-blue);
  background: var(--soft-blue);
  font-size: 12px;
}

.empty-state {
  padding: 28px 20px;
  border: 1px dashed #c9d8eb;
  border-radius: 24px;
  color: var(--secondary);
  text-align: center;
  background: rgba(255, 255, 255, 0.42);
}

.detail-grid {
  display: grid;
  gap: 14px;
}

.detail-card {
  padding: 18px;
  border-radius: 26px;
}

.profile-hero {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  align-items: center;
}

.profile-hero .avatar,
.profile-hero .avatar-fallback {
  width: 92px;
  height: 92px;
  border-radius: 26px;
}

.profile-hero h1 {
  font-size: clamp(27px, 8vw, 40px);
}

.profile-phone {
  margin: 6px 0 10px;
  color: var(--secondary);
}

.comment-box {
  margin-top: 16px;
  padding: 14px;
  border-radius: 18px;
  color: var(--text-blue);
  background: rgba(230, 241, 255, 0.72);
  font-size: 14px;
}

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

.action-grid .primary-button,
.action-grid .outline-button,
.action-grid .soft-button,
.action-grid .text-button {
  min-height: 50px;
}

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

.status-select-row {
  display: grid;
  gap: 10px;
  margin-bottom: 14px;
}

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

.finance-cell {
  min-height: 70px;
  padding: 10px;
  border: 1px solid var(--border-light);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.74);
}

.finance-cell strong {
  display: block;
  color: var(--text);
  font-size: 18px;
  font-weight: 800;
}

.finance-cell span {
  color: var(--secondary);
  font-size: 11px;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: end center;
  padding: 14px;
  background: rgba(15, 36, 73, 0.32);
  backdrop-filter: blur(8px);
}

.modal-card {
  width: min(100%, 560px);
  max-height: min(88vh, 760px);
  padding: 18px;
  overflow: auto;
  border-radius: 28px;
}

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

.modal-head h2 {
  margin-bottom: 0;
}

.photo-modal {
  width: min(100%, 430px);
}

.photo-picker {
  display: grid;
  gap: 14px;
}

.photo-preview {
  position: relative;
  width: min(100%, 260px);
  aspect-ratio: 1;
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid rgba(202, 217, 235, 0.88);
  border-radius: 28px;
  background:
    linear-gradient(145deg, #ffffff, #e6f1ff),
    var(--soft-blue);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82);
  touch-action: none;
  user-select: none;
}

.photo-preview__image {
  position: absolute;
  left: 50%;
  top: 50%;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: translate(-50%, -50%);
  transform-origin: center;
  pointer-events: none;
  -webkit-user-drag: none;
}

.photo-preview:has(.photo-preview__image.is-editable) {
  cursor: grab;
}

.photo-preview.is-dragging {
  cursor: grabbing;
}

.photo-preview__oval {
  position: absolute;
  top: 8%;
  left: 50%;
  width: 58%;
  height: 72%;
  border: 2px solid rgba(255, 255, 255, 0.96);
  border-radius: 50%;
  box-shadow:
    0 0 0 999px rgba(15, 36, 73, 0.16),
    0 0 0 1px rgba(26, 115, 232, 0.28);
  transform: translateX(-50%);
  pointer-events: none;
}

.photo-picker p {
  margin: -2px 0 0;
  color: var(--secondary);
  font-size: 13px;
  text-align: center;
}

.photo-owner {
  display: grid;
  gap: 2px;
  padding: 12px 14px;
  border-radius: 16px;
  background: var(--soft-blue);
  text-align: center;
}

.photo-owner strong {
  color: var(--text);
  font-size: 17px;
}

.photo-owner span {
  color: var(--muted);
  font-size: 13px;
}

.photo-actions {
  display: grid;
  gap: 10px;
}

.photo-zoom {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 42px;
  align-items: center;
  gap: 10px;
}

.photo-zoom button {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--primary);
  background: #fff;
  box-shadow: var(--shadow-xs);
  font-size: 26px;
  line-height: 1;
}

.photo-zoom input {
  width: 100%;
  accent-color: var(--primary);
}

.photo-actions .outline-button,
.photo-actions .soft-button,
.photo-actions .primary-button,
.photo-ready-button {
  width: 100%;
}

.photo-ready-button {
  min-height: 48px;
}

.photo-ready-button:disabled {
  cursor: not-allowed;
  opacity: 0.42;
  box-shadow: none;
}

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

.form-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 6px;
}

.toast {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 30;
  max-width: calc(100vw - 32px);
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 18px;
  color: #fff;
  background: var(--primary-dark);
  box-shadow: var(--shadow-lg);
  font-weight: 700;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (min-width: 720px) {
  .app-shell {
    padding: 24px;
  }

  .app-frame {
    min-height: calc(100vh - 48px);
    padding: 24px;
    border-radius: 40px;
  }

  .operator-dashboard {
    grid-template-columns: 0.95fr 1.05fr 0.8fr;
    grid-template-areas:
      "operator clients clients"
      "operator products money";
    gap: 16px;
  }

  .operator-card {
    min-height: 100%;
  }

  .dashboard-tables {
    grid-template-columns: 1.12fr 0.88fr;
    gap: 16px;
  }

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

  .dashboard-panels {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }

  .toolbar {
    grid-template-columns: minmax(260px, 420px) 1fr;
    align-items: center;
  }

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

  .detail-grid {
    grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
    align-items: start;
    gap: 16px;
  }

  .detail-grid .detail-card:first-child,
  .detail-grid .detail-card:nth-child(4) {
    grid-column: 1 / -1;
  }

  .status-select-row {
    grid-template-columns: 1fr auto;
    align-items: end;
  }

  .modal {
    place-items: center;
  }
}

@media (min-width: 1100px) {
  .app-frame {
    padding: 32px;
  }

  .topbar {
    margin-bottom: 34px;
  }

  .page-head {
    grid-template-columns: 1fr auto;
    align-items: end;
  }

  .work-card {
    min-height: 176px;
    padding: 22px;
  }

  .dashboard-panels {
    grid-template-columns: 1.15fr 0.85fr;
  }

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

  .detail-grid {
    grid-template-columns: 1.2fr 0.8fr;
  }
}

.app-frame--dashboard .plan-fact-card {
  grid-template-columns: minmax(0, 1fr) 138px;
  min-height: 106px;
  padding: 18px 20px;
  border-color: rgba(202, 217, 235, 0.92);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.9);
}

.app-frame--dashboard .plan-fact-card__copy span {
  color: var(--secondary);
  font-size: 16px;
  line-height: 1.1;
  font-weight: 700;
}

.app-frame--dashboard .plan-fact-card__copy strong {
  margin-top: 7px;
  color: var(--text);
  font-size: 32px;
  line-height: 0.95;
  font-weight: 850;
}

.app-frame--dashboard .plan-fact-card__copy em {
  margin-top: 10px;
  color: var(--secondary);
  font-size: 14px;
  font-weight: 700;
}

.app-frame--dashboard .activity-gauge {
  --gauge-size: 126px;
  min-height: 82px;
  border: 2px solid var(--primary);
  background: rgba(205, 227, 250, 0.62);
}

.app-frame--dashboard .activity-gauge strong {
  top: 40px;
  font-size: 24px;
  font-weight: 850;
}

.app-frame--dashboard .activity-gauge__label {
  top: 66px;
  font-size: 12px;
  font-weight: 700;
}

.focus-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.focus-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid rgba(202, 217, 235, 0.92);
  border-radius: 999px;
  color: var(--text-blue);
  background: rgba(255, 255, 255, 0.84);
  font-size: 14px;
  font-weight: 600;
  box-shadow: var(--shadow-sm);
}

.focus-back .icon {
  width: 18px;
  height: 18px;
}

.focus-board__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.focus-board__head span {
  color: var(--secondary);
  font-size: 15px;
  font-weight: 650;
}

.focus-board__head strong {
  color: var(--text);
  font-size: 24px;
  line-height: 1;
  font-weight: 800;
}

.focus-board {
  overflow: visible;
  padding: 18px;
}

.focus-row,
.focus-row.is-editing {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 12px;
  min-width: 0;
  margin-bottom: 0;
  padding: 14px 0;
  border: 0;
  border-bottom: 1px solid rgba(225, 231, 240, 0.78);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.focus-row:last-of-type {
  border-bottom: 0;
}

.focus-activity span,
.focus-activity input,
.focus-cell input,
.focus-percent {
  min-height: auto;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.focus-activity span {
  display: block;
  padding: 0;
  color: var(--text);
  font-size: 15px;
  line-height: 1.25;
  font-weight: 600;
}

.focus-activity input {
  min-height: 34px;
  padding: 0 0 5px;
  border: 0;
  border-bottom: 1px solid rgba(26, 115, 232, 0.32);
  border-radius: 0;
  background: transparent;
  font-size: 15px;
  font-weight: 600;
}

.focus-activity em {
  display: block;
  margin-top: 4px;
  color: var(--secondary);
  font-size: 12px;
  font-style: normal;
  font-weight: 500;
}

.focus-row__numbers {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin-top: 2px;
}

.focus-cell {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  min-width: 0;
  padding: 0 10px;
  border-radius: 0;
  background: transparent;
}

.focus-cell:first-child {
  padding-left: 0;
}

.focus-cell + .focus-cell {
  border-left: 1px solid rgba(202, 217, 235, 0.86);
}

.focus-cell span {
  color: var(--secondary);
  font-size: 11px;
  font-weight: 500;
}

.focus-cell input {
  width: 2.4ch;
  padding: 0;
  color: var(--text);
  text-align: left;
  font-size: 15px;
  line-height: 1;
  font-weight: 650;
}

.focus-percent {
  justify-content: center;
  align-self: start;
  min-width: 52px;
  min-height: 30px;
  padding: 0 9px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
}

.focus-remove {
  position: absolute;
  right: -6px;
  top: -6px;
  width: 30px;
  height: 30px;
}

.focus-add-row {
  grid-template-columns: 1fr;
  min-width: 0;
}

.focus-history-card span,
.focus-history-card em {
  font-weight: 500;
}

.focus-history-card strong {
  font-size: 24px;
  font-weight: 750;
}

.modal {
  place-items: end center;
  padding: 12px;
}

.modal-card {
  width: min(100%, 430px);
  max-height: calc(100vh - 24px);
  padding: 18px;
  border-radius: 30px 30px 24px 24px;
}

.modal-head h2 {
  font-size: 26px;
  line-height: 1.05;
}

@media (max-width: 420px) {
  .app-shell {
    padding: 0;
  }

  .app-frame {
    min-height: 100vh;
    border-radius: 0;
    border-right: 0;
    border-left: 0;
  }

  .mobile-work-header {
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 8px;
  }

  .mobile-work-header > img,
  .mobile-work-header .operator-photo-button {
    width: 58px;
    height: 58px;
    border-radius: 20px;
  }

  .mobile-work-header .icon-button {
    width: 52px;
    height: 52px;
  }

  .mobile-work-header strong {
    font-size: 23px;
  }

  .mobile-work-header em {
    font-size: 14px;
  }

  .app-frame--focus {
    padding: 16px;
    border-radius: 0;
  }

  .focus-week-nav {
    grid-template-columns: 44px minmax(0, 1fr) 44px;
    min-height: 68px;
    padding: 10px;
  }

  .focus-week-nav__title {
    gap: 9px;
  }

  .focus-week-nav__title span {
    font-size: 16px;
  }

  .focus-week-nav__title strong {
    font-size: 25px;
  }

  .focus-overview {
    grid-template-columns: 1fr;
    padding: 16px;
  }

  .focus-overview strong {
    font-size: 38px;
  }

  .focus-overview__actions {
    justify-content: stretch;
  }

  .focus-overview__actions .soft-button,
  .focus-overview__actions .primary-button {
    flex: 1 1 auto;
  }

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

  .progress-ring {
    width: 108px;
    height: 108px;
  }

  .pipeline-mini {
    gap: 6px;
  }

  .pipeline-mini__item {
    min-height: 78px;
    padding: 9px;
  }

  .pipeline-mini__item span {
    font-size: 11px;
  }

  .brand-pill {
    min-height: 40px;
    padding: 0 14px;
    font-size: 18px;
  }

  .topbar-actions .icon-button:not(:last-child) {
    display: none;
  }

  .dashboard-grid {
    gap: 10px;
  }

  .work-card {
    min-height: 148px;
    padding: 16px;
  }

  .work-card strong {
    font-size: 30px;
  }

  .action-grid,
  .status-actions,
  .form-actions {
    grid-template-columns: 1fr;
  }

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

.app-frame--dashboard {
  width: min(100%, 430px);
  max-width: 430px;
  margin: 0 auto;
  padding: 18px;
  border-color: rgba(255, 255, 255, 0.86);
  border-radius: 34px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(225, 239, 253, 0.98)),
    var(--bg);
  box-shadow: 0 22px 42px rgba(13, 43, 91, 0.095);
}

.app-frame--dashboard .operator-dashboard {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-areas:
    "plan plan"
    "operator operator"
    "clients clients"
    "products money";
  gap: 12px;
}

.app-frame--dashboard .operator-card,
.app-frame--dashboard .plan-fact-card,
.app-frame--dashboard .client-hub,
.app-frame--dashboard .dashboard-tile,
.app-frame--dashboard .panel {
  border-color: rgba(202, 217, 235, 0.86);
  border-radius: 24px;
  box-shadow: 0 10px 26px rgba(13, 43, 91, 0.07);
}

.app-frame--dashboard .plan-fact-card {
  grid-template-columns: minmax(0, 1fr) 170px;
  min-height: 148px;
  padding: 20px 18px;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.9);
}

.app-frame--dashboard .plan-fact-card__copy {
  align-self: stretch;
  display: grid;
  align-content: center;
  justify-items: center;
  min-width: 0;
}

.app-frame--dashboard .plan-fact-card__title {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  color: var(--text);
  font-size: 25px;
  line-height: 1;
  font-weight: 500;
  white-space: nowrap;
}

.app-frame--dashboard .plan-fact-card__title img {
  width: 46px;
  height: 46px;
  flex: 0 0 auto;
}

.app-frame--dashboard .plan-fact-card__title b {
  color: var(--primary);
  font-weight: 600;
}

.app-frame--dashboard .plan-fact-card__copy strong {
  margin-top: 18px;
  color: var(--text);
  font-size: 58px;
  font-weight: 850;
  letter-spacing: 0;
}

.app-frame--dashboard .plan-fact-card__copy strong::first-letter {
  letter-spacing: 0;
}

.app-frame--dashboard .plan-fact-card__divider {
  position: relative;
  display: block;
  width: min(100%, 160px);
  height: 1px;
  margin-top: 18px;
  background: linear-gradient(90deg, transparent, rgba(117, 135, 166, 0.26), transparent);
}

.app-frame--dashboard .plan-fact-card__divider::after {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #d8e3f5;
  content: "";
  transform: translate(-50%, -50%);
}

.app-frame--dashboard .plan-fact-card__copy em {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  margin-top: 14px;
  padding: 0 18px;
  border-radius: 999px;
  color: var(--text);
  background: rgba(230, 241, 255, 0.9);
  font-size: 18px;
  font-weight: 700;
}

.app-frame--dashboard .plan-fact-card__copy em i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--primary);
}

.app-frame--dashboard .activity-gauge {
  --gauge-size: 158px;
  min-height: 118px;
  border: 1px solid rgba(202, 217, 235, 0.88);
  border-radius: 22px;
  background:
    radial-gradient(circle at 50% 0, rgba(255, 255, 255, 0.82), transparent 58%),
    rgba(230, 241, 255, 0.72);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.84);
}

.app-frame--dashboard .activity-gauge__svg {
  width: var(--gauge-size);
}

.app-frame--dashboard .activity-gauge strong {
  top: 55px;
  font-size: 36px;
  font-weight: 850;
}

.app-frame--dashboard .activity-gauge__label {
  top: 89px;
  font-size: 17px;
  font-weight: 750;
  text-transform: uppercase;
}

.app-frame--dashboard .mobile-work-header {
  gap: 10px;
  margin-bottom: 18px;
}

.app-frame--dashboard .mobile-work-header img {
  width: 56px;
  height: 56px;
  border-width: 2px;
  border-radius: 18px;
}

.app-frame--dashboard .operator-photo-button {
  width: 56px;
  height: 56px;
  border-width: 2px;
  border-radius: 18px;
}

.app-frame--dashboard .mobile-work-header span {
  color: var(--secondary);
  font-size: 14px;
  font-weight: 600;
}

.app-frame--dashboard .mobile-work-header strong {
  color: var(--text);
  font-size: 23px;
  font-weight: 800;
}

.app-frame--dashboard .mobile-work-header em {
  color: var(--secondary);
  font-size: 14px;
  font-weight: 400;
}

.app-frame--dashboard .mobile-work-header strong,
.app-frame--dashboard .mobile-work-header em {
  overflow: hidden;
  text-overflow: ellipsis;
}

.app-frame--dashboard .mobile-work-header .icon-button {
  width: 52px;
  height: 52px;
  border-color: rgba(225, 231, 240, 0.76);
  box-shadow: 0 7px 16px rgba(13, 43, 91, 0.05);
}

.app-frame--dashboard .operator-card {
  min-height: 278px;
  padding: 16px;
}

.app-frame--dashboard .finance-widget {
  gap: 6px;
}

.app-frame--dashboard .finance-widget__head h1 {
  font-size: 27px;
  font-weight: 800;
  white-space: nowrap;
}

.app-frame--dashboard .finance-widget__head p {
  margin-top: 4px;
  font-size: 13px;
  font-weight: 500;
}

.app-frame--dashboard .finance-widget__forecast {
  min-width: 86px;
  padding: 7px 8px;
  border-radius: 14px;
  border-color: rgba(225, 231, 240, 0.66);
  transform: translateY(-4px);
}

.app-frame--dashboard .finance-widget__forecast strong {
  gap: 4px;
  font-size: 14px;
  font-weight: 800;
}

.app-frame--dashboard .finance-widget__forecast strong .icon {
  width: 18px;
  height: 18px;
}

.app-frame--dashboard .finance-widget__forecast span {
  margin-top: 4px;
  font-size: 9px;
  font-weight: 500;
}

.app-frame--dashboard .finance-chart {
  min-height: 100px;
}

.app-frame--dashboard .finance-chart__line {
  stroke-width: 2.4;
}

.app-frame--dashboard .finance-chart__area {
  stroke-width: 6;
}

.app-frame--dashboard .finance-summary {
  border-color: rgba(225, 231, 240, 0.7);
  border-radius: 15px;
}

.app-frame--dashboard .finance-summary div {
  padding: 7px 6px;
}

.app-frame--dashboard .finance-summary span {
  font-size: 10px;
  font-weight: 500;
}

.app-frame--dashboard .finance-summary strong {
  margin-top: 5px;
  font-size: 14px;
  font-weight: 800;
}

.app-frame--dashboard .finance-summary em {
  margin-top: 5px;
  font-size: 11px;
  font-weight: 600;
}

.app-frame--dashboard .client-hub {
  padding: 16px;
}

.app-frame--dashboard .client-hub__main {
  min-height: 78px;
  padding: 8px 8px 13px;
  background: transparent;
}

.app-frame--dashboard .client-hub__label {
  font-size: 24px;
  font-weight: 800;
}

.app-frame--dashboard .client-hub__main strong {
  font-size: 37px;
  font-weight: 800;
}

.app-frame--dashboard .client-hub__caption {
  font-size: 15px;
  font-weight: 400;
}

.app-frame--dashboard .pipeline-mini {
  gap: 8px;
}

.app-frame--dashboard .pipeline-mini__item {
  min-height: 74px;
  padding: 10px;
  border-radius: 17px;
}

.app-frame--dashboard .pipeline-mini__item span {
  font-size: 12px;
  font-weight: 600;
}

.app-frame--dashboard .pipeline-mini__item strong {
  font-size: 24px;
  font-weight: 800;
}

.app-frame--dashboard .pipeline-mini__item .icon {
  width: 24px;
  height: 24px;
}

.app-frame--dashboard .dashboard-tile {
  min-height: 112px;
  padding: 15px;
}

.app-frame--dashboard .tile-copy span {
  font-size: 18px;
  font-weight: 800;
}

.app-frame--dashboard .tile-copy strong {
  font-size: 30px;
  font-weight: 800;
}

.app-frame--dashboard .dashboard-tables {
  grid-template-columns: 1fr;
  gap: 14px;
}

.app-frame--dashboard .panel {
  padding: 16px;
}

.app-frame--dashboard .panel-head h2 {
  font-size: 25px;
  font-weight: 800;
}

.app-frame--dashboard .panel-link {
  font-size: 15px;
  font-weight: 700;
}

.app-frame--dashboard .work-row,
.app-frame--dashboard .inventory-row {
  min-height: 62px;
  padding: 10px;
  border-color: rgba(225, 231, 240, 0.78);
  border-radius: 16px;
}

.app-frame--dashboard .work-row__main strong,
.app-frame--dashboard .inventory-row__main strong,
.app-frame--dashboard .work-row__side strong,
.app-frame--dashboard .inventory-row__side strong {
  font-size: 14px;
  font-weight: 700;
}

.app-frame--dashboard .work-row__main span,
.app-frame--dashboard .inventory-row__main span {
  font-size: 13px;
  font-weight: 400;
}

.app-frame--dashboard .panel--products {
  border-color: rgba(255, 255, 255, 0.18);
  background: #0d4b8f;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 18px 30px rgba(13, 43, 91, 0.16);
}

.app-frame--dashboard .panel--products .panel-head {
  margin-bottom: 12px;
}

.app-frame--dashboard .panel--products .panel-head h2 {
  color: #ffffff;
  text-shadow: 0 1px 2px rgba(4, 20, 45, 0.22);
}

.app-frame--dashboard .panel--products .panel-link {
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
}

.app-frame--dashboard .panel--products .inventory-table {
  gap: 10px;
}

.app-frame--dashboard .panel--products .inventory-row {
  min-height: 64px;
  border-color: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  background: rgba(255, 255, 255, 0.09);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.app-frame--dashboard .panel--products .inventory-row:hover,
.app-frame--dashboard .panel--products .inventory-row:focus-visible {
  background: rgba(255, 255, 255, 0.14);
}

.app-frame--dashboard .panel--products .inventory-row__main::before {
  content: none;
}

.app-frame--dashboard .panel--products .inventory-row__icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.app-frame--dashboard .panel--products .inventory-row__main strong,
.app-frame--dashboard .panel--products .inventory-row__side strong {
  color: #ffffff;
  text-shadow: 0 1px 2px rgba(4, 20, 45, 0.2);
}

.app-frame--dashboard .panel--products .inventory-row__main span {
  color: rgba(236, 245, 255, 0.72);
}

.app-frame--dashboard .panel--products .row-arrow {
  color: rgba(255, 255, 255, 0.82);
}

.app-frame--dashboard .panel--products .badge {
  border: 0;
  box-shadow: none;
}

.app-frame--dashboard .panel--products .badge--soon {
  color: #ffe2a8;
  background: rgba(245, 158, 11, 0.18);
}

.app-frame--dashboard .panel--products .badge--ended {
  color: #ffc5c5;
  background: rgba(239, 68, 68, 0.2);
}

.app-frame--dashboard .panel--products .badge--active,
.app-frame--dashboard .panel--products .badge--success {
  color: #a7f3cf;
  background: rgba(34, 197, 94, 0.16);
}

.app-frame--dashboard .plan-fact-card {
  grid-template-columns: minmax(0, 1fr) 142px;
  height: 124px;
  min-height: 124px;
  padding: 14px 16px;
  border-radius: 24px;
}

.app-frame--dashboard .plan-fact-card__copy {
  align-content: center;
  justify-items: start;
}

.app-frame--dashboard .plan-fact-card__title {
  gap: 9px;
  width: auto;
  color: #0f1d42;
  font-size: 19px;
  font-weight: 400;
  letter-spacing: 0;
}

.app-frame--dashboard .plan-fact-card__title img {
  width: 36px;
  height: 36px;
}

.app-frame--dashboard .plan-fact-card__copy strong {
  margin-top: 10px;
  color: #071640;
  font-size: 46px;
  line-height: 0.95;
}

.app-frame--dashboard .plan-fact-card__divider {
  position: relative;
  display: block;
  width: 150px;
  height: 1px;
  margin-top: 10px;
  background: linear-gradient(90deg, transparent, rgba(117, 135, 166, 0.25), transparent);
}

.app-frame--dashboard .plan-fact-card__divider::after {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #d8e3f5;
  content: "";
  transform: translate(-50%, -50%);
}

.app-frame--dashboard .plan-fact-card__copy em {
  min-height: 26px;
  margin-top: 9px;
  padding: 0 14px;
  font-size: 14px;
  font-weight: 650;
}

.app-frame--dashboard .plan-fact-card__copy em i {
  width: 6px;
  height: 6px;
}

.app-frame--dashboard .activity-gauge {
  --gauge-size: 126px;
  min-height: 88px;
  border: 1px solid rgba(202, 217, 235, 0.88);
  border-radius: 18px;
}

.app-frame--dashboard .activity-gauge__svg {
  width: var(--gauge-size);
  height: 88px;
}

.app-frame--dashboard .activity-gauge__arc {
  stroke-width: 6.5;
}

.app-frame--dashboard .activity-gauge strong {
  top: 39px;
  color: #071640;
  font-size: 27px;
}

.app-frame--dashboard .activity-gauge__label {
  top: 65px;
  color: #697386;
  font-size: 12px;
  font-weight: 750;
  text-transform: uppercase;
}

.app-frame--focus {
  width: min(100%, 1080px);
  max-width: 1080px;
  min-height: 100vh;
  padding: 14px;
  border: 0;
  border-radius: 0;
  background: #eef0f4;
  box-shadow: none;
}

.app-frame--focus .focus-view {
  gap: 28px;
}

.app-frame--focus .focus-week-nav {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) 56px;
  min-height: 124px;
  padding: 0 16px;
  border: 0;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: none;
}

.app-frame--focus .focus-week-nav .icon-button {
  width: 46px;
  height: 46px;
  border: 0;
  color: #05070d;
  background: transparent;
  box-shadow: none;
}

.app-frame--focus .focus-week-nav .icon {
  width: 34px;
  height: 34px;
  stroke-width: 2.4;
}

.app-frame--focus .focus-week-nav__title {
  gap: 36px;
  color: #05070d;
}

.app-frame--focus .focus-week-nav__title span {
  color: #05070d;
  font-size: 30px;
  font-weight: 400;
}

.app-frame--focus .focus-week-nav__title strong {
  color: #05070d;
  font-size: 38px;
  font-weight: 850;
}

.app-frame--focus .focus-overview {
  display: none;
}

.app-frame--focus .focus-board {
  overflow-x: auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.app-frame--focus .focus-row {
  display: grid;
  grid-template-columns: 588px 96px 96px 96px 96px;
  gap: 14px;
  align-items: center;
  min-width: 946px;
  margin-bottom: 24px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.app-frame--focus .focus-row.is-editing {
  grid-template-columns: 588px 96px 96px 96px 96px 42px;
}

.app-frame--focus .focus-row--head {
  margin-bottom: 14px;
  color: #19172a;
}

.app-frame--focus .focus-row--head span {
  min-height: auto;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.app-frame--focus .focus-row--head span:first-child {
  display: flex;
  align-items: end;
  color: #19172a;
  font-size: 38px;
  line-height: 1;
  font-weight: 850;
}

.app-frame--focus .focus-row--head span:not(:first-child) {
  color: #19172a;
  text-align: center;
  font-size: 28px;
  line-height: 1.08;
  font-weight: 850;
}

.app-frame--focus .focus-activity span,
.app-frame--focus .focus-activity input,
.app-frame--focus .focus-cell input,
.app-frame--focus .focus-percent {
  min-height: 112px;
  border: 0;
  border-radius: 20px;
  background: #ffffff;
  box-shadow: none;
}

.app-frame--focus .focus-activity span {
  display: flex;
  align-items: center;
  padding: 0 16px;
  color: #19172a;
  font-size: 26px;
  line-height: 1.22;
  font-weight: 400;
}

.app-frame--focus .focus-activity input {
  padding: 0 16px;
  color: #19172a;
  font-size: 24px;
  font-weight: 400;
}

.app-frame--focus .focus-cell {
  display: block;
  padding: 0;
  background: transparent;
}

.app-frame--focus .focus-cell input {
  width: 100%;
  justify-content: center;
  padding: 0;
  color: #505050;
  text-align: center;
  font-size: 34px;
  font-style: normal;
  font-weight: 850;
}

.app-frame--focus .focus-row .focus-cell:nth-of-type(2) input {
  color: #999999;
}

.app-frame--focus .focus-row .focus-cell:nth-of-type(4) input {
  color: #0878f2;
  font-style: italic;
}

.app-frame--focus .focus-percent {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ff0000;
  font-size: 34px;
  font-weight: 850;
}

.app-frame--focus .focus-percent--orange {
  color: #d97900;
}

.app-frame--focus .focus-percent--green {
  color: #0f9f5d;
}

.app-frame--focus .focus-history {
  border: 0;
  background: #ffffff;
  box-shadow: none;
}

/* Final override: reference-like focus card and real mobile focus table. */
.app-frame--dashboard .plan-fact-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 158px;
  align-items: center;
  gap: 10px;
  height: 126px;
  min-height: 126px;
  padding: 14px 16px;
  border: 1px solid rgba(199, 216, 238, 0.95);
  border-radius: 28px;
  background:
    radial-gradient(circle at 78% 14%, rgba(234, 243, 255, 0.98), transparent 42%),
    linear-gradient(180deg, #ffffff 0%, #f9fcff 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.94),
    0 14px 32px rgba(9, 35, 77, 0.06);
}

.app-frame--dashboard .plan-fact-card__copy {
  display: grid;
  align-content: center;
  justify-items: start;
  min-width: 0;
  height: 100%;
}

.app-frame--dashboard .plan-fact-card__copy .plan-fact-card__title,
.app-frame--dashboard .plan-fact-card__copy .plan-fact-card__title > span {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  width: auto;
  color: #0a1740;
  font-size: 19px;
  line-height: 1;
  font-weight: 400;
  letter-spacing: 0;
}

.app-frame--dashboard .plan-fact-card__title img {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
}

.app-frame--dashboard .plan-fact-card__copy .plan-fact-card__title b {
  color: #1a73e8;
  font-weight: 500;
}

.app-frame--dashboard .plan-fact-card__copy strong {
  display: flex;
  align-items: center;
  justify-self: center;
  gap: 10px;
  margin-top: 10px;
  color: #061541;
  font-size: 45px;
  line-height: 0.9;
  font-weight: 850;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.app-frame--dashboard .plan-fact-card__copy strong b {
  color: #7c879e;
  font-size: 0.88em;
  line-height: 1;
  font-weight: 500;
}

.app-frame--dashboard .plan-fact-card__divider {
  position: relative;
  display: block;
  justify-self: center;
  width: min(150px, 100%);
  height: 1px;
  margin-top: 10px;
  background: linear-gradient(90deg, transparent, rgba(135, 153, 184, 0.32), transparent);
}

.app-frame--dashboard .plan-fact-card__divider::after {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #d9e4f6;
  content: "";
  transform: translate(-50%, -50%);
}

.app-frame--dashboard .plan-fact-card__copy em {
  display: inline-flex;
  align-items: center;
  justify-self: center;
  gap: 8px;
  min-height: 25px;
  margin-top: 9px;
  padding: 0 16px;
  border-radius: 999px;
  color: #0a1740;
  background: rgba(232, 242, 255, 0.92);
  font-size: 14px;
  line-height: 1;
  font-style: normal;
  font-weight: 650;
}

.app-frame--dashboard .plan-fact-card__copy em i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #1a73e8;
}

.app-frame--dashboard .activity-gauge {
  --gauge-size: 154px;
  position: relative;
  display: grid;
  justify-items: center;
  align-content: center;
  width: 100%;
  min-height: 98px;
  overflow: hidden;
  border: 1px solid rgba(206, 221, 241, 0.9);
  border-radius: 20px;
  background:
    radial-gradient(circle at 50% 6%, rgba(255, 255, 255, 0.92), transparent 60%),
    linear-gradient(180deg, rgba(246, 250, 255, 0.96), rgba(229, 240, 255, 0.8));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.94),
    inset 0 -12px 22px rgba(188, 211, 243, 0.16);
}

.app-frame--dashboard .activity-gauge__svg {
  display: block;
  width: var(--gauge-size);
  height: 98px;
  transform: translateY(-2px);
}

.app-frame--dashboard .activity-gauge__arc {
  stroke-width: 8.5;
}

.app-frame--dashboard .activity-gauge__dot {
  fill: #05070d;
  stroke: #ffffff;
  stroke-width: 2.4;
  filter: drop-shadow(0 2px 4px rgba(7, 22, 64, 0.25));
}

.app-frame--dashboard .activity-gauge strong {
  position: absolute;
  left: 50%;
  top: 42px;
  z-index: 1;
  color: #071640;
  font-size: 31px;
  line-height: 1;
  font-weight: 850;
  letter-spacing: -0.01em;
  text-align: center;
  transform: translateX(-50%);
  white-space: nowrap;
}

.app-frame--dashboard .activity-gauge__label {
  position: absolute;
  left: 50%;
  top: 76px;
  z-index: 1;
  color: #727b8f;
  font-size: 12px;
  line-height: 1;
  font-weight: 750;
  letter-spacing: 0.01em;
  text-align: center;
  text-transform: uppercase;
  transform: translateX(-50%);
  white-space: nowrap;
}

.app-frame--focus {
  width: min(100%, 430px);
  max-width: 430px;
  min-height: 100vh;
  overflow-x: hidden;
  padding: 12px 10px 24px;
  border: 0;
  border-radius: 0;
  background: #eef2f6;
  box-shadow: none;
}

.app-frame--focus .focus-view {
  gap: 14px;
  overflow: hidden;
}

.app-frame--focus .focus-week-nav {
  grid-template-columns: 42px minmax(0, 1fr) 42px;
  min-height: 84px;
  padding: 0 10px;
  border-radius: 22px;
  background: #ffffff;
}

.app-frame--focus .focus-week-nav .icon-button {
  width: 40px;
  height: 40px;
}

.app-frame--focus .focus-week-nav .icon {
  width: 28px;
  height: 28px;
  stroke-width: 2.4;
}

.app-frame--focus .focus-week-nav__title {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 14px;
  min-width: 0;
  white-space: nowrap;
}

.app-frame--focus .focus-week-nav__title span {
  font-size: 24px;
  line-height: 1;
  font-weight: 400;
}

.app-frame--focus .focus-week-nav__title strong {
  font-size: 30px;
  line-height: 1;
  font-weight: 850;
}

.app-frame--focus .focus-overview {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px;
  border: 0;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: none;
}

.app-frame--focus .focus-overview > div:first-child {
  min-width: 0;
}

.app-frame--focus .focus-overview span {
  color: #6e7890;
  font-size: 12px;
  font-weight: 650;
}

.app-frame--focus .focus-overview strong {
  display: block;
  color: #071640;
  font-size: 26px;
  line-height: 1;
  font-weight: 850;
}

.app-frame--focus .focus-overview em {
  color: #6e7890;
  font-size: 12px;
  font-style: normal;
  font-weight: 500;
}

.app-frame--focus .focus-overview__actions {
  display: flex;
  flex: 0 0 auto;
  gap: 6px;
}

.app-frame--focus .focus-overview__actions .soft-button,
.app-frame--focus .focus-overview__actions .primary-button {
  min-height: 34px;
  padding: 0 9px;
  border-radius: 12px;
  font-size: 12px;
}

.app-frame--focus .focus-overview__actions .soft-button:first-child {
  display: none;
}

.app-frame--focus .focus-board {
  overflow-x: visible;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.app-frame--focus .focus-row,
.app-frame--focus .focus-row.is-editing {
  display: grid;
  grid-template-columns: minmax(128px, 1fr) repeat(4, clamp(44px, 12vw, 54px));
  gap: 6px;
  align-items: center;
  min-width: 0;
  margin-bottom: 10px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.app-frame--focus .focus-row.is-editing {
  grid-template-columns: minmax(102px, 1fr) repeat(4, 40px) 30px;
}

.app-frame--focus .focus-row--head {
  margin: 8px 0 10px;
}

.app-frame--focus .focus-row--head span {
  min-height: auto;
  padding: 0;
  border: 0;
  background: transparent;
}

.app-frame--focus .focus-row--head span:first-child {
  align-items: end;
  overflow: visible;
  color: #19172a;
  font-size: 22px;
  line-height: 1.05;
  font-weight: 850;
  white-space: normal;
}

.app-frame--focus .focus-row--head span:not(:first-child) {
  color: #19172a;
  text-align: center;
  font-size: 11px;
  line-height: 1.05;
  font-weight: 800;
}

.app-frame--focus .focus-row--head span:last-child {
  color: #19172a;
  font-size: 20px;
  font-weight: 850;
}

.app-frame--focus .focus-activity span,
.app-frame--focus .focus-activity input,
.app-frame--focus .focus-cell input,
.app-frame--focus .focus-percent {
  min-height: 64px;
  border: 0;
  border-radius: 13px;
  background: #ffffff;
  box-shadow: none;
}

.app-frame--focus .focus-activity span {
  padding: 0 10px;
  color: #19172a;
  font-size: 15px;
  line-height: 1.14;
  font-weight: 400;
}

.app-frame--focus .focus-activity input {
  padding: 0 8px;
  color: #19172a;
  font-size: 14px;
  font-weight: 400;
}

.app-frame--focus .focus-cell input {
  width: 100%;
  padding: 0;
  color: #505050;
  text-align: center;
  font-size: 20px;
  line-height: 1;
  font-style: normal;
  font-weight: 800;
}

.app-frame--focus .focus-row .focus-cell:nth-of-type(2) input {
  color: #999999;
}

.app-frame--focus .focus-row .focus-cell:nth-of-type(4) input {
  color: #0878f2;
  font-style: italic;
}

.app-frame--focus .focus-percent {
  color: #ff0000;
  font-size: 20px;
  line-height: 1;
  font-weight: 850;
}

.app-frame--focus .focus-remove {
  width: 30px;
  height: 30px;
}

.app-frame--focus .focus-add-row {
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  padding: 10px;
  border-radius: 16px;
}

@media (max-width: 390px) {
  .app-frame--dashboard .plan-fact-card {
    grid-template-columns: minmax(0, 1fr) 146px;
    height: 122px;
    min-height: 122px;
    padding: 13px 14px;
  }

  .app-frame--dashboard .plan-fact-card__copy .plan-fact-card__title,
  .app-frame--dashboard .plan-fact-card__copy .plan-fact-card__title > span {
    font-size: 18px;
  }

  .app-frame--dashboard .plan-fact-card__copy strong {
    gap: 8px;
    font-size: 39px;
  }

  .app-frame--dashboard .activity-gauge {
    --gauge-size: 140px;
    min-height: 92px;
  }

  .app-frame--dashboard .activity-gauge__svg {
    height: 92px;
  }

  .app-frame--dashboard .activity-gauge strong {
    top: 40px;
    font-size: 27px;
  }

  .app-frame--dashboard .activity-gauge__label {
    top: 72px;
    font-size: 11px;
  }
}

/* Last layer: focus detail must stay mobile-sized and centered. */
.app-frame--focus .focus-view {
  gap: 12px;
}

.app-frame--focus .focus-week-nav {
  min-height: 74px;
  border-radius: 20px;
}

.app-frame--focus .focus-week-nav__title {
  gap: 12px;
}

.app-frame--focus .focus-week-nav__title span {
  font-size: 22px;
}

.app-frame--focus .focus-week-nav__title strong {
  font-size: 28px;
}

.app-frame--focus .focus-overview {
  padding: 10px 12px;
  border-radius: 17px;
}

.app-frame--focus .focus-overview span {
  font-size: 11px;
}

.app-frame--focus .focus-overview strong {
  font-size: 27px;
}

.app-frame--focus .focus-overview em {
  font-size: 11px;
}

.app-frame--focus .focus-overview__actions .soft-button,
.app-frame--focus .focus-overview__actions .primary-button {
  min-height: 32px;
  padding: 0 8px;
  border-radius: 12px;
  font-size: 11px;
}

.app-frame--focus .focus-row,
.app-frame--focus .focus-row.is-editing {
  grid-template-columns: minmax(132px, 1fr) 44px 48px 48px 62px;
  gap: 5px;
  margin-bottom: 9px;
}

.app-frame--focus .focus-row.is-editing {
  grid-template-columns: minmax(104px, 1fr) 38px 40px 40px 52px 28px;
}

.app-frame--focus .focus-row--head {
  margin: 10px 0 9px;
}

.app-frame--focus .focus-row--head span:first-child {
  font-size: 20px;
  line-height: 1.04;
}

.app-frame--focus .focus-row--head span:not(:first-child) {
  display: grid;
  place-items: end center;
  min-height: 38px;
  font-size: 10px;
  line-height: 1.05;
}

.app-frame--focus .focus-row--head span:last-child {
  font-size: 18px;
  line-height: 1;
}

.app-frame--focus .focus-activity span,
.app-frame--focus .focus-activity input,
.app-frame--focus .focus-cell input,
.app-frame--focus .focus-percent {
  min-height: 58px;
  border-radius: 12px;
}

.app-frame--focus .focus-activity span {
  padding: 0 9px;
  font-size: 14px;
  line-height: 1.12;
}

.app-frame--focus .focus-cell input {
  display: grid;
  place-items: center;
  height: 58px;
  font-size: 18px;
  line-height: 1;
}

.app-frame--focus .focus-percent {
  display: grid;
  place-items: center;
  min-width: 0;
  font-size: 17px;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

@media (max-width: 390px) {
  .app-frame--focus {
    padding-inline: 8px;
  }

  .app-frame--focus .focus-row,
  .app-frame--focus .focus-row.is-editing {
    grid-template-columns: minmax(112px, 1fr) 38px 42px 42px 56px;
    gap: 4px;
  }

  .app-frame--focus .focus-row--head span:first-child {
    font-size: 18px;
  }

  .app-frame--focus .focus-row--head span:not(:first-child) {
    font-size: 9px;
  }

  .app-frame--focus .focus-cell input {
    font-size: 17px;
  }

  .app-frame--focus .focus-percent {
    font-size: 16px;
  }
}

/* Final activity gauge: one centered drawing, no drifting overlay layers. */
.app-frame--dashboard .plan-fact-card__gauge {
  display: grid;
  place-items: center;
  min-width: 0;
  align-self: center;
  transform: translateY(-18px);
}

.app-frame--dashboard .activity-gauge {
  --gauge-size: 150px;
  position: relative;
  width: 150px;
  height: 92px;
  min-height: 92px;
  overflow: hidden;
  transform: none;
  border: 1px solid rgba(203, 219, 240, 0.92);
  border-radius: 19px;
  background:
    radial-gradient(circle at 50% 6%, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0) 58%),
    linear-gradient(180deg, rgba(248, 251, 255, 0.98), rgba(229, 240, 255, 0.86));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.96),
    inset 0 -12px 22px rgba(186, 210, 242, 0.18),
    0 2px 8px rgba(7, 22, 64, 0.04);
}

.app-frame--dashboard .activity-gauge__svg {
  display: block;
  position: relative;
  z-index: 1;
  width: var(--gauge-size);
  height: 92px;
  transform: none;
}

.app-frame--dashboard .activity-gauge__arc {
  fill: none;
  stroke-width: 17.5;
  stroke-linecap: butt;
  shape-rendering: geometricPrecision;
}

.app-frame--dashboard .activity-gauge__arc--red {
  stroke: #ff5368;
  stroke-linecap: round;
}

.app-frame--dashboard .activity-gauge__arc--orange {
  stroke: #ff963b;
}

.app-frame--dashboard .activity-gauge__arc--yellow {
  stroke: #ead727;
}

.app-frame--dashboard .activity-gauge__arc--green {
  stroke: #21c371;
  stroke-linecap: butt;
}

.app-frame--dashboard .activity-gauge__separator {
  fill: none;
  stroke: #ffffff;
  stroke-linecap: butt;
  stroke-width: 3.2;
  shape-rendering: geometricPrecision;
}

.app-frame--dashboard .activity-gauge__separator--right {
  stroke-width: 3;
}

.app-frame--dashboard .activity-gauge__dot-halo {
  fill: rgba(241, 248, 255, 0.98);
  stroke: #ffffff;
  stroke-width: 4.6;
  filter: drop-shadow(0 2px 5px rgba(7, 22, 64, 0.22));
}

.app-frame--dashboard .activity-gauge__dot-core {
  fill: #071640;
  stroke: none;
}

.app-frame--dashboard .activity-gauge__value-number,
.app-frame--dashboard .activity-gauge__value-symbol,
.app-frame--dashboard .activity-gauge__label {
  position: static;
  font-family: inherit;
  text-anchor: middle;
  dominant-baseline: alphabetic;
  pointer-events: none;
  transform: none;
  transform-origin: 0 0;
}

.app-frame--dashboard .activity-gauge__value-symbol {
  fill: #071640;
  font-size: 24px;
  font-weight: 760;
  letter-spacing: 0;
  text-anchor: start;
}

.app-frame--dashboard .activity-gauge__value-number {
  fill: #071640;
  font-size: 45px;
  font-weight: 760;
  letter-spacing: -0.4px;
}

.app-frame--dashboard .activity-gauge__label {
  fill: #697386;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  color: #697386;
}

/* Final focus board polish: lighter typography and centered columns. */
.app-frame--focus .focus-board {
  width: 100%;
  margin-inline: auto;
}

.app-frame--focus .focus-row,
.app-frame--focus .focus-row.is-editing {
  grid-template-columns: minmax(132px, 1fr) 48px 48px 48px 58px;
  align-items: center;
  gap: 5px;
}

.app-frame--focus .focus-row--head {
  align-items: end;
  margin: 8px 0 9px;
}

.app-frame--focus .focus-row--head span:first-child {
  display: grid;
  align-items: end;
  justify-items: start;
  color: #142447;
  font-size: 18px;
  line-height: 1.1;
  font-weight: 600;
}

.app-frame--focus .focus-row--head span:not(:first-child) {
  display: grid;
  place-items: end center;
  color: #142447;
  text-align: center;
  font-size: 10px;
  line-height: 1.08;
  font-weight: 600;
}

.app-frame--focus .focus-row--head span:last-child {
  color: #142447;
  font-size: 17px;
  line-height: 1;
  font-weight: 650;
}

.app-frame--focus .focus-activity span {
  display: grid;
  align-items: center;
  justify-items: start;
  color: #142447;
  font-size: 14px;
  line-height: 1.14;
  font-weight: 400;
}

.app-frame--focus .focus-cell input {
  display: grid;
  place-items: center;
  color: #5f7189;
  text-align: center;
  font-size: 18px;
  font-weight: 600;
}

.app-frame--focus .focus-row .focus-cell:nth-of-type(2) input {
  color: #7b8aa0;
  font-weight: 600;
}

.app-frame--focus .focus-row .focus-cell:nth-of-type(4) input {
  color: #0878f2;
  font-style: normal;
  font-weight: 600;
}

.app-frame--focus .focus-percent {
  display: grid;
  place-items: center;
  color: #ef2e4f;
  text-align: center;
  font-size: 17px;
  font-weight: 650;
  letter-spacing: 0;
}

.app-frame--focus .focus-cell,
.app-frame--focus .focus-cell + .focus-cell {
  border-left: 0;
  border-right: 0;
}

.app-frame--focus .focus-cell input {
  appearance: none;
  -webkit-appearance: none;
  caret-color: #0878f2;
}

.app-frame--focus .focus-cell input::-webkit-inner-spin-button,
.app-frame--focus .focus-cell input::-webkit-outer-spin-button {
  margin: 0;
  -webkit-appearance: none;
}

.app-frame--focus .focus-row.is-editing {
  grid-template-columns: minmax(132px, 1fr) 48px 48px 48px 58px;
}

.app-frame--focus .focus-activity__edit {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 24px;
  align-items: center;
  gap: 6px;
  min-height: 58px;
  padding: 0 9px 0 0;
  border-radius: 12px;
  background: #ffffff;
  overflow: hidden;
}

.app-frame--focus .focus-activity__edit input,
.app-frame--focus .focus-activity__edit textarea {
  min-width: 0;
  width: 100%;
  min-height: 0;
  height: auto;
  padding: 0 0 0 9px;
  border: 0;
  border-radius: 0;
  color: #142447;
  background: transparent;
  box-shadow: none;
  font-size: 14px;
  line-height: 1.14;
  font-weight: 400;
}

.app-frame--focus .focus-activity__edit input {
  text-overflow: ellipsis;
}

.app-frame--focus .focus-activity__edit textarea {
  max-height: 48px;
  overflow: hidden;
  overflow-wrap: anywhere;
  resize: none;
  scrollbar-width: none;
  appearance: none;
  -webkit-appearance: none;
}

.app-frame--focus .focus-activity__edit textarea::-webkit-scrollbar {
  display: none;
}

.app-frame--focus .focus-remove {
  position: static;
  display: grid;
  place-items: center;
  width: 22px;
  min-width: 22px;
  height: 22px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: #ef2e4f;
  background: rgba(239, 46, 79, 0.12);
  box-shadow: none;
  transform: none;
}

.app-frame--focus .focus-remove .icon {
  width: 14px;
  height: 14px;
  stroke-width: 3;
}

.app-frame--focus .focus-add-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 58px;
  align-items: stretch;
  gap: 8px;
  min-width: 0;
  margin-top: 10px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.app-frame--focus .focus-add-row input,
.app-frame--focus .focus-add-row .primary-button {
  width: 100%;
  min-height: 58px;
  height: 58px;
  border-radius: 16px;
}

.app-frame--focus .focus-add-row input {
  padding: 0 18px;
}

.app-frame--focus .focus-add-button {
  display: grid;
  place-items: center;
  min-width: 58px;
  padding: 0;
  font-size: 0;
}

.app-frame--focus .focus-add-button .icon {
  width: 24px;
  height: 24px;
}

/* Final focus history polish: compact square week tiles. */
.app-frame--focus .focus-history {
  padding: 16px;
  border: 0;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 10px 26px rgba(9, 35, 77, 0.04);
}

.app-frame--focus .focus-history .panel-head {
  align-items: center;
  margin-bottom: 12px;
}

.app-frame--focus .focus-history .panel-head h2 {
  color: #071640;
  font-size: 22px;
  line-height: 1;
  font-weight: 720;
  letter-spacing: 0;
}

.app-frame--focus .focus-history .section-pill {
  min-height: 36px;
  padding: 0 18px;
  border: 1px solid rgba(199, 216, 238, 0.95);
  border-radius: 999px;
  color: #142447;
  background: #ffffff;
  font-size: 17px;
  font-weight: 700;
  box-shadow: none;
}

.app-frame--focus .focus-history__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.app-frame--focus .focus-history-card {
  display: grid;
  align-content: center;
  justify-items: start;
  aspect-ratio: 1 / 1;
  min-height: 0;
  padding: 10px 8px;
  border: 1px solid rgba(199, 216, 238, 0.95);
  border-radius: 15px;
  color: #142447;
  text-align: left;
  background: rgba(247, 251, 255, 0.95);
  box-shadow: none;
}

.app-frame--focus .focus-history-card.is-active {
  border-color: rgba(26, 115, 232, 0.62);
  background: rgba(232, 242, 255, 0.98);
  box-shadow: inset 0 0 0 1px rgba(26, 115, 232, 0.18);
}

.app-frame--focus .focus-history-card span,
.app-frame--focus .focus-history-card em {
  color: #627189;
  font-size: 14px;
  line-height: 1.15;
  font-style: normal;
  font-weight: 500;
}

.app-frame--focus .focus-history-card strong {
  margin: 6px 0 4px;
  color: #0878f2;
  font-size: 21px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: 0;
}

/* Contact status menu: replaces the native select popup with an app-styled layer. */
.status-menu {
  position: relative;
  display: grid;
  gap: 7px;
}

.status-menu__label {
  color: #142447;
  font-size: 16px;
  line-height: 1.15;
  font-weight: 500;
}

.status-menu__trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 58px;
  padding: 0 17px 0 20px;
  border: 1px solid rgba(174, 197, 232, 0.95);
  border-radius: 18px;
  color: #071640;
  background: rgba(255, 255, 255, 0.92);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 10px 22px rgba(9, 35, 77, 0.04);
  font: inherit;
  font-size: 17px;
  line-height: 1;
  text-align: left;
}

.status-menu__trigger .icon {
  width: 21px;
  height: 21px;
  color: #142447;
  transition: transform 160ms ease;
}

.status-menu.is-open .status-menu__trigger {
  border-color: rgba(26, 115, 232, 0.62);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 0 0 4px rgba(26, 115, 232, 0.1);
}

.status-menu.is-open .status-menu__trigger .icon {
  transform: rotate(180deg);
}

.status-menu__list {
  position: absolute;
  z-index: 30;
  top: calc(100% + 8px);
  left: 0;
  display: grid;
  gap: 5px;
  width: 100%;
  max-height: min(58vh, 420px);
  padding: 8px;
  border: 1px solid rgba(190, 210, 237, 0.94);
  border-radius: 20px;
  background: rgba(247, 251, 255, 0.98);
  box-shadow: 0 20px 42px rgba(9, 35, 77, 0.18);
  overflow: auto;
}

.status-menu__option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 46px;
  padding: 0 12px 0 14px;
  border: 0;
  border-radius: 14px;
  color: #142447;
  background: transparent;
  font: inherit;
  font-size: 16px;
  line-height: 1.1;
  text-align: left;
}

.status-menu__option:hover,
.status-menu__option:focus-visible {
  background: rgba(226, 239, 255, 0.9);
  outline: none;
}

.status-menu__option.is-active {
  color: #0878f2;
  background: #e6f1ff;
  font-weight: 700;
}

.status-menu__option .icon {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.status-menu--hero {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 20px;
  background: rgba(230, 241, 255, 0.72);
}

.status-menu--hero .status-menu__label {
  color: #69758c;
  font-size: 12px;
  line-height: 1;
  font-weight: 700;
  text-transform: uppercase;
}

.status-menu--hero .status-menu__trigger {
  min-height: 38px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: #071640;
  font-size: 22px;
  font-weight: 800;
}

.status-menu--hero.is-open .status-menu__trigger {
  box-shadow: none;
}

.status-menu--hero .status-menu__list {
  left: 10px;
  width: calc(100% - 20px);
}

.detail-card--history {
  padding: 15px 16px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.58);
  box-shadow: 0 8px 20px rgba(9, 35, 77, 0.035);
}

.detail-card--history h2 {
  margin-bottom: 10px;
  color: #66758d;
  font-size: 22px;
  line-height: 1.08;
  font-weight: 650;
}

.detail-card--history .history-list {
  gap: 7px;
}

.detail-card--history .history-item {
  min-height: 48px;
  padding: 9px 10px;
  border-color: rgba(218, 228, 241, 0.82);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.48);
}

.detail-card--history .item-icon {
  width: 32px;
  height: 32px;
  border-radius: 12px;
  color: #7c8aa1;
  background: rgba(230, 238, 248, 0.74);
}

.detail-card--history .history-item strong {
  color: #66758d;
  font-size: 13px;
  font-weight: 550;
}

.detail-card--history .history-meta {
  color: #8b96a8;
  font-size: 11px;
}

/* Focus week header: month/week on top, date range below. */
.app-frame--focus .focus-week-nav {
  grid-template-columns: 42px minmax(0, 1fr) 42px;
  min-height: 78px;
  padding: 0 10px;
}

.app-frame--focus .focus-week-nav__title {
  display: grid;
  grid-template-columns: auto auto;
  align-content: center;
  align-items: end;
  justify-content: center;
  gap: 3px 12px;
  min-width: 0;
  text-align: center;
  white-space: normal;
}

.app-frame--focus .focus-week-nav__title span,
.app-frame--focus .focus-week-nav__title strong {
  line-height: 1;
}

.app-frame--focus .focus-week-nav__title em {
  grid-column: 1 / -1;
  color: #6b7890;
  font-size: 12px;
  line-height: 1;
  font-style: normal;
  font-weight: 600;
}

/* Client detail status strip: slimmer and slightly inset. */
.status-menu--hero {
  margin: 14px 8px 0;
  padding: 10px 14px 9px;
  border-radius: 18px;
}

.status-menu--hero .status-menu__label {
  font-size: 11px;
}

.status-menu--hero .status-menu__trigger {
  min-height: 30px;
  font-size: 20px;
  font-weight: 760;
}

.status-menu--hero .status-menu__trigger .icon {
  width: 19px;
  height: 19px;
}

.status-menu--hero .status-menu__list {
  left: 8px;
  width: calc(100% - 16px);
}

/* Dashboard outer shell: remove the large backing plate and let cards own the surface. */
body:has(.app-frame--dashboard) {
  background: var(--bg);
}

.app-shell:has(.app-frame--dashboard) {
  width: min(100%, 430px);
  padding: 0;
}

.app-frame--dashboard {
  min-height: 100vh;
  padding: 18px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

/* Focus top navigation: separate home/back action from week paging. */
.app-frame--focus .focus-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 44px;
}

.app-frame--focus .focus-home-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid rgba(202, 217, 235, 0.92);
  border-radius: 999px;
  color: #102449;
  background: #ffffff;
  box-shadow: 0 6px 16px rgba(9, 35, 77, 0.05);
  font-size: 14px;
  font-weight: 700;
}

.app-frame--focus .focus-home-button .icon {
  width: 18px;
  height: 18px;
}

.app-frame--focus .focus-topbar > span {
  color: #627189;
  font-size: 14px;
  font-weight: 700;
}

/* Global app shell cleanup: remove the large outer backing plate on every screen. */
body {
  background: var(--bg);
}

.app-shell {
  padding: 0;
}

.app-frame,
.app-frame--dashboard,
.app-frame--focus {
  min-height: 100vh;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.app-frame {
  padding: 18px;
}

@media (max-width: 480px) {
  .app-frame {
    padding: 16px 14px 22px;
  }
}

/* Remove the global blue backing plate everywhere. */
html,
body {
  background: #ffffff;
}

main#app.app-shell {
  background: transparent;
}

main#app .app-frame,
main#app .app-frame--dashboard,
main#app .app-frame--focus {
  background: transparent;
}

/* Hard override for every page-level backing layer. */
html,
body,
body:has(.app-frame),
body:has(.app-frame--dashboard),
body:has(.app-frame--focus) {
  background: #ffffff !important;
  background-image: none !important;
}

.app-shell,
main#app.app-shell {
  background: transparent !important;
  background-image: none !important;
}

.app-frame,
.app-frame--dashboard,
.app-frame--focus,
main#app .app-frame,
main#app .app-frame--dashboard,
main#app .app-frame--focus {
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
}

/* Focus screen keeps its inner windows after the global backing plate cleanup. */
.app-frame--focus {
  padding: 16px 14px 24px !important;
}

.app-frame--focus .focus-view {
  gap: 14px;
}

.app-frame--focus .focus-week-nav,
.app-frame--focus .focus-overview,
.app-frame--focus .focus-board,
.app-frame--focus .focus-history {
  border: 1px solid rgba(202, 217, 235, 0.86);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.96) !important;
  box-shadow: 0 10px 24px rgba(9, 35, 77, 0.045);
}

.app-frame--focus .focus-week-nav {
  min-height: 78px;
  padding: 0 12px;
}

.app-frame--focus .focus-overview {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
}

.app-frame--focus .focus-board {
  padding: 13px 10px 14px;
  background: rgba(231, 243, 255, 0.9) !important;
  overflow-x: auto;
}

.app-frame--focus .focus-row,
.app-frame--focus .focus-row.is-editing {
  gap: 7px;
  margin-bottom: 10px;
}

.app-frame--focus .focus-row:last-child {
  margin-bottom: 0;
}

.app-frame--focus .focus-row--head {
  margin-bottom: 8px;
}

.app-frame--focus .focus-activity span,
.app-frame--focus .focus-activity input,
.app-frame--focus .focus-cell input,
.app-frame--focus .focus-percent {
  border-radius: 16px;
  background: #ffffff !important;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.9);
}

/* Flat page tint: soft blue background without gradients or an extra backing plate. */
html,
body,
body:has(.app-frame),
body:has(.app-frame--dashboard),
body:has(.app-frame--focus) {
  background: #f1f8ff !important;
  background-image: none !important;
}

main#app.app-shell,
main#app .app-frame,
main#app .app-frame--dashboard,
main#app .app-frame--focus {
  background: #f1f8ff !important;
  background-image: none !important;
}

/* Authentication, session identity, and cloud-save feedback. */
.auth-shell {
  display: grid;
  place-items: center;
  width: 100%;
  min-height: 100svh;
  padding: clamp(18px, 5vw, 48px) 16px;
  background:
    radial-gradient(circle at 50% 0, rgba(77, 163, 255, 0.16), transparent 34rem),
    #f1f8ff;
}

.auth-card {
  width: min(100%, 440px);
  padding: clamp(22px, 6vw, 34px);
  border: 1px solid rgba(202, 217, 235, 0.88);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 24px 58px rgba(9, 35, 77, 0.11);
}

.auth-brand {
  display: grid;
  justify-items: center;
  gap: 8px;
  margin-bottom: 24px;
  color: var(--text-blue);
  text-align: center;
}

.auth-brand .auth-brand__mark {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 18px;
  color: #ffffff;
  background: var(--primary);
  box-shadow: 0 12px 26px rgba(26, 115, 232, 0.24);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.auth-brand__logo {
  display: block;
  width: clamp(126px, 34vw, 148px);
  height: auto;
  border-radius: 22px;
  box-shadow: 0 12px 26px rgba(0, 85, 232, 0.17);
}

.auth-brand h1,
.auth-brand strong {
  margin: 0;
  color: var(--text-blue);
  font-size: clamp(25px, 7vw, 32px);
  line-height: 1.12;
  font-weight: 800;
}

.auth-brand p,
.auth-brand span {
  margin: 0;
  color: var(--secondary);
  font-size: 14px;
}

.auth-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
  margin-bottom: 22px;
  padding: 4px;
  border: 1px solid rgba(202, 217, 235, 0.78);
  border-radius: 17px;
  background: #edf5fd;
}

.auth-tab {
  min-width: 0;
  min-height: 42px;
  padding: 8px 12px;
  border: 0;
  border-radius: 13px;
  color: var(--secondary);
  background: transparent;
  font-weight: 700;
  transition:
    color 160ms ease,
    background 160ms ease,
    box-shadow 160ms ease;
}

.auth-tab:hover,
.auth-tab:focus-visible {
  color: var(--primary);
  outline: none;
}

.auth-tab:focus-visible {
  box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.16);
}

.auth-tab.is-active {
  color: var(--text-blue);
  background: #ffffff;
  box-shadow: 0 4px 12px rgba(9, 35, 77, 0.08);
}

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

.auth-form .field {
  display: grid;
  gap: 7px;
}

.auth-form .field > span,
.auth-form .field > label {
  margin: 0;
  color: var(--secondary);
  font-size: 12px;
  font-weight: 700;
}

.auth-form input {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 16px;
  color: var(--text);
  background: #ffffff;
  box-shadow: var(--shadow-xs);
  outline: none;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease;
}

.auth-form input::placeholder {
  color: #9aa6b8;
}

.auth-form input:focus {
  border-color: rgba(26, 115, 232, 0.62);
  box-shadow: 0 0 0 4px rgba(26, 115, 232, 0.1);
}

.auth-form input[aria-invalid="true"] {
  border-color: rgba(239, 68, 68, 0.62);
  box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.08);
}

.auth-error,
.auth-hint {
  margin: 0;
  padding: 10px 12px;
  border-radius: 13px;
  font-size: 13px;
  line-height: 1.4;
}

.auth-error {
  border: 1px solid rgba(239, 68, 68, 0.2);
  color: #b42318;
  background: var(--danger-soft);
}

.auth-hint {
  border: 1px solid rgba(26, 115, 232, 0.14);
  color: #4f6078;
  background: var(--info-blue);
}

.auth-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 50px;
  margin-top: 3px;
  padding: 0 18px;
  border: 1px solid rgba(37, 99, 235, 0.26);
  border-radius: 16px;
  color: #ffffff;
  background: linear-gradient(180deg, #1a73e8, #0f68dd);
  box-shadow: 0 10px 22px rgba(26, 115, 232, 0.22);
  font-weight: 750;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    opacity 160ms ease;
}

.auth-submit:hover,
.auth-submit:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 13px 28px rgba(26, 115, 232, 0.28);
}

.auth-submit:focus-visible {
  outline: 3px solid rgba(26, 115, 232, 0.18);
  outline-offset: 2px;
}

.auth-submit:disabled {
  cursor: not-allowed;
  opacity: 0.58;
  transform: none;
  box-shadow: none;
}

.session-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  margin-bottom: 14px;
  padding: 10px 12px;
  border: 1px solid rgba(202, 217, 235, 0.84);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 8px 20px rgba(9, 35, 77, 0.045);
}

.session-identity {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.session-identity img,
.session-identity__avatar {
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  border: 1px solid var(--border-light);
  border-radius: 50%;
  background: var(--soft-blue);
  object-fit: cover;
}

.session-identity__copy {
  min-width: 0;
}

.session-identity strong,
.session-identity span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.session-identity strong {
  color: var(--text-blue);
  font-size: 13px;
}

.session-identity span {
  color: var(--secondary);
  font-size: 11px;
}

.logout-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 13px;
  border: 1px solid var(--border);
  border-radius: 13px;
  color: #50617a;
  background: #ffffff;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  transition:
    color 160ms ease,
    border-color 160ms ease,
    background 160ms ease;
}

.logout-button:hover,
.logout-button:focus-visible {
  border-color: rgba(239, 68, 68, 0.28);
  color: #c82929;
  background: #fff7f7;
  outline: none;
}

.logout-button:focus-visible {
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.save-indicator {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 30px;
  padding: 5px 10px;
  border: 1px solid var(--border-light);
  border-radius: 999px;
  color: var(--secondary);
  background: rgba(255, 255, 255, 0.84);
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.save-indicator::before {
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--inactive);
  content: "";
}

.save-indicator.is-saving,
.save-indicator.saving,
.save-indicator[data-state="saving"] {
  border-color: rgba(245, 158, 11, 0.22);
  color: #9a5b00;
  background: var(--warning-soft);
}

.save-indicator.is-saving::before,
.save-indicator.saving::before,
.save-indicator[data-state="saving"]::before {
  border: 2px solid rgba(245, 158, 11, 0.3);
  border-top-color: var(--warning);
  background: transparent;
  animation: save-indicator-spin 800ms linear infinite;
}

.save-indicator.is-saved,
.save-indicator.saved,
.save-indicator[data-state="saved"] {
  border-color: rgba(34, 197, 94, 0.2);
  color: #0f7a4e;
  background: var(--success-soft);
}

.save-indicator.is-saved::before,
.save-indicator.saved::before,
.save-indicator[data-state="saved"]::before {
  background: var(--success);
}

.save-indicator.is-error,
.save-indicator.error,
.save-indicator[data-state="error"] {
  border-color: rgba(239, 68, 68, 0.2);
  color: #b42318;
  background: var(--danger-soft);
}

.save-indicator.is-error::before,
.save-indicator.error::before,
.save-indicator[data-state="error"]::before {
  background: var(--danger);
}

.session-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  flex: 1 1 auto;
  gap: 6px;
}

.session-bar {
  flex-wrap: wrap;
}

.session-action-button {
  min-height: 38px;
  padding: 0 10px;
  border: 1px solid var(--border);
  border-radius: 13px;
  color: var(--primary);
  background: #ffffff;
  font-size: 11px;
  font-weight: 700;
}

.session-action-button:hover,
.session-action-button:focus-visible {
  border-color: rgba(26, 115, 232, 0.34);
  background: var(--soft-blue);
  outline: none;
}

.session-action-button.password-warning {
  border-color: rgba(245, 158, 11, 0.36);
  color: #9a5b00;
  background: var(--warning-soft);
}

.account-modal {
  width: min(100%, 430px);
}

.account-summary {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
  padding: 14px;
  border: 1px solid var(--border-light);
  border-radius: 20px;
  background: var(--soft-blue);
}

.account-summary img {
  width: 58px;
  height: 58px;
  flex: 0 0 auto;
  border: 2px solid #ffffff;
  border-radius: 18px;
  object-fit: cover;
  box-shadow: var(--shadow-xs);
}

.account-summary strong,
.account-summary span,
.account-summary em {
  display: block;
}

.account-summary strong {
  color: var(--text);
  font-size: 18px;
}

.account-summary span,
.account-summary em {
  margin-top: 2px;
  color: var(--secondary);
  font-size: 13px;
  font-style: normal;
}

.account-modal > .save-indicator {
  margin-bottom: 14px;
}

.account-actions {
  display: grid;
  gap: 8px;
}

.account-action {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 11px 12px;
  border: 1px solid var(--border);
  border-radius: 16px;
  color: var(--text-blue);
  background: #ffffff;
  text-align: left;
}

.account-action:hover,
.account-action:focus-visible {
  border-color: rgba(26, 115, 232, 0.34);
  background: var(--soft-blue);
  outline: none;
}

.account-action .icon {
  width: 22px;
  height: 22px;
  justify-self: center;
  color: var(--primary);
}

.account-action span,
.account-action strong,
.account-action em {
  display: block;
}

.account-action strong {
  font-size: 14px;
}

.account-action em {
  margin-top: 2px;
  color: var(--secondary);
  font-size: 11px;
  font-style: normal;
  font-weight: 500;
}

.account-action.password-warning {
  border-color: rgba(245, 158, 11, 0.3);
  background: var(--warning-soft);
}

.account-action--danger,
.account-action--danger .icon {
  color: #c82929;
}

.account-action--danger:hover,
.account-action--danger:focus-visible {
  border-color: rgba(239, 68, 68, 0.28);
  background: #fff7f7;
}

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

@media (max-width: 480px) {
  .auth-shell {
    align-items: start;
    padding: 18px 12px;
  }

  .auth-card {
    padding: 22px 18px;
    border-radius: 24px;
  }

  .auth-brand {
    gap: 10px;
    margin-bottom: 18px;
  }

  .auth-brand__logo {
    width: 132px;
    border-radius: 20px;
  }

  .session-bar {
    align-items: stretch;
    flex-wrap: wrap;
  }

  .session-identity {
    flex: 1 1 190px;
  }

  .logout-button {
    flex: 1 0 auto;
  }

  .save-indicator {
    order: 3;
  }

  .session-actions {
    width: 100%;
  }

  .session-action-button,
  .session-actions .logout-button {
    flex: 1 1 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .auth-tab,
  .auth-submit,
  .logout-button {
    transition: none;
  }

  .save-indicator.is-saving::before,
  .save-indicator.saving::before,
  .save-indicator[data-state="saving"]::before {
    animation: none;
  }
}
