/* FreelanceFlow base styles: calm, clear and readable. Big text, strong contrast, works on phones. */
:root {
  --ink: #16213e; --muted: #5b6478; --line: #e3e6ef; --bg: #f6f7fb; --card: #fff;
  --brand: #3446d4; --brand-2: #eef0ff; --good: #12805c; --good-bg: #e6f6ef; --warn: #b45309; --warn-bg: #fff4e0;
  --bad: #c0362c; --bad-bg: #fdecea; --radius: 14px; --edge: clamp(20px, 4vw, 64px); --shadow: 0 1px 2px rgba(22, 33, 62, .06), 0 6px 20px rgba(22, 33, 62, .06);
}
* { box-sizing: border-box; }
html { font-size: 17px; }
body { margin: 0; font-family: "Segoe UI", system-ui, -apple-system, Roboto, sans-serif; color: var(--ink); background: var(--bg); line-height: 1.5; }
a { color: var(--brand); }
:focus-visible { outline: 3px solid #ffb703; outline-offset: 2px; border-radius: 6px; }
.skip { position: absolute; left: -999px; } .skip:focus { left: 12px; top: 12px; background: #fff; padding: 8px 12px; z-index: 10; }

/* header */
.top { background: var(--card); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.15rem; color: var(--ink); text-decoration: none; }
.logo i { width: 34px; height: 34px; border-radius: 10px; background: var(--brand); display: grid; place-items: center; color: #fff; font-style: normal; font-size: 1.05rem; }
.top .right { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.who { color: var(--muted); font-size: .9rem; }

/* layout */
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin: 0 0 20px; padding: 0; list-style: none; }
.tabs a { display: block; padding: 9px 16px; border-radius: 999px; text-decoration: none; color: var(--muted); font-weight: 600; background: var(--card); border: 1px solid var(--line); }
.tabs a[aria-current="page"] { background: var(--brand); color: #fff; border-color: var(--brand); }
h1 { font-size: 1.6rem; margin: 0 0 16px; } h2 { font-size: 1.15rem; margin: 0 0 12px; } h3 { font-size: 1.02rem; margin: 4px 0; }
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow); margin-bottom: 16px; }
.hint { color: var(--muted); font-size: .88rem; font-weight: 400; }
.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

/* buttons and forms */
.btn { display: inline-block; background: var(--brand); color: #fff; border: 0; border-radius: 10px; padding: 10px 18px; font: inherit; font-weight: 600; cursor: pointer; text-decoration: none; }
.btn:hover { filter: brightness(1.08); } .btn.ghost { background: var(--brand-2); color: var(--brand); } .btn.small { padding: 6px 12px; font-size: .88rem; }
.form { display: grid; gap: 12px; margin-top: 12px; }
label { display: grid; gap: 4px; font-weight: 600; font-size: .92rem; } label.check { display: flex; align-items: center; gap: 8px; }
input, select, textarea { font: inherit; padding: 10px 12px; border: 1px solid #c9cedb; border-radius: 10px; background: #fff; color: var(--ink); width: 100%; }
input[type=checkbox] { width: 20px; height: 20px; }
.filters { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; } .filters .grow { flex: 1 1 240px; }
.msg { margin-top: 10px; padding: 10px 14px; border-radius: 10px; } .msg.ok { background: var(--good-bg); color: var(--good); } .msg.error { background: var(--bad-bg); color: var(--bad); }
details summary { cursor: pointer; }

/* stats */
.stats { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); margin-bottom: 16px; }

/* today's timetable */
.tag { font-size: .78rem; font-weight: 700; color: var(--brand); text-transform: uppercase; }

/* attendance */
.alert { border-radius: var(--radius); padding: 14px 18px; margin-bottom: 16px; font-weight: 600; }
.alert.low { background: var(--bad-bg); color: var(--bad); } .alert.edge { background: var(--warn-bg); color: var(--warn); } .alert.ok { background: var(--good-bg); color: var(--good); }

/* tables */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .95rem; }
th, td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-weight: 600; font-size: .85rem; }
.chip { display: inline-block; background: var(--brand-2); border-radius: 8px; padding: 3px 9px; margin: 2px 4px 2px 0; font-size: .88rem; }
.badge { display: inline-block; font-size: .78rem; font-weight: 700; padding: 3px 9px; border-radius: 99px; }
.badge.open { background: var(--brand-2); color: var(--brand); } .badge.submitted { background: var(--warn-bg); color: var(--warn); }

/* notices */
.cat { font-size: .75rem; font-weight: 700; padding: 2px 8px; border-radius: 99px; background: #eef1f6; }

/* charts */

footer { text-align: center; color: var(--muted); font-size: .85rem; padding: 30px 20px; }

@media (max-width: 640px) {
  html { font-size: 16px; }
}
@media (prefers-reduced-motion: no-preference) { .card, .btn { transition: box-shadow .2s, filter .2s; } }
