/* luk-family.com main page: sign-in, workspace chooser and admin terminal.
   Same calm palette as the Louisa workspaces: navy & sea-green, white cards on a soft blue-grey canvas. */
:root {
  --canvas: #eef2f7;
  --card: #ffffff;
  --line: #e2e7ef;
  --line-2: #edf0f5;
  --ink: #101828;
  --text: #2a3445;
  --muted: #667085;
  --subtle: #98a2b3;
  --primary: #1f5fae;
  --primary-600: #194f92;
  --primary-50: #e9f1fb;
  --navy: #123764;
  --sea: #2aa37a;
  --sea-700: #17795d;
  --teal: #1d8796;
  --teal-50: #e1f3f6;
  --red: #d63c3c;
  --red-50: #fdecec;
  --green: #1f8a4c;
  --green-50: #e4f5ea;
  --r: 12px;
  --r-lg: 18px;
  --sh-1: 0 1px 2px rgba(16, 24, 40, .05);
  --sh-2: 0 1px 2px rgba(16, 24, 40, .04), 0 4px 14px rgba(16, 24, 40, .05);
  --sh-3: 0 2px 6px rgba(16, 24, 40, .06), 0 18px 40px -12px rgba(18, 55, 100, .25);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 15px/1.5 Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: var(--text); background: var(--canvas); -webkit-font-smoothing: antialiased; }
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-600); }
h1, h2, h3 { color: var(--ink); margin: 0; letter-spacing: -.02em; }
p { margin: 0; }
.ic { flex: none; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.mt12 { margin-top: 12px; }
.row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.row.between { justify-content: space-between; }

/* Buttons & fields */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 42px; padding: 0 18px; border-radius: 10px; border: 1px solid transparent; font: 600 14.5px/1 Inter, system-ui, sans-serif; cursor: pointer; transition: background .15s, box-shadow .15s, transform .05s; white-space: nowrap; }
.btn:active { transform: translateY(1px); }
.btn:focus-visible, input:focus-visible { outline: 3px solid rgba(31, 95, 174, .25); outline-offset: 1px; }
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 1px 2px rgba(20, 63, 117, .3), inset 0 1px 0 rgba(255, 255, 255, .12); }
.btn-primary:hover { background: var(--primary-600); color: #fff; }
.btn-ghost { background: #fff; color: var(--text); border-color: var(--line); box-shadow: var(--sh-1); }
.btn-ghost:hover { background: #f6f8fb; color: var(--ink); }
.btn-sm { height: 34px; padding: 0 12px; font-size: 13.5px; border-radius: 9px; }
.btn-block { width: 100%; height: 48px; font-size: 15.5px; }
.fld { display: block; margin-bottom: 14px; }
.fld > span:not(.inp):not(.b-money) { display: block; font-size: 13px; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.fld input { width: 100%; height: 44px; padding: 0 12px; border: 1px solid #d5dce6; border-radius: 10px; font: 15px Inter, system-ui, sans-serif; color: var(--ink); background: #fff; transition: border-color .15s, box-shadow .15s; }
.fld input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(31, 95, 174, .14); outline: none; }
.help { display: block; font-size: 12.5px; color: var(--muted); margin-top: 6px; }
.inp { display: flex; align-items: center; gap: 4px; height: 48px; padding-left: 13px; border: 1px solid #d5dce6; border-radius: 12px; background: #fff; color: var(--subtle); transition: border-color .15s, box-shadow .15s; }
.inp:focus-within { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(31, 95, 174, .14); color: var(--primary); }
.inp input { flex: 1; min-width: 0; height: 46px; border: 0; box-shadow: none !important; background: transparent; padding: 0 12px 0 8px; font-size: 15.5px; }
.inp input:focus { outline: none; }

.pt-flash { display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; border-radius: 12px; font-size: 14px; margin-bottom: 18px; border: 1px solid; }
.pt-flash .ic { margin-top: 1px; }
.pt-flash.ok { background: #f0faf4; border-color: #cdeadb; color: #1a5e37; }
.pt-flash.ok .ic { color: var(--green); }
.pt-flash.err { background: #fef3f3; border-color: #f4d0d0; color: #8c2424; }
.pt-flash.err .ic { color: var(--red); }

/* ---------------- Sign-in ---------------- */
.au { min-height: 100vh; min-height: 100dvh; display: grid; place-items: center; padding: 32px 16px;
  background: radial-gradient(900px 520px at 50% 120%, rgba(42, 163, 122, .35), transparent 65%), linear-gradient(160deg, #1d5aa6 0%, #17467f 52%, #123764 100%); }
.au-card { width: 100%; max-width: 400px; background: #fff; border-radius: 22px; padding: 34px 30px 30px; box-shadow: 0 30px 70px -20px rgba(6, 22, 48, .55); }
.au-brand { display: flex; flex-direction: column; align-items: center; gap: 14px; margin-bottom: 26px; text-align: center; }
.au-brand h1 { font-size: 24px; letter-spacing: -.03em; font-weight: 750; }
.au-card .fld { margin-bottom: 16px; }
.au-card .btn-block { margin-top: 8px; }

/* ---------------- Signed-in pages ---------------- */
body.pt-app { min-height: 100vh; background:
  radial-gradient(1100px 520px at -10% -20%, rgba(31, 95, 174, .12), transparent 60%),
  radial-gradient(900px 480px at 110% -10%, rgba(42, 163, 122, .10), transparent 60%), var(--canvas); }
.pt-bar { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 28px; background: rgba(255, 255, 255, .82); backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid rgba(226, 231, 239, .9); }
.pt-brand { display: flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 750; font-size: 16.5px; letter-spacing: -.02em; min-width: 0; }
.pt-brand:hover { color: var(--ink); }
.pt-brand span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pt-nav { display: flex; align-items: center; gap: 4px; }
.pt-link { display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 12px; border-radius: 9px; color: var(--muted); font-weight: 600; font-size: 14px; }
.pt-link:hover { background: #f1f4f8; color: var(--ink); }
.pt-link.on { background: var(--primary-50); color: var(--primary); }
.pt-me { display: inline-flex; align-items: center; gap: 8px; margin: 0 6px 0 10px; padding-left: 14px; border-left: 1px solid var(--line); font-weight: 600; font-size: 14px; color: var(--ink); }
.pt-me i { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: linear-gradient(135deg, #2f6fc0, #1b4f93); color: #fff; font-style: normal; font-size: 13px; font-weight: 700; }
.pt-main { max-width: 1080px; margin: 0 auto; padding: 40px 28px 72px; }
.pt-hero { margin-bottom: 28px; }
.pt-hero.sm { margin-bottom: 22px; }
.eyebrow { font-size: 12.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--primary); margin-bottom: 8px; }
.pt-hero h1 { font-size: clamp(28px, 3.4vw, 38px); line-height: 1.12; letter-spacing: -.035em; font-weight: 750; }
.pt-hero .lead { font-size: 16.5px; color: var(--muted); margin-top: 8px; }

/* Workspace cards */
.ws-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.ws { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: 22px; overflow: hidden; color: var(--text); box-shadow: var(--sh-2); transition: transform .18s ease, box-shadow .18s ease, border-color .18s; }
.ws:hover { transform: translateY(-3px); box-shadow: var(--sh-3); color: var(--text); border-color: #d3dbe6; }
.ws:focus-visible { outline: 3px solid rgba(31, 95, 174, .35); outline-offset: 3px; }
.ws-top { position: relative; height: 150px; overflow: hidden; }
.ws-teal .ws-top { background: radial-gradient(420px 220px at 85% 120%, rgba(255, 255, 255, .22), transparent 60%), linear-gradient(135deg, #1d8796 0%, #2aa37a 100%); }
.ws-green .ws-top { background: radial-gradient(420px 220px at 85% 120%, rgba(255, 255, 255, .22), transparent 60%), linear-gradient(135deg, #1f8a4c 0%, #17795d 100%); }
.ws-green .ws-n, .ws-green .ws-go { color: var(--green); }
.wl-n.green { background: linear-gradient(135deg, #1f8a4c, #17795d); }
.ws-blue .ws-top { background: radial-gradient(420px 220px at 85% 120%, rgba(42, 163, 122, .45), transparent 60%), linear-gradient(135deg, #1f5fae 0%, #123764 100%); }
.ws-top::before, .ws-top::after { content: ""; position: absolute; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .18); }
.ws-top::before { width: 260px; height: 260px; right: -60px; top: -120px; }
.ws-top::after { width: 160px; height: 160px; right: 10px; top: -50px; }
.ws-n { position: absolute; left: 22px; top: 22px; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: #fff; font-weight: 800; font-size: 20px; box-shadow: 0 8px 20px -6px rgba(0, 0, 0, .3); }
.ws-teal .ws-n { color: var(--teal); }
.ws-blue .ws-n { color: var(--primary); }
.ws-ic { position: absolute; right: 26px; bottom: 22px; display: grid; place-items: center; width: 64px; height: 64px; border-radius: 20px; background: rgba(255, 255, 255, .16); color: #fff; border: 1px solid rgba(255, 255, 255, .25); backdrop-filter: blur(4px); }
.ws-tag { position: absolute; left: 22px; bottom: 20px; padding: 5px 10px; border-radius: 999px; background: rgba(255, 255, 255, .18); color: #fff; font-size: 12px; font-weight: 700; letter-spacing: .02em; border: 1px solid rgba(255, 255, 255, .25); }
.ws-body { padding: 22px 24px 8px; flex: 1; }
.ws-body h2 { font-size: 26px; letter-spacing: -.03em; }
.ws-body > p { color: var(--muted); margin-top: 6px; font-size: 15px; }
.ws-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 12px; gap: 8px; margin: 18px 0 8px; padding: 14px 0 0; border-top: 1px solid var(--line-2); }
.ws-stats dt { font-size: 11.5px; font-weight: 600; color: var(--subtle); text-transform: uppercase; letter-spacing: .05em; }
.ws-stats dd { margin: 2px 0 0; font-size: 20px; font-weight: 750; color: var(--ink); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.ws-empty { margin: 16px 0 8px; padding: 12px 14px; border-radius: 12px; background: var(--primary-50); color: #284a73; font-size: 14px; }
.ws-go { display: flex; align-items: center; justify-content: space-between; padding: 16px 24px; margin-top: 10px; border-top: 1px solid var(--line-2); font-weight: 700; font-size: 15px; }
.ws-teal .ws-go { color: var(--teal); }
.ws-blue .ws-go { color: var(--primary); }
.ws-go .ic { transition: transform .18s; }
.ws:hover .ws-go .ic { transform: translateX(4px); }
.adm-strip { display: flex; align-items: center; gap: 14px; margin-top: 22px; padding: 16px 20px; background: rgba(255, 255, 255, .75); border: 1px solid var(--line); border-radius: 16px; color: var(--text); box-shadow: var(--sh-1); transition: background .15s, box-shadow .15s; }
.adm-strip:hover { background: #fff; color: var(--text); box-shadow: var(--sh-2); }
.adm-strip > .ic { color: var(--subtle); margin-left: auto; }
.adm-ic { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: #f1f4f8; color: var(--ink); flex: none; }
.adm-t b { display: block; color: var(--ink); font-size: 15px; }
.adm-t small { color: var(--muted); font-size: 13.5px; }

/* Admin terminal */
.adm-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; align-items: start; }
.span2 { grid-column: 1 / -1; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh-2); min-width: 0; scroll-margin-top: 80px; }
.card-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 16px 20px 8px; }
.card-h h2 { display: flex; align-items: center; gap: 9px; font-size: 16px; font-weight: 700; }
.card-h h2 .ic { color: var(--muted); }
.card-b { padding: 8px 20px 20px; }
.pill { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.pill.gray { background: #f1f4f8; color: var(--muted); }
.pill.blue { background: var(--primary-50); color: var(--primary); }
.logo-prev { display: grid; grid-template-columns: auto auto minmax(0, 1fr); gap: 12px; align-items: stretch; margin-bottom: 14px; }
.lp-tile { display: grid; place-items: center; width: 116px; height: 116px; border-radius: 16px; border: 1px solid var(--line); }
.lp-tile.light { background: repeating-conic-gradient(#f4f6fa 0 25%, #fff 0 50%) 0 0 / 16px 16px; }
.lp-tile.dark { background: linear-gradient(160deg, #1d5aa6, #123764); border-color: #123764; }
.lp-side { display: flex; flex-direction: column; justify-content: center; gap: 10px; padding: 14px; border-radius: 16px; border: 1px solid var(--line); background: #f8fafc; min-width: 0; }
.lp-row { display: flex; align-items: center; gap: 10px; min-width: 0; }
.lp-row b { display: block; color: var(--ink); font-size: 16px; line-height: 1.15; }
.lp-row small { display: block; color: var(--muted); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lp-side > small { font-size: 12px; }
.up-form { margin-top: 14px; display: grid; gap: 12px; }
.drop { position: relative; display: flex; align-items: center; gap: 14px; padding: 16px; border: 1.5px dashed #c8d2df; border-radius: 14px; background: #fafbfd; cursor: pointer; transition: border-color .15s, background .15s; }
.drop:hover, .drop.over { border-color: var(--primary); background: var(--primary-50); }
.drop.has { border-style: solid; border-color: var(--primary); background: #f4f8fd; }
.drop input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.drop-ic { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: #fff; border: 1px solid var(--line); color: var(--primary); flex: none; }
.drop-t b { display: block; color: var(--ink); font-size: 14.5px; word-break: break-all; }
.drop-t small { color: var(--muted); font-size: 12.5px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.divider { height: 1px; background: var(--line-2); margin: 18px 0 14px; }
.wl { display: grid; gap: 10px; }
.wl-i { display: flex; align-items: center; gap: 12px; padding: 12px; border: 1px solid var(--line); border-radius: 14px; background: #fbfcfe; }
.wl-n { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 11px; color: #fff; font-weight: 800; flex: none; }
.wl-n.teal { background: linear-gradient(135deg, #1d8796, #2aa37a); }
.wl-n.blue { background: linear-gradient(135deg, #1f5fae, #123764); }
.wl-t { min-width: 0; flex: 1; }
.wl-t b { display: block; color: var(--ink); }
.wl-t small { color: var(--muted); font-size: 12.5px; }
.wl-a { display: flex; gap: 6px; flex: none; }
.act { list-style: none; margin: 0; padding: 0; }
.act li { display: flex; align-items: center; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line-2); font-size: 14px; }
.act li:last-child { border-bottom: 0; }
.act .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--sea); flex: none; }
.act li.bad .dot { background: var(--red); }
.act-e { color: var(--ink); flex: 1; min-width: 0; }
.act-m { color: var(--subtle); font-size: 12.5px; white-space: nowrap; }

/* ---------------- Responsive ---------------- */
@media (max-width: 900px) {
  .ws-grid, .adm-grid { grid-template-columns: 1fr; }
}
@media (min-width: 901px) and (max-width: 1100px) {
  .ws-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .pt-bar { padding: 10px 16px; }
  .pt-link span, .pt-me span { display: none; }
  .pt-link { padding: 0 10px; }
  .pt-me { margin: 0 2px 0 6px; padding-left: 8px; }
  .pt-main { padding: 26px 16px 56px; }
  .ws-top { height: 112px; }
  .ws-tag { left: 78px; bottom: auto; top: 31px; }
  .ws-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 12px; }
  .logo-prev { grid-template-columns: 1fr 1fr; }
  .lp-tile { width: auto; height: 104px; }
  .lp-side { grid-column: 1 / -1; }
  .two { grid-template-columns: 1fr; }
  .wl-i { flex-wrap: wrap; }
  .wl-a { width: 100%; }
  .wl-a .btn { flex: 1; }
  .act li { flex-wrap: wrap; gap: 4px 12px; }
  .act-m { width: 100%; padding-left: 20px; }
}
