/* ===== Design tokens ===== */
:root {
  --ink: #12181F;
  --ink-soft: #1B222C;
  --ink-line: #2A3340;
  --paper: #F3F4F1;
  --paper-line: #E1E3DE;
  --accent: #D6A24C;
  --accent-deep: #B9822F;
  --text-dark: #EDEFF2;
  --text-dark-muted: #8B94A3;
  --text-light: #12181F;
  --text-light-muted: #5B6472;
  --error: #C0392B;
  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: var(--font-body);
  color: var(--text-light);
  background: var(--paper);
}

/* ===== Login screen layout ===== */
.screen {
  min-height: 100vh;
  display: flex;
  flex-direction: row;
}

/* ---- Brand panel ---- */
.brand {
  position: relative;
  flex: 0 0 42%;
  min-height: 320px;
  background: var(--ink);
  color: var(--text-dark);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 48px 40px;
  overflow: hidden;
}

.brand__shaft {
  position: absolute;
  top: 0;
  right: 64px;
  bottom: 0;
  width: 40px;
  display: flex;
  justify-content: space-between;
}

.brand__rail {
  width: 1px;
  background: var(--ink-line);
  height: 100%;
}

.brand__car {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 4%;
  width: 22px;
  height: 34px;
  border-radius: 3px;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(214, 162, 76, 0.12);
  animation: rise 16s ease-in-out infinite;
}

@keyframes rise {
  0%   { top: 4%; }
  50%  { top: 96%; }
  100% { top: 4%; }
}

@media (prefers-reduced-motion: reduce) {
  .brand__car { animation: none; top: 40%; }
}

.brand__floornums {
  position: absolute;
  top: 4%;
  bottom: 4%;
  right: 116px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-end;
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.03em;
  z-index: 1;
}

.brand__floornums span {
  animation-duration: 16s;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}

@media (prefers-reduced-motion: reduce) {
  .brand__floornums span { animation: none; }
}

.brand__floornums span[data-i="0"] { animation-name: glow-0; }
.brand__floornums span[data-i="1"] { animation-name: glow-1; }
.brand__floornums span[data-i="2"] { animation-name: glow-2; }
.brand__floornums span[data-i="3"] { animation-name: glow-3; }
.brand__floornums span[data-i="4"] { animation-name: glow-4; }
.brand__floornums span[data-i="5"] { animation-name: glow-5; }
.brand__floornums span[data-i="6"] { animation-name: glow-6; }
.brand__floornums span[data-i="7"] { animation-name: glow-7; }

.brand__content {
  position: relative;
  z-index: 1;
}

.brand__statement {
  position: relative;
  z-index: 1;
  max-width: 70%;
}

.brand__statement h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 26px;
  line-height: 1.3;
  color: var(--text-dark);
  margin: 0 0 10px;
}

.brand__statement p {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--text-dark-muted);
  margin: 0;
}

.brand__mark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  gap: 100px;
}

.brand__mark span {
  color: var(--accent);
  position: relative;
  top: 6px;
}

.brand__logo {
  height: 24px;
  width: auto;
  display: block;
  filter: brightness(0) invert(1);
}

@keyframes glow-0 {
  0%, 100% { color: var(--accent); font-weight: 600; }
  2%, 98%  { color: var(--text-dark-muted); font-weight: 400; }
}

@keyframes glow-1 {
  0%, 100%     { color: var(--text-dark-muted); font-weight: 400; }
  5.14%        { color: var(--text-dark-muted); font-weight: 400; }
  7.14%        { color: var(--accent); font-weight: 600; }
  9.14%        { color: var(--text-dark-muted); font-weight: 400; }
  90.86%       { color: var(--text-dark-muted); font-weight: 400; }
  92.86%       { color: var(--accent); font-weight: 600; }
  94.86%       { color: var(--text-dark-muted); font-weight: 400; }
}

@keyframes glow-2 {
  0%, 100%   { color: var(--text-dark-muted); font-weight: 400; }
  12.29%     { color: var(--text-dark-muted); font-weight: 400; }
  14.29%     { color: var(--accent); font-weight: 600; }
  16.29%     { color: var(--text-dark-muted); font-weight: 400; }
  83.71%     { color: var(--text-dark-muted); font-weight: 400; }
  85.71%     { color: var(--accent); font-weight: 600; }
  87.71%     { color: var(--text-dark-muted); font-weight: 400; }
}

@keyframes glow-3 {
  0%, 100%   { color: var(--text-dark-muted); font-weight: 400; }
  19.43%     { color: var(--text-dark-muted); font-weight: 400; }
  21.43%     { color: var(--accent); font-weight: 600; }
  23.43%     { color: var(--text-dark-muted); font-weight: 400; }
  76.57%     { color: var(--text-dark-muted); font-weight: 400; }
  78.57%     { color: var(--accent); font-weight: 600; }
  80.57%     { color: var(--text-dark-muted); font-weight: 400; }
}

@keyframes glow-4 {
  0%, 100%   { color: var(--text-dark-muted); font-weight: 400; }
  26.57%     { color: var(--text-dark-muted); font-weight: 400; }
  28.57%     { color: var(--accent); font-weight: 600; }
  30.57%     { color: var(--text-dark-muted); font-weight: 400; }
  69.43%     { color: var(--text-dark-muted); font-weight: 400; }
  71.43%     { color: var(--accent); font-weight: 600; }
  73.43%     { color: var(--text-dark-muted); font-weight: 400; }
}

@keyframes glow-5 {
  0%, 100%   { color: var(--text-dark-muted); font-weight: 400; }
  33.71%     { color: var(--text-dark-muted); font-weight: 400; }
  35.71%     { color: var(--accent); font-weight: 600; }
  37.71%     { color: var(--text-dark-muted); font-weight: 400; }
  62.29%     { color: var(--text-dark-muted); font-weight: 400; }
  64.29%     { color: var(--accent); font-weight: 600; }
  66.29%     { color: var(--text-dark-muted); font-weight: 400; }
}

@keyframes glow-6 {
  0%, 100%   { color: var(--text-dark-muted); font-weight: 400; }
  40.86%     { color: var(--text-dark-muted); font-weight: 400; }
  42.86%     { color: var(--accent); font-weight: 600; }
  44.86%     { color: var(--text-dark-muted); font-weight: 400; }
  55.14%     { color: var(--text-dark-muted); font-weight: 400; }
  57.14%     { color: var(--accent); font-weight: 600; }
  59.14%     { color: var(--text-dark-muted); font-weight: 400; }
}

@keyframes glow-7 {
  0%, 100% { color: var(--text-dark-muted); font-weight: 400; }
  48%      { color: var(--text-dark-muted); font-weight: 400; }
  50%      { color: var(--accent); font-weight: 600; }
  52%      { color: var(--text-dark-muted); font-weight: 400; }
}

.brand__tag {
  margin: 0 0 2px;
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 600;
  line-height: 1.2;
}

.brand__sub {
  margin: 0;
  color: var(--text-dark-muted);
  font-size: 15px;
}

/* ---- Form panel ---- */
.panel {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
  background: var(--paper);
}

.panel__inner {
  width: 100%;
  max-width: 360px;
}

.panel__header h1 {
  font-family: var(--font-display);
  font-size: 28px;
  margin: 0 0 6px;
  color: var(--text-light);
}

.panel__header p {
  margin: 0 0 32px;
  color: var(--text-light-muted);
  font-size: 15px;
}

.field {
  margin-bottom: 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-light);
}

.field input {
  border: 1px solid var(--paper-line);
  background: #fff;
  border-radius: 6px;
  padding: 11px 12px;
  font-size: 15px;
  font-family: var(--font-body);
  color: var(--text-light);
}

.field input:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
  border-color: var(--accent);
}

.error {
  background: rgba(192, 57, 43, 0.08);
  border: 1px solid rgba(192, 57, 43, 0.25);
  color: var(--error);
  font-size: 13.5px;
  padding: 10px 12px;
  border-radius: 6px;
  margin: 4px 0 18px;
}

button#submit-btn {
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 999px;
  background: var(--accent);
  color: var(--ink);
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: background 0.15s ease;
}

button#submit-btn:hover { background: var(--accent-deep); }
button#submit-btn:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
button#submit-btn:disabled { opacity: 0.6; cursor: not-allowed; }

.panel__footer {
  margin-top: 28px;
}

.panel__footer p {
  font-size: 13px;
  color: var(--text-light-muted);
}

@media (max-width: 780px) {
  .screen { flex-direction: column; }
  .brand { flex: none; padding: 32px; min-height: 200px; }
  .brand__shaft { right: 32px; width: 28px; }
  .panel { padding: 40px 24px 60px; }
}

/* ===== Dashboard ===== */
.dash {
  min-height: 100vh;
  background: var(--paper);
}

.dash__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 32px;
  background: var(--ink);
  color: var(--text-dark);
}

.dash__brand {
  display: flex;
  align-items: center;
}

.dash__mark {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.06em;
  font-size: 15px;
}

.dash__welcome {
  margin-left: 16px;
  padding-left: 16px;
  border-left: 1px solid var(--ink-line);
  font-family: var(--font-body);
  font-size: 13.5px;
  color: var(--text-dark-muted);
}

.dash__logout {
  background: transparent;
  border: 1px solid var(--ink-line);
  color: var(--text-dark);
  padding: 8px 14px;
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: 13px;
  cursor: pointer;
}

.dash__logout:hover { border-color: var(--accent); color: var(--accent); }

.dash__main {
  max-width: 1040px;
  margin: 0 auto;
  padding: 40px 24px;
  text-align: left;
}

.icon-btn {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--ink-line);
  border: none;
  color: var(--text-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s ease;
}

.icon-btn:hover { background: var(--ink-soft); color: var(--accent); }

.icon-btn__badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-size: 10.5px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
}

.menu-wrap {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: 48px;
  right: 0;
  background: #fff;
  border: 1px solid var(--paper-line);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
  min-width: 150px;
  overflow: hidden;
  z-index: 20;
}

.dropdown-menu--wide {
  min-width: 220px;
}

.menu-wrap--status {
  width: 220px;
}

.panel-btn--fixed {
  width: 220px;
  justify-content: flex-start;
}

.panel-btn--full {
  width: 100%;
  justify-content: flex-start;
}

.panel-btn--full .panel-btn__chevron {
  margin-left: auto;
}

.dropdown-menu--full {
  width: 100%;
  min-width: 0;
}

.dropdown-menu__item {
  width: 100%;
  text-align: left;
  padding: 11px 14px;
  background: none;
  border: none;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--text-light);
  cursor: pointer;
}

.dropdown-menu__divider {
  height: 1px;
  background: var(--paper-line);
  margin: 4px 0;
}

.dropdown-menu__item:hover { background: var(--paper); }

#account-menu {
  min-width: 220px;
}

.account-menu__profile {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 20px 16px;
  border-bottom: 1px solid var(--paper-line);
}

.account-menu__avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  margin-bottom: 10px;
  overflow: hidden;
  flex-shrink: 0;
}

.account-menu__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.account-menu__name {
  margin: 0 0 2px;
  font-weight: 600;
  font-size: 14px;
  color: var(--text-light);
}

.account-menu__email {
  margin: 0;
  font-size: 12.5px;
  color: var(--text-light-muted);
}

.account-menu__logout-btn {
  display: block;
  width: calc(100% - 24px);
  margin: 12px;
  padding: 10px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  border: none;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 13.5px;
  cursor: pointer;
  text-align: center;
}

.account-menu__logout-btn:hover {
  background: var(--ink-soft);
}

.dropdown-menu__empty {
  padding: 14px;
  font-size: 13px;
  color: var(--text-light-muted);
  text-align: center;
}

.notif-item {
  white-space: normal !important;
  line-height: 1.4;
}

.dash__main h1 {
  font-family: var(--font-display);
  font-size: 30px;
  margin: 0 0 10px;
}

.dash__note {
  color: var(--text-light-muted);
  font-size: 15px;
  line-height: 1.6;
}

.clock-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 28px;
  max-width: 1040px;
  margin: 0 auto;
  padding: 14px 24px;
  background: #fff;
  border-bottom: 1px solid var(--paper-line);
}

.clock-item {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--paper-line);
  border-radius: 8px;
  padding: 8px 14px;
  flex-shrink: 0;
}

.clock-flag {
  width: 26px;
  height: auto;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08);
  display: block;
}

.clock-info {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.clock-country {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-light-muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.clock-time {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-light);
  font-variant-numeric: tabular-nums;
}

@media (max-width: 1040px) {
  .clock-strip { gap: 16px; padding: 12px 20px; }
}

/* ===== Status / Users panel sections ===== */
.panel-section {
  max-width: 1040px;
  margin: 0 auto;
  padding: 16px 24px;
  background: #fff;
  border-bottom: 1px solid var(--paper-line);
  text-align: left;
}

.panel-section__title {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  color: #1B3A6B;
  margin-bottom: 12px;
  cursor: pointer;
  user-select: none;
}

.panel-section__arrow {
  color: #1B3A6B;
}

.panel-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 12px;
}

.panel-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--paper-line);
  border-radius: 8px;
  padding: 10px 16px;
  background: #fff;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--text-light);
  text-decoration: none;
}

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

.panel-btn:hover { border-color: var(--accent); }

.panel-btn--primary {
  background: var(--accent);
  border-color: var(--accent-deep);
  color: var(--ink);
  font-weight: 600;
}

.panel-btn--primary:hover { background: var(--accent-deep); border-color: var(--accent-deep); }

.panel-btn--quiet {
  padding: 8px 14px;
  font-size: 13px;
  color: var(--text-light-muted);
}

.panel-btn--quiet:hover { border-color: var(--accent); color: var(--text-light); }

.panel-btn__external {
  margin-left: 2px;
  flex: 0 0 12px;
  color: var(--text-light-muted);
}

.panel-btn__icon {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
}

.panel-btn__chevron {
  margin-left: 2px;
  color: var(--text-light-muted);
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #3DB54A;
  display: inline-block;
}

.status-dot--online { background: #3DB54A; }
.status-dot--lunch { background: #E08E2B; }
.status-dot--away { background: #8E44AD; }
.status-dot--driving { background: #2E86DE; }
.status-dot--offline { background: #8B3A3A; }

.whos-online-list {
  display: grid;
  grid-auto-flow: column;
  grid-template-rows: repeat(6, auto);
  grid-auto-columns: minmax(200px, 1fr);
  gap: 2px 20px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.whos-online-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 4px;
  border-bottom: 1px solid var(--paper-line);
  font-size: 14px;
  min-width: 0;
}

.whos-online-name {
  color: var(--text-light);
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.whos-online-status {
  padding: 4px 10px;
  border-radius: 5px;
  font-size: 11.5px;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
}

.whos-online-empty {
  color: var(--text-light-muted);
  font-size: 13px;
  padding: 8px 4px;
}

.whos-online-online-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 16px;
}

.whos-online-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 78px;
  text-align: center;
}

.whos-online-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--text-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 13px;
  border: 2px solid #3DB54A;
}

.whos-online-chip-name {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-light);
  margin-top: 5px;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.whos-online-chip-status {
  font-size: 10px;
  font-weight: 600;
  color: #2E9E44;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-top: 1px;
}

.whos-online-offline-label {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  color: var(--text-light-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 8px;
}

.whos-online-offline-list {
  display: grid;
  grid-auto-flow: column;
  grid-template-rows: repeat(8, auto);
  grid-auto-columns: minmax(160px, 1fr);
  gap: 6px 24px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.whos-online-offline-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  color: var(--text-light-muted);
  padding: 3px 0;
}

.whos-online-offline-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #B4B2A9;
  flex: 0 0 6px;
}

.whos-online-offline-lastseen {
  color: #8B94A3;
  font-size: 11.5px;
}

.whos-online-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}

.whos-online-pill {
  border: 1px solid var(--paper-line);
  background: #fff;
  color: var(--text-light-muted);
  font-weight: 600;
  font-size: 11.5px;
  padding: 4px 12px;
  border-radius: 20px;
  cursor: pointer;
  font-family: var(--font-body);
}

.whos-online-pill:hover { border-color: var(--accent-deep); }

.whos-online-pill.is-active {
  background: var(--accent);
  border-color: var(--accent-deep);
  color: var(--ink);
}

.status-option {
  display: flex;
  align-items: center;
  gap: 10px;
}

@media (max-width: 780px) {
  .panel-section { padding: 14px 20px; }
}

/* ===== Admin page ===== */

/* ===== Admin page ===== */
.admin__header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.admin__link {
  color: var(--text-dark-muted);
  font-size: 13px;
  text-decoration: none;
}

.admin__link:hover { color: var(--accent); }

.admin__main { max-width: 560px; }

.admin__card {
  background: #fff;
  border: 1px solid var(--paper-line);
  border-radius: 10px;
  padding: 24px;
  margin-top: 24px;
}

.admin__card h2 {
  font-family: var(--font-display);
  font-size: 17px;
  margin: 0 0 18px;
  color: var(--text-light);
}

.admin__form .field { margin-bottom: 14px; }

.admin__checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  color: var(--text-light-muted);
  margin: 4px 0 18px;
  cursor: pointer;
}

.admin__checkbox input { width: 15px; height: 15px; }

#add-submit-btn {
  width: auto;
  padding: 9px 18px;
  border: none;
  border-radius: 6px;
  background: var(--accent);
  color: var(--ink);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
}

#add-submit-btn:hover { background: var(--accent-deep); }
#add-submit-btn:disabled { opacity: 0.6; cursor: not-allowed; }

.admin__list { display: flex; flex-direction: column; gap: 0; }

.admin__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid var(--paper-line);
}

.admin__row:last-child { border-bottom: none; }

.admin__row-name {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-light);
}

.admin__row-username {
  display: block;
  font-size: 12.5px;
  color: var(--text-light-muted);
  margin-top: 2px;
}

.bonus-type-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  color: var(--accent-deep);
  background: rgba(214, 162, 76, 0.14);
  padding: 2px 8px;
  border-radius: 10px;
  margin-top: 3px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.bonus-summary {
  display: flex;
  gap: 10px;
  margin: 16px 0 14px;
}

.bonus-summary__card {
  flex: 1;
  background: #FAF8F4;
  border: 1px solid var(--paper-line);
  border-radius: 8px;
  padding: 10px 14px;
}

.bonus-summary__label {
  font-size: 10.5px;
  font-weight: 600;
  color: var(--text-light-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 3px;
}

.bonus-summary__value {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  color: var(--text-light);
}

.bonus-list-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin: 4px 0 8px;
}

.bonus-list-header__filter {
  border: 1px solid var(--paper-line);
  border-radius: 6px;
  padding: 4px 8px;
  font-size: 12px;
  width: 140px;
  font-family: var(--font-body);
}

.bonus-list {
  max-height: 300px;
  overflow-y: auto;
  border: 1px solid var(--paper-line);
  border-radius: 8px;
}

.bonus-list__year {
  position: sticky;
  top: 0;
  background: #FAF8F4;
  font-size: 10.5px;
  font-weight: 700;
  color: var(--text-light-muted);
  letter-spacing: 0.05em;
  padding: 6px 14px;
  border-bottom: 1px solid var(--paper-line);
}

.bonus-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border-bottom: 1px solid var(--paper-line);
}

.bonus-row:last-child {
  border-bottom: none;
}

.bonus-row__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex: 0 0 8px;
}

.bonus-row__dot--commission { background: #D6A24C; }
.bonus-row__dot--performance { background: #3DB54A; }
.bonus-row__dot--project { background: #2E86DE; }
.bonus-row__dot--travel-allowance { background: #8E44AD; }
.bonus-row__dot--transportation-allowance { background: #16A085; }

.bonus-row__main {
  flex: 1;
  min-width: 0;
}

.bonus-row__amount {
  font-weight: 700;
  font-size: 14.5px;
  color: var(--text-light);
}

.bonus-row__type {
  font-size: 12px;
  color: var(--text-light-muted);
  margin-left: 6px;
}

.bonus-row__meta {
  font-size: 12px;
  color: var(--text-light-muted);
  margin-top: 1px;
  overflow-wrap: break-word;
  line-height: 1.4;
}

.bonus-row__actions {
  display: flex;
  gap: 6px;
  flex: 0 0 auto;
}

.bonus-row__actions button {
  background: transparent;
  border: 1px solid var(--paper-line);
  color: var(--text-light-muted);
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 11.5px;
  cursor: pointer;
}

.bonus-row__actions .remove {
  color: var(--error);
  border-color: rgba(192, 57, 43, 0.25);
}

.admin__remove-btn {
  background: transparent;
  border: 1px solid var(--paper-line);
  color: var(--error);
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 12.5px;
  cursor: pointer;
}

.admin__remove-btn:hover { border-color: var(--error); background: rgba(192, 57, 43, 0.06); }

.admin__row-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.admin__edit-btn {
  background: transparent;
  border: 1px solid var(--paper-line);
  color: var(--text-light);
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 12.5px;
  cursor: pointer;
}

.admin__edit-btn:hover { border-color: var(--accent-deep); background: rgba(182, 130, 47, 0.08); }

.admin__empty {
  color: var(--text-light-muted);
  font-size: 14px;
}

.bookings-list { display: flex; flex-direction: column; }

.bookings-row__actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.bookings-approve {
  color: #2E9E44 !important;
  border-color: #2E9E44 !important;
}

.bookings-approve:hover { background: rgba(46, 158, 68, 0.06) !important; }

/* ===== Check-in page ===== */
.checkin-page {
  min-height: 100vh;
  background: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}

.checkin-card {
  width: 100%;
  max-width: 420px;
  background: #fff;
  border: 1px solid var(--paper-line);
  border-radius: 10px;
  padding: 32px 28px;
}

.checkin-card h1 {
  font-family: var(--font-display);
  font-size: 22px;
  margin: 0 0 22px;
  color: var(--text-light);
}

.checkin-card select {
  width: 100%;
  padding: 10px 11px;
  border: 1px solid var(--paper-line);
  border-radius: 6px;
  font-size: 14px;
  font-family: var(--font-body);
  background: #fff;
  color: var(--text-light);
}

.checkin-card input[readonly] {
  background: #F7F7F5;
  color: var(--text-light-muted);
}

.checkin-card textarea {
  width: 100%;
  border: 1px solid var(--paper-line);
  border-radius: 6px;
  padding: 10px 11px;
  font-size: 14px;
  font-family: var(--font-body);
  color: var(--text-light);
  resize: vertical;
  box-sizing: border-box;
}

.checkin-alert {
  background: rgba(192, 57, 43, 0.08);
  border: 1px solid rgba(192, 57, 43, 0.3);
  color: var(--error);
  font-size: 13.5px;
  padding: 10px 12px;
  border-radius: 6px;
  margin: 4px 0 16px;
}

.checkin-actions {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.checkin-btn {
  flex: 1;
  padding: 11px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
}

.checkin-btn--ghost {
  background: #fff;
  border: 1px solid var(--paper-line);
  color: var(--text-light-muted);
}

.checkin-btn--ghost:hover { border-color: var(--text-light-muted); }

.checkin-btn--accent {
  background: var(--accent);
  border: none;
  color: var(--ink);
}

.checkin-btn--accent:hover { background: var(--accent-deep); }
.checkin-btn--accent:disabled { opacity: 0.6; cursor: not-allowed; }

/* ===== Modal ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(18, 24, 31, 0.55);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 50;
}

.modal-overlay:not([hidden]) {
  display: flex;
}

.modal-card {
  position: relative;
  width: 100%;
  max-width: 380px;
  background: #fff;
  border-radius: 10px;
  padding: 26px 24px;
}

.modal-close-btn {
  position: absolute;
  top: 16px;
  right: 18px;
  background: none;
  border: none;
  font-size: 22px;
  line-height: 1;
  color: var(--error);
  cursor: pointer;
  padding: 4px;
}

.modal-close-btn:hover {
  opacity: 0.7;
}

.modal-card h2 {
  font-family: var(--font-display);
  font-size: 19px;
  margin: 0 0 8px;
  color: var(--text-light);
}

.modal-card p {
  font-size: 14px;
  color: var(--text-light-muted);
  line-height: 1.5;
  margin: 0;
}

.modal-actions {
  display: flex;
  gap: 10px;
  margin-top: 22px;
}

.bto-card {
  max-width: 520px;
}

.bto-dates {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.bto-card select,
.bto-card textarea {
  width: 100%;
  border: 1px solid var(--paper-line);
  background: #fff;
  border-radius: 6px;
  padding: 10px 11px;
  font-size: 14px;
  font-family: var(--font-body);
  color: var(--text-light);
  box-sizing: border-box;
}

.bto-card input[readonly] {
  background: #F7F7F5;
  color: var(--text-light-muted);
}

.bto-card {
  max-width: 520px;
}

.bto-dates {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.bto-card select,
.bto-card textarea {
  width: 100%;
  border: 1px solid var(--paper-line);
  background: #fff;
  border-radius: 6px;
  padding: 10px 11px;
  font-size: 14px;
  font-family: var(--font-body);
  color: var(--text-light);
  box-sizing: border-box;
}

.bto-card input[readonly] {
  background: #F7F7F5;
  color: var(--text-light-muted);
}

/* ===== Sign-in log table ===== */
.checkins-page {
  max-width: 1400px;
}

.log-filter {
  display: flex;
  align-items: flex-end;
  gap: 14px;
  margin-top: 20px;
}

.log-filter .field {
  margin-bottom: 0;
}

.log-filter__date-field {
  flex-direction: row !important;
  align-items: center;
  gap: 8px;
}

.log-filter input[type="date"] {
  border: 1px solid var(--paper-line);
  background: #fff;
  border-radius: 6px;
  padding: 9px 11px;
  font-size: 14px;
  font-family: var(--font-body);
  color: var(--text-light);
}

.log-filter .checkin-btn {
  flex: 0 0 auto;
  padding: 10px 16px;
}

.table-wrap {
  margin-top: 24px;
  overflow-x: auto;
  border: 1px solid var(--paper-line);
  border-radius: 10px;
  background: #fff;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}

.data-table th {
  text-align: left;
  padding: 12px 14px;
  background: var(--paper);
  color: var(--text-light-muted);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  white-space: nowrap;
  border-bottom: 1px solid var(--paper-line);
}

.data-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--paper-line);
  color: var(--text-light);
  white-space: nowrap;
}

.data-table tbody tr:last-child td {
  border-bottom: none;
}

.data-table tbody tr:hover {
  background: rgba(0, 0, 0, 0.015);
}

.data-table__empty {
  text-align: center;
  color: var(--text-light-muted);
  padding: 28px 14px;
}

.badge {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 600;
}

.badge--late {
  background: rgba(192, 57, 43, 0.1);
  color: var(--error);
}

.badge--ontime {
  background: rgba(46, 158, 68, 0.1);
  color: #2E9E44;
}

.checkin-expand-arrow {
  display: inline-block;
  margin-left: 6px;
  color: var(--text-light-muted);
  font-size: 11px;
}

.employee-name {
  font-weight: 600;
}

.country-flag {
  width: 16px;
  height: auto;
  vertical-align: middle;
  border-radius: 2px;
  margin-right: 4px;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08);
}

.timeline-cell {
  padding: 0 !important;
  background: var(--paper);
}

.timeline {
  padding: 14px 20px 14px 44px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.timeline-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 8px 0;
  border-bottom: 1px solid var(--paper-line);
  white-space: nowrap;
}

.timeline-item:last-child {
  border-bottom: none;
}

.timeline-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 22px;
  font-size: 12px;
  font-weight: 700;
}

.timeline-icon--in {
  background: rgba(46, 158, 68, 0.12);
  color: #2E9E44;
}

.timeline-icon--out {
  background: rgba(192, 57, 43, 0.12);
  color: var(--error);
}

.timeline-icon--status {
  font-size: 9px;
}

.timeline-time {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-light);
  flex: 0 0 165px;
}

.timeline-label {
  flex: 1;
  font-size: 13.5px;
  color: var(--text-light-muted);
  white-space: normal;
}

.timeline-status {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.timeline-note {
  font-size: 12.5px;
  color: var(--text-light-muted);
  font-style: italic;
}

.data-table__row-detail td {
  background: var(--paper);
}

.timeline-entry-cell {
  padding-left: 44px !important;
}

.timeline-entry {
  display: flex;
  align-items: center;
  gap: 14px;
}

.timeline-late-cell,
.timeline-country-cell,
.timeline-reason-cell {
  vertical-align: middle;
}

@media (max-width: 780px) {
  .timeline-item { flex-wrap: wrap; white-space: normal; }
  .timeline-time { flex: 0 0 auto; }
}

/* ===== Calendar page ===== */
.cal-page {
  max-width: 1400px;
}

.cal-tabs {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--paper-line);
  margin-bottom: 20px;
}

.cal-tab {
  padding: 10px 18px;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  color: var(--text-light-muted);
  cursor: pointer;
}

.cal-tab.is-active {
  color: var(--ink);
  border-bottom-color: var(--accent);
}

.cal-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 20px;
}

.cal-toolbar__nav {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cal-nav-btn {
  width: 30px;
  height: 30px;
  border-radius: 6px;
  border: 1px solid var(--paper-line);
  background: #fff;
  color: var(--text-light);
  font-size: 16px;
  cursor: pointer;
}

.cal-nav-btn:hover { border-color: var(--accent); color: var(--accent); }

.cal-month-label {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  color: var(--text-light);
  min-width: 160px;
  text-align: center;
}

.cal-toolbar__filters {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.cal-select {
  border: 1px solid var(--paper-line);
  background: #fff;
  border-radius: 6px;
  padding: 7px 10px;
  font-size: 13.5px;
  font-family: var(--font-body);
  color: var(--text-light);
}

.cal-check {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-light-muted);
  white-space: nowrap;
}

.cal-toolbar__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.cal-toolbar__actions .checkin-btn {
  flex: 0 0 auto;
  padding: 9px 16px;
}

.bto-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 0 0 8px;
}

.bto-title-row h2 {
  margin: 0;
}

.cal-pto-balance {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--error);
  white-space: nowrap;
}

.cal-view-toggle {
  display: flex;
  border: 1px solid var(--paper-line);
  border-radius: 999px;
  overflow: hidden;
}

.cal-view-btn {
  padding: 8px 14px;
  background: #fff;
  border: none;
  font-size: 13px;
  font-family: var(--font-body);
  color: var(--text-light-muted);
  cursor: pointer;
}

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

.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  border: 1px solid var(--paper-line);
  border-radius: 10px;
  overflow: hidden;
  background: var(--paper-line);
  gap: 1px;
}

.cal-head {
  background: var(--paper);
  padding: 10px 12px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--text-light-muted);
}

.cal-cell {
  background: #fff;
  padding: 8px;
  min-height: 90px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.cal-cell--muted {
  background: var(--paper);
}

.cal-cell--weekend {
  background: #E4E5E1;
}

.cal-cell--weekend.cal-cell--muted {
  background: #EAEBE7;
}

.cal-head--weekend {
  background: #DADBD6;
}

.cal-cell--muted .cal-cell__day {
  color: var(--text-light-muted);
  opacity: 0.5;
}

.cal-cell__day {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  color: var(--text-light);
}

.cal-cell__entries {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cal-pill {
  padding: 4px 8px;
  border-radius: 5px;
  font-size: 11.5px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cal-pill--manageable {
  cursor: grab;
  transition: transform 0.1s ease, box-shadow 0.1s ease;
}

.cal-pill--manageable:hover {
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.15);
  transform: translateY(-1px);
}

.cal-pill--manageable:active {
  cursor: grabbing;
}

.cal-grid--week .cal-cell {
  min-height: 320px;
}

.cal-grid--day {
  grid-template-columns: 1fr;
}

.cal-grid--day .cal-cell {
  min-height: 420px;
  padding: 20px;
}

.cal-grid--day .cal-pill {
  white-space: normal;
  font-size: 13px;
  padding: 8px 12px;
}

.cal-cell--today {
  box-shadow: inset 0 0 0 2px var(--accent, #B9822F);
}

.cal-cell__empty {
  color: var(--text-light-muted);
  font-size: 13px;
  font-style: italic;
}

.cal-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 20px;
  margin-top: 20px;
  padding: 16px;
  background: #fff;
  border: 1px solid var(--paper-line);
  border-radius: 10px;
}

.cal-legend__item {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12.5px;
  color: var(--text-light-muted);
}

.cal-legend__swatch {
  width: 12px;
  height: 12px;
  border-radius: 3px;
  flex: 0 0 12px;
}

@media (max-width: 900px) {
  .cal-toolbar { flex-direction: column; align-items: flex-start; }
}

/* =====================================================
   EPROFILE PAGE
===================================================== */

.eprofile-page {
  background: #f4f5f2;
  min-height: 100vh;
  color: #111820;
}

.eprofile {
  width: min(1220px, calc(100% - 48px));
  margin: 0 auto;
  padding: 38px 0 70px;
}

.eprofile-header {
  display: flex;
  align-items: center;
  gap: 22px;
  background: #ffffff;
  border: 1px solid #dde0da;
  border-radius: 16px;
  padding: 24px 26px;
  margin-bottom: 22px;
}

.eprofile-avatar {
  width: 72px;
  height: 72px;

  border-radius: 50%;

  display: flex;
  align-items: center;
  justify-content: center;

  background: #111820;
  color: #ffffff;

  font-size: 22px;
  font-weight: 700;

  flex-shrink: 0;
  overflow: hidden;
}

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

.eprofile-avatar-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.eprofile-photo-btn {
  border: 1px solid #d9ddd6;
  background: #ffffff;
  color: #303741;
  border-radius: 999px;
  padding: 4px 10px;
  font-family: inherit;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
}

.eprofile-photo-btn:hover {
  background: #f6f7f4;
}

.eprofile-header__info {
  min-width: 0;
  flex: 1;
}

.eprofile-header__info h1 {
  margin: 0 0 4px;
  font-size: 25px;
  font-weight: 700;
}

.eprofile-position {
  margin: 0;
  color: #59616d;
  font-size: 14px;
}

.eprofile-header__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 9px 20px;
  margin-top: 11px;
  color: #747b84;
  font-size: 13px;
}

.eprofile-header__actions {
  display: flex;
  gap: 10px;
}

.eprofile-picker {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #ffffff;
  border: 1px solid #dde0da;
  border-radius: 12px;
  padding: 12px 16px;
  margin-bottom: 16px;
  font-size: 13px;
}

.eprofile-picker[hidden] {
  display: none;
}

.eprofile-picker label {
  font-weight: 600;
  color: #555d68;
}

.eprofile-picker select {
  flex: 1;
  max-width: 320px;
  border: 1px solid #d9ddd6;
  border-radius: 8px;
  padding: 8px 10px;
  font-family: inherit;
  font-size: 13px;
}

.eprofile-card {
  background: #ffffff;
  border: 1px solid #dde0da;
  border-radius: 16px;
  padding: 24px 26px;
  margin-bottom: 20px;
}

.eprofile-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 18px;
  margin-bottom: 20px;
  border-bottom: 1px solid #eceee9;
}

.eprofile-card__header h2 {
  margin: 0 0 4px;
  font-size: 17px;
  font-weight: 700;
}

.eprofile-card__header p {
  margin: 0;
  color: #7b8189;
  font-size: 13px;
}

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

.eprofile-field {
  min-width: 0;
}

.eprofile-field--wide {
  grid-column: span 2;
}

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

.eprofile-field label {
  display: block;
  margin-bottom: 7px;
  color: #555d68;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.035em;
}

.eprofile-field input,
.eprofile-field textarea,
.eprofile-field select {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #d9ddd6;
  border-radius: 9px;
  background: #f8f9f7;
  padding: 11px 12px;
  font-family: inherit;
  font-size: 14px;
  color: #151a20;
  outline: none;
}

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

.eprofile-field input[readonly],
.eprofile-field textarea[readonly] {
  cursor: default;
}

.eprofile-field input:not([readonly]):focus,
.eprofile-field textarea:not([readonly]):focus {
  background: #ffffff;
  border-color: #ca942e;
  box-shadow: 0 0 0 3px rgba(202, 148, 46, 0.12);
}

.eprofile-btn {
  border: 0;
  border-radius: 999px;
  min-height: 38px;
  padding: 0 18px;
  cursor: pointer;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
}

.eprofile-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.eprofile-btn--primary {
  background: #dda23d;
  color: #151a20;
}

.eprofile-btn--primary:hover {
  background: #d09635;
}

.eprofile-btn--secondary {
  background: #ffffff;
  border: 1px solid #d9ddd6;
  color: #303741;
}

.eprofile-btn--secondary:hover {
  background: #f6f7f4;
}

.eprofile-badge {
  display: inline-flex;
  align-items: center;
  height: 29px;
  padding: 0 11px;
  border-radius: 999px;
  background: #f4ead6;
  color: #855f18;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.eprofile-checkbox-field {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.eprofile-switch {
  position: relative;
  width: 44px;
  height: 24px;
  margin-bottom: 8px;
}

.eprofile-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.eprofile-switch span {
  position: absolute;
  inset: 0;
  border-radius: 20px;
  background: #d6d9d4;
}

.eprofile-switch span::before {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  left: 3px;
  top: 3px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

.eprofile-switch input:checked + span {
  background: #dda23d;
}

.eprofile-switch input:checked + span::before {
  transform: translateX(20px);
}

.eprofile-inline-form {
  border: 1px solid var(--paper-line);
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 14px;
  background: #FAF8F4;
}

.eprofile-empty {
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px dashed #d8dcd5;
  border-radius: 10px;
  background: #fafbf9;
  color: #92989f;
  font-size: 13px;
}

@media (max-width: 760px) {
  .eprofile {
    width: min(100% - 24px, 1220px);
    padding-top: 18px;
  }
  .eprofile-header {
    align-items: flex-start;
    flex-wrap: wrap;
  }
  .eprofile-header__actions {
    width: 100%;
  }
  .eprofile-header__actions .eprofile-btn {
    flex: 1;
  }
  .eprofile-grid {
    grid-template-columns: 1fr;
  }
  .eprofile-field--wide,
  .eprofile-field--full {
    grid-column: auto;
  }
  .eprofile-card {
    padding: 20px 18px;
  }
  .eprofile-card__header {
    align-items: flex-start;
    flex-direction: column;
  }
}