:root {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #172b43;
  background: #f4f6f9;
  font-size: 16px;
}
* { box-sizing: border-box; }
body { margin: 0; }
header {
  background: #11243b;
  color: white;
  display: flex;
  gap: 14px;
  align-items: center;
  padding: calc(24px + env(safe-area-inset-top)) 24px 24px;
  letter-spacing: .08em;
}
.brand-mark {
  width: 43px;
  height: 43px;
  border: 1px solid #b59b61;
  color: #d2ba83;
  display: grid;
  place-items: center;
  font-size: 26px;
  flex: 0 0 auto;
}
small { display: block; font-size: 12px; letter-spacing: 0; font-weight: 400; opacity: .75; margin-top: 5px; }
main { max-width: 980px; margin: auto; padding: 20px 18px calc(24px + env(safe-area-inset-bottom)); }
h1 { font-size: 34px; letter-spacing: -1px; line-height: 1.15; margin: 28px 0 16px; }
p { line-height: 1.55; }
button, .button, input, select, textarea { font: inherit; }
button, .button {
  border: 1px solid #cbd3dd;
  border-radius: 9px;
  min-height: 48px;
  padding: 12px 16px;
  background: white;
  color: #172b43;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
}
.primary { background: #11243b; color: white; border-color: #11243b; }
.button { display: block; margin: 28px 0; }
button:disabled { opacity: .5; cursor: wait; }
.quiet { border-color: transparent; background: transparent; font-size: 13px; }
.status { background: white; border: 1px solid #e0e5ed; border-radius: 12px; padding: 17px; display: flex; align-items: center; gap: 13px; }
.status button { margin-left: auto; font-size: 26px; }
#status-dot { width: 10px; height: 10px; background: #a67b25; border-radius: 50%; flex: 0 0 auto; }
.toolbar { display: flex; flex-wrap: wrap; gap: 5px; margin: 15px 0; }
.toolbar #push { flex-grow: 1; font-size: 14px; }
nav { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin: 22px 0 16px; }
nav button { font-size: 14px; border: 0; background: #e6ebf1; }
nav button[aria-current] { background: #11243b; color: white; }
nav b { padding: 2px 7px; border-radius: 5px; background: #b59b61; color: #11243b; }
.card { background: white; border: 1px solid #dde4ed; border-radius: 12px; padding: 21px; margin: 12px 0; }
.card h2 { font-size: 20px; margin: 10px 0; }
.card > h1 { margin-top: 0; }
.meta { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { font-size: 11px; letter-spacing: .03em; background: #edf1f6; padding: 5px 8px; border-radius: 4px; }
.tag.risk { background: #fff0ce; color: #664407; }
.tag.critical, .status-failed, .status-blocked { background: #fbe3e1; color: #972a26; }
.status-succeeded { background: #e1f4e8; color: #176436; }
.scope { overflow-wrap: anywhere; background: #f7f9fb; padding: 12px; border-radius: 6px; list-style: none; font-size: 13px; line-height: 1.7; }
.actions { display: flex; gap: 10px; margin-top: 20px; }
.actions button { flex: 1; font-weight: 600; font-size: 14px; }
.reject { border-color: #d9a7a1; color: #8c332c; }
.expire { font-size: 12px; color: #5d6c7c; }
.empty { text-align: center; color: #647389; padding: 45px 20px; }
.footnote { font-size: 12px; color: #647389; }
#notice:not(:empty) { padding: 12px; background: #fff0ce; border-radius: 8px; margin-bottom: 10px; overflow-wrap: anywhere; }
details { margin: 30px 0; font-size: 14px; }
dialog { width: min(92%, 520px); border: 0; border-radius: 14px; padding: 25px; color: #172b43; }
dialog::backdrop { background: #11243baa; }
dialog button { width: 100%; margin-top: 10px; }
dialog pre { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 12px; max-height: 55vh; overflow: auto; background: #f7f9fb; padding: 12px; border-radius: 7px; }
:focus-visible { outline: 3px solid #b59b61; outline-offset: 3px; }
[hidden] { display: none !important; }
.form-grid { display: grid; gap: 14px; grid-template-columns: 1fr; }
.field { display: grid; gap: 7px; margin: 14px 0; font-weight: 600; }
.field > span { font-size: 14px; }
.field small { color: #647389; opacity: 1; }
input, select, textarea { width: 100%; border: 1px solid #cbd3dd; border-radius: 8px; color: #172b43; background: white; padding: 11px 12px; }
input, select { height: 46px; }
textarea { min-height: 116px; line-height: 1.45; resize: vertical; }
#task-instruction { min-height: 220px; font-size: 17px; }
input:focus, select:focus, textarea:focus { border-color: #a67b25; }
.form-policy { font-size: 13px; color: #516173; background: #f7f9fb; border-radius: 7px; padding: 12px; }
.selected-project { display: flex; justify-content: space-between; gap: 12px; align-items: center; background: #f7f9fb; border-radius: 8px; padding: 12px 14px; margin: 8px 0 14px; }
.selected-project span { color: #647389; font-size: 13px; }
.advanced-options { border: 1px solid #dde4ed; border-radius: 9px; padding: 0 14px 14px; margin: 20px 0; }
.advanced-options > summary { cursor: pointer; font-weight: 600; padding: 15px 0 1px; }
.advanced-options[open] > summary { padding-bottom: 8px; }
.task-submit { width: 100%; min-height: 58px; font-size: 18px; font-weight: 700; margin-top: 8px; }
.task-card button { margin-top: 16px; }
.issue-import { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: end; }
.issue-import[hidden] { display: none; }
.issue-import button { margin-bottom: 15px; min-height: 46px; }

@media (min-width: 600px) {
  nav { grid-template-columns: repeat(5, 1fr); }
  h1 { font-size: 42px; }
  .form-grid { grid-template-columns: 1fr 1fr; }
  #task-instruction { min-height: 260px; }
}
@media (max-width: 620px) { .issue-import { grid-template-columns: 1fr; } .issue-import button { margin-bottom: 0; } }

/* Owner project panel: same DARKO palette and touch targets. */
.project-heading{display:flex;align-items:center;justify-content:space-between;gap:18px;flex-wrap:wrap}.project-heading h1{margin-bottom:8px}.muted{color:#617186;font-size:14px}.project-metrics{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin:24px 0}.project-metrics>div{background:#11243b;color:white;padding:20px 14px;border-radius:12px;display:grid;gap:8px}.project-metrics strong{font-size:30px;color:#d2ba83}.project-metrics span{font-size:12px}.project-grid,.project-details-grid{display:grid;gap:14px;grid-template-columns:1fr}.project-card{margin:0;display:flex;flex-direction:column;align-items:start}.project-card p{flex:1}.project-card button{margin-top:20px;width:100%}.project-section{border-top:1px solid #e0e5ed;padding:12px 0}.project-list{padding-left:20px;line-height:1.6}.project-list li{margin-bottom:10px}.project-controls{display:flex;flex-wrap:wrap;gap:8px}.project-controls select{max-width:150px}.project-task,.deployment{padding:16px;background:#f4f6f9;border-radius:10px;margin:12px 0;overflow-wrap:anywhere}.deployment .tag{margin-left:10px}.project-detail progress{width:100%;accent-color:#a67b25;height:12px}.demo-banner{padding:14px;border:2px solid #a67b25;background:#fff0ce;border-radius:8px;font-weight:600}.project-detail h4{margin-top:0}.project-card,.project-detail{overflow-wrap:anywhere}@media(min-width:700px){.project-grid,.project-details-grid{grid-template-columns:1fr 1fr}nav{grid-template-columns:repeat(6,1fr)}}



