/* Gythan — the gythan.com door. Brand derived from the V1 product (indigo #3744bd, light #f7f8fc), not the
   Roxyon console's dark chrome. Everything is namespaced .gx-* so Mobius utilities stay untouched. */

:root {
    --gx-primary: #3744bd;
    --gx-primary-dark: #1d288d;
    --gx-primary-weak: #eef0ff;
    --gx-bg: #f6f7fb;
    --gx-card: #ffffff;
    --gx-ink: #14162b;
    --gx-ink-2: #4b5066;
    --gx-muted: #6f7488;
    --gx-faint: #9aa0b4;
    --gx-border: #e4e6ef;
    --gx-border-strong: #d3d6e3;
    --gx-green: #1f9d55;
    --gx-green-weak: #e6f6ee;
    --gx-amber: #b26a00;
    --gx-amber-weak: #fff3de;
    --gx-red: #c5344d;
    --gx-red-weak: #fdecef;
    --gx-blue: #2b6cb0;
    --gx-radius: 14px;
    --gx-shadow: 0 1px 2px rgba(20, 22, 43, .05), 0 8px 24px rgba(20, 22, 43, .06);
    --gx-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
    margin: 0;
    /* MobiusCSS sets body{text-align:center} (the house style for V1 pages). Gythan is an app: left by default. */
    text-align: left;
    background: var(--gx-bg);
    color: var(--gx-ink);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 15px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}
a { color: var(--gx-primary); text-decoration: none; }
a:hover { text-decoration: underline; }
button { font: inherit; }
h1, h2, h3, h4 { margin: 0; color: var(--gx-ink); }
[main] { min-height: 100vh; }

/* ---- shell -------------------------------------------------------------------------------------- */
.gx-app { min-height: 100vh; display: flex; flex-direction: column; }
.gx-top {
    position: sticky; top: 0; z-index: 30;
    background: var(--gx-card); border-bottom: 1px solid var(--gx-border);
}
.gx-top-in {
    max-width: 1240px; margin: 0 auto; padding: 0 20px;
    display: flex; align-items: center; gap: 14px; height: 62px;
}
.gx-logo { display: flex; align-items: center; gap: 8px; flex: none; }
.gx-logo img { height: 20px; width: auto; display: block; }
.gx-logo-sub { font-size: 10px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gx-faint); border-left: 1px solid var(--gx-border); padding-left: 9px; margin-left: 2px; }
.gx-ws {
    display: flex; align-items: center; gap: 8px; min-width: 0;
    background: var(--gx-bg); border: 1px solid var(--gx-border); border-radius: 10px; padding: 5px 10px;
}
.gx-ws label { font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--gx-faint); flex: none; }
.gx-ws select {
    border: 0; background: transparent; color: var(--gx-ink); font: inherit; font-size: 14px; font-weight: 600;
    max-width: 220px; outline: none; cursor: pointer;
}
.gx-top-right { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.gx-live {
    display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 700;
    text-transform: uppercase; letter-spacing: .06em; color: var(--gx-faint); padding: 0 4px;
}
.gx-live .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gx-faint); }
.gx-live.on .dot { background: var(--gx-green); box-shadow: 0 0 0 3px var(--gx-green-weak); }
.gx-live.on { color: var(--gx-green); }
.gx-live.err .dot { background: var(--gx-red); }
.gx-live.err { color: var(--gx-red); }
.gx-me { display: flex; align-items: center; gap: 8px; }
.gx-avatar {
    width: 34px; height: 34px; border-radius: 50%; flex: none;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--gx-primary-weak); color: var(--gx-primary);
    font-size: 12px; font-weight: 800; letter-spacing: .02em; text-transform: uppercase;
}
.gx-avatar.sm { width: 28px; height: 28px; font-size: 11px; }
.gx-avatar.lg { width: 44px; height: 44px; font-size: 15px; }
.gx-avatar.agent { background: #f1eafd; color: #6b3fa0; }
.gx-mename { display: none; }
.gx-tabs {
    border-top: 1px solid var(--gx-border);
    background: var(--gx-card);
}
.gx-tabs-in {
    max-width: 1240px; margin: 0 auto; padding: 0 20px;
    display: flex; gap: 24px; overflow-x: auto; scrollbar-width: none;
}
.gx-tabs-in::-webkit-scrollbar { display: none; }
.gx-tab {
    appearance: none; border: 0; background: none; cursor: pointer;
    padding: 11px 1px; font-size: 14px; font-weight: 600; color: var(--gx-muted);
    border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap;
    display: inline-flex; align-items: center; gap: 7px;
}
.gx-tab:hover { color: var(--gx-ink); }
.gx-tab.on { color: var(--gx-primary); border-bottom-color: var(--gx-primary); }
.gx-tab svg { width: 16px; height: 16px; }
.gx-body { flex: 1; width: 100%; }
.gx-wrap { max-width: 1240px; margin: 0 auto; padding: 22px 20px 64px; }

/* ---- generic ------------------------------------------------------------------------------------ */
.gx-page-h { display: flex; align-items: flex-start; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.gx-page-h .grow { flex: 1; min-width: 240px; }
.gx-title { font-size: 24px; font-weight: 800; letter-spacing: -.01em; line-height: 1.2; }
.gx-sub { font-size: 13px; color: var(--gx-muted); margin-top: 4px; }
.gx-card { background: var(--gx-card); border: 1px solid var(--gx-border); border-radius: var(--gx-radius); padding: 18px; }
.gx-card + .gx-card { margin-top: 16px; }
.gx-sec { margin-bottom: 16px; }
.gx-sec-h { display: flex; align-items: center; gap: 9px; margin-bottom: 12px; }
.gx-sec-h h2 { font-size: 15px; font-weight: 800; letter-spacing: -.005em; }
.gx-sec-h .grow { flex: 1; min-width: 0; }
.gx-sec-h .hint { font-size: 12px; color: var(--gx-muted); margin-top: 2px; }
.gx-muted { color: var(--gx-muted); }
.gx-small { font-size: 12px; line-height: 19px; }
.gx-mono { font-family: var(--gx-mono); font-variant-numeric: tabular-nums; }
.gx-row { display: flex; align-items: center; gap: 12px; }
.gx-grow { flex: 1; min-width: 0; }
.gx-hide-s { display: initial; }
.gx-wrapany { overflow-wrap: anywhere; }
.gx-divider { height: 1px; background: var(--gx-border); margin: 14px 0; }

/* ---- buttons ------------------------------------------------------------------------------------ */
.gx-btn {
    appearance: none; border: 0; border-radius: 10px; cursor: pointer;
    padding: 10px 16px; font-size: 14px; font-weight: 700; line-height: 1.2;
    background: var(--gx-primary); color: #fff;
    transition: background .15s, box-shadow .15s, border-color .15s;
}
.gx-btn:hover { background: var(--gx-primary-dark); }
.gx-btn:disabled { opacity: .5; cursor: default; }
.gx-btn.sec { background: var(--gx-card); color: var(--gx-ink); border: 1px solid var(--gx-border-strong); }
.gx-btn.sec:hover { background: var(--gx-bg); }
.gx-btn.quiet { background: transparent; color: var(--gx-muted); font-weight: 600; padding: 8px 10px; }
.gx-btn.quiet:hover { color: var(--gx-ink); background: var(--gx-bg); }
.gx-btn.danger { background: var(--gx-red); }
.gx-btn.danger:hover { background: #a52a40; }
.gx-btn.sm { padding: 7px 12px; font-size: 13px; border-radius: 8px; }
.gx-btn.block { width: 100%; }
.gx-ico-btn {
    appearance: none; border: 0; background: transparent; cursor: pointer;
    width: 34px; height: 34px; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center;
    color: var(--gx-muted); flex: none;
}
.gx-ico-btn:hover { background: var(--gx-bg); color: var(--gx-ink); }
.gx-ico-btn svg { width: 18px; height: 18px; }
.gx-ico-btn.on { color: var(--gx-primary); background: var(--gx-primary-weak); }

/* ---- chips / dots ------------------------------------------------------------------------------- */
.gx-chip {
    display: inline-flex; align-items: center; gap: 5px;
    font-size: 11px; font-weight: 700; letter-spacing: .02em;
    border-radius: 999px; padding: 3px 9px; white-space: nowrap;
    background: var(--gx-bg); color: var(--gx-muted);
}
.gx-chip.green { background: var(--gx-green-weak); color: var(--gx-green); }
.gx-chip.amber { background: var(--gx-amber-weak); color: var(--gx-amber); }
.gx-chip.red { background: var(--gx-red-weak); color: var(--gx-red); }
.gx-chip.blue { background: #e8f1fb; color: var(--gx-blue); }
.gx-chip.primary { background: var(--gx-primary-weak); color: var(--gx-primary); }
.gx-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gx-faint); flex: none; display: inline-block; }
.gx-dot.on { background: var(--gx-green); box-shadow: 0 0 0 3px var(--gx-green-weak); }

/* ---- stats -------------------------------------------------------------------------------------- */
.gx-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(138px, 1fr)); gap: 12px; margin-bottom: 16px; }
.gx-stat { background: var(--gx-card); border: 1px solid var(--gx-border); border-radius: 12px; padding: 13px 15px; }
.gx-stat .n { font-size: 25px; font-weight: 800; line-height: 1.15; letter-spacing: -.02em; }
.gx-stat .l { font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--gx-faint); margin-top: 3px; }
.gx-stat.green .n { color: var(--gx-green); }
.gx-stat.amber .n { color: var(--gx-amber); }
.gx-stat.red .n { color: var(--gx-red); }
.gx-stat.primary .n { color: var(--gx-primary); }

/* ---- hive (Today) ------------------------------------------------------------------------------- */
.gx-2col { display: grid; grid-template-columns: 1.55fr 1fr; gap: 16px; align-items: start; }
.gx-filters { display: inline-flex; background: var(--gx-bg); border: 1px solid var(--gx-border); border-radius: 999px; padding: 3px; gap: 2px; }
.gx-filter {
    appearance: none; border: 0; background: none; cursor: pointer; border-radius: 999px;
    padding: 5px 12px; font-size: 12px; font-weight: 700; color: var(--gx-muted);
}
.gx-filter.on { background: var(--gx-card); color: var(--gx-primary); box-shadow: 0 1px 3px rgba(20, 22, 43, .12); }
.gx-hive { display: flex; flex-direction: column; }
.gx-person {
    display: flex; align-items: flex-start; gap: 12px; padding: 11px 2px;
    border-bottom: 1px solid var(--gx-border);
}
.gx-person:last-child { border-bottom: 0; }
.gx-person.mine { background: linear-gradient(90deg, var(--gx-primary-weak), transparent 60%); margin: 0 -18px; padding-left: 18px; padding-right: 18px; }
.gx-person.finished .gx-clock { color: var(--gx-red); background: var(--gx-red-weak); }
.gx-person .nm { font-weight: 700; font-size: 14px; display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.gx-person > .gx-avatar { margin-top: 1px; }
.gx-person .what { font-size: 12px; color: var(--gx-muted); margin-top: 1px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gx-person .what b { color: var(--gx-ink-2); font-weight: 600; }
.gx-clock {
    font-family: var(--gx-mono); font-variant-numeric: tabular-nums;
    font-size: 14px; font-weight: 700; color: var(--gx-amber);
    background: var(--gx-amber-weak); border-radius: 8px; padding: 4px 8px; white-space: nowrap;
}
.gx-clock.idle { color: var(--gx-muted); background: var(--gx-bg); }
.gx-person-acts { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.gx-feed { display: flex; flex-direction: column; }
.gx-feed-item { display: flex; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--gx-border); font-size: 13px; }
.gx-feed-item:last-child { border-bottom: 0; }
.gx-feed-item .t { color: var(--gx-faint); font-size: 11px; white-space: nowrap; margin-left: auto; padding-left: 8px; }
.gx-proj-line { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--gx-border); }
.gx-proj-line:last-child { border-bottom: 0; }
.gx-proj-line .nm { font-weight: 700; font-size: 14px; }
.gx-proj-line .nm a { color: inherit; }
.gx-proj-line .nm a:hover { color: var(--gx-primary); text-decoration: none; }

/* ---- project cards ------------------------------------------------------------------------------ */
.gx-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.gx-proj {
    display: block; background: var(--gx-card); border: 1px solid var(--gx-border); border-radius: var(--gx-radius);
    padding: 16px; color: inherit; transition: border-color .15s, box-shadow .15s;
}
.gx-proj:hover { border-color: var(--gx-border-strong); box-shadow: var(--gx-shadow); text-decoration: none; }
.gx-proj .nm { font-size: 16px; font-weight: 800; letter-spacing: -.01em; }
.gx-proj .meta { font-size: 12px; color: var(--gx-muted); margin-top: 3px; }
.gx-proj .foot { display: flex; align-items: center; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.gx-bar { height: 7px; border-radius: 999px; background: var(--gx-bg); overflow: hidden; margin-top: 12px; }
.gx-bar > i { display: block; height: 100%; border-radius: 999px; background: var(--gx-primary); }

/* ---- kanban ------------------------------------------------------------------------------------- */
.gx-kanban { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; align-items: start; }
.gx-col { background: var(--gx-bg); border: 1px solid var(--gx-border); border-radius: 12px; padding: 10px; min-height: 80px; }
.gx-col-h { display: flex; align-items: center; gap: 8px; padding: 2px 3px 9px; }
.gx-col-h .nm { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--gx-ink-2); }
.gx-col-h .ct { font-size: 11px; font-weight: 700; color: var(--gx-faint); margin-left: auto; }
.gx-task {
    background: var(--gx-card); border: 1px solid var(--gx-border); border-radius: 10px;
    padding: 10px 11px; margin-bottom: 8px; cursor: pointer; transition: box-shadow .15s, border-color .15s;
}
.gx-task:hover { border-color: var(--gx-border-strong); box-shadow: 0 2px 8px rgba(20, 22, 43, .07); }
.gx-task:last-child { margin-bottom: 0; }
.gx-task .tt { font-size: 13px; font-weight: 700; line-height: 1.35; overflow-wrap: anywhere; }
.gx-task .tx { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 6px; font-size: 11px; color: var(--gx-muted); }
.gx-task .act { margin-top: 8px; display: flex; gap: 6px; flex-wrap: wrap; }
.gx-pri { font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.gx-pri.urgent { color: var(--gx-red); }
.gx-pri.high { color: var(--gx-amber); }
.gx-pri.medium { color: var(--gx-blue); }
.gx-pri.low { color: var(--gx-faint); }

/* ---- actions / countdowns ----------------------------------------------------------------------- */
.gx-action {
    display: flex; align-items: flex-start; gap: 12px; padding: 12px 2px;
    border-bottom: 1px solid var(--gx-border);
}
.gx-action:last-child { border-bottom: 0; }
.gx-action .nm { font-weight: 700; font-size: 14px; }
.gx-action .meta { font-size: 12px; color: var(--gx-muted); margin-top: 2px; display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: center; }
.gx-action .timer { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; flex: none; }
.gx-action .timer .gx-clock { font-size: 18px; padding: 5px 10px; }
.gx-action .timer.finished .gx-clock { color: var(--gx-red); background: var(--gx-red-weak); }
.gx-acts { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }

/* ---- kpi ---------------------------------------------------------------------------------------- */
.gx-kpi-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
.gx-kpi-line { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--gx-border); font-size: 13px; }
.gx-kpi-line:last-child { border-bottom: 0; }
.gx-kpi-line .gxk-nm { font-weight: 600; flex: none; min-width: 96px; max-width: 46%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gx-kpi-line .gxk-bar { flex: 1 1 60px; height: 8px; border-radius: 999px; background: var(--gx-bg); overflow: hidden; min-width: 40px; }
.gx-kpi-line .gxk-bar > i { display: block; height: 100%; background: var(--gx-primary); border-radius: 999px; min-width: 2px; }
.gx-kpi-line .gxk-v { font-family: var(--gx-mono); font-size: 12px; font-weight: 700; color: var(--gx-ink-2); white-space: nowrap; flex: none; }
.gx-kpi-line .gxk-sub { font-size: 11px; color: var(--gx-faint); white-space: nowrap; flex: none; }
.gx-compare { display: flex; align-items: center; gap: 10px; font-size: 13px; padding: 8px 0; }
.gx-compare .gxk-lbl { flex: none; width: 92px; color: var(--gx-muted); font-size: 12px; }
.gx-compare .gxk-bar { flex: 1; height: 10px; border-radius: 999px; background: var(--gx-bg); overflow: hidden; min-width: 40px; }
.gx-compare .gxk-bar > i { display: block; height: 100%; border-radius: 999px; background: var(--gx-primary); min-width: 2px; }
.gx-compare .gxk-bar.actual > i { background: var(--gx-green); }
.gx-compare .gxk-v { font-family: var(--gx-mono); font-size: 12px; font-weight: 700; width: 66px; text-align: right; flex: none; }

/* ---- team --------------------------------------------------------------------------------------- */
.gx-team-row { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--gx-border); }
.gx-team-row:last-child { border-bottom: 0; }
.gx-team-row .nm { font-weight: 700; font-size: 14px; }
.gx-team-row .em { font-size: 12px; color: var(--gx-muted); }
.gx-team-row .roles { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }

/* ---- forms / dialog ----------------------------------------------------------------------------- */
.gx-label { display: block; font-size: 12px; font-weight: 700; color: var(--gx-ink-2); margin: 13px 0 5px; }
.gx-input, .gx-select, .gx-textarea {
    width: 100%; padding: 10px 12px; font: inherit; font-size: 14px;
    border: 1px solid var(--gx-border-strong); border-radius: 10px; background: var(--gx-card); color: var(--gx-ink);
    outline: none; transition: border-color .15s, box-shadow .15s;
}
.gx-input:focus, .gx-select:focus, .gx-textarea:focus { border-color: var(--gx-primary); box-shadow: 0 0 0 3px var(--gx-primary-weak); }
.gx-textarea { min-height: 76px; resize: vertical; line-height: 1.5; }
.gx-check { display: flex; align-items: flex-start; gap: 8px; font-size: 13px; padding: 6px 0; color: var(--gx-ink-2); cursor: pointer; }
.gx-check input { width: 16px; height: 16px; margin: 2px 0 0; flex: none; accent-color: var(--gx-primary); }
.gx-err { color: var(--gx-red); font-size: 12px; margin-top: 9px; min-height: 0; }
.gx-ok { color: var(--gx-green); font-size: 12px; margin-top: 9px; }
.gx-back {
    position: fixed; inset: 0; z-index: 100; background: rgba(20, 22, 43, .42);
    display: flex; align-items: center; justify-content: center; padding: 16px;
    -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
}
.gx-dlg {
    width: 100%; max-width: 520px; max-height: calc(100vh - 32px); overflow-y: auto;
    background: var(--gx-card); border-radius: 16px; box-shadow: 0 24px 64px rgba(20, 22, 43, .28);
    padding: 22px;
}
.gx-dlg h3 { font-size: 19px; font-weight: 800; letter-spacing: -.01em; }
.gx-dlg p { margin: 5px 0 0; font-size: 13px; color: var(--gx-muted); line-height: 1.55; }
.gx-dlg .foot { display: flex; gap: 9px; margin-top: 18px; }
.gx-dlg .foot .gx-btn { flex: 1; }
.gx-dlg .foot .gx-btn.quiet { flex: 0 0 auto; }

/* ---- states ------------------------------------------------------------------------------------- */
.gx-load { display: flex; align-items: center; justify-content: center; padding: 64px 16px; color: var(--gx-muted); gap: 10px; font-size: 13px; }
.gx-spin {
    width: 18px; height: 18px; border-radius: 50%; flex: none;
    border: 2px solid var(--gx-border-strong); border-top-color: var(--gx-primary);
    animation: gx-spin .8s linear infinite;
}
@keyframes gx-spin { to { transform: rotate(360deg); } }
.gx-empty { text-align: center; padding: 44px 18px; }
.gx-empty .ic { width: 60px; height: 60px; border-radius: 50%; background: var(--gx-bg); color: var(--gx-faint); display: inline-flex; align-items: center; justify-content: center; }
.gx-empty .ic svg { width: 26px; height: 26px; }
.gx-empty h3 { font-size: 16px; font-weight: 800; margin-top: 12px; }
.gx-empty p { font-size: 13px; color: var(--gx-muted); max-width: 460px; margin: 6px auto 0; line-height: 1.55; }
.gx-empty .acts { margin-top: 14px; display: flex; gap: 9px; justify-content: center; flex-wrap: wrap; }
.gx-banner { display: flex; gap: 10px; align-items: flex-start; padding: 11px 14px; border-radius: 10px; font-size: 13px; line-height: 1.5; margin-bottom: 14px; }
.gx-banner.amber { background: var(--gx-amber-weak); color: var(--gx-amber); }
.gx-banner.red { background: var(--gx-red-weak); color: var(--gx-red); }
.gx-banner.blue { background: #eef4fc; color: #23578e; }
.gx-toast {
    position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 200;
    background: var(--gx-ink); color: #fff; border-radius: 10px; padding: 10px 16px;
    font-size: 13px; box-shadow: 0 12px 32px rgba(20, 22, 43, .3); max-width: calc(100% - 32px);
}
.gx-toast.bad { background: var(--gx-red); }

/* ---- auth --------------------------------------------------------------------------------------- */
.gx-auth {
    min-height: 100vh; display: flex; align-items: center; justify-content: center;
    padding: 28px 16px;
    background:
        radial-gradient(900px 420px at 12% -8%, #e8eaff 0%, rgba(232, 234, 255, 0) 62%),
        radial-gradient(760px 380px at 92% 108%, #ffe9cf 0%, rgba(255, 233, 207, 0) 60%),
        var(--gx-bg);
}
.gx-auth-in { width: 100%; max-width: 430px; }
.gx-auth-brand { display: flex; align-items: center; justify-content: center; margin-bottom: 20px; }
.gx-auth-brand img { height: 27px; width: auto; }
.gx-auth-card { background: var(--gx-card); border: 1px solid var(--gx-border); border-radius: 18px; padding: 26px; box-shadow: var(--gx-shadow); }
.gx-auth-card h1 { font-size: 22px; font-weight: 800; letter-spacing: -.015em; }
.gx-auth-card .intro { font-size: 13px; color: var(--gx-muted); line-height: 1.55; margin-top: 6px; }
.gx-auth-foot { text-align: center; font-size: 11px; color: var(--gx-faint); margin-top: 16px; line-height: 1.6; }
.gx-code { display: flex; gap: 8px; justify-content: space-between; margin-top: 6px; }
.gx-code input {
    width: 100%; text-align: center; font-size: 20px; font-weight: 700; font-family: var(--gx-mono);
    padding: 11px 0; border: 1px solid var(--gx-border-strong); border-radius: 10px; background: var(--gx-card); color: var(--gx-ink);
    outline: none; min-width: 0;
}
.gx-code input:focus { border-color: var(--gx-primary); box-shadow: 0 0 0 3px var(--gx-primary-weak); }
.gx-auth-links { display: flex; gap: 14px; justify-content: space-between; margin-top: 14px; flex-wrap: wrap; }
.gx-link-btn { appearance: none; border: 0; background: none; padding: 0; cursor: pointer; color: var(--gx-primary); font-size: 12px; font-weight: 700; }
.gx-link-btn:disabled { color: var(--gx-faint); cursor: default; }

/* ---- responsive --------------------------------------------------------------------------------- */
@media all and (min-width: 760px) {
    .gx-mename { display: block; font-size: 13px; font-weight: 700; max-width: 130px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}
@media all and (max-width: 1000px) {
    .gx-2col, .gx-kpi-cols { grid-template-columns: 1fr; }
}
@media all and (max-width: 760px) {
    .gx-top-in { padding: 0 14px; height: 56px; gap: 8px; }
    .gx-logo-sub { display: none; }
    .gx-ws { padding: 4px 8px; }
    .gx-ws label { display: none; }
    .gx-ws select { max-width: 128px; font-size: 13px; }
    .gx-tabs-in { padding: 0 14px; gap: 18px; }
    .gx-tab { font-size: 13px; }
    .gx-wrap { padding: 16px 14px 56px; }
    .gx-title { font-size: 21px; }
    .gx-card { padding: 15px; }
    .gx-person.mine { margin: 0 -15px; padding-left: 15px; padding-right: 15px; }
    .gx-kanban { grid-template-columns: 1fr; }
    .gx-col { min-height: 0; }
    .gx-hide-s { display: none; }
    .gx-action { flex-direction: column; }
    .gx-action .timer { align-items: flex-start; }
    .gx-action .timer .gx-clock { font-size: 16px; }
    .gx-acts { justify-content: flex-start; }
    .gx-dlg { padding: 18px; border-radius: 14px; }
    .gx-code input { font-size: 17px; padding: 10px 0; }
}

/* ---- menus (three-dot) ------------------------------------------------------------------------- */
.gx-task, .gx-action, .gx-col { position: relative; }
.gx-pop {
    position: absolute; right: 0; top: 100%; z-index: 40;
    background: var(--gx-card); border: 1px solid var(--gx-border); border-radius: 10px;
    box-shadow: var(--gx-shadow); padding: 6px; min-width: 172px;
}
.gx-pop .gx-btn { display: block; width: 100%; text-align: left; }

/* Grid/flex children default to min-width:auto; on a phone a nowrap countdown would then widen the whole page. */
.gx-2col > *, .gx-kpi-cols > *, .gx-grid > *, .gx-stats > * { min-width: 0; }
.gx-hive, .gx-person, .gx-sec-h { min-width: 0; }
.gx-person .nm { min-width: 0; overflow-wrap: anywhere; }
