:root {
  --primary: #1769e0;
  --primary-dark: #0d4fae;
  --primary-soft: #eaf3ff;
  --text: #17243d;
  --muted: #748096;
  --line: #e5eaf2;
  --surface: #ffffff;
  --background: #f7f9fc;
  --morning: #2878e8;
  --afternoon: #f59a23;
  --night: #7856d9;
  --exit: #27b5d4;
  --rest: #30ad73;
  --shadow: 0 8px 28px rgba(28, 56, 96, 0.07);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 280px;
  color: var(--text);
  background: var(--background);
  font-family: Tahoma, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

.site-header {
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  width: min(100% - 32px, 720px);
  min-height: 78px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.brand {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  text-decoration: none;
}

.brand-logo {
  flex: 0 0 auto;
  width: 52px;
  height: 46px;
  display: block;
  border-radius: 13px;
  box-shadow: 0 7px 16px rgba(23, 105, 224, 0.24);
  overflow: hidden;
}

.brand-logo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}

.brand-logo img {
  transform: scale(1.7);
}

.brand-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.brand-copy strong {
  color: var(--primary-dark);
  font-size: 14px;
  direction: ltr;
  text-align: right;
}

.brand-copy small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 9px;
  white-space: nowrap;
}

.page-shell {
  width: min(100% - 28px, 620px);
  margin: 20px auto 0;
}

.tool-switcher {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px;
  padding: 5px;
  background: #edf1f7;
  border-radius: 16px;
}

.tool-tab {
  min-width: 0;
  min-height: 45px;
  padding: 8px;
  color: #69758a;
  background: transparent;
  border: 0;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 700;
}

.tool-tab.is-active {
  color: var(--primary-dark);
  background: #fff;
  box-shadow: 0 3px 12px rgba(28, 57, 96, 0.08);
}

.tool-view:not(.is-active) {
  display: none;
}

.intro {
  padding: 34px 8px 25px;
  text-align: center;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--primary);
  font-size: 11px;
  font-weight: 700;
}

.intro h1 {
  margin: 0;
  color: #12223d;
  font-size: clamp(28px, 9vw, 38px);
  line-height: 1.25;
}

.intro p {
  max-width: 440px;
  margin: 10px auto 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.card {
  padding: 20px 17px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.section-heading {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 22px;
}

.step-number {
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  color: var(--primary);
  background: var(--primary-soft);
  border-radius: 11px;
  font-size: 15px;
  font-weight: 800;
}

.section-heading h2,
.section-heading p {
  margin: 0;
}

.section-heading h2 {
  font-size: 16px;
}

.section-heading p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
}

.field-label {
  display: block;
  margin: 0 2px 9px;
  color: #344158;
  font-size: 13px;
  font-weight: 700;
}

.date-field,
.percent-field {
  position: relative;
  width: 100%;
}

input[type="date"],
.percent-field input {
  width: 100%;
  min-width: 0;
  height: 54px;
  padding: 0 15px;
  color: var(--text);
  background: #fafbfd;
  border: 1px solid #dce3ed;
  border-radius: 14px;
  outline: none;
  font-size: 14px;
}

input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(23, 105, 224, 0.11);
}

input[type="date"] {
  direction: rtl;
  text-align: right;
}

.shift-fieldset {
  min-width: 0;
  margin: 21px 0 0;
  padding: 0;
  border: 0;
}

.shift-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.shift-choice {
  position: relative;
  min-width: 0;
  min-height: 105px;
  padding: 13px 5px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: 16px;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
  overflow: hidden;
}

.shift-choice input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.shift-choice strong {
  color: #25324a;
  font-size: 14px;
}

.shift-choice small {
  width: 100%;
  margin-top: 3px;
  color: var(--muted);
  font-size: 8px;
  white-space: nowrap;
}

.shift-choice.morning { color: var(--morning); }
.shift-choice.afternoon { color: var(--afternoon); }
.shift-choice.night { color: var(--night); }

.shift-choice:has(input:checked) {
  border-color: currentColor;
  background: color-mix(in srgb, currentColor 7%, white);
  box-shadow: 0 6px 16px color-mix(in srgb, currentColor 17%, transparent);
  transform: translateY(-2px);
}

.shift-choice:has(input:focus-visible) {
  outline: 3px solid rgba(23, 105, 224, 0.22);
  outline-offset: 2px;
}

.field-error {
  min-height: 17px;
  margin: 5px 3px 0;
  color: #c43c48;
  font-size: 11px;
}

.primary-button,
.secondary-button {
  width: 100%;
  min-height: 53px;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 800;
}

.primary-button {
  color: #fff;
  background: linear-gradient(135deg, #2379eb, #1058c5);
  border: 0;
  box-shadow: 0 9px 20px rgba(23, 105, 224, 0.22);
}

.secondary-button {
  margin-top: 14px;
  color: var(--primary);
  background: #fff;
  border: 1px solid #cfe0f8;
}

.primary-button:active,
.secondary-button:active,
.tool-tab:active {
  transform: scale(0.985);
}

.results {
  margin-top: 18px;
}

.results[hidden] {
  display: none;
}

.month-card {
  padding-top: 0;
  overflow: hidden;
}

.result-heading {
  margin: 0 -17px 19px;
  padding: 18px 17px 16px;
  background: linear-gradient(120deg, #f1f7ff, #fbfdff);
  border-bottom: 1px solid #e4edf9;
}

.result-heading span,
.year-label {
  color: var(--primary);
  font-size: 10px;
  font-weight: 700;
}

.result-heading h2 {
  margin: 4px 0 2px;
  font-size: 20px;
}

.result-heading p,
.year-card-top p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
}

.status-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
}

.status-item {
  grid-column: span 2;
  min-width: 0;
  padding: 12px 4px;
  text-align: center;
  background: #fafbfd;
  border: 1px solid var(--line);
  border-radius: 14px;
}

.status-item:nth-child(4) { grid-column: 2 / span 2; }
.status-item:nth-child(5) { grid-column: 4 / span 2; }

.status-item > span:not(.status-icon) {
  display: block;
  color: #667287;
  font-size: 9px;
  white-space: nowrap;
}

.status-item strong {
  display: block;
  margin-top: 4px;
  color: #1d2a42;
  font-size: 20px;
}

.work-total {
  margin-top: 16px;
  padding: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: var(--primary-soft);
  border-radius: 14px;
  color: var(--primary-dark);
}

.work-total span {
  font-size: 11px;
  font-weight: 700;
}

.work-total strong {
  white-space: nowrap;
  font-size: 12px;
}

.work-total b {
  font-size: 23px;
}

.year-card {
  margin-top: 18px;
  padding: 22px 17px 17px;
  color: #fff;
  background: radial-gradient(circle at 10% 10%, rgba(255,255,255,0.15), transparent 31%), linear-gradient(145deg, #237be9, #0d50b7);
  border-radius: 25px;
  box-shadow: 0 14px 30px rgba(16, 83, 186, 0.24);
}

.year-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.year-card .year-label,
.year-card-top p {
  color: rgba(255,255,255,0.74);
}

.year-card h2 {
  margin: 5px 0 4px;
  font-size: 19px;
}

.total-orb {
  flex: 0 0 auto;
  width: 108px;
  height: 108px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--primary-dark);
  background: #fff;
  border: 6px solid rgba(255,255,255,0.3);
  border-radius: 50%;
  box-shadow: 0 9px 22px rgba(5, 42, 99, 0.25);
}

.total-orb span,
.total-orb small {
  color: #6c7a92;
  font-size: 9px;
}

.total-orb strong {
  font-size: 33px;
  line-height: 1.05;
}

.year-status-grid {
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 16px;
  overflow: hidden;
}

.year-status {
  min-width: 0;
  padding: 11px 2px;
  text-align: center;
  background: rgba(255,255,255,0.08);
  border-left: 1px solid rgba(255,255,255,0.13);
}

.year-status:last-child {
  border-left: 0;
}

.year-status span,
.year-status strong {
  display: block;
}

.year-status span {
  color: rgba(255,255,255,0.72);
  font-size: 8px;
  line-height: 1.35;
  white-space: normal;
}

.year-status strong {
  margin-top: 4px;
  font-size: 17px;
}

.details-section {
  margin-top: 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.accordion-trigger {
  width: 100%;
  min-height: 70px;
  padding: 14px 17px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--text);
  text-align: right;
  background: #fff;
  border: 0;
}

.accordion-trigger span:first-child {
  display: flex;
  flex-direction: column;
}

.accordion-trigger small {
  margin-bottom: 3px;
  color: var(--muted);
  font-size: 9px;
}

.accordion-trigger strong {
  font-size: 15px;
}

.chevron {
  width: 11px;
  height: 11px;
  border-left: 2px solid var(--primary);
  border-bottom: 2px solid var(--primary);
  transform: rotate(-45deg);
  transition: transform 180ms ease;
}

.accordion-trigger[aria-expanded="true"] .chevron {
  transform: rotate(135deg);
}

.months-panel {
  padding: 0 13px 13px;
}

.months-panel[hidden] {
  display: none;
}

.month-detail {
  margin-top: 9px;
  padding: 14px;
  background: #fafbfd;
  border: 1px solid var(--line);
  border-radius: 15px;
}

.month-detail-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.month-detail-head h3 {
  margin: 0;
  font-size: 14px;
}

.month-detail-head span {
  color: var(--primary);
  font-size: 11px;
  font-weight: 800;
}

.month-detail-values {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 4px;
}

.month-detail-value {
  min-width: 0;
  text-align: center;
}

.month-detail-value span,
.month-detail-value strong {
  display: block;
}

.month-detail-value span {
  color: var(--status-color);
  font-size: 9px;
  font-weight: 700;
  white-space: nowrap;
}

.month-detail-value strong {
  margin-top: 3px;
  color: #24324a;
  font-size: 16px;
}

.month-detail-value .status-svg {
  width: 20px;
  height: 20px;
  margin: 0 auto 4px;
}

.notice {
  margin-top: 18px;
  padding: 14px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: #625d39;
  background: #fffbea;
  border: 1px solid #f0e6aa;
  border-radius: 15px;
}

.notice-icon {
  flex: 0 0 auto;
  width: 21px;
  height: 21px;
  display: grid;
  place-items: center;
  color: #8a741d;
  border: 1.5px solid #b49b36;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 800;
}

.notice p {
  margin: 0;
  font-size: 10px;
  line-height: 1.7;
}

.percent-field input {
  padding-left: 50px;
  font-size: 18px;
  font-weight: 700;
}

.percent-field span {
  position: absolute;
  top: 50%;
  left: 17px;
  color: var(--primary);
  transform: translateY(-50%);
  font-weight: 800;
}

.attendance-result-card {
  padding: 27px 20px;
  color: #fff;
  text-align: center;
  background: radial-gradient(circle at 50% 0%, rgba(255,255,255,0.19), transparent 38%), linear-gradient(145deg, #247bea, #0d50b7);
  border-radius: 25px;
  box-shadow: 0 14px 30px rgba(16, 83, 186, 0.24);
}

.attendance-result-card > span {
  display: block;
  color: rgba(255,255,255,0.78);
  font-size: 13px;
}

.attendance-result-card > strong {
  display: block;
  margin: 8px 0 1px;
  font-size: clamp(62px, 20vw, 82px);
  line-height: 1;
}

.attendance-result-card p {
  margin: 7px 0 16px;
  font-size: 12px;
}

.percentage-badge {
  width: fit-content;
  margin: 0 auto;
  padding: 7px 13px;
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: 20px;
  font-size: 10px;
}

footer {
  margin-top: 35px;
  padding: 25px 16px 30px;
  color: #7e899a;
  text-align: center;
  background: #fff;
  border-top: 1px solid var(--line);
}

footer p {
  margin: 0;
  font-size: 10px;
  line-height: 1.7;
}

footer small {
  display: block;
  margin-top: 6px;
  font-size: 9px;
}

@media (max-width: 340px) {
  .header-inner { width: min(100% - 22px, 720px); }
  .page-shell { width: min(100% - 18px, 620px); }
  .brand-copy small { display: none; }
  .card { padding-right: 13px; padding-left: 13px; }
  .result-heading { margin-right: -13px; margin-left: -13px; }
  .shift-options { gap: 5px; }
  .shift-choice { min-height: 100px; }
  .shift-choice small { font-size: 7px; }
  .year-card { padding-right: 13px; padding-left: 13px; }
  .total-orb { width: 96px; height: 96px; }
  .year-card h2 { font-size: 17px; }
  .year-status span { font-size: 7px; }
}

@media (min-width: 680px) {
  .page-shell { margin-top: 28px; }
  .card { padding: 26px; }
  .result-heading { margin-right: -26px; margin-left: -26px; padding-right: 26px; padding-left: 26px; }
  .shift-choice { min-height: 120px; }
  .year-card { padding: 28px; }
  .intro { padding-top: 42px; }
}

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

/* Visual alignment with the supplied MEW calculator reference. */
body {
  background: #fff;
}

.site-header {
  background: #fff;
  border-bottom: 0;
}

.header-inner {
  min-height: 74px;
  direction: ltr;
  justify-content: flex-start;
}

.brand-copy {
  display: none;
}

.brand-logo {
  width: 111px;
  height: 60px;
  background: #fff;
  border-radius: 0;
  box-shadow: none;
}

.brand-logo img {
  transform: scale(1.78);
  filter: brightness(1.16) contrast(1.1);
}

.page-shell {
  width: min(100% - 30px, 660px);
  margin-top: 0;
}

.tool-switcher {
  width: min(100%, 360px);
  margin: 0 auto;
  background: #f2f5fa;
  border: 1px solid #e8edf4;
  border-radius: 13px;
}

.tool-tab {
  min-height: 40px;
}

.tool-tab.is-active {
  color: #075ac9;
  border: 1px solid #e1e7ef;
  box-shadow: 0 4px 10px rgba(25, 57, 101, 0.08);
}

.intro {
  padding: 20px 8px 16px;
}

.eyebrow {
  display: none;
}

.intro h1 {
  color: #073477;
  font-size: clamp(29px, 9vw, 38px);
}

.intro p {
  margin-top: 5px;
  color: #52647d;
  font-size: 12px;
}

.card,
.details-section {
  border-color: #e3e7ee;
  border-radius: 16px;
  box-shadow: 0 5px 16px rgba(29, 50, 80, 0.11);
}

.input-card {
  padding: 16px 18px 17px;
}

.input-card .field-error {
  min-height: 9px;
  margin-top: 2px;
}

.input-step-title {
  width: 100%;
  margin: 0 0 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #0a3477;
}

.input-step-title strong {
  font-size: 16px;
}

.input-step-title small {
  display: block;
  margin-top: 4px;
  color: #64748c;
  font-size: 11px;
  font-weight: 400;
}

.shift-fieldset .input-step-title {
  display: block;
}

.step-icon,
.result-calendar,
.year-calendar {
  width: 23px;
  height: 23px;
  flex: 0 0 auto;
  color: #0877e8;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

input[type="date"] {
  position: absolute;
  inset: 0;
  z-index: 2;
  height: 100%;
  padding: 0;
  opacity: 0;
  cursor: pointer;
}

.date-field {
  height: 53px;
  background: #fff;
  border: 1px solid #d9dfe8;
  border-radius: 11px;
}

.date-field:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(23, 105, 224, 0.11);
}

.date-display {
  position: absolute;
  inset: 0;
  padding: 0 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0b3274;
  pointer-events: none;
}

.date-display-icon {
  position: absolute;
  left: 15px;
  width: 21px;
  height: 21px;
  color: #0b4fa9;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.date-display-value {
  color: #0b3274;
  direction: ltr;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.2px;
}

.shift-fieldset {
  margin-top: 7px;
}

.shift-options {
  gap: 12px;
}

.shift-choice {
  min-height: 90px;
  padding: 8px 4px;
  border-color: #d9dfe8;
  border-radius: 11px;
}

.choice-icon {
  width: 33px;
  height: 33px;
  margin-bottom: 2px;
  color: currentColor;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.choice-icon.is-filled circle {
  fill: currentColor;
}

.shift-choice.night .choice-icon path {
  fill: currentColor;
  stroke: none;
}

.shift-choice strong {
  color: currentColor;
  font-size: 16px;
}

.shift-choice:has(input:checked) {
  background: color-mix(in srgb, currentColor 5%, white);
  border-width: 2px;
  box-shadow: 0 4px 10px color-mix(in srgb, currentColor 12%, transparent);
  transform: none;
}

.primary-button {
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border-radius: 10px;
  font-size: 15px;
}

.button-icon {
  width: 22px;
  height: 22px;
  color: #fff;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.month-card {
  margin-top: 19px;
  padding: 14px 14px 10px;
}

.result-heading {
  margin: 0 0 12px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: transparent;
  border: 0;
}

.month-title-wrap {
  min-width: 0;
  display: flex;
  align-items: flex-start;
  gap: 9px;
}

.result-heading h2 {
  margin: 0 0 4px;
  color: #073477;
  font-size: 19px;
}

.result-heading p {
  color: #5b687b;
  font-size: 10px;
  font-weight: 500;
  white-space: nowrap;
}

.month-total-badge {
  flex: 0 0 auto;
  width: 76px;
  padding: 7px 5px;
  text-align: center;
  background: #eef4ff;
  border-radius: 10px;
}

.month-total-badge strong,
.month-total-badge span {
  display: block;
}

.month-total-badge strong {
  color: #0667db;
  font-size: 27px;
  line-height: 1;
}

.month-total-badge span {
  margin-top: 4px;
  color: #0a3477;
  font-size: 9px;
  font-weight: 700;
}

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

.status-item,
.status-item:nth-child(4),
.status-item:nth-child(5) {
  grid-column: auto;
  min-width: 0;
  min-height: 104px;
  padding: 8px 2px 6px;
  color: var(--status-color);
  background: color-mix(in srgb, var(--status-color) 5%, white);
  border-color: color-mix(in srgb, var(--status-color) 20%, white);
  border-radius: 9px;
}

.status-icon {
  height: 27px;
  display: grid;
  place-items: center;
  color: var(--status-color);
}

.status-svg {
  width: 25px;
  height: 25px;
  color: var(--status-color);
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.status-svg .icon-fill {
  fill: currentColor;
}

.status-item span:not(.status-icon) {
  color: var(--status-color);
  font-size: 9px;
  font-weight: 700;
  white-space: nowrap;
}

.status-item strong {
  margin-top: 2px;
  color: var(--status-color);
  font-size: 23px;
  font-weight: 800;
  line-height: 1.1;
}

.status-item small {
  display: block;
  color: var(--status-color);
  font-size: 9px;
}

.work-total {
  margin-top: 9px;
  padding: 0;
  display: block;
  color: #53637a;
  text-align: center;
  background: transparent;
}

.work-total span {
  font-size: 11px;
}

.year-card {
  margin-top: 18px;
  padding: 16px 15px 13px;
  position: relative;
  background: linear-gradient(145deg, #176ee3, #0751bd);
  border-radius: 16px;
  box-shadow: 0 7px 16px rgba(10, 83, 190, 0.24);
}

.year-card h2 {
  margin: 0 0 5px;
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 17px;
  white-space: nowrap;
}

.year-calendar {
  color: #fff;
}

.year-card-top {
  align-items: flex-start;
}

.year-card-top > div:first-child {
  width: calc(100% - 112px);
  min-width: 0;
}

.year-card-top p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 11px;
}

.total-orb {
  width: 106px;
  height: 106px;
  position: absolute;
  top: 20px;
  left: 14px;
  margin: 0;
  border-width: 0;
  box-shadow: none;
}

.total-orb span {
  display: none;
}

.total-orb strong {
  color: #0647a7;
  font-size: 42px;
  line-height: 0.98;
}

.total-orb small {
  color: #075ac9;
  margin-top: 4px;
  font-size: 11px;
  font-weight: 800;
}

.year-status-grid {
  width: calc(100% - 105px);
  margin-top: 14px;
  margin-right: 0;
  margin-left: auto;
  border: 0;
  border-radius: 7px;
  background: #fff;
}

.year-status {
  padding: 7px 1px 5px;
  color: var(--primary-dark);
  background: #fff;
  border-left-color: #dce4ee;
}

.year-status span,
.year-status strong,
.year-status small {
  color: inherit;
}

.year-status.morning { color: var(--morning); }
.year-status.afternoon { color: var(--afternoon); }
.year-status.night { color: var(--night); }
.year-status.exit { color: var(--exit); }
.year-status.rest { color: var(--rest); }

.year-status span {
  min-height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 8px;
  font-weight: 700;
  line-height: 1.15;
  white-space: normal;
}

.year-status strong {
  margin-top: 2px;
  font-size: 18px;
  line-height: 1.1;
}

.year-status small {
  display: block;
  font-size: 8px;
}

.details-section {
  margin-top: 18px;
  border-radius: 12px;
}

.accordion-trigger {
  min-height: 58px;
  padding: 12px 16px;
  color: #073477;
}

.accordion-trigger strong {
  font-size: 14px;
}

.accordion-trigger strong b {
  font-weight: 700;
}

.notice {
  margin-top: 18px;
  padding: 10px 14px;
  align-items: center;
  color: #4f4a3e;
  background: #fffaf0;
  border-color: #f2dfaf;
  border-radius: 10px;
}

.notice-icon {
  color: #fff;
  background: #f6aa13;
  border-color: #f6aa13;
  border-radius: 6px;
}

.notice p {
  font-size: 11px;
  line-height: 1.65;
}

.notice p strong {
  display: block;
  margin-bottom: 3px;
  color: #b46c05;
  font-size: 11px;
}

.final-actions {
  margin-top: 16px;
  display: block;
}

.final-actions .secondary-button {
  min-height: 50px;
  margin: 0;
  padding: 8px 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #073477;
  background: #fff;
  border: 1px solid #dce3ed;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(28, 50, 80, 0.08);
  font-size: 14px;
  font-weight: 800;
}

.reset-icon {
  width: 23px;
  height: 23px;
  color: #0877e8;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.benefit-card {
  margin-top: 16px;
  padding: 21px 18px 18px;
  text-align: center;
  background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
  border: 1px solid #dce6f3;
  border-radius: 16px;
  box-shadow: 0 5px 16px rgba(29, 50, 80, 0.08);
}

.benefit-card h2,
.benefit-card h3,
.benefit-card p {
  margin: 0;
}

.benefit-card h2 {
  color: #073477;
  font-size: 20px;
}

.benefit-card h3 {
  margin-top: 7px;
  color: #1267cf;
  font-size: 14px;
}

.benefit-card p {
  max-width: 480px;
  margin: 8px auto 15px;
  color: #64748b;
  font-size: 11px;
  line-height: 1.75;
}

.benefit-button {
  min-height: 50px;
  padding: 10px 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-decoration: none;
  background: linear-gradient(135deg, #2379eb, #1058c5);
  border-radius: 10px;
  box-shadow: 0 8px 18px rgba(23, 105, 224, 0.2);
  font-size: 14px;
  font-weight: 800;
}

.benefit-button:focus-visible {
  outline: 3px solid rgba(23, 105, 224, 0.24);
  outline-offset: 3px;
}

footer {
  margin-top: 16px;
  padding-top: 15px;
  background: #fff;
  border-top: 0;
}

footer strong {
  display: block;
  margin-top: 4px;
  color: #2764ae;
  direction: ltr;
  font-size: 11px;
}

@media (max-width: 340px) {
  .brand-logo { width: 98px; height: 54px; }
  .header-inner { min-height: 68px; }
  .page-shell { width: min(100% - 18px, 660px); }
  .input-card { padding-right: 12px; padding-left: 12px; }
  .shift-options { gap: 6px; }
  .month-card { padding-right: 8px; padding-left: 8px; }
  .status-grid { gap: 3px; }
  .status-item span:not(.status-icon) { font-size: 8px; }
  .year-card { padding-right: 10px; padding-left: 10px; }
  .total-orb { width: 92px; height: 92px; top: 24px; left: 8px; }
  .total-orb strong { font-size: 37px; }
  .year-status-grid { width: calc(100% - 90px); }
  .year-card h2 { font-size: 16px; }
  .year-card-top > div:first-child { width: calc(100% - 98px); }
  .final-actions .secondary-button { padding: 7px; font-size: 13px; }
  .benefit-card { padding: 18px 13px 14px; }
  .benefit-card h2 { font-size: 18px; }
}
