:root {
  --details-bg: #f7f5f2;
  --details-border: #d9d4cd;
  --details-text: #2a2420;
  --summary-bg: #e7dfd6;
  --summary-text: #1e1a17;
  --summary-hover: #dccfc2;
  --accent: #8a5a44;
  --shadow: rgba(0, 0, 0, 0.08);
}

.epic-details {
  margin: 0 0 12px;
  padding: 12px 14px 14px;
  background: #f4f1ed;
  border: 1px solid #cfc7be;
  border-radius: 14px;
  color: var(--details-text);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.08);
  overflow: hidden;
}

.epic-summary {
  list-style: none;
  cursor: pointer;
  font-weight: 700;
  color: var(--summary-text);
  background: linear-gradient(135deg, #efe7dd, #e5dbcf);
  padding: 12px 14px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid #d8cfc6;
}

.epic-summary::-webkit-details-marker,
.story-summary::-webkit-details-marker {
  display: none;
}

.epic-summary::before {
  content: "+";
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #6b4a3a;
  color: #fff;
  font-size: 12px;
  line-height: 1;
  flex: 0 0 18px;
}

.epic-details[open] > .epic-summary::before {
  content: "-";
}

.epic-summary:hover {
  background: linear-gradient(135deg, #e8ded3, #dccfc2);
}

.epic-description {
  margin: 0 0 10px;
  padding: 8px 10px;
  background: #fab55b;
  border: 1px dashed #d9d1c7;
  border-radius: 10px;
  color: #3a3029;
  font-family: monospace;
}

.epic-summary:focus-visible,
.story-summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.story-details {
  margin: 10px 0 0 0;
  box-shadow: none;
}

.story-summary {
  list-style: none;
  cursor: pointer;
  font-weight: 600;
  color: var(--summary-text);
  background: transparent;
  border: 1px dashed var(--details-border);
  margin: 0 0 8px 0;
  padding: 8px 10px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.story-summary:hover {
  background: #efe9e3;
}

.story-summary::before {
  content: "+";
  width: 16px;
  height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #5c3b2c;
  color: #fff;
  font-size: 11px;
  line-height: 1;
  flex: 0 0 16px;
}

.story-details[open] > .story-summary::before {
  content: "-";
}

.story-details > :not(summary) {
  margin-left: 24px;
}

.epic-details p,
.epic-details ul,
.epic-details ol,
.story-details p,
.story-details ul,
.story-details ol {
  margin: 8px 0 0;
}

.epic-details ul,
.story-details ul {
  padding-left: 18px;
}

.acceptance-card {
  margin: 12px 0 8px;
  padding: 12px 14px;
  background: #f3f0ff;
  border: 1px solid #cfc6ff;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(45, 35, 130, 0.15);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono",
    "Courier New", monospace;
  color: #211a3b;
}

.acceptance-title {
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 12px;
  color: #3a2b7a;
  margin-bottom: 8px;
  text-align: center;
}

.acceptance-list {
  margin: 0;
  padding-left: 18px;
}

.acceptance-list li {
  margin: 6px 0;
}

todo {
  display: block;
  background: #f6f8fa;
  border-left: 5px solid #4a90d9;
  border-radius: 8px;
  padding: 18px 22px;
  margin: 14px 0;
  font-size: 1.15em;
  line-height: 1.9;
  color: #1a1a2e;
  transition: background 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

todo:hover {
  background: #edf4ff;
  border-left-color: #2563eb;
  box-shadow: 0 4px 12px rgba(74, 144, 217, 0.18);
}

todo .owner {
  display: inline-block;
  background: #dbeafe;
  color: #1d4ed8;
  border-radius: 5px;
  padding: 3px 11px;
  font-size: 0.88em;
  font-weight: 500;
  margin-top: 10px;
  margin-right: 8px;
}

todo .deadline {
  display: inline-block;
  background: #fff7ed;
  color: #c2410c;
  border-radius: 5px;
  padding: 3px 11px;
  font-size: 0.88em;
  font-weight: 500;
  margin-top: 10px;
}