:root { color-scheme: light; font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: #251b28; background: #f8f6fa; }
* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; background: radial-gradient(circle at top right, #f3e5f0 0, transparent 30rem), #f8f6fa; }
a { color: #772960; text-decoration: none; }
a:hover { color: #571c46; }
h1, h2, p { margin-top: 0; }
h1 { margin-bottom: .35rem; font-size: clamp(1.65rem, 3vw, 2.35rem); letter-spacing: -.035em; }
h2 { font-size: 1.1rem; margin-bottom: .6rem; }
.topbar { min-height: 68px; display: flex; align-items: center; gap: 1.5rem; padding: .75rem max(1rem, calc((100% - 1240px) / 2)); background: rgb(255 255 255 / 88%); border-bottom: 1px solid #e9e1ea; backdrop-filter: blur(16px); position: sticky; top: 0; z-index: 10; }
.brand, .login-brand { display: inline-flex; align-items: center; gap: .55rem; color: #2c1a2b; font-weight: 800; letter-spacing: -.02em; white-space: nowrap; }
.brand-mark { display: inline-grid; place-items: center; width: 31px; height: 31px; color: #fff; background: linear-gradient(135deg, #8a326d, #59224d); border-radius: 10px; box-shadow: 0 6px 12px rgb(89 34 77 / 20%); }
nav { display: flex; align-items: center; gap: .25rem; flex: 1; }
nav a { padding: .5rem .65rem; border-radius: 8px; color: #625763; font-size: .91rem; font-weight: 650; }
nav a:hover, nav a.active { color: #70295d; background: #f4eaf1; text-decoration: none; }
.account-menu { display: flex; align-items: center; gap: .7rem; }
.account-name { max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #625763; font-size: .9rem; }
.app-main { width: min(1240px, calc(100% - 2rem)); margin: 2.5rem auto 4rem; }
.login-main { width: min(100% - 2rem, 470px); margin: min(14vh, 9rem) auto; }
.card { background: rgb(255 255 255 / 94%); border: 1px solid #e9e1ea; border-radius: 16px; box-shadow: 0 12px 32px rgb(54 28 49 / 6%); }
.page-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; margin-bottom: 1.6rem; }
.eyebrow { color: #8a326d; font-size: .76rem; font-weight: 800; letter-spacing: .12em; margin-bottom: .55rem; text-transform: uppercase; }
.muted-text, small, .optional { color: #756b77; font-size: .9rem; }
small { display: block; margin-top: .25rem; }
.quick-actions { display: flex; flex-wrap: wrap; gap: .6rem; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.stat-card { min-height: 145px; display: flex; flex-direction: column; justify-content: space-between; padding: 1.2rem; }
.stat-card > span { color: #756b77; font-size: .9rem; font-weight: 650; }
.stat-card b { color: #332033; font-size: 2.2rem; letter-spacing: -.05em; }
.stat-card.attention { background: linear-gradient(145deg, #fff, #fff5de); }
.helper-card { display: flex; justify-content: space-between; align-items: center; gap: 2rem; margin-top: 1rem; padding: 1.4rem 1.5rem; }
.helper-card p { max-width: 760px; margin-bottom: 0; color: #625763; }
.button, button { display: inline-flex; justify-content: center; align-items: center; min-height: 42px; padding: .62rem .9rem; color: #fff; background: linear-gradient(135deg, #8a326d, #6a2857); border: 1px solid #742b5f; border-radius: 9px; font: inherit; font-weight: 700; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, filter .15s ease; }
.button:hover, button:hover { color: #fff; filter: brightness(.97); text-decoration: none; box-shadow: 0 6px 14px rgb(106 40 87 / 18%); transform: translateY(-1px); }
.button.secondary, button.secondary { color: #6d285b; background: #fff; border-color: #d8c7d5; }
.button.ghost, button.ghost { min-height: 34px; color: #6d285b; background: transparent; border-color: #dfd2dd; }
button.danger { background: #b3274a; border-color: #a22342; }
button.link { min-height: auto; padding: 0; color: #772960; background: transparent; border: 0; box-shadow: none; }
button.small { min-height: 32px; padding: .35rem .62rem; font-size: .82rem; }
button:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.form-card { max-width: 720px; padding: 1.5rem; }
.login { padding: 2rem; }
.login-brand { margin-bottom: 2rem; font-size: 1.1rem; }
.stack-form { display: grid; gap: .2rem; }
form { margin: 0; }
label { display: grid; gap: .42rem; margin: .8rem 0; font-size: .91rem; font-weight: 700; }
label.check { display: flex; align-items: center; gap: .55rem; font-weight: 600; }
input, textarea, select { width: 100%; padding: .68rem .75rem; color: #302532; background: #fff; border: 1px solid #dcd1da; border-radius: 9px; font: inherit; outline: 0; }
input:focus, textarea:focus { border-color: #9b4c83; box-shadow: 0 0 0 3px rgb(155 76 131 / 14%); }
textarea { resize: vertical; }
input[type="checkbox"] { width: auto; accent-color: #7e2e67; }
.notice { margin: 1rem 0; padding: .75rem .9rem; border-radius: 9px; font-size: .92rem; }
.notice.error { color: #8c1f38; background: #ffedf0; }
.notice.success { color: #176d48; background: #e4f6ec; }
.two-column { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(260px, .75fr); gap: 1rem; align-items: start; }
.tip-card { padding: 1.5rem; color: #625763; }
.tip-card ol { margin: 0 0 1rem; padding-left: 1.2rem; line-height: 1.7; }
.table-card { overflow: hidden; margin-top: 1rem; }
.section-heading { display: flex; align-items: center; gap: .6rem; padding: 1.25rem 1.25rem 0; }
.count-badge { display: inline-grid; place-items: center; min-width: 24px; height: 24px; padding: 0 .35rem; color: #6d285b; background: #f3e6f0; border-radius: 99px; font-size: .8rem; font-weight: 800; }
.table { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: .95rem 1.15rem; text-align: left; vertical-align: top; border-bottom: 1px solid #eee7ed; }
th { color: #756b77; background: #fcfafc; font-size: .75rem; letter-spacing: .06em; text-transform: uppercase; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #fdfbfc; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem; min-width: 310px; }
.actions form { display: contents; }
.actions input { width: auto; min-width: 130px; }
.text-action { font-weight: 750; }
.tag { display: inline-flex; align-items: center; padding: .25rem .5rem; color: #6d5969; background: #f3edf2; border-radius: 99px; font-size: .78rem; font-weight: 750; }
.tag.approved { color: #176d48; background: #e3f6eb; }
.tag.rejected { color: #9d2039; background: #ffeaee; }
.tag.pending { color: #875c00; background: #fff1c7; }
.status-dot { display: inline-block; width: 8px; height: 8px; margin-right: .4rem; border-radius: 50%; background: #b9b1ba; }
.status-dot.online { background: #28a76d; }.status-dot.offline { background: #b9b1ba; }
.search { display: flex; gap: .5rem; width: min(100%, 500px); margin: 0 0 1rem; }
.search button { flex: 0 0 auto; }
.pager { display: flex; justify-content: flex-end; gap: .5rem; margin-top: 1rem; }
.empty-state { padding: 2.5rem; color: #756b77; text-align: center; }
details summary { color: #772960; cursor: pointer; font-size: .86rem; font-weight: 700; }
details[open] { width: 100%; }
.compact-form { display: grid !important; width: min(100%, 300px); margin-top: .5rem; padding: .75rem; background: #fbf8fb; border: 1px solid #eee3ed; border-radius: 10px; }
fieldset { margin: 1rem 0; border: 1px solid #e3d8e1; border-radius: 10px; } legend { padding: 0 .35rem; color: #625763; font-weight: 700; }
@media (max-width: 900px) { .topbar { flex-wrap: wrap; gap: .7rem; }.topbar nav { order: 3; width: 100%; overflow-x: auto; }.stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }.two-column { grid-template-columns: 1fr; } }
@media (max-width: 620px) { .app-main { width: min(100% - 1rem, 1240px); margin-top: 1.25rem; }.topbar { padding: .7rem 1rem; }.account-name { display: none; }.page-heading, .helper-card { align-items: flex-start; flex-direction: column; }.quick-actions { width: 100%; }.quick-actions .button { flex: 1; }.stats { grid-template-columns: 1fr 1fr; gap: .6rem; }.stat-card { min-height: 125px; padding: 1rem; }.stat-card b { font-size: 1.8rem; }th, td { padding: .8rem; }.form-card, .login { padding: 1.2rem; }.search { flex-direction: column; }.search button { width: 100%; }.actions { min-width: 260px; } }
