:root {
  color-scheme: light;
  --ink: #172b2d;
  --muted: #617275;
  --paper: #fff;
  --canvas: #f2f6f5;
  --line: #d8e3e1;
  --brand: #0d5c63;
  --brand-dark: #074348;
  --accent: #e9a23b;
  --danger: #b63d3d;
  --ok: #19734d;
  --radius: 18px;
  --shadow: 0 8px 24px #1231;
}
* {
  box-sizing: border-box;
}
html {
  background: var(--canvas);
}
body {
  min-width: 320px;
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font:
    16px/1.45 system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}
button,
input,
textarea {
  font: inherit;
}
button {
  min-height: 44px;
  border: 0;
  border-radius: 12px;
  padding: 10px 14px;
  background: var(--brand);
  color: #fff;
  font-weight: 650;
  cursor: pointer;
}
button:hover {
  background: var(--brand-dark);
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid #e9a23b;
  outline-offset: 2px;
}
.button-secondary {
  background: #e7efee;
  color: var(--brand-dark);
}
.button-danger {
  background: #fff0f0;
  color: var(--danger);
}
.button-link {
  min-height: auto;
  padding: 5px 0;
  background: none;
  color: var(--brand);
  text-decoration: underline;
}
.button-link:hover {
  background: none;
  color: var(--brand-dark);
}
button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
.skip-link {
  position: fixed;
  left: 8px;
  top: -100px;
  z-index: 10;
  background: #fff;
  color: #000;
  padding: 8px;
}
.skip-link:focus {
  top: 8px;
}
#app {
  width: min(100%, 680px);
  min-height: 100dvh;
  margin: auto;
  padding: max(14px, env(safe-area-inset-top)) 14px
    max(20px, env(safe-area-inset-bottom));
}
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 5px 0 14px;
}
.brand {
  font-size: 1.35rem;
  font-weight: 850;
  letter-spacing: 0.04em;
  color: var(--brand-dark);
}
.account {
  font-size: 0.85rem;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.card {
  margin: 12px 0;
  padding: 16px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.project-card {
  display: block;
  width: 100%;
  min-height: 0;
  text-align: left;
  color: var(--ink);
  background: var(--paper);
}
.project-card:hover {
  background: #f9fcfb;
}
.project-card h2,
.project-card h3 {
  margin: 0 0 4px;
  font-size: 1.07rem;
}
.project-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.91rem;
}
.stack {
  display: grid;
  gap: 10px;
}
.row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.wrap {
  flex-wrap: wrap;
}
.tabs {
  display: flex;
  gap: 6px;
  padding: 4px;
  background: #e7efee;
  border-radius: 13px;
}
.tab {
  flex: 1;
  min-height: 40px;
  padding: 7px 10px;
  background: transparent;
  color: var(--muted);
}
.tab.active {
  background: #fff;
  color: var(--brand-dark);
  box-shadow: 0 1px 3px #1232;
}
.muted {
  color: var(--muted);
}
.tiny {
  font-size: 0.82rem;
}
.badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 3px 8px;
  background: #e9f1f0;
  color: var(--brand-dark);
  font-size: 0.78rem;
  font-weight: 700;
}
.status {
  background: #fff2d9;
  color: #855300;
}
.status.done {
  background: #e1f4e9;
  color: var(--ok);
}
.status.failed,
.status.cancelled {
  background: #fde8e8;
  color: var(--danger);
}
.notice {
  padding: 10px 12px;
  border-radius: 12px;
  background: #fff5df;
  color: #744b09;
}
.notice.error {
  background: #fff0f0;
  color: #922d2d;
}
.offline {
  background: #273d40;
  color: #fff;
}
.job {
  border-top: 1px solid var(--line);
  padding: 12px 0;
}
.job:first-child {
  border-top: 0;
}
.job p {
  margin: 7px 0;
  white-space: pre-wrap;
}
.job-result {
  padding: 9px;
  background: #f4f8f7;
  border-radius: 10px;
}
.field {
  display: grid;
  gap: 6px;
}
.field label {
  font-weight: 700;
  font-size: 0.91rem;
}
textarea,
input[type="text"],
input[type="tel"],
input[type="password"] {
  width: 100%;
  border: 1px solid #b8cdca;
  border-radius: 12px;
  padding: 11px;
  background: #fff;
  color: var(--ink);
}
textarea {
  min-height: 104px;
  resize: vertical;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}
.section-title {
  margin: 20px 2px 8px;
  font-size: 1.05rem;
}
.back {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin: 0 0 5px;
  padding: 6px 0;
  color: var(--brand);
  background: none;
}
.snapshot {
  display: block;
  width: 100%;
  max-height: 340px;
  object-fit: contain;
  background: #eef3f2;
  border-radius: 12px;
}
.drawing {
  padding: 10px 0;
  border-top: 1px solid var(--line);
}
.drawing:first-child {
  border-top: 0;
}
.empty {
  text-align: center;
  padding: 25px 14px;
}
.boot {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 55dvh;
  color: var(--muted);
}
.spinner {
  width: 20px;
  height: 20px;
  border: 3px solid #c8d7d5;
  border-top-color: var(--brand);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.noscript {
  padding: 2rem;
  text-align: center;
}
.login {
  padding-top: max(15vh, env(safe-area-inset-top));
}
.login h1 {
  color: var(--brand-dark);
}
.login .field {
  margin-top: 12px;
}
@media (min-width: 681px) {
  #app {
    padding-left: 22px;
    padding-right: 22px;
  }
  .card {
    padding: 18px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
