/* Sam's Giant Tortoise Farm - Animal Medical web app mockups
   Light, bright dashboard. Brand lime -> mint gradient kept for anything primary,
   deep farm green reserved for text and the brand bar.
   The mobile app keeps the dark photo-first look - mobile.css re-declares
   these same tokens, so nothing below needs to know which theme is active. */

:root {
    /* surfaces */
    --bg: #f1f5ef;
    --bg-2: #e7ede4;
    --surface: #ffffff;
    --card: #ffffff;
    --card-2: #f3f7f1;
    --stroke: #e2e9de;
    --stroke-2: #d2ddcd;

    /* ink */
    --text: #121d12;
    --muted: #5c6f5e;
    --faint: #879a89;

    /* brand */
    --lime: #7cc520;
    --mint: #15b36b;
    --grad: linear-gradient(135deg, #b6f24f 0%, #35e08f 100%);
    --grad-soft: linear-gradient(135deg, rgba(182, 242, 79, .26), rgba(53, 224, 143, .2));
    --on-grad: #06240f;
    --ink-bar: #0a130b;

    /* status */
    --red: #c6392b;
    --red-bg: #fdeeec;
    --amber: #a4720a;
    --amber-bg: #fdf4e3;
    --blue: #1f6fb2;
    --blue-bg: #ebf4fb;
    --mint-bg: #e8f8ef;

    --r: 16px;
    --shadow: 0 1px 2px rgba(18, 29, 18, .05), 0 6px 18px rgba(18, 29, 18, .05);
}

* { box-sizing: border-box; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font: 14px/1.5 "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, Helvetica, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    letter-spacing: -.1px;
}

a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; letter-spacing: -.4px; }
svg.ic { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }
svg.ic-sm { width: 14px; height: 14px; }

/* ------------------------------------------------------------ brand mark
   The logo is a wide photo on a black ground - never crop it to a square. */

.brand { display: flex; align-items: center; gap: 11px; font-weight: 650; font-size: 14px; color: #f0f5ef; }
.brand img {
    height: 30px;
    width: auto;
    border-radius: 7px;
    background: #000;
    display: block;
}
.brand small { display: block; font-weight: 400; font-size: 9px; color: #93a894; letter-spacing: 1.1px; text-transform: uppercase; }

/* ------------------------------------------------------------ mockup chrome */

.mock-bar {
    display: flex; align-items: center; gap: 12px;
    padding: 9px 20px; background: var(--ink-bar);
    position: sticky; top: 0; z-index: 60;
}
.spacer { flex: 1; }
.tag {
    font-size: 10px; letter-spacing: .8px; text-transform: uppercase; font-weight: 700;
    padding: 5px 11px; border-radius: 999px; background: var(--grad); color: var(--on-grad);
}
.tag.v2 { background: linear-gradient(135deg, #8fd0ff, #5ea9e8); color: #06243a; }
.mock-note { font-size: 11.5px; color: #8b9e8c; }
.mock-bar .btn { border-color: rgba(255, 255, 255, .22); background: rgba(255, 255, 255, .08); color: #e9f2e9; }
.mock-bar .btn:hover { background: rgba(255, 255, 255, .16); }

/* ------------------------------------------------------------ dashboard shell */

.shell { display: grid; grid-template-columns: 240px 1fr; min-height: calc(100vh - 48px); }

.side { border-right: 1px solid var(--stroke); padding: 18px 14px; background: var(--surface); }
.side-sec { font-size: 9.5px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--faint); margin: 18px 0 7px 10px; font-weight: 700; }
.side-sec:first-child { margin-top: 0; }
.nav { display: grid; gap: 2px; }
.nav a {
    display: flex; align-items: center; gap: 10px; padding: 9px 11px; border-radius: 11px;
    color: var(--muted); font-weight: 550; font-size: 13.5px; cursor: pointer;
}
.nav a:hover { background: var(--card-2); color: var(--text); }
.nav a.on { background: var(--grad-soft); color: #14401f; font-weight: 650; box-shadow: inset 0 0 0 1px rgba(124, 197, 32, .3); }
.nav a .pill { margin-left: auto; font-size: 10.5px; font-weight: 800; padding: 2px 7px; border-radius: 999px; background: var(--red); color: #fff; }

.main { padding: 22px 26px 60px; max-width: 1280px; }

.head { display: flex; align-items: flex-end; gap: 14px; margin-bottom: 18px; flex-wrap: wrap; }
.head h1 { font-size: 23px; }
.head p { margin: 4px 0 0; color: var(--muted); font-size: 13px; }

/* ------------------------------------------------------------ bits */

.card { background: var(--card); border: 1px solid var(--stroke); border-radius: var(--r); padding: 16px; box-shadow: var(--shadow); }
.card-h { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.card-h h3 { font-size: 14.5px; }
.card-h .more { margin-left: auto; font-size: 11.5px; color: var(--faint); cursor: pointer; }
a.more:hover { color: var(--lime); }

.grid { display: grid; gap: 14px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.split { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); gap: 14px; align-items: start; }
@media (max-width: 1100px) { .g4, .g3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .split { grid-template-columns: 1fr; } }

.stat { background: var(--card); border: 1px solid var(--stroke); border-radius: var(--r); padding: 14px 15px; box-shadow: var(--shadow); }
.stat b { display: block; font-size: 27px; font-weight: 750; letter-spacing: -1px; line-height: 1.1; }
.stat span { font-size: 11.5px; color: var(--muted); }
.stat.hot { background: var(--red-bg); border-color: #f6d5d0; }
.stat.hot b { color: var(--red); }
.stat.good { background: var(--mint-bg); border-color: #cdebd9; }
.stat.good b { color: var(--mint); }

.btn {
    border: 1px solid var(--stroke-2); background: var(--surface); color: var(--text);
    border-radius: 999px; padding: 8px 15px; font: inherit; font-weight: 600; font-size: 13px;
    cursor: pointer; display: inline-flex; align-items: center; gap: 7px;
}
.btn:hover { background: var(--card-2); border-color: #bccdb7; }
.btn-accent { background: var(--grad); border: 0; color: var(--on-grad); font-weight: 750; }
.btn-accent:hover { filter: brightness(1.04); background: var(--grad); }
.btn-sm { padding: 5px 11px; font-size: 12px; }
.btn-ghost { background: transparent; border-color: transparent; }
.btn-ghost:hover { background: var(--card-2); border-color: transparent; }

.seg { display: inline-flex; background: var(--card-2); border: 1px solid var(--stroke); border-radius: 999px; padding: 3px; }
.seg button { border: 0; background: transparent; color: var(--muted); font: inherit; font-weight: 600; font-size: 12.5px; padding: 6px 13px; border-radius: 999px; cursor: pointer; }
.seg button.on { background: var(--surface); color: var(--text); box-shadow: 0 1px 3px rgba(18, 29, 18, .12); }

.chip {
    display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 700;
    padding: 3px 9px; border-radius: 999px; background: var(--card-2); color: var(--muted);
    border: 1px solid var(--stroke);
}
.chip.red { background: var(--red-bg); color: var(--red); border-color: #f6d5d0; }
.chip.amber { background: var(--amber-bg); color: var(--amber); border-color: #f2e2c0; }
.chip.blue { background: var(--blue-bg); color: var(--blue); border-color: #d4e7f6; }
.chip.mint { background: var(--mint-bg); color: var(--mint); border-color: #cdebd9; }

/* table */
table { width: 100%; border-collapse: collapse; }
th {
    text-align: left; font-size: 9.5px; letter-spacing: 1.1px; text-transform: uppercase;
    color: var(--faint); font-weight: 700; padding: 0 12px 9px; border-bottom: 1px solid var(--stroke);
}
td { padding: 11px 12px; border-bottom: 1px solid var(--stroke); font-size: 13px; vertical-align: middle; }
tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: var(--card-2); }
.num { font-variant-numeric: tabular-nums; }

/* animal cell */
.who { display: flex; align-items: center; gap: 10px; }
.who img { width: 36px; height: 36px; border-radius: 10px; object-fit: cover; flex: none; }
.who b { display: block; font-size: 13.5px; font-weight: 650; }
.who span { font-size: 11px; color: var(--faint); }
a.who:hover b { color: var(--mint); }
.av { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; }
.avi {
    width: 26px; height: 26px; border-radius: 50%; background: var(--card-2); color: var(--muted);
    border: 1px solid var(--stroke);
    display: inline-flex; align-items: center; justify-content: center; font-size: 10.5px; font-weight: 750; flex: none;
}

/* task row */
.task { display: flex; align-items: center; gap: 12px; padding: 12px; border: 1px solid var(--stroke); border-radius: 13px; background: var(--surface); }
.task + .task { margin-top: 8px; }
.task.late { background: var(--red-bg); border-color: #f3cfca; }
.task.done { opacity: .55; }
.task.done .t-main b { text-decoration: line-through; }
.t-main { flex: 1; min-width: 0; }
.t-main b { font-size: 13.5px; font-weight: 650; }
.t-main p { margin: 2px 0 0; font-size: 11.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.box {
    width: 24px; height: 24px; border-radius: 8px; border: 1.8px solid var(--stroke-2);
    background: var(--surface);
    display: inline-flex; align-items: center; justify-content: center; flex: none; cursor: pointer; color: transparent;
}
.box:hover { border-color: var(--mint); }
.box.on, .box.tick { background: var(--grad); border-color: transparent; color: var(--on-grad); }

/* form */
.field { margin-bottom: 14px; }
.field > label { display: block; font-size: 11px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; color: var(--faint); margin-bottom: 6px; }
.in, textarea.in, select.in {
    width: 100%; background: var(--surface); border: 1px solid var(--stroke-2); color: var(--text);
    border-radius: 11px; padding: 10px 12px; font: inherit; font-size: 13.5px;
}
.in:focus, textarea.in:focus, select.in:focus { outline: 0; border-color: var(--mint); box-shadow: 0 0 0 3px rgba(53, 224, 143, .16); }
.in::placeholder { color: #9aab9c; }
.in:disabled { background: var(--card-2); color: var(--muted); }
textarea.in { resize: vertical; min-height: 104px; line-height: 1.55; }
.hint { font-size: 11.5px; color: var(--faint); margin-top: 6px; }
.row { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.row3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.radios { display: flex; flex-wrap: wrap; gap: 7px; }
.radios span {
    padding: 7px 13px; border-radius: 999px; border: 1px solid var(--stroke-2);
    background: var(--surface); font-size: 12.5px; font-weight: 600; cursor: pointer; color: var(--muted);
}
.radios span:hover { border-color: var(--mint); color: var(--text); }
.radios span.on { background: var(--grad); border-color: transparent; color: var(--on-grad); font-weight: 750; }
.sw { width: 40px; height: 23px; border-radius: 999px; background: #cfd9cb; position: relative; flex: none; cursor: pointer; }
.sw::after { content: ""; position: absolute; top: 2.5px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.2); }
.sw.on { background: var(--grad); }
.sw.on::after { left: 19px; }

/* banner */
.banner {
    display: flex; align-items: center; gap: 12px; padding: 13px 15px; border-radius: 14px;
    background: var(--red-bg); border: 1px solid #f3cfca; margin-bottom: 16px;
}
.banner.amber { background: var(--amber-bg); border-color: #f0dfbb; }
.banner.info { background: var(--blue-bg); border-color: #d4e7f6; }
.banner b { font-size: 13.5px; }
.banner p { margin: 2px 0 0; font-size: 12px; color: var(--muted); }

.empty { text-align: center; padding: 26px 10px; color: var(--faint); font-size: 12.5px; }
.sep { height: 1px; background: var(--stroke); margin: 14px 0; }

/* label / value row */
.kv { display: flex; gap: 10px; font-size: 13px; padding: 8px 0; border-bottom: 1px solid var(--stroke); }
.kv:last-child { border-bottom: 0; }
.kv > span:first-child { color: var(--faint); width: 116px; flex: none; font-size: 12px; }

/* bulleted list - a .kv with an empty first cell reads as a bullet */
.kv > span:first-child:empty { width: 18px; position: relative; }
.kv > span:first-child:empty::before {
    content: ""; position: absolute; left: 4px; top: 7px;
    width: 6px; height: 6px; border-radius: 50%; background: var(--mint);
}

.note {
    background: var(--card-2); border: 1px solid var(--stroke); border-left: 3px solid var(--lime);
    border-radius: 10px; padding: 12px 14px; font-size: 13px; line-height: 1.6;
}

/* timeline */
.tl { position: relative; padding-left: 20px; }
.tl::before { content: ""; position: absolute; left: 5px; top: 6px; bottom: 6px; width: 1px; background: var(--stroke-2); }
.tl-i { position: relative; padding: 0 0 16px; }
.tl-i::before { content: ""; position: absolute; left: -18px; top: 5px; width: 8px; height: 8px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 3px var(--surface); }
.tl-i small { color: var(--faint); font-size: 11px; }
.tl-i b { display: block; font-size: 13.5px; margin: 1px 0 3px; }
.tl-i p { margin: 0; font-size: 12.5px; color: var(--muted); }

/* small list row, reused inside cards */
.mini { display: flex; align-items: center; gap: 9px; padding: 9px 10px; border-radius: 12px; background: var(--card-2); border: 1px solid var(--stroke); }
.mini + .mini { margin-top: 7px; }
.mini img { width: 32px; height: 32px; border-radius: 9px; object-fit: cover; flex: none; }
.mini .m { flex: 1; min-width: 0; }
.mini b { display: block; font-size: 12.5px; font-weight: 650; }
.mini span { font-size: 10.5px; color: var(--faint); display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mini.late { background: var(--red-bg); border-color: #f3cfca; }
a.mini:hover { border-color: var(--mint); }
.sm-lab { font-size: 9.5px; letter-spacing: 1.1px; text-transform: uppercase; color: var(--faint); font-weight: 700; margin: 15px 0 8px; }
.sm-lab:first-child { margin-top: 2px; }

/* phone notification preview - stays dark, it is a phone */
.push {
    width: 300px; border-radius: 18px; padding: 13px 14px; background: #1c2a1f; color: #e9f2e9;
    border: 1px solid #2b3c2e;
}
.push-h { display: flex; align-items: center; gap: 8px; font-size: 10.5px; color: #9bb0a1; margin-bottom: 7px; }
.push-h img { height: 15px; width: auto; border-radius: 4px; background: #000; }
.push b { font-size: 13px; }
.push p { margin: 3px 0 0; font-size: 12px; color: #9bb0a1; line-height: 1.45; }

/* ------------------------------------------------------------ sidebar footer */

.side-me { display: flex; align-items: center; gap: 10px; padding: 7px 8px; border-radius: 11px; }
.side-me:hover { background: var(--card-2); }
.side-me img { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; }
.side-me b { display: block; font-size: 13px; }
.side-me span { font-size: 11px; color: var(--faint); }
.side-out { display: flex; align-items: center; gap: 9px; padding: 9px 11px; border-radius: 11px; color: var(--faint); font-size: 12.5px; font-weight: 600; }
.side-out:hover { background: var(--red-bg); color: var(--red); }

/* ------------------------------------------------------------ auth pages */

.auth-wrap {
    min-height: calc(100vh - 48px);
    display: grid;
    place-items: center;
    padding: 34px 20px;
    background:
        radial-gradient(120% 70% at 50% 0%, rgba(53, 224, 143, .13), transparent 62%),
        var(--bg);
}
.auth-card {
    width: 100%;
    max-width: 408px;
    background: var(--surface);
    border: 1px solid var(--stroke);
    border-radius: 22px;
    padding: 30px 28px;
    box-shadow: 0 2px 6px rgba(18, 29, 18, .05), 0 22px 50px rgba(18, 29, 18, .09);
}
.auth-card img.logo { height: 38px; width: auto; border-radius: 8px; background: #000; margin-bottom: 18px; display: block; }
.auth-card h1 { font-size: 22px; letter-spacing: -.6px; }
.auth-card > p { color: var(--muted); font-size: 13px; margin: 7px 0 22px; }
.auth-card .foot { margin-top: 20px; text-align: center; font-size: 12.5px; color: var(--faint); }
.auth-card .foot a { color: var(--mint); font-weight: 650; }
.auth-aside { max-width: 408px; margin: 16px auto 0; text-align: center; font-size: 11.5px; color: var(--faint); }
.in-icon { position: relative; }
.in-icon .ic { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--faint); }
.in-icon .in { padding-left: 39px; }
.in-icon .peek {
    position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
    width: 32px; height: 32px; display: grid; place-items: center;
    color: var(--faint); background: none; border: 0; padding: 0; cursor: pointer; border-radius: 50%;
}
.in-icon .peek:hover { background: var(--card-2); color: var(--text); }
.in-icon.has-peek .in { padding-right: 44px; }
.btn-block { width: 100%; justify-content: center; padding: 12px; font-size: 14px; border-radius: 13px; }
.strength { display: flex; gap: 5px; margin-top: 8px; }
.strength i { height: 4px; flex: 1; border-radius: 9px; background: var(--stroke-2); }
.strength i.on { background: var(--grad); }

/* ------------------------------------------------------------ screen index */

.idx { max-width: 960px; margin: 0 auto; padding: 34px 24px 70px; }
.idx h1 { font-size: 26px; }
.idx-sub { color: var(--muted); font-size: 13.5px; margin: 9px 0 20px; }
.idx-sub a { color: var(--mint); font-weight: 650; }
.idx-g { margin-top: 24px; }
.idx-g h3 { font-size: 11px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--faint); margin-bottom: 10px; }
.idx-list { display: grid; gap: 9px; grid-template-columns: repeat(auto-fill, minmax(216px, 1fr)); }
.idx-list a { background: var(--surface); border: 1px solid var(--stroke); border-radius: 13px; padding: 12px 14px; box-shadow: var(--shadow); }
.idx-list a:hover { border-color: var(--mint); }
.idx-list b { display: block; font-size: 13.5px; }
.idx-list span { font-size: 11px; color: var(--faint); font-family: ui-monospace, Consolas, monospace; }

/* ============================================================ product top bar
   The real application header. The slim dark strip above it is mockup chrome. */

.mock-bar {
    display: flex; align-items: center; gap: 12px;
    padding: 0 18px; height: 30px; background: var(--ink-bar);
    position: sticky; top: 0; z-index: 70; font-size: 11px;
}
.mock-bar .tag { font-size: 9px; padding: 3px 8px; }
.mock-bar .mock-note { color: #7d907e; }
.mock-home { color: #9fb3a0; font-weight: 600; }
.mock-home:hover { color: #fff; }

.topbar {
    display: flex; align-items: center; gap: 16px;
    height: 62px; padding: 0 20px;
    background: var(--surface);
    border-bottom: 1px solid var(--stroke);
    position: sticky; top: 30px; z-index: 65;
}

.tb-brand { display: flex; align-items: center; gap: 11px; font-weight: 700; font-size: 15px; letter-spacing: -.3px; flex: none; }
.tb-brand img { height: 34px; width: auto; border-radius: 8px; background: #000; display: block; }
.tb-brand small { display: block; font-weight: 400; font-size: 9.5px; color: var(--faint); letter-spacing: 1px; text-transform: uppercase; }

.tb-search { flex: 1; max-width: 460px; position: relative; display: flex; align-items: center; }
.tb-search .ic { position: absolute; left: 13px; color: var(--faint); pointer-events: none; }
.tb-search .in { padding-left: 40px; border-radius: 999px; background: var(--card-2); border-color: transparent; font-size: 13px; }
.tb-search .in:focus { background: var(--surface); border-color: var(--mint); }

.tb-right { margin-left: auto; display: flex; align-items: center; gap: 4px; position: relative; }

.tb-ico {
    width: 38px; height: 38px; border-radius: 11px;
    display: grid; place-items: center; color: var(--muted); position: relative;
}
.tb-ico:hover { background: var(--card-2); color: var(--text); }
.tb-ico .badge {
    position: absolute; top: 4px; right: 4px; min-width: 16px; height: 16px; padding: 0 4px;
    border-radius: 999px; background: var(--red); color: #fff;
    font-size: 9.5px; font-weight: 800; font-style: normal;
    display: grid; place-items: center; border: 2px solid var(--surface);
}

.tb-sep { width: 1px; height: 26px; background: var(--stroke); margin: 0 8px; }

.tb-user {
    display: flex; align-items: center; gap: 9px; padding: 5px 9px 5px 5px;
    border-radius: 999px; cursor: pointer; user-select: none;
}
.tb-user:hover { background: var(--card-2); }
.tb-user img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; flex: none; }
.tb-who b { display: block; font-size: 13px; font-weight: 650; line-height: 1.25; }
.tb-who span { font-size: 10.5px; color: var(--faint); }
.tb-chev { color: var(--faint); transition: transform .15s; }
.tb-user.open .tb-chev { transform: rotate(180deg); }
@media (max-width: 860px) { .tb-who { display: none; } .tb-search { display: none; } }

/* dropdown */
.menu {
    position: absolute; top: calc(100% + 9px); right: 0; width: 262px;
    background: var(--surface); border: 1px solid var(--stroke); border-radius: 15px;
    padding: 7px; z-index: 80;
    box-shadow: 0 4px 10px rgba(18, 29, 18, .07), 0 18px 44px rgba(18, 29, 18, .16);
}
.menu-head { display: flex; align-items: center; gap: 10px; padding: 9px 10px 11px; border-bottom: 1px solid var(--stroke); margin-bottom: 6px; }
.menu-head img { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; }
.menu-head b { display: block; font-size: 13.5px; }
.menu-head span { font-size: 11px; color: var(--faint); word-break: break-all; }
.menu a {
    display: flex; align-items: center; gap: 10px; padding: 9px 10px;
    border-radius: 10px; font-size: 13.5px; font-weight: 550; color: var(--text);
}
.menu a:hover { background: var(--card-2); }
.menu a .ic { color: var(--muted); }
.menu a.danger { color: var(--red); }
.menu a.danger:hover { background: var(--red-bg); }
.menu a.danger .ic { color: var(--red); }
.menu-badge {
    margin-left: auto; font-style: normal; font-size: 10px; font-weight: 800;
    background: var(--red); color: #fff; border-radius: 999px; padding: 1px 6px;
}
.menu-sep { height: 1px; background: var(--stroke); margin: 6px 4px; }

/* the shell now sits below two bars */
.shell { min-height: calc(100vh - 92px); }
.side { position: sticky; top: 92px; align-self: start; max-height: calc(100vh - 92px); overflow-y: auto; }
.auth-wrap { min-height: calc(100vh - 30px); }

/* ============================================================ team chat */

.live-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--mint); margin-right: 5px; font-style: normal; }
.live-dot::after { content: ""; display: block; width: 7px; height: 7px; border-radius: 50%; background: var(--mint); animation: pulse 2s infinite; }
@keyframes pulse { 0% { transform: scale(1); opacity: .7; } 70% { transform: scale(2.6); opacity: 0; } 100% { opacity: 0; } }

.chat-shell { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 14px; align-items: start; }
@media (max-width: 1000px) { .chat-shell { grid-template-columns: 1fr; } }

.chat-list { padding: 12px; max-height: calc(100vh - 160px); overflow-y: auto; }
.conv { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 12px; }
.conv:hover { background: var(--card-2); }
.conv.on { background: var(--grad-soft); box-shadow: inset 0 0 0 1px rgba(124, 197, 32, .28); }
.conv img { width: 36px; height: 36px; border-radius: 10px; object-fit: cover; flex: none; }
.conv-ic { width: 36px; height: 36px; border-radius: 10px; background: var(--card-2); border: 1px solid var(--stroke); display: grid; place-items: center; color: var(--muted); flex: none; }
.conv-av { position: relative; flex: none; }
.conv-av img, .conv-av .avi { width: 36px; height: 36px; border-radius: 50%; }
.on-dot { position: absolute; right: -1px; bottom: -1px; width: 11px; height: 11px; border-radius: 50%; background: var(--mint); border: 2px solid var(--surface); }
.conv-b { flex: 1; min-width: 0; }
.conv-b b { display: block; font-size: 13.5px; font-weight: 650; }
.conv-b span { display: block; font-size: 11.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.conv-m { text-align: right; flex: none; display: grid; gap: 4px; justify-items: end; }
.conv-m small { font-size: 10.5px; color: var(--faint); }
.unread { font-style: normal; font-size: 10px; font-weight: 800; background: var(--red); color: #fff; border-radius: 999px; padding: 1px 6px; }

.chat-main { padding: 0; display: flex; flex-direction: column; height: calc(100vh - 160px); }
.chat-head { display: flex; align-items: center; gap: 11px; padding: 13px 16px; border-bottom: 1px solid var(--stroke); }
.chat-head b { font-size: 14.5px; }
.chat-head span { display: block; font-size: 11px; color: var(--faint); }

.chat-body { flex: 1; overflow-y: auto; padding: 18px 16px; display: flex; flex-direction: column; gap: 14px; }
.chat-day { text-align: center; font-size: 10.5px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--faint); }

.msg { display: flex; gap: 10px; align-items: flex-start; max-width: 76%; }
.msg-av { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; flex: none; }
.msg-b { min-width: 0; }
.msg-who { font-size: 11px; color: var(--faint); margin-bottom: 4px; font-weight: 650; }
.msg-who small { font-weight: 400; margin-left: 5px; }
.bubble {
    background: var(--card-2); border: 1px solid var(--stroke);
    border-radius: 4px 14px 14px 14px; padding: 10px 13px; font-size: 13.5px; line-height: 1.55;
}
.bubble + .bubble { margin-top: 6px; }
.msg.me { margin-left: auto; flex-direction: row-reverse; }
.msg.me .msg-who { text-align: right; }
.msg.me .bubble { background: var(--grad); border-color: transparent; color: var(--on-grad); border-radius: 14px 4px 14px 14px; font-weight: 500; }
.msg-meta { font-size: 10.5px; color: var(--faint); margin-top: 5px; text-align: right; display: flex; gap: 4px; align-items: center; justify-content: flex-end; }
.msg-meta .ic { color: var(--mint); }

.bubble-media { padding: 5px; overflow: hidden; }
.bubble-media img { width: 100%; max-width: 280px; border-radius: 10px; display: block; }
.media-cap { font-size: 10.5px; color: var(--faint); padding: 6px 7px 3px; }
.bubble-file { display: flex; align-items: center; gap: 11px; }
.file-ic { width: 38px; height: 38px; border-radius: 10px; background: var(--blue-bg); color: var(--blue); display: grid; place-items: center; flex: none; }
.bubble-file b { display: block; font-size: 13px; }
.bubble-file span { font-size: 11px; color: var(--faint); }
.msg-link {
    display: inline-flex; align-items: center; gap: 6px; margin-top: 6px;
    font-size: 11.5px; font-weight: 650; color: var(--mint);
    background: var(--mint-bg); border: 1px solid #cdebd9; border-radius: 999px; padding: 4px 10px;
}
.msg-link:hover { filter: brightness(.97); }

.typing { display: inline-flex; gap: 4px; background: var(--card-2); border: 1px solid var(--stroke); border-radius: 14px; padding: 11px 14px; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--faint); animation: bounce 1.3s infinite; }
.typing i:nth-child(2) { animation-delay: .18s; }
.typing i:nth-child(3) { animation-delay: .36s; }
@keyframes bounce { 0%, 60%, 100% { transform: translateY(0); opacity: .45; } 30% { transform: translateY(-5px); opacity: 1; } }

.chat-compose { border-top: 1px solid var(--stroke); padding: 12px 14px 14px; }
.attach-row { display: flex; gap: 7px; margin-bottom: 9px; flex-wrap: wrap; }
.attach-pill { display: inline-flex; align-items: center; gap: 7px; font-size: 11.5px; font-weight: 600; background: var(--card-2); border: 1px solid var(--stroke); border-radius: 999px; padding: 5px 7px 5px 11px; }
.attach-pill .x { border: 0; background: var(--stroke-2); color: var(--muted); border-radius: 50%; width: 17px; height: 17px; cursor: pointer; line-height: 1; font-size: 13px; }
.compose-box { display: flex; align-items: center; gap: 5px; }
.compose-box .in { border-radius: 999px; background: var(--card-2); border-color: transparent; }
.compose-box .in:focus { background: var(--surface); border-color: var(--mint); }
.compose-box .send { width: 40px; height: 40px; padding: 0; justify-content: center; border-radius: 50%; flex: none; }

/* ============================================================ WhatsApp preview */

.wa { border: 1px solid var(--stroke); border-radius: 14px; overflow: hidden; background: #0b141a; }
.wa-head { display: flex; align-items: center; gap: 10px; padding: 10px 13px; background: #1f2c33; }
.wa-head img { height: 28px; width: auto; border-radius: 6px; background: #000; }
.wa-head b { font-size: 13px; color: #e9edef; display: block; }
.wa-head span { font-size: 10.5px; color: #8696a0; }
.wa-body { padding: 14px 12px; display: grid; gap: 9px; background: #0b141a; }
.wa-msg {
    background: #202c33; color: #e9edef; border-radius: 9px; padding: 9px 11px;
    max-width: 94%; justify-self: start; box-shadow: 0 1px 1px rgba(0, 0, 0, .3);
}
.wa-msg.me { background: #005c4b; justify-self: end; }
.wa-msg b { font-size: 12.5px; display: block; margin-bottom: 5px; }
.wa-msg p { margin: 0; font-size: 12.5px; line-height: 1.5; }
.wa-msg small { display: block; text-align: right; font-size: 10px; color: #8696a0; margin-top: 5px; }
.wa-msg.me small { color: #a7c9bd; }
.wa-btns { display: grid; gap: 1px; margin: 9px -11px -9px; border-top: 1px solid rgba(255, 255, 255, .12); }
.wa-btns button {
    background: #202c33; border: 0; border-top: 1px solid rgba(255, 255, 255, .08);
    color: #53bdeb; font: inherit; font-size: 12.5px; font-weight: 600;
    padding: 9px; cursor: pointer;
}
.wa-btns button:first-child { border-top: 0; }
.wa-btns button:hover { background: #2a3942; }

/* ============================================================ presentation
   Mobile mockups are shown the way the approved prototype shows them:
   screen list on the left, ONE phone at a fixed size in the middle,
   notes on the right. Every phone on every page uses these same tokens. */

body.present {
    --phone-w: 340px;
    --phone-h: 700px;
    --phone-pad: 10px;
    --phone-r: 40px;
}
@media (max-height: 900px) { body.present { --phone-w: 318px; --phone-h: 648px; } }
@media (max-height: 820px) { body.present { --phone-w: 300px; --phone-h: 606px; } }

body.present .layout {
    display: grid;
    grid-template-columns: 236px minmax(0, 1fr) 300px;
    gap: 16px;
    padding: 16px;
    align-items: start;
    max-width: 1500px;
    margin: 0 auto;
}
@media (max-width: 1240px) { body.present .layout { grid-template-columns: 220px minmax(0, 1fr); } body.present .layout > .col:last-child { display: none; } }
@media (max-width: 900px) { body.present .layout { grid-template-columns: 1fr; } body.present .layout > .col:first-child { display: none; } }

body.present .col {
    background: var(--surface);
    border: 1px solid var(--stroke);
    border-radius: 18px;
    padding: 15px;
    box-shadow: var(--shadow);
    position: sticky;
    top: 46px;
    max-height: calc(100vh - 62px);
    overflow-y: auto;
}
.col-title { font-size: 13.5px; font-weight: 700; letter-spacing: -.2px; }
.col-sub { font-size: 11.5px; color: var(--muted); margin: 6px 0 14px; line-height: 1.5; }
.col-sec { font-size: 9.5px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--faint); font-weight: 700; margin: 14px 0 7px 2px; }
.nav-list { display: grid; gap: 2px; }
.nav-item {
    display: flex; align-items: center; gap: 9px; width: 100%; text-align: left;
    border: 0; background: transparent; font: inherit; font-size: 12.5px; font-weight: 600;
    color: var(--muted); padding: 7px 9px; border-radius: 9px; cursor: pointer;
}
.nav-item i { font-style: normal; font-size: 10px; font-weight: 800; color: var(--faint); font-variant-numeric: tabular-nums; }
.nav-item:hover { background: var(--card-2); color: var(--text); }
.nav-item.on { background: var(--grad-soft); color: #14401f; box-shadow: inset 0 0 0 1px rgba(124, 197, 32, .3); }
.nav-item.on i { color: #2d6a1e; }

body.present .stage { display: grid; justify-items: center; gap: 12px; padding-top: 2px; }
.stage-bar { display: flex; gap: 9px; align-items: center; flex-wrap: wrap; justify-content: center; }

.phone-wrap { display: grid; gap: 10px; justify-items: center; }
.phone {
    width: var(--phone-w);
    height: var(--phone-h);
    border-radius: var(--phone-r);
    padding: var(--phone-pad);
    background: #05090a;
    border: 1px solid #1d2a1f;
    box-shadow: 0 0 0 8px #0a0f0b, 0 22px 50px rgba(18, 29, 18, .28);
    position: relative;
    flex: none;
}
.phone iframe {
    width: 100%; height: 100%; border: 0; display: block;
    border-radius: calc(var(--phone-r) - var(--phone-pad));
    background: #081109;
}
.phone .notch {
    position: absolute; left: 50%; top: calc(var(--phone-pad) + 7px); transform: translateX(-50%);
    width: 86px; height: 22px; border-radius: 13px; background: #05090a; z-index: 5; pointer-events: none;
}
body[data-os="android"] .phone { border-radius: 28px; }
body[data-os="android"] .phone iframe { border-radius: 20px; }
body[data-os="android"] .phone .notch { width: 9px; height: 9px; border-radius: 50%; top: calc(var(--phone-pad) + 6px); }

.phone-label { font-size: 11.5px; font-weight: 650; color: var(--muted); text-align: center; }
.phone-label a { color: var(--faint); font-weight: 400; }

.info-kicker { font-size: 9.5px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--mint); font-weight: 800; }
body.present .col h3 { font-size: 16px; margin: 6px 0 0; }
body.present .col > p { font-size: 12.5px; color: var(--muted); margin: 8px 0 0; line-height: 1.55; }
.info-block { margin-top: 16px; border-top: 1px solid var(--stroke); padding-top: 13px; }
.info-block h4 { font-size: 9.5px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--faint); margin: 0 0 8px; }
.info-block ul { margin: 0; padding-left: 16px; font-size: 12.5px; color: var(--text); line-height: 1.75; }
.info-block .tech { font-size: 12px; color: var(--muted); line-height: 1.6; }
.info-block .tech a { color: var(--mint); font-family: ui-monospace, Consolas, monospace; font-size: 11.5px; }

/* every-screen grid - identical phones */
.all-head { max-width: 1500px; margin: 0 auto; padding: 28px 24px 6px; }
.all-head h1 { font-size: 24px; }
.all-head p { color: var(--muted); font-size: 13.5px; margin: 8px 0 0; }
.all-head a { color: var(--mint); font-weight: 650; }
body.present .phones {
    display: flex; flex-wrap: wrap; gap: 30px 22px;
    justify-content: center; align-items: flex-start;
    max-width: 1500px; margin: 0 auto; padding: 22px 24px 60px;
}
body.present .phones .phone { box-shadow: 0 0 0 7px #0a0f0b, 0 14px 32px rgba(18, 29, 18, .22); }
