button, input, select { font: inherit; color: inherit; }
.noise { position: fixed; inset: 0; opacity: .2; pointer-events: none; z-index: 10; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.08'/%3E%3C/svg%3E"); }

.dc-wrap { position: relative; z-index: 11; max-width: 900px; margin: 0 auto; padding: 28px 24px 60px; }
.dc-hero { text-align: center; padding: 24px 0 8px; }
.dc-hero .kicker { color: var(--g-2); text-transform: uppercase; letter-spacing: 1.2px; font-size: 12px; font-weight: 700; }
.dc-hero h1 { font-size: clamp(34px, 5vw, 54px); line-height: 1.04; letter-spacing: -1.8px; margin: 12px 0 10px; font-weight: 600; }
.dc-hero p { color: var(--muted); font-size: 15px; max-width: 600px; margin: 0 auto; line-height: 1.5; }

.dc-card { margin: 16px 0 0; padding: 22px; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); box-shadow: var(--shadow); }
.dc-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.dc-head .kicker { color: var(--g-2); text-transform: uppercase; letter-spacing: 1px; font-size: 12px; font-weight: 700; }
.dc-head-actions { display: flex; gap: 8px; flex-wrap: wrap; }

.dc-btn { padding: 10px 14px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface); cursor: pointer; font-size: 13px; font-weight: 700; transition: .18s; }
.dc-btn:hover { transform: translateY(-1px); }
.dc-btn.primary { background: var(--solid); color: #fff; border-color: var(--solid); }
.dc-mini { padding: 5px 9px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-2); cursor: pointer; font-size: 12px; font-weight: 600; }
.dc-mini.danger { color: var(--danger); }
.dc-mini.on { background: var(--solid); color: #fff; border-color: var(--solid); }

.dc-templates { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
@media (max-width: 720px) { .dc-templates { grid-template-columns: 1fr; } }
.dc-template { text-align: left; padding: 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface-2); cursor: pointer; display: flex; flex-direction: column; gap: 4px; transition: .18s; }
.dc-template:hover { transform: translateY(-3px); border-color: var(--accent); }
.dc-template strong { font-size: 15px; }
.dc-template-n { color: var(--g-3); font-size: 12px; }
.dc-template-cta { margin-top: 8px; color: var(--accent-ink, var(--accent)); font-size: 12px; font-weight: 700; }

.dc-list { display: flex; flex-direction: column; gap: 8px; }
.dc-listrow { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); }
.dc-listopen { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; text-align: left; border: 0; background: transparent; cursor: pointer; }
.dc-listopen strong { font-size: 14px; }
.dc-listopen small { color: var(--g-3); font-size: 12px; }
.dc-listprog { font: 500 13px "DM Mono", monospace; color: var(--g-2); }
.dc-listprog.ok { color: var(--green-deep, green); }
.dc-empty { color: var(--g-2); font-size: 13px; margin: 6px 0 0; }

.dc-back { margin: 18px 0 0; padding: 6px 0; border: 0; background: transparent; color: var(--muted); cursor: pointer; font-size: 13px; font-weight: 700; }

.dc-meta { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.dc-meta-name { grid-column: span 2; } .dc-meta-target { grid-column: span 4; }
@media (max-width: 680px) { .dc-meta { grid-template-columns: 1fr 1fr; } .dc-meta-name, .dc-meta-target { grid-column: span 2; } }
.dc-field { display: flex; flex-direction: column; gap: 6px; color: var(--g-2); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; }
.dc-field input { width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); outline: 0; font-size: 14px; text-transform: none; letter-spacing: 0; }
.dc-field input:focus { border-color: var(--success); box-shadow: 0 0 0 3px rgba(185,245,111,.18); }

.dc-progress { margin-top: 18px; }
.dc-progress-bar { height: 10px; border-radius: 6px; background: var(--surface-2); overflow: hidden; }
.dc-progress-bar i { display: block; height: 100%; width: 0; background: var(--g-2); transition: width .25s, background .25s; border-radius: 6px; }
.dc-progress-bar i.ok { background: var(--success, #7ddf64); }
.dc-progress-meta { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; font-size: 13px; color: var(--g-2); }
.dc-ready { color: var(--green-deep, green); font-weight: 700; }

.dc-list-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 20px 0 10px; }
.dc-listname { font-size: 16px; font-weight: 700; outline: 0; border-radius: 6px; padding: 2px 4px; }
.dc-listname:focus { box-shadow: 0 0 0 2px var(--accent); }
.dc-list-tools { display: flex; gap: 6px; }

.dc-items { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.dc-item { display: flex; gap: 10px; align-items: flex-start; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); }
.dc-item.done { border-color: var(--success, #7ddf64); }
.dc-item.na { opacity: .55; }
.dc-check { flex: none; width: 24px; height: 24px; margin-top: 2px; border: 2px solid var(--line-2, var(--line)); border-radius: 7px; background: var(--surface); cursor: pointer; display: grid; place-items: center; }
.dc-item.done .dc-check { background: var(--success, #7ddf64); border-color: var(--success, #7ddf64); }
.dc-item.done .dc-check::after { content: "✓"; color: #06280a; font-weight: 800; font-size: 14px; }
.dc-item-main { flex: 1; min-width: 0; }
.dc-item-label { width: 100%; border: 0; background: transparent; font-size: 14px; font-weight: 600; padding: 2px 0; outline: 0; }
.dc-item.done .dc-item-label { text-decoration: line-through; color: var(--g-2); }
.dc-item-help { margin: 2px 0 0; color: var(--g-3); font-size: 12px; line-height: 1.45; }
.dc-item-row2 { display: flex; gap: 10px; align-items: center; margin-top: 8px; flex-wrap: wrap; }
.dc-item-note { flex: 1; min-width: 140px; padding: 7px 10px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); font-size: 13px; outline: 0; }
.dc-item-note:focus { border-color: var(--success); }
.dc-opentool { flex: none; font-size: 12px; font-weight: 700; color: var(--accent-ink, var(--accent)); text-decoration: none; padding: 6px 10px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); white-space: nowrap; }
.dc-opentool:hover { border-color: var(--accent); }
.dc-item-ctrls { flex: none; display: flex; align-items: center; gap: 4px; }
.dc-iconbtn { width: 26px; height: 26px; border: 1px solid var(--line); border-radius: 7px; background: var(--surface); cursor: pointer; font-size: 13px; line-height: 1; padding: 0; }
.dc-iconbtn.danger { color: var(--danger); }
.dc-iconbtn:disabled { opacity: .35; cursor: default; }

.dc-export-row { display: flex; gap: 10px; flex-wrap: wrap; }
.dc-honest { margin: 14px 0 0; color: var(--muted); font-size: 12px; line-height: 1.55; }

.toast { position: fixed; bottom: 25px; left: 50%; transform: translate(-50%, 30px); opacity: 0; pointer-events: none; z-index: 60; background: var(--solid); color: #fff; border-radius: 12px; padding: 12px 16px; font-size: 13px; display: flex; gap: 9px; align-items: center; transition: .3s; }
.toast span:first-child { color: var(--green); }
.toast.show { transform: translate(-50%, 0); opacity: 1; }
