/* iHelm Resource Library: design tokens and components.
   House teal primary, logo swoosh colours as accents. */
:root {
    --teal: #1E7F7F;
    --teal-dark: #165F5F;
    --teal-tint: #E7F1F1;
    --ink: #231F20;
    --ink-soft: #5A5754;
    --paper: #FFFFFF;
    --shell: #F6F5F2;
    --line: #DEDBD5;
    --accent-red: #E9655D;
    --accent-blue: #329BD2;
    --accent-green: #36B97D;
    --accent-purple: #5C5A9C;
    --radius: 6px;
    --shadow: 0 1px 2px rgba(35, 31, 32, .08), 0 8px 24px rgba(35, 31, 32, .06);
    --font: "Archivo", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    background: var(--shell);
    color: var(--ink);
    font-family: var(--font);
    font-size: 15px;
    line-height: 1.5;
}

a { color: var(--teal); }
a:hover { color: var(--teal-dark); }

header.bar {
    background: var(--teal);
    color: #fff;
    padding: 0 24px;
    display: flex;
    align-items: center;
    gap: 28px;
    height: 56px;
}
header.bar .brand { font-weight: 700; font-size: 16px; letter-spacing: .2px; }
header.bar nav { display: flex; gap: 20px; margin-left: auto; }
header.bar a { color: #fff; text-decoration: none; opacity: .9; font-size: 14px; }
header.bar a:hover { opacity: 1; text-decoration: underline; }

main { max-width: 1040px; margin: 32px auto 64px; padding: 0 24px; }
main.narrow { max-width: 460px; }

h1 { font-size: 24px; margin: 0 0 4px; }
h2 { font-size: 17px; margin: 32px 0 12px; }
p.lede { color: var(--ink-soft); margin: 0 0 24px; }

.card {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 24px;
}

.stack > * + * { margin-top: 16px; }

label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 4px; }
input[type=text], input[type=password], input[type=email], select {
    width: 100%;
    padding: 9px 10px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    font-family: var(--font);
    font-size: 15px;
    background: #fff;
    color: var(--ink);
}
input:focus, select:focus, button:focus {
    outline: 2px solid var(--accent-blue);
    outline-offset: 1px;
}

button, .button {
    background: var(--teal);
    color: #fff;
    border: 0;
    border-radius: var(--radius);
    padding: 9px 16px;
    font-family: var(--font);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}
button:hover { background: var(--teal-dark); }
button.quiet {
    background: #fff;
    color: var(--ink);
    border: 1px solid var(--line);
}
button.quiet:hover { background: var(--teal-tint); }

table { width: 100%; border-collapse: collapse; background: #fff; }
th, td {
    text-align: left;
    padding: 10px 12px;
    border-bottom: 1px solid var(--line);
    font-size: 14px;
    vertical-align: top;
}
th { background: var(--teal-dark); color: #fff; font-size: 13px; }
td.num { text-align: right; font-variant-numeric: tabular-nums; }
tr:last-child td { border-bottom: 0; }

.chip {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
}
.chip.on { background: #E7F4EA; color: #1E6B33; }
.chip.off { background: #F1F3F4; color: #5F6368; }
.chip.admin { background: #EDEDF6; color: var(--accent-purple); }

.notice, .error {
    border-radius: var(--radius);
    padding: 12px 14px;
    font-size: 14px;
    border: 1px solid;
}
.notice { background: var(--teal-tint); border-color: #BEDAD9; color: var(--teal-dark); }
.error { background: #FBE9E7; border-color: #F3C6C2; color: #A3352C; }

.empty {
    border: 1px dashed var(--line);
    border-radius: var(--radius);
    padding: 40px 24px;
    text-align: center;
    color: var(--ink-soft);
    background: #fff;
}

.mono { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 13px; }
.muted { color: var(--ink-soft); font-size: 13px; }
footer { color: var(--ink-soft); font-size: 12px; margin-top: 40px; }
