:root {
  --rq-bg: #f4f7f9;
  --rq-ink: #17262f;
  --rq-muted: #5f7280;
  --rq-line: #d2dee5;
  --rq-card: #ffffff;
  --rq-main: #0c8f6f;
  --rq-main-deep: #066d54;
  --rq-warn: #f9a43b;
  --rq-danger: #d74c4c;
  --rq-radius: 16px;
  --rq-shadow: 0 16px 36px rgba(12, 63, 50, 0.12);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; font-family: "Manrope", sans-serif; color: var(--rq-ink); background: radial-gradient(circle at 20% -10%, #d6f7e8 0, transparent 32%), var(--rq-bg); }

.rq-topbar { position: sticky; top: 0; z-index: 20; background: rgba(244, 247, 249, 0.9); backdrop-filter: blur(8px); border-bottom: 1px solid rgba(23, 38, 47, 0.1); }
.rq-topbar-inner { width: min(1120px, calc(100% - 1.2rem)); margin: 0 auto; display: flex; justify-content: space-between; align-items: center; gap: 0.75rem; padding: 0.75rem 0; }
.rq-brand { text-decoration: none; color: inherit; display: flex; align-items: center; gap: 0.65rem; min-width: 0; }
.rq-mark { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; font-weight: 800; color: #fff; background: linear-gradient(145deg, #0d8a6b, #0a5f49); }
.rq-brand h1 { margin: 0; font-family: "Sora", sans-serif; font-size: clamp(1rem, 3.7vw, 1.3rem); }
.rq-brand p { margin: 0; color: var(--rq-muted); font-size: 0.78rem; }

.rq-shell { width: min(1120px, calc(100% - 1.2rem)); margin: 1rem auto 2rem; display: grid; gap: 1rem; }
.rq-hero { border-radius: 22px; padding: 1rem; background: linear-gradient(140deg, #0e8769, #064f3d); color: #fff; display: grid; gap: 1rem; box-shadow: var(--rq-shadow); }
.rq-kicker { margin: 0; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; color: #f7d899; font-size: 0.74rem; }
.rq-hero h2 { margin: 0.2rem 0; font-family: "Sora", sans-serif; line-height: 1.25; font-size: clamp(1.2rem, 5.1vw, 1.9rem); max-width: 22ch; }
.rq-hero p { margin: 0; max-width: 65ch; color: rgba(255, 255, 255, 0.9); }
.rq-hero-buttons { display: flex; gap: 0.55rem; flex-wrap: wrap; margin-top: 0.9rem; }
.rq-hero-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.65rem; }
.rq-hero-stats article { background: rgba(255, 255, 255, 0.12); border: 1px solid rgba(255, 255, 255, 0.15); border-radius: 14px; padding: 0.75rem; }
.rq-hero-stats h3 { margin: 0; font-family: "Sora", sans-serif; font-size: 1.28rem; }
.rq-hero-stats p { margin: 0.3rem 0 0; color: rgba(255, 255, 255, 0.9); font-size: 0.82rem; }

.rq-grid { display: grid; gap: 1rem; grid-template-columns: 1fr; }
.rq-card { background: var(--rq-card); border: 1px solid var(--rq-line); border-radius: var(--rq-radius); box-shadow: 0 8px 24px rgba(17, 43, 54, 0.07); padding: 0.95rem; }
.rq-card-head { display: flex; justify-content: space-between; align-items: center; gap: 0.6rem; margin-bottom: 0.6rem; }
.rq-card-head h3 { margin: 0; font-family: "Sora", sans-serif; font-size: 1rem; }
.rq-pill { background: #e8f6f1; color: #07513f; border: 1px solid #bde7d6; border-radius: 999px; padding: 0.25rem 0.55rem; font-size: 0.72rem; font-weight: 700; white-space: nowrap; }
.rq-list { display: grid; gap: 0.55rem; }
.rq-list-item { border: 1px solid var(--rq-line); border-radius: 12px; padding: 0.72rem; background: #fff; }
.rq-list-item h4 { margin: 0; }
.rq-list-item p { margin: 0.35rem 0 0; color: var(--rq-muted); font-size: 0.87rem; }

.rq-bank-box { border: 1px dashed #b6cad6; background: #f6fafc; border-radius: 12px; padding: 0.8rem; }
.rq-bank-box p { margin: 0.35rem 0; }
.rq-warn { color: #8b4f02; font-weight: 700; }
.rq-muted { color: var(--rq-muted); font-size: 0.88rem; margin: 0.2rem 0 0.7rem; }

.rq-case-board { display: grid; gap: 0.7rem; }
.rq-case { border: 1px solid var(--rq-line); border-radius: 14px; padding: 0.78rem; }
.rq-case-top { display: flex; justify-content: space-between; gap: 0.6rem; align-items: center; }
.rq-case h4 { margin: 0; font-size: 0.98rem; }
.rq-status { border-radius: 999px; font-size: 0.72rem; font-weight: 800; padding: 0.25rem 0.55rem; }
.rq-status.open { background: #fff3df; color: #85510a; }
.rq-case p { margin: 0.35rem 0 0; color: var(--rq-muted); font-size: 0.88rem; }
.rq-progress { margin-top: 0.6rem; height: 9px; background: #e8eef2; border-radius: 999px; overflow: hidden; }
.rq-progress > span { display: block; height: 100%; background: linear-gradient(90deg, #0e8f6f, #0c6f55); }
.rq-case-meta { margin-top: 0.5rem; display: flex; justify-content: space-between; gap: 0.6rem; font-weight: 700; font-size: 0.84rem; }
.rq-case-actions { margin-top: 0.65rem; display: flex; gap: 0.5rem; flex-wrap: wrap; }

.rq-table-wrap { overflow: auto; border: 1px solid var(--rq-line); border-radius: 12px; }
.rq-table { width: 100%; border-collapse: collapse; min-width: 640px; background: #fff; }
.rq-table th, .rq-table td { border-bottom: 1px solid var(--rq-line); text-align: left; padding: 0.55rem; font-size: 0.85rem; }
.rq-table th { background: #f6fbf8; font-size: 0.78rem; letter-spacing: 0.02em; text-transform: uppercase; color: #3f5968; }

.rq-btn { border: none; border-radius: 999px; font: inherit; font-weight: 700; padding: 0.6rem 0.95rem; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: 0.35rem; }
.rq-btn-primary { background: var(--rq-main); color: #fff; }
.rq-btn-primary:hover { background: var(--rq-main-deep); }
.rq-btn-soft { background: #e8f0f5; color: var(--rq-ink); }
.rq-btn-soft:hover { background: #dbe7ee; }
.rq-btn-warn { background: var(--rq-warn); color: #fff; }
.rq-btn-warn:hover { background: #df8d25; }

.rq-modal { position: fixed; inset: 0; background: rgba(8, 25, 32, 0.6); z-index: 40; display: none; align-items: center; justify-content: center; padding: 0.6rem; }
.rq-modal.open { display: flex; }
.rq-sheet { width: min(760px, 100%); max-height: 92vh; overflow: auto; background: #fff; border-radius: 16px; padding: 0.95rem; }
.rq-sheet-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.65rem; }
.rq-sheet-head h3 { margin: 0; font-family: "Sora", sans-serif; }
.rq-x { border: 1px solid var(--rq-line); background: #fff; border-radius: 10px; width: 34px; height: 34px; cursor: pointer; font-weight: 800; }
.rq-fields { display: grid; gap: 0.58rem; grid-template-columns: 1fr; }
.rq-fields label { display: grid; gap: 0.32rem; font-size: 0.88rem; font-weight: 700; }
.rq-fields input, .rq-fields textarea, .rq-fields select { width: 100%; border: 1px solid var(--rq-line); border-radius: 11px; padding: 0.62rem 0.68rem; font: inherit; color: var(--rq-ink); background: #fff; }
.rq-col2 { grid-column: 1 / -1; }
.rq-form-actions { display: flex; justify-content: flex-end; gap: 0.5rem; margin-top: 0.8rem; flex-wrap: wrap; }

@media (min-width: 860px) {
  .rq-hero { grid-template-columns: 1.2fr 0.8fr; align-items: center; padding: 1.2rem; }
  .rq-grid { grid-template-columns: 1fr 1fr; }
  .rq-fields { grid-template-columns: 1fr 1fr; }
}
