/* Ember supports plain CSS out of the box. More info: https://cli.emberjs.com/release/advanced-use/stylesheets/ */
* {
  box-sizing: border-box;
}

:root {
  color-scheme: light;
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  background: #f5f7fa;
  color: #182230;
  line-height: 1.5;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    linear-gradient(180deg, rgb(245 247 250 / 96%), rgb(245 247 250 / 100%)),
    #f5f7fa;
}

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

button {
  min-height: 2.75rem;
  border: 0;
  border-radius: 6px;
  padding: 0 1rem;
  background: #1f9cf6;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  background: #fff;
  color: #182230;
  padding: 0.72rem 0.8rem;
}

textarea {
  min-height: 7rem;
  resize: vertical;
}

button:disabled,
input:disabled,
select:disabled,
textarea:disabled {
  cursor: not-allowed;
  opacity: 0.58;
}

button:hover:not(:disabled) {
  background: #16674c;
}

label {
  display: grid;
  gap: 0.35rem;
  color: #475569;
  font-size: 0.82rem;
  font-weight: 700;
}

h1,
h2,
h3,
p,
dl,
dd {
  margin: 0;
}

.app-shell {
  width: min(100%, 1680px);
  margin: 0 auto;
  padding: 1.25rem;
}

.app-top {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 1rem;
}

.top-actions {
  display: flex;
  align-items: start;
  gap: 0.75rem;
}

.app-top h1 {
  margin-top: 0.2rem;
  font-size: clamp(2rem, 3.4rem, 4rem);
  line-height: 1;
  letter-spacing: 0;
}

.eyebrow {
  color: #b45309;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.system-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(7.5rem, 1fr));
  gap: 0.65rem;
}

.system-stats div,
.pane,
.capture-band {
  border: 1px solid #d9e2ec;
  background: #fff;
  box-shadow: 0 14px 38px rgb(15 23 42 / 7%);
}

.system-stats div {
  border-radius: 6px;
  padding: 0.8rem 0.9rem;
}

.system-stats dt {
  color: #64748b;
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.system-stats dd {
  margin-top: 0.15rem;
  color: #0f172a;
  font-size: 1.3rem;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.notice {
  margin-bottom: 1rem;
  border-left: 4px solid #1f7a5b;
  border-radius: 6px;
  background: #ecfdf3;
  padding: 0.8rem 1rem;
  color: #14532d;
  font-weight: 700;
}

.notice-error {
  border-left-color: #dc2626;
  background: #fef2f2;
  color: #991b1b;
}

.capture-band {
  display: grid;
  grid-template-columns: minmax(10rem, 14rem) 1fr;
  align-items: end;
  gap: 1rem;
  margin-bottom: 1rem;
  border-radius: 8px;
  padding: 1rem;
}

.capture-band h2,
.pane h2 {
  color: #0f172a;
  font-size: 1.2rem;
  line-height: 1.15;
  letter-spacing: 0;
}

.capture-form {
  display: grid;
  grid-template-columns: minmax(12rem, 1.2fr) minmax(12rem, 1fr) auto;
  gap: 0.75rem;
}

.workflow-grid,
.support-grid {
  display: grid;
  align-items: stretch;
  gap: 1rem;
}

.workflow-grid {
  grid-template-columns: minmax(17rem, 0.82fr) minmax(22rem, 1.05fr) minmax(
      24rem,
      1.35fr
    );
}

.support-grid {
  grid-template-columns: minmax(22rem, 1.1fr) minmax(18rem, 0.8fr) minmax(
      18rem,
      0.8fr
    );
  margin-top: 1rem;
}

.pane {
  display: flex;
  flex-direction: column;
  border-radius: 8px;
  padding: 1rem;
  min-width: 0;
}

.pane-heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.9rem;
}

.count-pill {
  display: inline-grid;
  min-width: 2rem;
  height: 2rem;
  place-items: center;
  border-radius: 999px;
  background: #dbeafe;
  color: #1e40af;
  font-size: 0.85rem;
  font-weight: 800;
}

.list-stack,
.stack-form,
.compact-form {
  display: grid;
  gap: 0.75rem;
}

.compact-label {
  margin-bottom: 0.75rem;
}

.compact-form {
  grid-template-columns: 1fr 1fr auto;
  margin-bottom: 1rem;
}

.waiting-form {
  display: grid;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.waiting-form textarea {
  min-height: 9rem;
}

.field-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.inbox-item,
.action-item,
.project-item,
.simple-item {
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  background: #fff;
}

.inbox-item {
  display: grid;
  gap: 0.25rem;
  width: 100%;
  min-height: 4rem;
  padding: 0.8rem;
  color: #182230;
  text-align: left;
  background: #f8fafc;
}

.inbox-item:hover {
  background: #eef6ff;
}

.inbox-item span,
.action-item h3,
.project-item h3,
.project-title,
.simple-item h3 {
  color: #0f172a;
  font-size: 0.96rem;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.inbox-item small,
.action-item small,
.project-item small,
.simple-item small {
  color: #64748b;
  font-size: 0.78rem;
  font-weight: 700;
}

.action-item {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 1rem;
  padding: 0.9rem;
}

.action-item p {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.35rem;
  color: #475569;
  font-size: 0.86rem;
}

.secondary-button {
  min-width: 5rem;
  background: #0f766e;
}

.secondary-button:hover:not(:disabled) {
  background: #115e59;
}

.icon-button {
  display: inline-grid;
  width: 2rem;
  min-width: 2rem;
  height: 2rem;
  place-items: center;
  border-radius: 6px;
  padding: 0;
}

.icon-button span {
  display: block;
  color: currentcolor;
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1;
  transform: translateX(0.05rem);
}

.action-item p span {
  border-radius: 999px;
  background: #fef3c7;
  color: #92400e;
  padding: 0.05rem 0.45rem;
}

.logout-button {
  border: 1px solid #cbd5e1;
  background: #fff;
  color: #64748b;
  box-shadow: 0 8px 22px rgb(15 23 42 / 7%);
}

.logout-button:hover:not(:disabled) {
  border-color: #94a3b8;
  background: #f8fafc;
  color: #334155;
}

.project-item,
.simple-item {
  display: grid;
  gap: 0.35rem;
  padding: 0.85rem;
  background: #f8fafc;
}

.project-choice {
  width: 100%;
  min-height: auto;
  color: #182230;
  text-align: left;
  text-decoration: none;
}

.project-choice:hover,
.project-choice:focus-visible {
  border-color: #94a3b8;
  background: #eef6ff;
  outline: none;
}

.page-nav {
  margin-bottom: 1rem;
}

.page-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 2.5rem;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  background: #fff;
  color: #334155;
  padding: 0 0.85rem;
  font-weight: 800;
  text-decoration: none;
}

.page-nav a:hover {
  border-color: #94a3b8;
  background: #f8fafc;
}

.project-page {
  display: grid;
  gap: 1rem;
}

.project-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 1rem;
}

.project-hero h1 {
  color: #0f172a;
  font-size: 2.4rem;
  line-height: 1.05;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.project-item p,
.simple-item p {
  color: #475569;
  font-size: 0.88rem;
  overflow-wrap: anywhere;
}

.project-hero p:not(.eyebrow) {
  margin-top: 0.55rem;
  max-width: 54rem;
  color: #475569;
  font-size: 1rem;
}

.project-actions-pane {
  min-height: 28rem;
}

.project-action-list {
  display: grid;
  gap: 0.75rem;
}

.empty-state {
  border: 1px dashed #cbd5e1;
  border-radius: 6px;
  background: #f8fafc;
  color: #64748b;
  padding: 1rem;
  text-align: center;
}

.auth-shell {
  display: grid;
  min-height: 100svh;
  place-items: center;
  padding: 1rem;
}

.auth-panel {
  display: grid;
  width: min(100%, 24rem);
  gap: 1rem;
  border: 1px solid #d9e2ec;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 14px 38px rgb(15 23 42 / 7%);
  padding: 1.1rem;
}

.auth-panel h1 {
  color: #0f172a;
  font-size: 1.8rem;
  line-height: 1.05;
  letter-spacing: 0;
}

@media (width > 820px) {
  .pane {
    min-height: 18rem;
  }
}

.auth-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

@media (width <= 1160px) {
  .workflow-grid,
  .support-grid {
    grid-template-columns: 1fr 1fr;
  }

  .action-pane,
  .clarify-pane {
    grid-column: span 1;
  }
}

@media (width <= 820px) {
  .app-shell {
    padding: 0.85rem;
  }

  .app-top,
  .capture-band {
    align-items: stretch;
    grid-template-columns: 1fr;
  }

  .project-hero {
    align-items: stretch;
    grid-template-columns: 1fr;
  }

  .app-top,
  .top-actions {
    display: grid;
  }

  .system-stats,
  .capture-form,
  .workflow-grid,
  .support-grid,
  .compact-form,
  .waiting-form,
  .field-row {
    grid-template-columns: 1fr;
  }

  .app-top h1 {
    font-size: 2.25rem;
  }

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