:root {
  color-scheme: light;
  --bg: #f5f7f8;
  --panel: #ffffff;
  --panel-strong: #eef3f6;
  --text: #1d252b;
  --muted: #66737d;
  --border: #d8e0e5;
  --accent: #197278;
  --accent-strong: #12565b;
  --danger: #b42318;
  --shadow: 0 12px 36px rgba(29, 37, 43, 0.12);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
  letter-spacing: 0;
}

button,
input,
select {
  font: inherit;
}

button {
  border: 0;
  border-radius: 6px;
  background: var(--accent);
  color: #ffffff;
  cursor: pointer;
  font-weight: 700;
  min-height: 42px;
  padding: 0 16px;
}

button:hover {
  background: var(--accent-strong);
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.58;
}

input,
select {
  border: 1px solid var(--border);
  border-radius: 6px;
  background: #ffffff;
  color: var(--text);
  min-height: 42px;
  padding: 0 12px;
  width: 100%;
}

.app-shell {
  min-height: 100vh;
}

.login-view {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(320px, 420px);
  min-height: 100vh;
}

.brand-panel {
  align-content: center;
  background: linear-gradient(135deg, #0f3d3e, #197278 55%, #74a57f);
  color: #ffffff;
  display: grid;
  padding: 56px;
}

.brand-mark {
  align-items: center;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 8px;
  display: flex;
  font-size: 24px;
  font-weight: 800;
  height: 52px;
  justify-content: center;
  margin-bottom: 28px;
  width: 52px;
}

.brand-panel h1,
.topbar h1 {
  margin: 0;
}

.brand-panel h1 {
  font-size: 48px;
  line-height: 1;
}

.brand-panel p {
  color: rgba(255, 255, 255, 0.82);
  font-size: 18px;
  margin: 16px 0 0;
  max-width: 430px;
}

.login-form {
  align-content: center;
  background: var(--panel);
  display: grid;
  gap: 18px;
  padding: 40px;
}

.login-form label {
  color: var(--muted);
  display: grid;
  font-size: 14px;
  font-weight: 700;
  gap: 8px;
}

.form-error {
  color: var(--danger);
  margin: 0;
}

.tasks-view {
  margin: 0 auto;
  max-width: 1120px;
  padding: 32px 24px;
}

.topbar,
.task-composer,
.toolbar {
  align-items: center;
  display: flex;
  gap: 12px;
}

.topbar {
  justify-content: space-between;
  margin-bottom: 24px;
}

.eyebrow,
.status-line {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

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

.secondary,
.tab,
.icon-button {
  background: var(--panel-strong);
  color: var(--text);
}

.secondary:hover,
.tab:hover,
.icon-button:hover,
.tab.active {
  background: #dce9ed;
}

.task-composer {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 140px 130px;
  margin-bottom: 18px;
  padding: 14px;
}

.toolbar {
  margin-bottom: 8px;
}

.icon-button {
  font-size: 20px;
  min-width: 42px;
  padding: 0;
}

.task-list {
  display: grid;
  gap: 10px;
}

.task-row {
  align-items: center;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 8px;
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(180px, 1fr) 150px 120px 120px;
  min-height: 76px;
  padding: 14px;
}

.task-title {
  font-weight: 800;
  overflow-wrap: anywhere;
}

.task-meta {
  color: var(--muted);
  font-size: 13px;
  margin-top: 4px;
}

.pill {
  background: var(--panel-strong);
  border-radius: 999px;
  color: var(--text);
  display: inline-flex;
  font-size: 12px;
  font-weight: 800;
  justify-content: center;
  min-width: 88px;
  padding: 7px 10px;
}

.empty-state {
  background: var(--panel);
  border: 1px dashed var(--border);
  border-radius: 8px;
  color: var(--muted);
  padding: 28px;
  text-align: center;
}

@media (max-width: 760px) {
  .login-view {
    grid-template-columns: 1fr;
  }

  .brand-panel {
    min-height: 34vh;
    padding: 32px 24px;
  }

  .brand-panel h1 {
    font-size: 38px;
  }

  .login-form {
    align-content: start;
    padding: 28px 24px;
  }

  .tasks-view {
    padding: 20px 14px;
  }

  .topbar,
  .session {
    align-items: flex-start;
    flex-direction: column;
  }

  .task-composer,
  .task-row {
    grid-template-columns: 1fr;
  }
}
