/* Owner console (desktop) */
body { background: #f3f6fb; }
.z-shell { display: grid; grid-template-columns: 250px 1fr; min-height: 100vh; }
.z-side { background: #0f1f3d; color: #c9d4ea; padding: 22px 14px; display: flex; flex-direction: column; gap: 4px; position: sticky; top: 0; height: 100vh; }
.z-brand { display: flex; align-items: center; gap: 12px; padding: 4px 10px 26px; color: #fff; }
.z-brand .mark { width: 42px; height: 42px; border-radius: 12px; background: var(--grad); display: grid; place-items: center; box-shadow: 0 8px 20px rgba(31,111,235,.4); }
.z-brand .mark svg { stroke: #fff; }
.z-brand b { display: block; font-size: 17px; font-weight: 600; }
.z-brand small { color: #8fa3c8; }
.z-side button { background: none; color: inherit; justify-content: flex-start; height: 46px; border-radius: 10px; font-weight: 400; gap: 12px; padding: 0 12px; }
.z-side button:hover { background: rgba(255,255,255,.06); }
.z-side button.active { background: var(--primary); color: #fff; box-shadow: 0 8px 18px rgba(31,111,235,.35); }
.z-side .spacer { flex: 1; }
.z-main { padding: 28px 34px 40px; min-width: 0; }
.z-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.z-head h1 { margin: 0; font-size: 26px; font-weight: 600; }
.z-head .sub { color: var(--muted); font-size: 14px; }
.z-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; margin-bottom: 22px; }
.z-kpi { background: #fff; border-radius: 16px; padding: 18px; box-shadow: var(--shadow); display: flex; gap: 14px; align-items: center; animation: zin .4s both; }
.z-kpi .ic { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--primary-50); color: var(--primary); }
.z-kpi .num { font-size: 26px; font-weight: 600; color: var(--ink); line-height: 1.1; }
.z-kpi .lbl { color: var(--muted); font-size: 13px; }
.z-kpi:nth-child(2) { animation-delay: .05s } .z-kpi:nth-child(3) { animation-delay: .1s } .z-kpi:nth-child(4) { animation-delay: .15s }
.z-hero { background: var(--grad); color: #fff; border-radius: 20px; padding: 26px 28px; display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 22px; position: relative; overflow: hidden; }
.z-hero::after { content: ''; position: absolute; width: 260px; height: 260px; border-radius: 50%; background: rgba(255,255,255,.08); inset-inline-start: -60px; bottom: -140px; }
.z-hero h2 { color: #fff; margin: 0 0 6px; font-weight: 600; }
.z-hero p { margin: 0; opacity: .85; }
.z-hero button { background: #fff; color: var(--primary); height: 52px; padding: 0 24px; font-size: 16px; position: relative; z-index: 1; }
.z-hero button:hover { background: var(--primary-50); }
.z-panel { background: #fff; border-radius: 16px; box-shadow: var(--shadow); padding: 18px; margin-bottom: 18px; }
.z-panel > h3 { margin: 0 0 14px; display: flex; justify-content: space-between; align-items: center; }
.z-panel .table-wrap { box-shadow: none; }
.z-grid2 { display: grid; grid-template-columns: 1.4fr 1fr; gap: 18px; }
@media (max-width: 1100px) { .z-grid2 { grid-template-columns: 1fr; } }
tr.click { cursor: pointer; transition: background .15s; }
tr.click:hover { background: var(--primary-50); }
.doc-cell { display: flex; align-items: center; gap: 10px; }
.doc-cell img, .doc-cell .avatar { width: 40px; height: 40px; border-radius: 12px; object-fit: cover; }
.z-profile { display: flex; gap: 18px; align-items: center; }
.z-profile img, .z-profile .avatar { width: 84px; height: 84px; border-radius: 22px; object-fit: cover; font-size: 28px; }
.z-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.z-feed { list-style: none; margin: 0; padding: 0; max-height: 460px; overflow: auto; }
.z-feed li { display: flex; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.z-feed li:last-child { border-bottom: 0; }
.z-feed .t { color: var(--muted); font-size: 12px; margin-inline-start: auto; white-space: nowrap; }
.z-feed .b { width: 8px; height: 8px; border-radius: 50%; background: var(--primary); margin-top: 7px; flex: none; }
.z-login { min-height: 100vh; display: grid; place-items: center; padding: 20px; background: radial-gradient(600px 400px at 80% 0%, var(--primary-50), transparent), #f3f6fb; }
.z-login .card { width: 100%; max-width: 400px; padding: 30px; animation: zin .4s both; }
.z-login h1 { text-align: center; }
.z-fade { animation: zin .35s both; }
@keyframes zin { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media (max-width: 800px) {
  .z-shell { grid-template-columns: 1fr; }
  .z-side { position: static; height: auto; flex-direction: row; flex-wrap: wrap; }
  .z-brand { width: 100%; padding-bottom: 10px; }
  .z-side .spacer { display: none; }
  .z-main { padding: 18px 16px; }
}
