[hidden]{display:none!important}

.page-guide{margin:0 0 18px;background:#fff;border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow)}.page-guide summary{display:flex;align-items:center;gap:10px;padding:14px 18px;font-weight:700;cursor:pointer;list-style:none}.page-guide summary::-webkit-details-marker{display:none}.page-guide summary small{margin-left:auto;color:var(--muted);font-weight:500;font-size:12px}.page-guide-icon{display:grid;place-items:center;width:24px;height:24px;border-radius:50%;background:#edf2ff;color:var(--primary);font-size:13px}.page-guide[open] summary{border-bottom:1px solid var(--line)}
.page-guide-steps{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin:0;padding:16px 18px;list-style:none;counter-reset:guide}.page-guide-steps li{position:relative;display:flex;flex-direction:column;gap:5px;padding-left:34px;counter-increment:guide}.page-guide-steps li:before{content:counter(guide);position:absolute;left:0;top:0;display:grid;place-items:center;width:24px;height:24px;border-radius:50%;background:var(--navy);color:#fff;font-size:12px;font-weight:700}.page-guide-steps span{color:var(--muted);font-size:13px;line-height:1.45}.page-guide-steps em{font-style:normal;font-weight:650;color:var(--ink)}
kbd{display:inline-block;min-width:20px;padding:1px 5px;border:1px solid #cfd6e2;border-bottom-width:2px;border-radius:5px;background:#f6f8fb;color:var(--ink);font:600 11px/1.4 ui-monospace,monospace;text-align:center}

.summary-stats{margin-bottom:14px}.summary-stats .stat span{font-size:12px;line-height:1.35}.summary-stats .stat span a{color:var(--primary);font-weight:650}
.button svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}.button:has(svg){gap:7px}.button:disabled{opacity:.55;cursor:not-allowed}.button.danger{background:var(--red);border-color:var(--red);color:#fff}.button.danger:hover{background:#bd3a45}
.icon-button{display:grid;place-items:center;width:38px;height:38px;flex:0 0 38px;padding:0;border:1px solid var(--line);border-radius:9px;background:#fff;color:var(--ink);cursor:pointer}.icon-button svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}.icon-button:hover{border-color:#aeb9ca;background:#f5f7fa}
.link-inline{border:0;padding:0;background:none;color:var(--primary);font:inherit;font-weight:650;cursor:pointer;text-decoration:none}.badge.late{color:#a3323b;background:#fff0f1}

.panel-title.with-actions{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap}.panel-actions{display:flex;gap:8px;flex-wrap:wrap}
.filter-bar{display:flex;align-items:center;gap:8px;padding:12px 20px;border-bottom:1px solid var(--line);overflow-x:auto;scrollbar-width:none}.filter-bar::-webkit-scrollbar{display:none}
.filter-chip{display:inline-flex;align-items:center;gap:6px;flex:0 0 auto;padding:7px 12px;border:1px solid var(--line);border-radius:20px;background:#fff;color:var(--muted);font:inherit;font-size:13px;font-weight:650;cursor:pointer}.filter-chip b{min-width:20px;padding:1px 6px;border-radius:10px;background:#edf0f4;color:var(--ink);font-size:11px;text-align:center}.filter-chip:hover{border-color:#b9c4d6}.filter-chip[aria-pressed="true"]{border-color:var(--navy);background:var(--navy);color:#fff}.filter-chip[aria-pressed="true"] b{background:rgba(255,255,255,.18);color:#fff}.filter-chip.danger{color:var(--red)}.filter-chip.danger[aria-pressed="true"]{border-color:var(--red);background:var(--red);color:#fff}
.filter-empty{margin:0;padding:28px 20px;color:var(--muted);text-align:center}
.empty-state p{max-width:540px;margin:8px auto 0;line-height:1.5}.empty-state a{color:var(--primary);font-weight:650}.empty-actions{display:flex;justify-content:center;gap:10px;flex-wrap:wrap;margin-top:16px}.empty-actions .button{margin-top:0}

.app-modal{width:min(540px,calc(100% - 30px));max-height:calc(100vh - 40px);padding:0;border:0;border-radius:15px;background:transparent;overflow:visible}.app-modal::backdrop{background:rgba(10,20,38,.62);backdrop-filter:blur(3px)}.app-modal-card{max-height:calc(100vh - 40px);overflow-y:auto}
.modal-title{display:flex;justify-content:space-between;align-items:flex-start;gap:15px;position:sticky;top:0;z-index:2;background:#fff}.modal-close{display:grid;place-items:center;width:36px;height:36px;flex:0 0 36px;border:1px solid var(--line);border-radius:9px;background:#f6f8fb;color:var(--muted);font-size:24px;line-height:1;cursor:pointer}
.app-modal .form-stack{padding:20px 22px}.app-modal label small a{color:var(--primary)}.form-row{display:grid;grid-template-columns:1fr 1fr;gap:14px}.app-modal .form-actions{flex-wrap:wrap}.modal-actions .danger-link{margin-right:auto;padding:8px 0;font:inherit;font-weight:650}
.check-card{height:auto;min-height:42px;padding:10px 12px;border:1px solid var(--line);border-radius:9px;background:#f8f9fb}.check-card input{width:18px;height:18px;min-height:0;padding:0;margin:0 4px 0 0;accent-color:var(--green)}.check-card small{flex-basis:100%;margin-left:26px}
.field-error{color:var(--red)!important;font-weight:600!important}[aria-invalid="true"]{border-color:var(--red)!important;box-shadow:0 0 0 3px #fde4e6!important}.is-busy{cursor:progress}
.confirm-modal{width:min(420px,calc(100% - 30px))}.confirm-card{display:flex;flex-direction:column;gap:6px;padding:22px}.confirm-card h2{margin:0;font-size:18px}.confirm-card p{margin:0 0 10px;color:var(--muted);line-height:1.5}

@media(max-width:1100px){.page-guide-steps{grid-template-columns:1fr 1fr}}
@media(max-width:720px){
    .page-guide summary small{display:none}.page-guide-steps{grid-template-columns:1fr;padding:14px 16px}
    .stats.summary-stats{grid-template-columns:1fr 1fr;gap:10px}.stats.summary-stats .stat{display:flex;align-items:stretch;text-align:left}
    .panel-actions{width:100%;display:grid;grid-auto-columns:1fr;grid-auto-flow:column}.panel-actions .button{padding-left:8px;padding-right:8px;font-size:13px}
    .filter-bar{padding:10px 14px}
    .app-modal{width:100%;max-width:none;max-height:92svh;margin:auto 0 0;border-radius:16px 16px 0 0}.app-modal-card{max-height:92svh;border-radius:16px 16px 0 0}.app-modal .form-stack{padding:16px}.modal-title{padding:16px}
    .form-row{grid-template-columns:1fr}.app-modal .form-actions{display:grid;grid-template-columns:1fr}.modal-actions .danger-link{order:3;margin:0;text-align:center}
    .confirm-modal{width:100%}.confirm-card{padding:18px 16px 22px}
}
@media(max-width:420px){.stats.summary-stats .stat strong{font-size:16px}}
