body { font-family: Inter, system-ui, sans-serif; }
.nav-link {
    display: block;
    padding: 0.55rem 0.75rem;
    border-radius: 0.5rem;
    color: rgba(236, 253, 245, 0.86);
}
.nav-link:hover { background: rgba(255,255,255,0.08); color: #fff; }
.card {
    background: #fff;
    border: 1px solid #e2e8e0;
    border-radius: 0.9rem;
}
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.6rem;
    padding: 0.6rem 1rem;
    font-size: 0.875rem;
    font-weight: 600;
}
.btn-primary { background: #16a34a; color: #fff; }
.btn-primary:hover { background: #15803d; }
.btn-ghost { background: #f0fdf4; color: #166534; }
.btn-line { border: 1px solid #d1d5db; background: #fff; }
.field {
    width: 100%;
    border: 1px solid #d6ddd8;
    border-radius: 0.6rem;
    padding: 0.6rem 0.75rem;
    background: #fff;
}
.field:focus { outline: 2px solid #86efac; border-color: #16a34a; }
.label { display: block; font-size: 0.75rem; font-weight: 600; color: #3f4a43; margin-bottom: 0.3rem; }
.table-wrap { overflow: auto; }
table.data { width: 100%; font-size: 0.875rem; }
table.data th { text-align: left; font-size: 0.7rem; text-transform: uppercase; letter-spacing: .04em; color: #64748b; padding: 0.7rem; border-bottom: 1px solid #e5e7eb; }
table.data td { padding: 0.75rem 0.7rem; border-bottom: 1px solid #f1f5f4; vertical-align: top; }
.pill { display: inline-flex; align-items: center; border-radius: 999px; padding: 0.15rem 0.55rem; font-size: 0.7rem; font-weight: 600; }
.pill-green { background: #dcfce7; color: #166534; }
.pill-amber { background: #fef3c7; color: #92400e; }
.pill-red { background: #fee2e2; color: #991b1b; }
.pill-slate { background: #f1f5f9; color: #334155; }
.select2-container .select2-selection--single { height: 42px; border-radius: 0.6rem; border-color: #d6ddd8; padding-top: 5px; }
.kanban-board {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    padding: 0.75rem 1rem 1rem;
}
.kanban-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0 0.15rem 0.7rem;
}
.kanban {
    flex: 1;
    min-height: 0;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.65rem;
    overflow: hidden;
}
.kanban-col {
    background: #e8eee9;
    border-radius: 0.9rem;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.kanban-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.75rem 0.8rem 0.55rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .03em;
    color: #334155;
}
.kanban-body {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding: 0 0.65rem 0.75rem;
}
.kanban-card {
    background: #fff;
    border: 1px solid #e2e8e0;
    border-radius: 0.75rem;
    padding: 0.75rem;
    margin-bottom: 0.55rem;
}
.door {
    display: block;
    padding: 1.4rem;
    border-radius: 1rem;
    border: 1px solid #dce6df;
    background: #fff;
}
.door:hover { border-color: #16a34a; box-shadow: 0 0 0 3px #dcfce7; }
.btn-sm { padding: 0.35rem 0.7rem; font-size: 0.75rem; }
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; padding: 1rem 1.1rem; border-bottom: 1px solid #eef2ef; }
[x-cloak] { display: none !important; }
.modal-back {
    position: fixed;
    inset: 0;
    background: rgba(15, 31, 22, 0.45);
    z-index: 40;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 4rem 1rem 2rem;
    overflow: auto;
}
.modal-box {
    width: min(760px, 100%);
    background: #fff;
    border-radius: 1rem;
    border: 1px solid #e2e8e0;
}
.modal-box.wide { width: min(920px, 100%); }
.modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.15rem;
    border-bottom: 1px solid #eef2ef;
    font-weight: 600;
}
.modal-body { padding: 1.15rem; }
.modal-foot {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
    padding: 0.9rem 1.15rem 1.15rem;
}
.actions { display: flex; gap: 0.4rem; flex-wrap: wrap; }
.shop-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.45rem 0.75rem;
    border-radius: 999px;
    color: #334155;
    font-weight: 500;
}
.shop-link:hover, .shop-link.active { background: #f0fdf4; color: #166534; }
.choice {
    display: block;
    width: 100%;
    text-align: left;
    border: 1px solid #dce6df;
    background: #fff;
    border-radius: 0.85rem;
    padding: 0.85rem 0.95rem;
}
.choice:hover { border-color: #16a34a; }
.choice.on { border-color: #16a34a; background: #f0fdf4; box-shadow: 0 0 0 3px #dcfce7; }
.step-rail { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.5rem; }
.step-rail-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.75rem;
    color: #64748b;
}
.step-rail-item span {
    width: 1.4rem;
    height: 1.4rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #e2e8e0;
    font-weight: 700;
}
.step-rail-item.active { color: #166534; font-weight: 600; }
.step-rail-item.active span, .step-rail-item.done span { background: #16a34a; color: #fff; }
.fit { height: 6px; background: #e5eee7; border-radius: 999px; overflow: hidden; margin-top: 0.25rem; }
.fit i { display: block; height: 100%; background: #16a34a; }
.cart-badge {
    min-width: 1.15rem;
    height: 1.15rem;
    border-radius: 999px;
    background: #16a34a;
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 0.3rem;
}
