:root {
  color-scheme: light;
  --bg-a: #f8fbff;
  --bg-b: #eaf3ff;
  --bg-c: #ffffff;
  --glass: rgba(255, 255, 255, 0.64);
  --glass-strong: rgba(255, 255, 255, 0.86);
  --text: #152033;
  --muted: #68778e;
  --line: rgba(61, 102, 156, 0.14);
  --line-strong: rgba(68, 118, 185, 0.22);
  --accent: #2875f6;
  --accent-soft: #e9f2ff;
  --accent-strong: #1257c7;
  --warn: #a4680d;
  --danger: #b52b43;
  --ok: #0f7a58;
  --shadow: 0 20px 48px rgba(47, 88, 135, 0.16);
  --shadow-soft: 0 10px 28px rgba(47, 88, 135, 0.11);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg-b);
}

body {
  min-height: 100%;
  margin: 0;
  background:
    radial-gradient(circle at 12% 8%, rgba(49, 123, 255, 0.18), transparent 30%),
    radial-gradient(circle at 90% 16%, rgba(124, 218, 255, 0.22), transparent 30%),
    linear-gradient(135deg, var(--bg-a) 0%, var(--bg-b) 54%, var(--bg-c) 100%);
  background-attachment: fixed;
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

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

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

.page {
  width: min(100%, 430px);
  min-height: 100vh;
  margin: 0 auto;
  padding: calc(18px + env(safe-area-inset-top)) 14px calc(30px + env(safe-area-inset-bottom));
}

.topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin: 2px 0 14px;
}

.eyebrow {
  margin: 0 0 5px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
}

h1,
h2 {
  margin: 0;
  letter-spacing: 0;
}

h1 {
  color: #121c30;
  font-size: 27px;
  line-height: 1.08;
  font-weight: 900;
}

h2 {
  color: #182338;
  font-size: 17px;
  line-height: 1.15;
  margin-bottom: 12px;
  font-weight: 900;
}

.date-pill,
.small-link {
  flex: none;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow-soft), inset 0 1px 0 rgba(255, 255, 255, 0.8);
  color: var(--text);
  padding: 8px 11px;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
  text-decoration: none;
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
}

.small-link {
  color: var(--accent-strong);
}

.panel,
.form-panel {
  background: var(--glass);
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 24px;
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.72);
  padding: 12px;
  margin-bottom: 12px;
  backdrop-filter: blur(24px) saturate(155%);
  -webkit-backdrop-filter: blur(24px) saturate(155%);
}

.form-panel {
  padding: 12px;
}

.field {
  display: grid;
  gap: 6px;
  margin-bottom: 10px;
}

.field span,
.hour-row span {
  color: #263249;
  font-size: 13px;
  font-weight: 800;
}

select,
input,
textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82);
  color: var(--text);
  padding: 9px 12px;
  font-weight: 750;
  outline: none;
}

select {
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, #7b8ba3 50%),
    linear-gradient(135deg, #7b8ba3 50%, transparent 50%);
  background-position:
    calc(100% - 18px) 19px,
    calc(100% - 13px) 19px;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 34px;
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(40, 117, 246, 0.44);
  box-shadow: 0 0 0 4px rgba(40, 117, 246, 0.10), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

textarea {
  min-height: 50px;
  resize: vertical;
  line-height: 1.45;
}

.hours-card {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.70);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.78);
  margin-bottom: 10px;
}

.hour-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 84px;
  align-items: center;
  gap: 10px;
  min-height: 49px;
  padding: 7px 12px;
  border-bottom: 1px solid rgba(62, 94, 133, 0.10);
}

.hour-row:last-child {
  border-bottom: 0;
}

.hour-row select {
  min-height: 36px;
  border-radius: 14px;
  background-color: var(--accent-soft);
  color: var(--accent-strong);
  text-align: center;
  font-size: 16px;
  font-weight: 900;
  padding: 6px 27px 6px 12px;
  background-position:
    calc(100% - 15px) 15px,
    calc(100% - 10px) 15px;
}

.total-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 1px solid rgba(69, 143, 255, 0.24);
  border-radius: 19px;
  background: linear-gradient(135deg, rgba(223, 238, 255, 0.88), rgba(238, 247, 255, 0.78));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.78);
  padding: 12px 15px;
  margin-bottom: 10px;
}

.total-card span {
  color: #1d365e;
  font-weight: 850;
}

.total-card strong {
  color: var(--accent-strong);
  font-size: 24px;
  line-height: 1;
}

.total-card.is-low,
.total-card.is-high {
  border-color: rgba(226, 158, 44, 0.35);
  background: rgba(255, 246, 225, 0.86);
}

.primary-btn {
  display: grid;
  place-items: center;
  width: 100%;
  min-height: 49px;
  border: 0;
  border-radius: 18px;
  background: linear-gradient(135deg, #63b6ff, #276cf6);
  box-shadow: 0 15px 30px rgba(39, 108, 246, 0.25);
  color: #fff;
  font-size: 16px;
  font-weight: 900;
  text-align: center;
  cursor: pointer;
}

.primary-btn:active {
  transform: translateY(1px);
}

.link-btn {
  line-height: 49px;
  text-decoration: none;
}

.alert {
  border-radius: 18px;
  padding: 12px;
  margin-bottom: 12px;
  font-weight: 800;
}

.alert-error {
  border: 1px solid rgba(181, 43, 67, 0.18);
  background: rgba(255, 236, 240, 0.84);
  color: var(--danger);
}

.result-panel {
  text-align: center;
  margin-top: 24px;
  padding: 18px 14px;
}

.success-total {
  color: var(--accent-strong);
  font-size: 39px;
  font-weight: 950;
  margin: 14px 0 4px;
}

.muted,
.empty {
  color: var(--muted);
}

.empty {
  margin: 0;
  font-size: 14px;
}

.mini-list,
.summary-list,
.card-list {
  display: grid;
  gap: 9px;
  margin: 14px 0;
}

.mini-list div,
.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid rgba(62, 94, 133, 0.10);
  padding: 9px 0;
  font-size: 14px;
}

.mini-list div:last-child,
.summary-row:last-child {
  border-bottom: 0;
}

.summary-row span,
.mini-list span {
  color: #24314a;
  font-weight: 750;
}

.summary-row strong,
.mini-list strong {
  color: #101b31;
  font-weight: 900;
  white-space: nowrap;
}

.admin-page {
  max-width: 430px;
}

.date-filter {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 78px;
  gap: 10px;
  margin-bottom: 11px;
}

.date-filter button {
  border: 0;
  border-radius: 17px;
  background: linear-gradient(135deg, #62b3ff, #276cf6);
  box-shadow: 0 12px 24px rgba(39, 108, 246, 0.20);
  color: #fff;
  font-weight: 900;
}

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

.kpis div {
  border: 1px solid rgba(255, 255, 255, 0.70);
  border-radius: 21px;
  background: rgba(255, 255, 255, 0.68);
  box-shadow: var(--shadow-soft), inset 0 1px 0 rgba(255, 255, 255, 0.78);
  padding: 12px 13px;
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
}

.kpis span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 6px;
}

.kpis strong {
  color: #111c32;
  font-size: 28px;
  line-height: 1;
}

.record-card {
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 18px;
  padding: 11px;
  background: rgba(255, 255, 255, 0.66);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.74);
}

.record-card.abnormal {
  border-color: rgba(226, 158, 44, 0.22);
  background: rgba(255, 249, 236, 0.78);
}

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

.record-head strong {
  color: #152033;
  font-size: 16px;
}

.record-head span {
  color: #14223d;
  font-weight: 950;
}

.record-card p {
  margin: 7px 0 0;
  line-height: 1.42;
  font-size: 14px;
}

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

.project-grid div {
  border-radius: 15px;
  background: rgba(233, 242, 255, 0.72);
  padding: 9px;
}

.project-grid span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
  margin-bottom: 3px;
}

.project-grid strong {
  color: #14223d;
  font-size: 16px;
}

.status {
  display: inline-block;
  border-radius: 999px;
  padding: 5px 9px;
  margin: 10px 0 0;
  font-size: 13px;
  font-weight: 850;
}

.status.ok {
  background: rgba(232, 247, 241, 0.88);
  color: var(--ok);
}

.status.warn {
  background: rgba(255, 246, 225, 0.92);
  color: var(--warn);
}

.remark {
  color: var(--muted);
  margin: 8px 0 0;
  line-height: 1.42;
}

.name-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.name-tags span {
  border: 1px solid rgba(62, 128, 244, 0.16);
  border-radius: 999px;
  background: rgba(62, 128, 244, 0.10);
  color: var(--accent-strong);
  padding: 7px 10px;
  font-size: 14px;
  font-weight: 800;
}

.compact-panel {
  padding-bottom: 2px;
}

.choose-panel h2 {
  font-size: 24px;
  margin-bottom: 12px;
}

.identity-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.62);
  box-shadow: var(--shadow-soft), inset 0 1px 0 rgba(255, 255, 255, 0.78);
  padding: 11px 12px;
  margin-bottom: 12px;
}

.identity-card span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 3px;
}

.identity-card strong {
  color: #121c30;
  font-size: 20px;
  font-weight: 950;
}

.identity-card details {
  flex: none;
  margin: 0;
}

.identity-card details[open] {
  flex: 1 1 100%;
}

.identity-card summary {
  border-radius: 999px;
  background: var(--accent-soft);
  padding: 8px 12px;
}

.status-panel h2 {
  margin-bottom: 12px;
}

.hero-status h2 {
  font-size: 27px;
  margin-bottom: 8px;
}

.hero-status.is-working {
  border-color: rgba(40, 117, 246, 0.28);
  background: linear-gradient(135deg, rgba(234, 245, 255, 0.82), rgba(255, 255, 255, 0.64));
}

.hero-status.needs-project {
  border-color: rgba(226, 158, 44, 0.24);
  background: linear-gradient(135deg, rgba(255, 249, 236, 0.86), rgba(255, 255, 255, 0.62));
}

.hero-status.is-done {
  border-color: rgba(27, 191, 139, 0.22);
  background: linear-gradient(135deg, rgba(232, 255, 247, 0.86), rgba(255, 255, 255, 0.62));
}

.duration-line,
.feedback-line,
.tiny-note {
  margin: 7px 0 0;
  font-size: 14px;
  font-weight: 850;
}

.duration-line {
  color: var(--accent-strong);
}

.feedback-line {
  color: var(--ok);
}

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

.status-strip div {
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.56);
  padding: 9px 10px;
}

.status-strip span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  margin-bottom: 4px;
}

.status-strip strong {
  color: #101b31;
  font-size: 17px;
  font-weight: 950;
  white-space: nowrap;
}

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

.status-grid div {
  border: 1px solid rgba(255, 255, 255, 0.68);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.58);
  padding: 10px 11px;
}

.status-grid span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 5px;
}

.status-grid strong {
  color: #101b31;
  font-size: 22px;
  font-weight: 950;
}

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

.punch-grid form {
  margin: 0;
}

.action-panel form {
  margin: 0;
}

.complete-panel {
  display: grid;
  gap: 6px;
  border: 1px solid rgba(27, 191, 139, 0.20);
  border-radius: 20px;
  background: rgba(230, 255, 247, 0.72);
  padding: 15px;
}

.complete-panel strong {
  color: #0d5f47;
  font-size: 18px;
  font-weight: 950;
}

.complete-panel span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

.punch-card {
  width: 100%;
  min-height: 74px;
  border: 1px solid rgba(255, 255, 255, 0.74);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.68);
  box-shadow: var(--shadow-soft), inset 0 1px 0 rgba(255, 255, 255, 0.82);
  color: #14233e;
  font-size: 18px;
  font-weight: 950;
}

.punch-card.primary-action {
  min-height: 118px;
  font-size: 24px;
}

.punch-card.current-card {
  border-color: rgba(40, 117, 246, 0.36);
  background: linear-gradient(135deg, rgba(218, 236, 255, 0.96), rgba(240, 248, 255, 0.88));
  color: var(--accent-strong);
}

.punch-card:active,
.secondary-btn:active,
.mini-btn:active {
  transform: translateY(1px);
}

.clock-card {
  background: linear-gradient(135deg, rgba(231, 246, 255, 0.94), rgba(210, 233, 255, 0.90));
  color: var(--accent-strong);
}

.off-card {
  background: linear-gradient(135deg, rgba(255, 240, 244, 0.94), rgba(255, 225, 232, 0.90));
  color: var(--danger);
}

.secondary-btn,
.mini-btn {
  display: grid;
  place-items: center;
  min-height: 42px;
  border: 1px solid rgba(69, 143, 255, 0.22);
  border-radius: 15px;
  background: rgba(233, 242, 255, 0.86);
  color: var(--accent-strong);
  font-weight: 900;
  text-align: center;
  text-decoration: none;
}

.mini-btn {
  min-height: 38px;
  padding: 0 12px;
}

.inline-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 86px;
  gap: 8px;
  margin-top: 10px;
}

.inline-form button {
  border: 0;
  border-radius: 15px;
  background: var(--danger);
  color: #fff;
  font-weight: 900;
}

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

.edit-grid .field {
  margin-bottom: 0;
}

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

.check-line {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #263249;
  font-size: 13px;
  font-weight: 800;
}

.check-line input {
  width: auto;
  min-height: 0;
}

.timeline-list,
.settings-list {
  display: grid;
  gap: 10px;
}

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

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

.section-head span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
  white-space: nowrap;
}

.timeline-card {
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 19px;
  background: rgba(255, 255, 255, 0.62);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.76);
  padding: 11px;
}

.simple-timeline {
  display: grid;
  gap: 8px;
}

.simple-segment {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 17px;
  background: rgba(255, 255, 255, 0.62);
  padding: 10px;
}

.simple-segment.manual-segment {
  border-color: rgba(226, 158, 44, 0.24);
  background: rgba(255, 249, 236, 0.75);
}

.simple-segment strong,
.simple-segment span {
  display: block;
}

.simple-segment strong {
  color: #14223d;
  font-size: 16px;
  font-weight: 950;
}

.simple-segment span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  margin-top: 3px;
}

.simple-segment em {
  border-radius: 999px;
  background: rgba(62, 128, 244, 0.10);
  color: var(--accent-strong);
  font-size: 12px;
  font-style: normal;
  font-weight: 850;
  padding: 5px 8px;
  white-space: nowrap;
}

.simple-segment details {
  grid-column: 1 / -1;
  margin-top: 0;
}

details {
  margin-top: 9px;
}

details > form,
details > .timeline-list {
  margin-top: 12px;
}

summary {
  color: var(--accent-strong);
  cursor: pointer;
  font-size: 14px;
  font-weight: 900;
}

.split-form {
  border-top: 1px solid rgba(62, 94, 133, 0.10);
  margin-top: 12px;
  padding-top: 12px;
}

.record-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.quick-stats {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 7px;
  margin-bottom: 12px;
}

.quick-stats div {
  border: 1px solid rgba(255, 255, 255, 0.70);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.62);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
  padding: 8px 6px;
  text-align: center;
}

.quick-stats span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  margin-bottom: 4px;
}

.quick-stats strong {
  color: #111c32;
  font-size: 17px;
  font-weight: 950;
  white-space: nowrap;
}

.todo-grid {
  display: grid;
  gap: 9px;
  margin-bottom: 12px;
}

.todo-card {
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.64);
  box-shadow: var(--shadow-soft), inset 0 1px 0 rgba(255, 255, 255, 0.76);
  padding: 11px;
}

.todo-card.has-issue {
  border-color: rgba(226, 158, 44, 0.26);
  background: rgba(255, 249, 236, 0.82);
}

.todo-card.is-clear {
  background: rgba(242, 248, 255, 0.58);
}

.todo-card > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  list-style: none;
}

.todo-card > summary::-webkit-details-marker,
.identity-card summary::-webkit-details-marker {
  display: none;
}

.todo-card > summary span {
  color: #152033;
  font-size: 16px;
  font-weight: 950;
}

.todo-card > summary strong {
  display: grid;
  place-items: center;
  min-width: 34px;
  height: 30px;
  border-radius: 999px;
  background: rgba(40, 117, 246, 0.11);
  color: var(--accent-strong);
  font-size: 17px;
  font-weight: 950;
}

.compact-tags {
  margin-top: 10px;
}

.compact-list {
  display: grid;
  gap: 7px;
  margin-top: 10px;
}

.person-row {
  display: grid;
  gap: 3px;
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.60);
  color: inherit;
  padding: 9px 10px;
  text-decoration: none;
}

.person-row span {
  color: #152033;
  font-weight: 950;
}

.person-row strong {
  color: var(--warn);
  font-size: 13px;
  font-weight: 850;
}

.nested-details {
  margin-top: 10px;
}

.summary-row.is-muted {
  opacity: 0.58;
}

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

.kpis-3 div {
  padding: 10px;
}

.kpis-3 strong {
  font-size: 24px;
}

.export-grid {
  display: grid;
  gap: 9px;
}

.export-grid .primary-btn {
  min-height: 50px;
}

.settings-row {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) 72px;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.58);
  padding: 10px;
}

.settings-row .check-line,
.settings-row .mini-btn {
  grid-column: 1 / -1;
}

.settings-search {
  margin-top: 12px;
}

.compact-date-filter {
  margin-bottom: 12px;
}

.home-hero {
  display: grid;
  gap: 7px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.68);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.78);
  padding: 18px 15px;
  margin-bottom: 12px;
}

.home-hero.has-problem {
  border-color: rgba(226, 158, 44, 0.28);
  background: linear-gradient(135deg, rgba(255, 247, 231, 0.90), rgba(255, 255, 255, 0.66));
}

.home-hero.is-clear {
  border-color: rgba(27, 191, 139, 0.22);
  background: linear-gradient(135deg, rgba(232, 255, 247, 0.88), rgba(255, 255, 255, 0.66));
}

.home-hero span {
  color: var(--accent);
  font-size: 12px;
  font-weight: 850;
}

.home-hero strong {
  color: #111c32;
  font-size: 29px;
  font-weight: 950;
  line-height: 1.08;
}

.home-hero p {
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
  margin: 0;
}

.home-data-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}

.home-data-grid div {
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.70);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.64);
  box-shadow: var(--shadow-soft), inset 0 1px 0 rgba(255, 255, 255, 0.78);
  padding: 10px 8px;
}

.home-data-grid div.is-warning {
  background: rgba(255, 247, 231, 0.86);
}

.home-data-grid span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  margin-bottom: 6px;
  white-space: nowrap;
}

.home-data-grid strong {
  display: block;
  color: #111c32;
  font-size: 19px;
  line-height: 1;
  font-weight: 950;
  white-space: nowrap;
}

.home-snapshot {
  padding: 12px;
}

.home-snapshot .section-head {
  margin-bottom: 10px;
}

.project-pills,
.issue-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.project-pills span,
.issue-pills span {
  border: 1px solid rgba(62, 128, 244, 0.13);
  border-radius: 999px;
  background: rgba(233, 242, 255, 0.74);
  color: #304261;
  padding: 7px 9px;
  font-size: 13px;
  font-weight: 850;
}

.project-pills strong,
.issue-pills strong {
  color: var(--accent-strong);
  font-weight: 950;
}

.issue-pills span.has-count {
  border-color: rgba(226, 158, 44, 0.24);
  background: rgba(255, 247, 231, 0.88);
}

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

.home-project-mini div {
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.56);
  padding: 9px 10px;
}

.home-project-mini span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  margin-bottom: 4px;
}

.home-project-mini strong {
  color: #111c32;
  font-size: 17px;
  font-weight: 950;
}

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

.home-action-card {
  display: grid;
  gap: 7px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.66);
  box-shadow: var(--shadow-soft), inset 0 1px 0 rgba(255, 255, 255, 0.78);
  color: inherit;
  padding: 15px;
  text-decoration: none;
}

.home-action-card.problem-card {
  background: linear-gradient(135deg, rgba(255, 247, 231, 0.88), rgba(255, 255, 255, 0.66));
}

.home-action-card.live-card {
  background: linear-gradient(135deg, rgba(233, 244, 255, 0.90), rgba(255, 255, 255, 0.66));
}

.home-action-card.export-card {
  margin: 0;
}

.home-action-card > span,
.home-action-card summary span {
  color: var(--accent);
  font-size: 13px;
  font-weight: 850;
}

.home-action-card > strong,
.home-action-card summary strong {
  color: #111c32;
  font-size: 25px;
  font-weight: 950;
  line-height: 1.08;
}

.home-action-card > p,
.home-action-card summary p {
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
  margin: 0;
}

.home-action-card summary {
  display: grid;
  gap: 7px;
  list-style: none;
}

.home-action-card summary::-webkit-details-marker {
  display: none;
}

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

.live-card-item {
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 21px;
  background: rgba(255, 255, 255, 0.66);
  box-shadow: var(--shadow-soft), inset 0 1px 0 rgba(255, 255, 255, 0.76);
  padding: 12px;
}

.live-card-item.is-muted {
  opacity: 0.58;
}

.live-card-item span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}

.live-card-item strong {
  display: block;
  color: #111c32;
  font-size: 22px;
  font-weight: 950;
  margin-top: 7px;
}

.live-card-item p {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  margin: 6px 0 0;
}

@media (max-width: 360px) {
  .page {
    padding-left: 10px;
    padding-right: 10px;
  }

  h1 {
    font-size: 24px;
  }

  .hour-row {
    grid-template-columns: minmax(0, 1fr) 78px;
    padding-left: 10px;
    padding-right: 10px;
  }

  .date-filter {
    grid-template-columns: minmax(0, 1fr) 70px;
  }

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

  .punch-card {
    min-height: 68px;
  }

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

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