:root {
  --bg: #edf2f6;
  --bg-deep: #dde6ef;
  --panel: rgba(255, 255, 255, 0.92);
  --panel-strong: #ffffff;
  --line: rgba(24, 36, 60, 0.12);
  --text: #122033;
  --muted: #61708b;
  --accent: #1459c5;
  --accent-deep: #0d4599;
  --teal: #0d8b8b;
  --shadow: 0 20px 50px rgba(27, 50, 86, 0.12);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Century Gothic", CenturyGothic, AppleGothic, "URW Gothic L", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(20, 89, 197, 0.12), transparent 26%),
    radial-gradient(circle at bottom right, rgba(13, 139, 139, 0.1), transparent 22%),
    linear-gradient(135deg, #f6f9fc 0%, var(--bg) 46%, var(--bg-deep) 100%);
}

.login-body {
  display: grid;
  place-items: center;
  padding: 24px;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.shell {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 16px;
  padding: 16px;
}

.sidebar,
.hero,
.card {
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.sidebar {
  border-radius: var(--radius-xl);
  padding: 18px 14px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

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

.brand-mark {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  color: #fff;
  background: linear-gradient(145deg, var(--accent), var(--accent-deep));
  font-family: "Century Gothic", CenturyGothic, AppleGothic, "URW Gothic L", sans-serif;
  font-size: 1.45rem;
  font-weight: 700;
}

.sidebar h1,
.content h2,
.content h3,
.content h4 {
  margin: 0;
  font-family: "Century Gothic", CenturyGothic, AppleGothic, "URW Gothic L", sans-serif;
  letter-spacing: -0.03em;
}

.sidebar h1 {
  font-size: 1.35rem;
}

.brand-copy {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.4;
}

.eyebrow {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.brand-copy,
.hero-copy,
.card p,
.flow-card p,
.list-card p {
  color: var(--muted);
  line-height: 1.6;
}

.sidebar-nav {
  display: grid;
  gap: 8px;
}

.nav-link {
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid transparent;
  font-weight: 700;
  font-size: 0.9rem;
}

.nav-link.active {
  background: linear-gradient(135deg, rgba(20, 89, 197, 0.12), rgba(13, 139, 139, 0.1));
  border-color: rgba(20, 89, 197, 0.14);
}

.content {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.hero {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  border-radius: 20px;
}

.hero h2 {
  font-size: clamp(1.4rem, 2.2vw, 2rem);
  max-width: none;
}

.hero-panel {
  width: min(180px, 100%);
  padding: 12px 14px;
  border-radius: 14px;
  background: linear-gradient(145deg, #1b5fcf, #0d8b8b);
  border: 1px solid transparent;
  color: #fff;
  display: grid;
  place-items: center;
  text-align: center;
}

.hero-panel strong,
.stat-card strong {
  display: block;
  margin-top: 8px;
}

.kpi-grid,
.grid {
  display: grid;
  gap: 18px;
}

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

.kpi-grid.six-up {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

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

.grid.two-up,
.grid.timesheet-layout {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid.timesheet-layout.slim {
  grid-template-columns: minmax(280px, 0.9fr) minmax(220px, 0.55fr);
}

.card {
  padding: 14px;
  border-radius: 18px;
}

.stat-card strong {
  font-size: 1.8rem;
}

.section-head,
.list-top,
.meta-row {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 12px;
}

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(20, 89, 197, 0.11);
  color: var(--accent-deep);
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.pill.subtle {
  background: rgba(13, 139, 139, 0.1);
  color: #0d6f6f;
}

.flow-list,
.stack {
  display: grid;
  gap: 14px;
  margin-top: 14px;
}

.flow-card,
.list-card,
.approval-box {
  padding: 16px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.9);
}

.flow-card {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.flow-card.compact {
  background: rgba(248, 251, 255, 0.95);
}

.flow-step {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(145deg, var(--accent), var(--teal));
  color: #fff;
  font-weight: 800;
}

.meta,
.meta-row {
  color: var(--muted);
  font-size: 0.88rem;
}

.data-table {
  width: 100%;
  margin-top: 14px;
  border-collapse: collapse;
  overflow: hidden;
  border-radius: 16px;
}

.project-table {
  min-width: 960px;
  background: rgba(255, 255, 255, 0.94);
}

.project-table thead th,
.project-table tbody td {
  text-align: center !important;
  vertical-align: middle;
}

.project-code-col,
.project-rate-col {
  width: 90px;
}

.project-name-col,
.project-client-col {
  width: 220px;
}

.project-value-col {
  width: 170px;
}

.team-members-col {
  width: 320px;
}

.table-subhead {
  display: inline-block;
  margin-top: 2px;
  font-size: 0.66rem;
  font-weight: 700;
  line-height: 1.2;
  text-transform: none;
  letter-spacing: 0;
  text-align: center;
  width: 100%;
}

.client-rule-box,
.primary-contact-box {
  margin-top: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(248, 251, 255, 0.94);
}

.primary-contact-box {
  background: rgba(255, 255, 255, 0.96);
}

.client-rule-head {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 12px;
}

.client-rule-head h4 {
  margin: 0;
}

.client-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.client-form-grid label {
  display: grid;
  gap: 6px;
  font-size: 0.84rem;
  font-weight: 700;
}

.client-form-grid label.full {
  grid-column: 1 / -1;
}

.client-form-grid input,
.client-form-grid select {
  width: 100%;
  padding: 9px 10px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.98);
  color: var(--text);
}

.client-form-grid input[readonly] {
  background: rgba(243, 247, 252, 0.98);
  color: var(--muted);
}

.field-asterisk,
.section-star {
  color: #c74646;
  font-style: normal;
  font-weight: 800;
}

.section-star {
  font-size: 1rem;
  line-height: 1;
}

.app-dialog {
  display: none;
  width: min(880px, calc(100vw - 32px));
  padding: 0;
  border: 0;
  border-radius: 22px;
  background: transparent;
}

.app-dialog.is-open,
.app-dialog[open] {
  display: block;
  position: fixed;
  inset: 5vh auto auto 50%;
  transform: translateX(-50%);
  z-index: 1000;
  max-height: 90vh;
  overflow: auto;
}

.app-dialog::backdrop {
  background: rgba(16, 24, 40, 0.42);
}

.dialog-shell {
  margin: 0;
  padding: 18px;
  border-radius: 22px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

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

.dialog-head h3 {
  margin: 0;
}

.dialog-head p {
  margin: 6px 0 0;
}

.dialog-close {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 10px;
  padding: 8px 10px;
  cursor: pointer;
}

.dialog-section + .dialog-section {
  margin-top: 16px;
}

.contact-stack {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}

.table-actions.left {
  justify-content: flex-start;
}

.data-table th,
.data-table td {
  padding: 14px 12px;
  border-bottom: 1px solid rgba(24, 36, 60, 0.08);
  text-align: left;
}

.data-table th {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(245, 248, 252, 0.95);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 14px;
}

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

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

.form-grid input,
.form-grid select,
.form-grid textarea {
  width: 100%;
  padding: 13px 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
  color: var(--text);
  resize: vertical;
}

.approval-box {
  margin-top: 18px;
}

.rule-list {
  margin: 14px 0 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.6;
}

.section-gap {
  margin-top: 26px;
}

.week-toolbar {
  padding: 12px 14px;
}

.week-actions,
.table-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.week-btn {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
  color: var(--text);
  padding: 8px 10px;
  border-radius: 10px;
  font-weight: 700;
  cursor: pointer;
}

.week-btn.active {
  background: linear-gradient(145deg, var(--accent), var(--accent-deep));
  color: #fff;
  border-color: transparent;
}

.calendar-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
  font-weight: 700;
}

.calendar-chip input {
  border: 0;
  background: transparent;
  color: var(--muted);
}

.compact-stack {
  margin-top: 18px;
}

.timesheet-entry-table input,
.timesheet-entry-table select {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.98);
  color: var(--text);
}

.table-actions {
  margin-top: 16px;
  justify-content: flex-end;
}

.matrix-wrap {
  margin-top: 18px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 18px;
}

.matrix-table {
  width: 100%;
  min-width: 1680px;
  border-collapse: collapse;
  background: rgba(255, 255, 255, 0.94);
}

.matrix-table th,
.matrix-table td {
  padding: 14px 12px;
  border-bottom: 1px solid rgba(24, 36, 60, 0.08);
  border-right: 1px solid rgba(24, 36, 60, 0.06);
  vertical-align: top;
}

.matrix-table th {
  background: rgba(245, 248, 252, 0.96);
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.matrix-table th.project-col,
.matrix-table td.project-name,
.matrix-table td.total-label {
  position: sticky;
  left: 0;
  z-index: 2;
  background: rgba(250, 252, 255, 0.98);
}

.matrix-table th.project-col {
  z-index: 3;
}

.project-col {
  min-width: 180px;
}

.day-col {
  min-width: 170px;
}

.total-col {
  min-width: 150px;
}

.project-name {
  font-weight: 800;
}

.day-entry {
  display: grid;
  gap: 10px;
}

.day-entry label {
  display: grid;
  gap: 6px;
}

.day-entry span,
.week-total-box span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.day-entry input {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.98);
  color: var(--text);
}

.week-total-cell,
.day-total-cell,
.grand-total-cell {
  background: rgba(248, 251, 255, 0.92);
}

.week-total-box {
  display: grid;
  gap: 10px;
}

.week-total-box strong {
  display: block;
  margin-top: 4px;
  font-family: "Century Gothic", CenturyGothic, AppleGothic, "URW Gothic L", sans-serif;
  font-size: 1.02rem;
}

.matrix-table tfoot td {
  background: rgba(240, 246, 255, 0.96);
}

.timesheet-page {
  font-size: 0.9rem;
}

.timesheet-page .hero {
  padding: 14px 16px;
  gap: 12px;
}

.timesheet-page .hero h2 {
  font-size: clamp(1.2rem, 2vw, 1.6rem);
}

.timesheet-page .hero-panel {
  width: min(130px, 100%);
  padding: 10px 12px;
}

.timesheet-page .hero-panel strong {
  font-size: 0.92rem;
}

.timesheet-page .hero-panel .eyebrow {
  color: rgba(255, 255, 255, 0.78);
}

.timesheet-page .eyebrow {
  font-size: 0.64rem;
  letter-spacing: 0.12em;
}

.timesheet-page .card {
  padding: 12px;
}

.timesheet-page .week-toolbar {
  padding: 10px 12px;
}

.timesheet-page .week-btn,
.timesheet-page .calendar-chip {
  padding: 8px 10px;
  font-size: 0.82rem;
}

.timesheet-page .pill {
  padding: 5px 8px;
  font-size: 0.66rem;
}

.timesheet-page .section-head h3 {
  font-size: 1.05rem;
}

.timesheet-page .matrix-wrap {
  margin-top: 12px;
}

.timesheet-page .matrix-table {
  min-width: 1120px;
}

.timesheet-page .matrix-table th,
.timesheet-page .matrix-table td {
  padding: 8px 6px;
}

.timesheet-page .matrix-table th {
  font-size: 0.68rem;
}

.timesheet-page .project-col {
  min-width: 130px;
}

.timesheet-page .day-col {
  min-width: 112px;
}

.timesheet-page .total-col {
  min-width: 96px;
}

.timesheet-page .project-name {
  font-size: 0.8rem;
}

.timesheet-page .day-entry {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

.timesheet-page .day-entry label {
  gap: 3px;
}

.timesheet-page .day-entry span,
.timesheet-page .week-total-box span {
  font-size: 0.56rem;
  letter-spacing: 0.04em;
}

.timesheet-page .day-entry input {
  padding: 5px 6px;
  font-size: 0.74rem;
  min-width: 0;
}

.timesheet-page .timesheet-day-cell {
  position: relative;
}

.timesheet-page .timesheet-more-btn {
  justify-self: center;
  min-width: 32px;
  padding: 2px 6px;
  border: 1px dashed rgba(20, 89, 197, 0.28);
  border-radius: 999px;
  background: rgba(246, 250, 255, 0.98);
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
}

.timesheet-breakdown-dialog {
  width: min(1040px, calc(100vw - 32px));
}

.timesheet-breakdown-head {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.timesheet-breakdown-rows {
  display: grid;
  gap: 12px;
}

.timesheet-breakdown-row {
  display: grid;
  grid-template-columns: 120px 120px minmax(180px, 1fr) minmax(220px, 1.4fr) auto;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(248, 251, 255, 0.96);
  align-items: start;
}

.timesheet-breakdown-row label {
  display: grid;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 700;
}

.timesheet-breakdown-row input,
.timesheet-breakdown-row select,
.timesheet-breakdown-row textarea {
  width: 100%;
  padding: 9px 10px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.98);
  color: var(--text);
}

.timesheet-breakdown-row textarea {
  min-height: 78px;
  resize: vertical;
}

.timesheet-breakdown-remove {
  align-self: center;
}

.timesheet-page .has-breakdown {
  background: rgba(240, 246, 255, 0.98);
  border-color: rgba(20, 89, 197, 0.22);
}

.timesheet-page .week-total-box {
  gap: 6px;
}

.timesheet-page .week-total-cell,
.timesheet-page .day-total-cell,
.timesheet-page .grand-total-cell {
  padding-left: 6px;
  padding-right: 6px;
}

.timesheet-page .week-total-box strong {
  font-size: 0.8rem;
}

@media (max-width: 1240px) {
  .shell {
    grid-template-columns: 1fr;
  }

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

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

  .grid.two-up,
  .grid.timesheet-layout,
  .grid.timesheet-layout.slim {
    grid-template-columns: 1fr;
  }

  .hero {
    flex-direction: column;
  }

  .hero-panel {
    width: 100%;
  }
}

@media (max-width: 760px) {
  .shell {
    padding: 14px;
  }

  .form-grid,
  .kpi-grid {
    grid-template-columns: 1fr;
  }

  .data-table {
    display: block;
    overflow-x: auto;
  }

  .timesheet-breakdown-row {
    grid-template-columns: 1fr;
  }

  .kpi-grid.six-up,
  .chart-row {
    grid-template-columns: 1fr;
  }
}
.project-table thead input {
  width: 100%;
  padding: 9px 10px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.98);
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 600;
  outline: none;
  text-align: center;
}

.project-table thead input::placeholder {
  color: var(--muted);
  font-weight: 600;
  text-align: center;
}

.project-table thead input:focus {
  border-color: rgba(20, 89, 197, 0.35);
  box-shadow: 0 0 0 3px rgba(20, 89, 197, 0.08);
}

.project-table thead tr:nth-child(2) th {
  background: rgba(245, 248, 252, 0.95);
  padding: 10px 12px;
}

.table-action-col {
  width: 140px;
  text-align: center !important;
}

.table-search-spacer {
  background: rgba(245, 248, 252, 0.95);
}

.table-link-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.project-code-cell {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.project-expand-btn,
.project-expand-spacer {
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 22px;
}

.project-expand-btn {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.98);
  color: var(--text);
  font-weight: 800;
  cursor: pointer;
}

.subproject-row.is-collapsed {
  display: none;
}

.subproject-code-cell {
  padding-left: 14px;
}

.analysis-table input[type="date"] {
  width: 148px;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.98);
  color: var(--text);
  font: inherit;
}

.analysis-table input[type="number"],
.analysis-table select,
.analysis-table textarea {
  width: 100%;
  min-width: 140px;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.98);
  color: var(--text);
  font: inherit;
}

.analysis-table textarea {
  min-height: 72px;
  resize: vertical;
}

.analysis-save-stack {
  display: grid;
  gap: 6px;
  justify-items: center;
}

.analysis-save-note {
  min-height: 1em;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--muted);
}

.mini-chart {
  display: grid;
  gap: 12px;
  min-height: 220px;
}

.chart-row {
  display: grid;
  grid-template-columns: minmax(120px, 0.9fr) minmax(0, 1.6fr) auto;
  gap: 12px;
  align-items: center;
}

.chart-meta {
  display: grid;
  gap: 3px;
}

.chart-meta strong {
  font-size: 0.85rem;
}

.chart-meta span,
.chart-value-stack span {
  color: var(--muted);
  font-size: 0.78rem;
}

.chart-track {
  position: relative;
  height: 12px;
  border-radius: 999px;
  background: rgba(18, 32, 51, 0.08);
  overflow: hidden;
}

.chart-track.compact {
  height: 10px;
}

.chart-fill {
  position: absolute;
  inset: 0 auto 0 0;
  background: linear-gradient(135deg, var(--accent), var(--teal));
  border-radius: inherit;
}

.chart-fill.billing {
  background: linear-gradient(135deg, var(--accent), #2f84ff);
}

.chart-fill.effort {
  background: linear-gradient(135deg, #ff9340, #ffbc73);
}

.dual-bars {
  display: grid;
  gap: 8px;
}

.chart-value,
.chart-value-stack strong {
  font-size: 0.82rem;
}

.chart-value-stack {
  display: grid;
  justify-items: end;
}

.empty-chart {
  margin: auto 0;
  color: var(--muted);
}

.data-exchange-banner {
  padding: 16px 18px;
}

.data-exchange-banner.success {
  border-color: rgba(28, 142, 88, 0.3);
  background: rgba(230, 248, 238, 0.92);
}

.data-exchange-banner.warning {
  border-color: rgba(201, 131, 20, 0.3);
  background: rgba(255, 246, 225, 0.96);
}

.exchange-card {
  display: grid;
  gap: 14px;
}

.exchange-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.exchange-import-form {
  display: grid;
  gap: 12px;
}

.exchange-import-form label {
  display: grid;
  gap: 6px;
  font-weight: 700;
}

.exchange-import-form input[type="file"] {
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.98);
}

.login-shell {
  width: min(520px, 100%);
}

.login-card {
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  border-radius: var(--radius-xl);
  padding: 30px;
  display: grid;
  gap: 28px;
}

.login-brand {
  display: flex;
  align-items: center;
  gap: 16px;
}

.login-brand h1,
.login-copy h2 {
  margin: 0;
  letter-spacing: -0.03em;
}

.login-copy {
  display: grid;
  gap: 10px;
}

.login-copy p {
  margin: 0;
}

.microsoft-signin-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  padding: 14px 18px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.98);
  color: var(--text);
  font-weight: 700;
  cursor: pointer;
}

.microsoft-signin-btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.microsoft-mark {
  width: 18px;
  height: 18px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
}

.microsoft-mark span:nth-child(1) { background: #f25022; }
.microsoft-mark span:nth-child(2) { background: #7fba00; }
.microsoft-mark span:nth-child(3) { background: #00a4ef; }
.microsoft-mark span:nth-child(4) { background: #ffb900; }

.login-message {
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  font-weight: 700;
}

.login-message.error {
  color: #9d2a2a;
  background: rgba(255, 235, 235, 0.95);
  border-color: rgba(157, 42, 42, 0.18);
}

.sidebar-user {
  margin-top: auto;
  padding: 14px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
  display: grid;
  gap: 6px;
}

.sidebar-user span {
  color: var(--muted);
  font-size: 0.9rem;
}

.logout-link {
  margin-top: 6px;
}

.inline-select-form {
  display: contents;
}

.table-actions.inline {
  display: flex;
  gap: 8px;
  justify-content: center;
}
