:root {
  color-scheme: light;
  --iotpv-navy: #081a3c;
  --iotpv-blue: #1764d8;
  --iotpv-orange: #f5a623;
  --iotpv-bg: #eaf0f7;
  --iotpv-card: #ffffff;
  --iotpv-text: #0b1739;
  --iotpv-muted: #60708c;
  --tc-ink: var(--iotpv-text);
  --tc-muted: var(--iotpv-muted);
  --tc-line: #d6e0ed;
  --tc-canvas: var(--iotpv-bg);
  --tc-surface: var(--iotpv-card);
  --tc-soft: #f5f7fb;
  --tc-brand: var(--iotpv-blue);
  --tc-green: #16834a;
  --tc-green-soft: #e8f6ee;
  --tc-orange: #c4510c;
  --tc-orange-soft: #fff0e6;
  --tc-blue: #1768e5;
  --tc-blue-soft: #e9f1ff;
  --tc-red: #d32636;
  --tc-red-soft: #fdecef;
  --tc-yellow: #a85b00;
  --tc-yellow-soft: #fff5d8;
}

* {
  box-sizing: border-box;
  letter-spacing: 0;
}

html {
  min-height: 100%;
  background: var(--tc-canvas);
}

body {
  min-width: 280px;
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  background: var(--tc-canvas);
  color: var(--tc-ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.4;
  text-rendering: optimizeLegibility;
}

button,
input {
  font: inherit;
}

button {
  color: inherit;
}

button:focus-visible,
input:focus-visible {
  outline: 3px solid rgba(64, 145, 255, 0.42);
  outline-offset: 2px;
}

.tc-fa-icon {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.tc-fa-icon > .fas {
  display: none;
}

.tc-fa-icon > .tc-icon-fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.tc-fa-ready .tc-fa-icon > .fas {
  display: inline-block;
}

.tc-fa-ready .tc-fa-icon > .tc-icon-fallback {
  display: none;
}

.tc-app {
  width: 100%;
  max-width: 480px;
  min-height: 100vh;
  min-height: 100svh;
  margin: 0 auto;
  overflow: hidden;
  background: var(--tc-surface);
}

.tc-view,
.tc-tab-view {
  display: none;
}

.tc-view.active,
.tc-tab-view.active {
  display: block;
}

.tc-product-header {
  display: flex;
  min-height: 68px;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  background: var(--iotpv-navy);
  color: #ffffff;
  padding: max(14px, env(safe-area-inset-top)) 20px 14px;
}

.tc-logo {
  display: inline-flex;
  align-items: baseline;
  color: #ffffff;
  font-size: 31px;
  font-weight: 900;
  line-height: 1;
}

.tc-logo-p {
  color: #69a9ff;
}

.tc-logo-v {
  color: var(--iotpv-orange);
}

.tc-header-product {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 7px;
  color: #d8e5f8;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}

.tc-login-card {
  display: flex;
  min-height: calc(100vh - 68px);
  min-height: calc(100svh - 68px);
  flex-direction: column;
  justify-content: center;
  padding: 26px 24px max(22px, env(safe-area-inset-bottom));
}

.tc-clock-block {
  padding: 22px 0 24px;
  text-align: center;
}

.tc-live-clock,
.tc-live-date {
  display: block;
}

.tc-live-clock {
  color: var(--tc-ink);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 56px;
  font-variant-numeric: tabular-nums;
  font-weight: 800;
  line-height: 1.05;
  white-space: nowrap;
}

.tc-live-date {
  color: var(--tc-brand);
  font-size: 17px;
  font-weight: 750;
}

.tc-date-line {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin-top: 8px;
  color: var(--tc-brand);
}

.tc-date-line .tc-fa-icon {
  width: 18px;
  font-size: 14px;
}

.tc-login-form {
  width: 100%;
}

.tc-field {
  margin-bottom: 15px;
}

.tc-field label {
  display: block;
  margin-bottom: 7px;
  color: var(--tc-ink);
  font-size: 15px;
  font-weight: 700;
}

.tc-input-shell {
  position: relative;
}

.tc-input-icon {
  position: absolute;
  top: 50%;
  left: 17px;
  width: 22px;
  transform: translateY(-50%);
  color: #77839a;
  font-size: 19px;
  font-weight: 700;
  text-align: center;
  pointer-events: none;
}

.tc-field input {
  width: 100%;
  min-width: 0;
  min-height: 58px;
  border: 1px solid #cfd8e8;
  border-radius: 8px;
  background: #fbfcfe;
  color: var(--tc-ink);
  font-size: 16px;
  padding: 12px 15px;
}

.tc-input-shell input {
  padding-left: 52px;
}

.tc-field input::placeholder {
  color: #7b879d;
  opacity: 1;
}

.tc-field input:focus {
  border-color: var(--tc-brand);
  background: #ffffff;
}

.tc-btn {
  display: inline-flex;
  width: 100%;
  min-width: 0;
  min-height: 58px;
  align-items: center;
  justify-content: center;
  gap: 11px;
  border: 0;
  border-radius: 8px;
  padding: 12px 18px;
  cursor: pointer;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  transition: filter 140ms ease, transform 140ms ease;
}

.tc-btn:hover:not(:disabled) {
  filter: brightness(0.95);
}

.tc-btn:active:not(:disabled) {
  transform: translateY(1px);
}

.tc-btn:disabled,
.tc-logout-btn:disabled,
.tc-secondary-action:disabled {
  cursor: wait;
  opacity: 0.58;
}

.tc-btn-login {
  margin-top: 7px;
  min-height: 60px;
  background: var(--tc-brand);
  color: #ffffff;
  font-size: 20px;
  text-transform: uppercase;
}

.tc-error {
  min-height: 24px;
  margin-top: 12px;
  color: #b42331;
  font-size: 14px;
  font-weight: 650;
  text-align: center;
}

.tc-login-help {
  margin: 14px 0 0;
  color: var(--tc-muted);
  font-size: 14px;
  text-align: center;
}

.tc-login-help span {
  display: inline-flex;
  width: 20px;
  height: 20px;
  align-items: center;
  justify-content: center;
  margin-right: 4px;
  border: 1px solid #aeb9ca;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 800;
}

.tc-logout-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  cursor: pointer;
  font-size: 16px;
  font-weight: 750;
  padding: 8px 12px;
}

.tc-logout-btn:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
}

.tc-logout-btn .tc-fa-icon {
  width: 18px;
  font-size: 17px;
}

.tc-worker-profile {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid #e4eaf3;
  padding: 15px 20px;
}

.tc-worker-avatar {
  display: flex;
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #dbe8ff;
  color: var(--tc-brand);
  font-size: 18px;
  font-weight: 850;
  text-transform: uppercase;
}

.tc-worker-copy {
  min-width: 0;
}

.tc-worker-name {
  overflow: hidden;
  color: var(--tc-ink);
  font-size: 18px;
  font-weight: 800;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tc-worker-center {
  overflow-wrap: anywhere;
  color: var(--tc-brand);
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
}

.tc-worker-center-line {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
  color: var(--tc-brand);
}

.tc-worker-center-line .tc-fa-icon {
  width: 16px;
  font-size: 13px;
}

.tc-clock-app {
  padding: 24px 20px 19px;
}

.tc-app[data-view="summary"] .tc-worker-profile,
.tc-app[data-view="summary"] .tc-clock-app {
  display: none;
}

.tc-feedback {
  margin: 0 20px 14px;
  border: 1px solid var(--tc-line);
  border-radius: 8px;
  padding: 11px 13px;
  font-size: 15px;
  font-weight: 750;
  text-align: center;
}

.tc-feedback[hidden] {
  display: none;
}

.tc-feedback.is-success {
  border-color: #a7d9bd;
  background: var(--tc-green-soft);
  color: #12633a;
}

.tc-feedback.is-warning {
  border-color: #e7c879;
  background: var(--tc-yellow-soft);
  color: #7a4400;
}

.tc-feedback.is-error {
  border-color: #efafb7;
  background: var(--tc-red-soft);
  color: #a31d2a;
}

.tc-feedback.is-info {
  border-color: #abc8f5;
  background: var(--tc-blue-soft);
  color: #174b9d;
}

.tc-geofence-notice {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0 20px 16px;
  border: 1px solid #abc8f5;
  border-radius: 8px;
  background: var(--tc-blue-soft);
  color: #174b9d;
  padding: 12px 13px;
  font-size: 15px;
  line-height: 1.45;
}

.tc-geofence-notice .tc-fa-icon {
  flex: 0 0 20px;
  margin-top: 2px;
  text-align: center;
}

.tc-geofence-notice[hidden] {
  display: none;
}

.tc-status-panel {
  padding: 2px 20px 20px;
  text-align: center;
}

.tc-status-badge {
  display: inline-flex;
  max-width: 100%;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 999px;
  background: #edf1f6;
  color: #303b50;
  padding: 9px 18px;
  font-size: 24px;
  font-weight: 850;
  line-height: 1.15;
}

.tc-status-dot {
  width: 12px;
  height: 12px;
  flex: 0 0 12px;
  border-radius: 50%;
  background: #7e899b;
}

.tc-status-panel[data-status="working"] .tc-status-badge {
  background: var(--tc-green-soft);
  color: #126b3c;
}

.tc-status-panel[data-status="working"] .tc-status-dot {
  background: var(--tc-green);
}

.tc-status-panel[data-status="break"] .tc-status-badge {
  background: var(--tc-orange-soft);
  color: #9c3d08;
}

.tc-status-panel[data-status="break"] .tc-status-dot {
  background: var(--tc-orange);
}

.tc-status-panel[data-status="unknown"] .tc-status-badge {
  background: var(--tc-yellow-soft);
  color: #7a4400;
}

.tc-status-panel[data-status="unknown"] .tc-status-dot {
  background: #d78600;
}

.tc-status-detail {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 24px;
  margin-top: 9px;
  color: var(--tc-muted);
  font-size: 16px;
  font-variant-numeric: tabular-nums;
}

#tc-duration-segment {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

#tc-duration-segment[hidden] {
  display: none;
}

#tc-current-duration {
  color: var(--tc-ink);
  font-weight: 800;
}

.tc-review-notice {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  margin: 0 20px 16px;
  border: 1px solid #e5c36c;
  border-radius: 8px;
  background: var(--tc-yellow-soft);
  color: #754200;
  padding: 12px 13px;
  font-size: 15px;
}

.tc-review-notice[hidden] {
  display: none;
}

.tc-review-mark {
  display: flex;
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #d78600;
  color: #ffffff;
  font-weight: 900;
}

.tc-actions {
  display: flex;
  flex-direction: column;
  gap: 11px;
  padding: 0 20px 22px;
}

.tc-btn-action {
  min-height: 60px;
  color: #ffffff;
  font-size: 20px;
  text-transform: uppercase;
}

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

.tc-action-icon {
  display: inline-flex;
  width: 26px;
  flex: 0 0 26px;
  align-items: center;
  justify-content: center;
  font-size: 23px;
  line-height: 1;
}

.tc-action-entry {
  background: var(--tc-green);
}

.tc-action-pause {
  background: var(--tc-orange);
}

.tc-action-resume {
  background: var(--tc-blue);
}

.tc-action-end {
  min-height: 60px;
  background: var(--tc-red);
  font-size: 19px;
}

.tc-panel {
  border-top: 1px solid var(--tc-line);
  padding: 20px;
}

.tc-section-head,
.tc-summary-page-head {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.tc-section-title,
.tc-card-title,
.tc-summary-page-head h2 {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: var(--tc-ink);
  font-size: 20px;
  font-weight: 850;
}

.tc-heading-icon {
  width: 23px;
  color: var(--tc-brand);
  font-size: 17px;
}

.tc-link-btn,
.tc-back-btn {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 0;
  background: transparent;
  color: var(--tc-brand);
  cursor: pointer;
  font-size: 15px;
  font-weight: 800;
  padding: 5px 0 5px 10px;
}

.tc-link-btn .tc-fa-icon,
.tc-back-btn .tc-fa-icon {
  width: 17px;
}

.tc-today-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 14px;
}

.tc-today-stat {
  display: flex;
  min-width: 0;
  min-height: 82px;
  flex-direction: column;
  justify-content: center;
  border: 1px solid #e5eaf2;
  border-radius: 8px;
  background: var(--tc-soft);
  padding: 11px 7px;
  text-align: center;
}

.tc-today-label {
  overflow-wrap: anywhere;
  color: var(--tc-muted);
  font-size: 13px;
  font-weight: 700;
}

.tc-today-value {
  margin-top: 5px;
  color: var(--tc-ink);
  font-size: 22px;
  font-variant-numeric: tabular-nums;
  font-weight: 850;
}

.tc-events-list {
  position: relative;
  display: flex;
  flex-direction: column;
  margin-top: 10px;
}

.tc-event {
  position: relative;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  gap: 11px;
  align-items: center;
  min-height: 72px;
  padding: 12px 0;
}

.tc-event:not(:last-child)::after {
  position: absolute;
  top: 46px;
  bottom: -10px;
  left: 16px;
  width: 2px;
  background: #dce3ed;
  content: "";
}

.tc-event-icon {
  display: inline-flex;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  border: 1px solid #d7e0ec;
  border-radius: 50%;
  background: #edf1f6;
  color: #59677e;
  font-size: 14px;
  z-index: 1;
}

.tc-event[data-event="work_start"] .tc-event-icon {
  border-color: #b9dfc9;
  background: var(--tc-green-soft);
  color: var(--tc-green);
}

.tc-event[data-event="break_start"] .tc-event-icon {
  border-color: #f2c6aa;
  background: var(--tc-orange-soft);
  color: var(--tc-orange);
}

.tc-event[data-event="break_end"] .tc-event-icon {
  border-color: #bfd4f5;
  background: var(--tc-blue-soft);
  color: var(--tc-blue);
}

.tc-event[data-event="work_end"] .tc-event-icon {
  border-color: #efbec5;
  background: var(--tc-red-soft);
  color: var(--tc-red);
}

.tc-event-left {
  min-width: 0;
}

.tc-event-label {
  color: var(--tc-ink);
  font-size: 16px;
  font-weight: 800;
}

.tc-event-meta {
  display: flex;
  align-items: center;
  gap: 5px;
  overflow-wrap: anywhere;
  margin-top: 3px;
  color: var(--tc-muted);
  font-size: 13px;
}

.tc-event-meta .tc-fa-icon {
  width: 14px;
  color: #77859c;
  font-size: 11px;
}

.tc-event-flags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}

.tc-event-review,
.tc-event-corrected,
.tc-event-offline {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 28px;
  border-radius: 4px;
  border: 1px solid transparent;
  padding: 3px 7px;
  font-size: 13px;
  font-weight: 750;
  line-height: 1.2;
}

.tc-event-review {
  align-items: flex-start;
  border-color: #e5c36c;
  background: var(--tc-yellow-soft);
  color: #7a4400;
}

.tc-event-review > span:last-child {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.tc-event-review small {
  max-width: 260px;
  font-size: 11px;
  font-weight: 650;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.tc-event-corrected {
  border-color: #9ad8bb;
  background: #eaf8f1;
  color: #126b45;
}

.tc-event-offline {
  border-color: #a8c8e8;
  background: #edf6ff;
  color: #24577f;
}

.tc-event-right {
  color: var(--tc-ink);
  font-size: 16px;
  font-variant-numeric: tabular-nums;
  font-weight: 850;
  white-space: nowrap;
}

.tc-empty {
  color: var(--tc-muted);
  font-size: 14px;
  padding: 14px 0;
  text-align: center;
}

.tc-summary-page-head {
  border-bottom: 1px solid var(--tc-line);
  padding: 18px 20px;
}

.tc-summary-page-head h2 {
  margin-right: auto;
  font-size: 24px;
}

.tc-back-btn {
  padding-left: 0;
  padding-right: 8px;
}

.tc-summary-filters {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
}

.tc-filter-btn {
  min-width: 0;
  min-height: 48px;
  border: 1px solid #d7deea;
  border-radius: 8px;
  background: #ffffff;
  color: #47536a;
  cursor: pointer;
  font-size: 14px;
  font-weight: 750;
  padding: 8px 5px;
}

.tc-filter-btn.active {
  border-color: var(--tc-brand);
  background: var(--tc-blue-soft);
  color: #114bbd;
}

.tc-custom-range {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 16px;
}

.tc-btn-query {
  min-height: 58px;
  background: var(--tc-brand);
  color: #ffffff;
  font-size: 17px;
}

.tc-summary-totals {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 13px;
}

.tc-total-item {
  display: flex;
  min-width: 0;
  min-height: 88px;
  flex-direction: column;
  justify-content: center;
  border: 1px solid #e4e9f1;
  border-radius: 8px;
  background: var(--tc-soft);
  padding: 11px;
}

.tc-total-head {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 7px;
}

.tc-total-icon {
  width: 18px;
  color: var(--tc-brand);
  font-size: 15px;
}

.tc-total-label {
  overflow-wrap: anywhere;
  color: var(--tc-muted);
  font-size: 13px;
}

.tc-total-value {
  margin-top: 6px;
  color: var(--tc-ink);
  font-size: 22px;
  font-variant-numeric: tabular-nums;
  font-weight: 850;
}

.tc-summary-days {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 13px;
}

.tc-day-card {
  border: 1px solid #dde4ee;
  border-radius: 8px;
  padding: 14px;
}

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

.tc-day-date {
  min-width: 0;
  color: var(--tc-ink);
  font-size: 16px;
  font-weight: 800;
}

.tc-day-net {
  color: var(--tc-green);
  font-size: 18px;
  font-variant-numeric: tabular-nums;
  font-weight: 850;
  white-space: nowrap;
}

.tc-day-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
}

.tc-day-item {
  min-width: 0;
  border-radius: 6px;
  background: var(--tc-soft);
  padding: 8px 9px;
}

.tc-day-item-label {
  color: var(--tc-muted);
  font-size: 13px;
}

.tc-day-item-value {
  margin-top: 2px;
  color: var(--tc-ink);
  font-variant-numeric: tabular-nums;
  font-weight: 750;
}

.tc-day-events {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 10px;
  border-top: 1px solid var(--tc-line);
  padding-top: 10px;
}

.tc-summary-event-row {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 2px;
  color: var(--tc-ink);
  font-size: 13px;
  line-height: 1.4;
}

.tc-summary-event-row .tc-event-flags {
  margin-top: 2px;
}

.tc-day-incidents {
  overflow-wrap: anywhere;
  margin-top: 9px;
  border-radius: 6px;
  background: var(--tc-yellow-soft);
  color: #754200;
  padding: 9px;
  font-size: 13px;
}

.tc-report-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  border-top: 1px solid var(--tc-line);
  padding: 16px 20px max(22px, env(safe-area-inset-bottom));
}

.tc-secondary-action {
  display: inline-flex;
  min-width: 0;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid #cfd8e7;
  border-radius: 8px;
  background: #ffffff;
  color: #42506a;
  cursor: pointer;
  font-size: 15px;
  font-weight: 750;
  padding: 8px;
}

.tc-secondary-action .tc-fa-icon {
  width: 18px;
  font-size: 16px;
}

.tc-visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(1px, 1px, 1px, 1px) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
}

@media (max-width: 359px) {
  .tc-login-card,
  .tc-product-header,
  .tc-worker-profile,
  .tc-clock-app,
  .tc-status-panel,
  .tc-actions,
  .tc-panel,
  .tc-summary-page-head,
  .tc-report-actions {
    padding-right: 16px;
    padding-left: 16px;
  }

  .tc-live-clock {
    font-size: 50px;
  }

  .tc-btn-action {
    font-size: 19px;
  }

  .tc-today-summary {
    gap: 5px;
  }

  .tc-today-stat {
    padding-right: 4px;
    padding-left: 4px;
  }
}

@media (min-width: 560px) {
  body {
    padding: 24px 0;
  }

  .tc-app {
    min-height: calc(100vh - 48px);
    min-height: calc(100svh - 48px);
    border: 1px solid #ced8e7;
    border-radius: 8px;
    box-shadow: 0 16px 42px rgba(29, 43, 77, 0.12);
  }

  .tc-login-card {
    min-height: calc(100vh - 116px);
    min-height: calc(100svh - 116px);
    padding-right: 38px;
    padding-left: 38px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tc-btn {
    transition: none;
  }
}

select,
textarea {
  font: inherit;
}

select:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(64, 145, 255, .42);
  outline-offset: 2px;
}

.tc-section-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 4px 12px;
}

.tc-review-form .tc-field select,
.tc-review-form .tc-field textarea {
  width: 100%;
  min-width: 0;
  min-height: 54px;
  border: 1px solid #cfd8e8;
  border-radius: 8px;
  background: #fbfcfe;
  color: var(--tc-ink);
  font-size: 16px;
  padding: 11px 13px;
}

.tc-review-form .tc-field textarea {
  min-height: 112px;
  resize: vertical;
  line-height: 1.45;
}

.tc-review-form .tc-field select:disabled {
  background: #edf1f6;
  color: #64748b;
}

.tc-review-form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}

.tc-review-form .tc-btn-query {
  gap: 8px;
  margin-top: 2px;
}

.tc-review-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.tc-review-entry {
  padding: 13px;
  border: 1px solid #dce4ef;
  border-left: 4px solid #9aa8bb;
  border-radius: 8px;
  background: #fff;
}

.tc-review-entry.is-pending {
  border-left-color: #e3a026;
}

.tc-review-entry.is-approved {
  border-left-color: var(--tc-green);
}

.tc-review-entry.is-rejected {
  border-left-color: var(--tc-red);
}

.tc-review-entry-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.tc-review-entry-head > div {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 3px;
}

.tc-review-entry-head strong {
  color: var(--tc-ink);
  font-size: 15px;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.tc-review-entry-head time {
  color: var(--tc-muted);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.tc-review-state {
  display: inline-flex;
  min-height: 27px;
  align-items: center;
  padding: 4px 7px;
  border-radius: 6px;
  background: #eef1f5;
  color: #526178;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

.tc-review-state.is-pending,
.tc-review-state.is-seen {
  background: var(--tc-yellow-soft);
  color: #754200;
}

.tc-review-state.is-approved,
.tc-review-state.is-acknowledged {
  background: var(--tc-green-soft);
  color: #12653c;
}

.tc-review-state.is-rejected,
.tc-review-state.is-disputed,
.tc-review-state.is-superseded {
  background: var(--tc-red-soft);
  color: #a51d32;
}

.tc-review-entry > p {
  margin: 10px 0 0;
  color: #34435f;
  font-size: 14px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.tc-review-request-meta {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-top: 10px;
  color: var(--tc-muted);
  font-size: 12px;
}

.tc-review-request-meta span {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  overflow-wrap: anywhere;
}

.tc-review-request-meta i {
  width: 14px;
  margin-top: 2px;
  color: var(--tc-brand);
  text-align: center;
}

.tc-review-resolution,
.tc-review-comment {
  margin-top: 10px;
  padding: 9px 10px;
  border-radius: 6px;
  background: var(--tc-soft);
  color: #42506a;
  font-size: 13px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.tc-review-entry-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 12px;
}

.tc-review-entry-actions button,
.tc-dispute-form button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid #cfd8e7;
  border-radius: 7px;
  background: #fff;
  color: #34435f;
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
  padding: 8px 10px;
}

.tc-review-entry-actions button.is-positive {
  border-color: #77bd98;
  color: #12653c;
}

.tc-review-entry-actions button.is-negative {
  border-color: #e1a0aa;
  color: #a51d32;
}

.tc-review-entry-actions button:disabled,
.tc-dispute-form button:disabled {
  cursor: wait;
  opacity: .6;
}

.tc-dispute-form {
  display: grid;
  gap: 8px;
  margin-top: 11px;
  padding: 11px;
  border-radius: 7px;
  background: var(--tc-red-soft);
}

.tc-dispute-form[hidden] {
  display: none;
}

.tc-dispute-form label {
  color: #7f1d2d;
  font-size: 13px;
  font-weight: 800;
}

.tc-dispute-form textarea {
  width: 100%;
  min-height: 88px;
  border: 1px solid #d9a2aa;
  border-radius: 7px;
  background: #fff;
  color: var(--tc-ink);
  padding: 10px;
  resize: vertical;
}

.tc-dispute-form button {
  border-color: var(--tc-red);
  background: var(--tc-red);
  color: #fff;
}

@media (max-width: 420px) {
  .tc-section-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .tc-section-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .tc-section-actions .tc-link-btn {
    min-height: 46px;
    padding-right: 8px;
    padding-left: 0;
  }

  .tc-review-entry-head {
    flex-direction: column;
  }

  .tc-review-state {
    align-self: flex-start;
  }

  .tc-review-entry-actions button {
    flex: 1 1 130px;
  }
}
