/* Bid Hawks TaskOS — Admin (wireframe v4 palette) */
@import url('https://fonts.googleapis.com/css2?family=Sora:wght@400;500;600;700&display=swap');

:root {
  --bh-bg: #f0f2f5;
  --bh-surface: #fff;
  --bh-border: #d1d9e6;
  --bh-accent: #01275d;
  --bh-accent-light: #115aa2;
  --bh-text: #1a2535;
  --bh-muted: #5a6a7a;
  --bh-danger: #b91c1c;
  --bh-warn: #b45309;
  --bh-ok: #1a6b3a;
}

* {
  box-sizing: border-box;
}

body,
body.taskos-body {
  margin: 0;
  font-family: 'Sora', system-ui, sans-serif;
  background: var(--bh-bg);
  color: var(--bh-text);
  font-size: 14px;
  min-height: 100vh;
}

.taskos-loading {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bh-muted);
}

/* Shell */
.taskos-shell {
  display: flex;
  min-height: 100vh;
}

.taskos-sidebar {
  width: 220px;
  flex-shrink: 0;
  background: var(--bh-accent);
  color: #fff;
  display: flex;
  flex-direction: column;
}

.taskos-sidebar-brand {
  padding: 10px 16px 5px 16px;
  background: #fff;
  border-bottom: 1px solid var(--bh-border);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px; 
}

.taskos-sidebar-logo {
  font-size: 24px;
  flex-shrink: 0;
  line-height: 0;
  display: flex;
  justify-content: center;
}

.taskos-sidebar-logo .taskos-app-logo {
  display: block;
  width: 145px;
  height: auto;
}

.taskos-nav {
  flex: 1;
  overflow-y: auto;
  padding: 12px 0;
}

.taskos-nav-label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  padding: 12px 16px 6px;
}

.taskos-nav-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
  font-size: 13px;
  border-left: 3px solid transparent;
}

.taskos-nav-item:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.taskos-nav-item.active {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-weight: 600;
  border-left-color: #fff;
}

.taskos-sidebar-footer {
  padding: 12px 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.taskos-btn-logout {
  width: 100%;
  padding: 8px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: transparent;
  color: #fff;
  cursor: pointer;
  font-size: 12px;
}

.taskos-btn-logout:hover {
  background: rgba(255, 255, 255, 0.1);
}

.taskos-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.taskos-topbar {
  height: 52px;
  background: var(--bh-surface);
  border-bottom: 1px solid var(--bh-border);
  display: flex;
  align-items: center;
  padding: 0 24px;
}

.taskos-topbar-with-actions {
  justify-content: space-between;
}

.taskos-topbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.taskos-tb-date {
  font-size: 11px;
  color: var(--bh-muted);
}

.taskos-user-chip {
  width: 32px;
  height: 32px;
  background: var(--bh-accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
}

.taskos-page-title {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: var(--bh-accent);
}

.taskos-content {
  flex: 1;
  padding: 24px;
  overflow: auto;
}

.taskos-muted {
  color: var(--bh-muted);
  font-size: 13px;
  margin-bottom: 16px;
}

.taskos-h2 {
  font-size: 15px;
  margin: 24px 0 12px;
}

/* Stats */
.taskos-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
}

.taskos-stat-card {
  background: var(--bh-surface);
  border: 1px solid var(--bh-border);
  border-radius: 10px;
  padding: 16px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.taskos-stat-warn .taskos-stat-value {
  color: var(--bh-warn);
}

.taskos-stat-danger .taskos-stat-value {
  color: var(--bh-danger);
}

.taskos-stat-ok .taskos-stat-value {
  color: var(--bh-ok);
}

.taskos-stat-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--bh-muted);
  margin-bottom: 8px;
}

.taskos-stat-value {
  font-size: 28px;
  font-weight: 700;
  color: var(--bh-accent);
}

.taskos-stat-sub {
  font-size: 11px;
  color: var(--bh-muted);
  margin-top: 4px;
}

/* Table */
.taskos-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--bh-border);
  border-radius: 10px;
  background: var(--bh-surface);
}

.taskos-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.taskos-table th,
.taskos-table td {
  padding: 10px 14px;
  text-align: left;
  border-bottom: 1px solid #e8edf4;
}

.taskos-table th {
  background: #f7f9fc;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--bh-muted);
}

.taskos-table-sm td {
  font-size: 12px;
}

.taskos-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 20px;
  background: #eaf1fa;
  color: var(--bh-accent);
}

.taskos-badge.ok {
  background: #e6f4ec;
  color: var(--bh-ok);
}

/* Forms */
.taskos-toolbar {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
  align-items: center;
}

.taskos-toolbar-wrap {
  flex-wrap: wrap;
}

.taskos-input {
  padding: 9px 12px;
  border: 1px solid var(--bh-border);
  border-radius: 8px;
  font-size: 13px;
  min-width: 200px;
}

.taskos-input-inline {
  width: 72px;
  padding: 4px 8px;
  border-radius: 6px;
  border: 1px solid var(--bh-border);
  font-size: 12px;
}

.taskos-label-inline {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
}

.taskos-btn-primary {
  background: var(--bh-accent);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 10px 18px;
  font-weight: 600;
  cursor: pointer;
  font-size: 13px;
}

.taskos-btn-primary:hover:not(:disabled) {
  background: #013b7a;
}

.taskos-btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.taskos-btn-sm {
  background: #eaf1fa;
  color: var(--bh-accent);
  border: none;
  border-radius: 6px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.taskos-btn-danger-sm {
  background: #fee2e2;
  color: var(--bh-danger);
  border: none;
  border-radius: 6px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
}

.taskos-alert {
  padding: 10px 14px;
  border-radius: 8px;
  margin-bottom: 16px;
  font-size: 13px;
}

.taskos-alert-error {
  background: #fee2e2;
  color: var(--bh-danger);
  border: 1px solid #fecaca;
}

.taskos-banner {
  padding: 12px 16px;
  border-radius: 8px;
  margin-bottom: 16px;
  font-size: 13px;
}

.taskos-banner-warn {
  background: #fef9c3;
  border: 1px solid #fcd34d;
  color: #854d0e;
}

.taskos-banner-info {
  background: #eaf1fa;
  border: 1px solid var(--bh-accent-light);
  color: var(--bh-accent);
}

.taskos-banner-ok {
  background: #e6f4ec;
  border: 1px solid #86efac;
  color: var(--bh-ok);
}

.taskos-card {
  background: var(--bh-surface);
  border: 1px solid var(--bh-border);
  border-radius: 10px;
  padding: 16px;
}

.taskos-pre {
  margin: 0;
  font-size: 12px;
  overflow: auto;
}

/* Login */
.taskos-login-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: linear-gradient(160deg, #f0f2f5 0%, #e8edf4 100%);
}

.taskos-login-card {
  width: 100%;
  max-width: 400px;
  background: var(--bh-surface);
  border: 1px solid var(--bh-border);
  border-radius: 16px;
  padding: 32px;
  box-shadow: 0 12px 40px rgba(1, 39, 93, 0.12);
}

.taskos-login-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
}

.taskos-login-brand--solo {
  justify-content: center;
}

.taskos-login-logo {
  font-size: 36px;
  flex-shrink: 0;
  line-height: 0;
}

.taskos-login-logo .taskos-app-logo {
  display: block;
  width: 280px;
  height: auto;
}

.taskos-login-brand h1 {
  margin: 0;
  font-size: 20px;
  color: var(--bh-accent);
}

.taskos-login-brand p {
  margin: 4px 0 0;
  font-size: 12px;
  color: var(--bh-muted);
}

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

.taskos-label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--bh-muted);
}

/* Keeps field name + required star on one row when label is flex column (e.g. login). */
.taskos-label-line {
  display: inline-flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 2px;
}

.taskos-login-hint {
  margin-top: 16px;
  font-size: 11px;
  color: var(--bh-muted);
  text-align: center;
}

/* Dashboard (wireframe A01) */
.taskos-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

@media (max-width: 960px) {
  .taskos-two-col {
    grid-template-columns: 1fr;
  }
}

.taskos-section-card {
  background: var(--bh-surface);
  border: 1px solid var(--bh-border);
  border-radius: 10px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  overflow: hidden;
}

.taskos-section-mt {
  margin-top: 0;
}

.taskos-section-card-header {
  padding: 12px 16px;
  border-bottom: 1px solid var(--bh-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.taskos-section-card-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--bh-text);
}

.taskos-section-card-body {
  padding: 16px;
}

.taskos-section-card-body--flush {
  padding: 0;
}

.taskos-pad {
  padding: 16px;
  margin: 0;
}

.taskos-pad-sm {
  padding: 12px 16px;
  margin: 0;
}

.taskos-btn-text-sm {
  font-size: 11px;
  font-weight: 600;
  color: var(--bh-accent-light);
  text-decoration: none;
  padding: 4px 10px;
  border-radius: 6px;
  background: #eaf1fa;
  border: none;
  cursor: pointer;
}

.taskos-btn-text-sm:hover {
  background: #dde8f5;
}

.taskos-chart-bar-wrap {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.taskos-chart-bar-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.taskos-chart-bar-label {
  font-size: 10px;
  color: var(--bh-muted);
  width: 90px;
  text-align: right;
  flex-shrink: 0;
}

.taskos-chart-bar-track {
  flex: 1;
  background: #e8edf4;
  border-radius: 4px;
  height: 16px;
  overflow: hidden;
}

.taskos-chart-bar-fill {
  height: 100%;
  border-radius: 4px;
  background: var(--bh-accent-light);
  display: flex;
  align-items: center;
  min-width: 2px;
  padding-left: 6px;
}

.taskos-chart-bar-fill-purple {
  background: #8b5cf6;
}

.taskos-chart-bar-fill-orange {
  background: var(--bh-warn);
}

.taskos-chart-bar-fill-green {
  background: var(--bh-ok);
}

.taskos-ot-pill {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 10px;
  font-family: ui-monospace, monospace;
}

.taskos-ot-pill--ok {
  background: #e6f4ec;
  color: var(--bh-ok);
}

.taskos-ot-pill--warn {
  background: #fef3c7;
  color: #b45309;
}

.taskos-ot-pill--high {
  background: #fee2e2;
  color: var(--bh-danger);
}

.taskos-chart-bar-val {
  font-size: 9px;
  color: #fff;
  font-weight: 700;
  font-family: ui-monospace, monospace;
}

.taskos-table--compact td,
.taskos-table--compact th {
  padding: 10px 14px;
  font-size: 12px;
}

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

.taskos-td-muted {
  color: var(--bh-muted);
  font-size: 11px;
}

.taskos-badge-submtd {
  display: inline-block;
  font-size: 9px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 20px;
  background: #e6f4ec;
  color: var(--bh-ok);
}

.taskos-overdue-val {
  font-weight: 700;
  font-size: 12px;
}

.taskos-overdue-high {
  color: var(--bh-danger);
}

.taskos-overdue-mid {
  color: var(--bh-warn);
}

.taskos-overdue-low {
  color: var(--bh-warn);
}

/* Projects wireframe (A02) — top bar, banners, table actions */
.taskos-perm-badge {
  background: #fef9c3;
  border: 1px solid #fcd34d;
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 10px;
  font-weight: 700;
  color: #a16207;
  white-space: nowrap;
}

.taskos-btn-header {
  background: var(--bh-accent);
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 7px 14px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
}

.taskos-btn-header:hover {
  background: var(--bh-accent-light);
}

.taskos-banner-green {
  background: #e6f4ec;
  border: 1px solid #86efac;
  border-radius: 8px;
  padding: 10px 14px;
  margin-bottom: 14px;
  font-size: 11px;
  color: var(--bh-ok);
  line-height: 1.5;
}

.taskos-banner-perm {
  background: #fef9c3;
  border: 1px solid #fcd34d;
  border-radius: 8px;
  padding: 10px 14px;
  margin-top: 14px;
  font-size: 11px;
  color: #a16207;
  line-height: 1.5;
}

.taskos-banner-tight {
  margin-bottom: 12px;
  margin-top: 0;
  padding: 7px 10px;
  font-size: 10px;
  font-weight: 600;
}

.taskos-badge-status {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 20px;
}

.taskos-badge-status-active {
  background: #e6f4ec;
  color: var(--bh-ok);
}

.taskos-badge-status-inactive {
  background: #e8edf4;
  color: var(--bh-muted);
}

.taskos-action-btns {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.taskos-action-btns .taskos-btn-sm,
.taskos-action-btns .taskos-btn-danger-sm {
  padding: 4px 10px;
  font-size: 10px;
}

.taskos-btn-danger-outline {
  background: #fee2e2;
  color: var(--bh-danger);
  border: none;
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 10px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
}

.taskos-btn-danger-outline:hover {
  background: #fecaca;
}

.taskos-btn-secondary {
  background: #fff;
  color: var(--bh-accent);
  border: 1.5px solid var(--bh-accent);
  border-radius: 6px;
  padding: 8px 16px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
}

.taskos-btn-secondary:hover {
  background: #f7f9fc;
}

/* Modals — New / Edit Project */
.taskos-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(26, 37, 53, 0.45);
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.taskos-modal-box {
  background: var(--bh-surface);
  border-radius: 12px;
  border: 1px solid var(--bh-border);
  width: 100%;
  max-width: 440px;
  max-height: 90vh;
  overflow: auto;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.taskos-modal-wide {
  max-width: 560px;
}

.taskos-modal-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 14px;
}

.taskos-modal-form-row-single {
  grid-template-columns: 1fr;
}

@media (max-width: 520px) {
  .taskos-modal-form-row {
    grid-template-columns: 1fr;
  }
}

/* Full-width hit target + pointer; JS showPicker() opens picker on any click (not only the icon). */
.taskos-input.taskos-input-datetime {
  width: 100%;
  min-width: 0;
  cursor: pointer;
}

.taskos-modal-tip {
  background: #eaf1fa;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 11px;
  color: var(--bh-accent);
  line-height: 1.6;
  margin-top: 4px;
}

.taskos-topbar-filter {
  min-width: 140px;
  max-width: 200px;
  font-size: 12px;
  padding: 6px 10px;
}

.taskos-members-section {
  border: 1px solid var(--bh-border);
  border-radius: 8px;
  padding: 14px;
  margin-bottom: 12px;
}

.taskos-members-section-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--bh-text);
  margin: 0 0 4px;
}

.taskos-members-section-desc {
  font-size: 11px;
  color: var(--bh-muted);
  margin: 0 0 10px;
  line-height: 1.45;
}

.taskos-members-table-wrap {
  overflow: auto;
  margin-bottom: 16px;
}

.taskos-members-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.taskos-members-table th {
  padding: 7px 10px;
  text-align: left;
  font-size: 10px;
  font-weight: 700;
  color: var(--bh-muted);
  background: #f4f6f9;
  border-bottom: 1px solid var(--bh-border);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.taskos-members-table td {
  padding: 8px 10px;
  border-bottom: 1px solid var(--bh-border);
  vertical-align: middle;
}

.taskos-role-badge {
  display: inline-block;
  font-size: 9px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
  font-family: ui-monospace, monospace;
  text-transform: uppercase;
}

.taskos-role-badge-staff {
  background: #e8edf4;
  color: var(--bh-muted);
}

.taskos-role-badge-senior {
  background: #fef3c7;
  color: #92400e;
}

.taskos-role-badge-admin {
  background: #dbeafe;
  color: #1e40af;
}

.taskos-role-badge-owner {
  background: #fef3c7;
  color: #92400e;
}

.taskos-role-badge-partner {
  background: #e6f4ec;
  color: #166534;
}

/* Users screen — wireframe A04 */
.taskos-users-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 14px;
}

.taskos-users-search {
  flex: 1 1 220px;
  min-width: 180px;
}

.taskos-status-pill {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  letter-spacing: 0.02em;
}

.taskos-status-pill-active {
  background: #e6f4ec;
  color: var(--bh-ok);
}

.taskos-status-pill-inactive {
  background: #e8edf4;
  color: var(--bh-muted);
}

.taskos-mono {
  font-family: ui-monospace, 'Cascadia Mono', 'Courier New', monospace;
  font-size: 11px;
}

.taskos-muted-box {
  margin-top: 8px;
  background: #f4f6f9;
  border-radius: 6px;
  padding: 10px 12px;
  font-size: 11px;
  color: var(--bh-muted);
}

.taskos-type-muted {
  font-size: 10px;
  color: var(--bh-muted);
}

.taskos-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid var(--bh-border);
}

.taskos-modal-title {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: var(--bh-text);
}

.taskos-modal-close {
  background: none;
  border: none;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  color: var(--bh-muted);
  padding: 4px;
}

.taskos-modal-close:hover {
  color: var(--bh-text);
}

.taskos-modal-body {
  padding: 18px;
}

.taskos-modal-footer {
  padding: 12px 18px;
  border-top: 1px solid var(--bh-border);
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.taskos-modal-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: var(--bh-muted);
  margin-bottom: 14px;
}

/* Required field marker — use on labels next to field name (modals, login, forms). */
.taskos-required-star {
  color: var(--bh-danger);
  font-weight: 700;
}

.taskos-modal-label .taskos-required-star,
.taskos-label .taskos-required-star {
  margin-left: 1px;
}

.taskos-modal-input {
  margin-top: 6px;
  width: 100%;
  min-width: 0;
}

.taskos-modal-hint {
  display: block;
  font-size: 10px;
  font-weight: 400;
  color: var(--bh-muted);
  margin-top: 6px;
}

.taskos-input.taskos-input-error {
  border-color: #c53030;
}

.taskos-field-error {
  display: block;
  margin-top: 6px;
  font-size: 11px;
  font-weight: 500;
  color: #c53030;
}

/* Status change: centered confirmation + result toast */
.taskos-confirm-toast-backdrop {
  position: fixed;
  inset: 0;
  z-index: 400;
  background: rgba(26, 37, 53, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: max(16px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right))
    max(16px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
}

.taskos-confirm-toast-panel {
  width: 100%;
  max-width: 420px;
  background: var(--bh-surface);
  border-radius: 14px;
  border: 1px solid var(--bh-border);
  padding: 18px 20px 20px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.18);
  animation: taskos-confirm-modal-in 0.22s ease;
}

@keyframes taskos-confirm-modal-in {
  from {
    transform: scale(0.96);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.taskos-confirm-toast-title {
  margin: 0 0 8px;
  font-size: 15px;
  font-weight: 700;
  color: var(--bh-text);
}

.taskos-confirm-toast-text {
  margin: 0 0 16px;
  font-size: 13px;
  color: var(--bh-muted);
  line-height: 1.45;
}

.taskos-confirm-toast-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

/* Floating result toasts — top-right, below app topbar (.taskos-topbar 52px) */
.taskos-toast-portal {
  position: fixed;
  top: max(72px, calc(env(safe-area-inset-top, 0px) + 52px + 16px));
  right: max(24px, env(safe-area-inset-right, 0px));
  bottom: auto;
  left: auto;
  z-index: 450;
  max-width: min(420px, calc(100vw - 32px));
  pointer-events: none;
}

.taskos-toast-floating {
  pointer-events: auto;
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 500;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
  border: 1px solid transparent;
  animation: taskos-toast-floating-in 0.25s ease;
}

@keyframes taskos-toast-floating-in {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.taskos-toast-floating.taskos-toast-ok {
  background: #e6f4ec;
  border-color: #86efac;
  color: #166534;
}

.taskos-toast-floating.taskos-toast-err {
  background: #fee2e2;
  border-color: #fecaca;
  color: var(--bh-danger);
}

.taskos-btn-outline-ok {
  background: #e6f4ec;
  color: #166534;
  border: none;
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 10px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
}

.taskos-btn-outline-ok:hover:not(:disabled) {
  background: #dcfce7;
}

.taskos-btn-outline-ok:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.taskos-btn-danger-outline:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

@media (max-width: 900px) {
  .taskos-shell {
    flex-direction: column;
  }

  .taskos-sidebar {
    width: 100%;
  }
}
