:root {
    --teal: #2fbdbd;
    --teal-dark: #117579;
    --teal-deep: #0b6267;
    --ink: #223033;
    --muted: #657376;
    --line: #d5d5d5;
    --paper: #ffffff;
    --canvas: #e8e8e8;
    --success: #177245;
    --danger: #b42318;
    --shadow: 0 10px 26px rgba(21, 42, 43, .16);
}

* { box-sizing: border-box; }
html { min-height: 100%; overflow-y: scroll; }
body {
    min-height: 100%; margin: 0; color: var(--ink);
    font-family: "Avenir Next", Avenir, "Segoe UI", sans-serif;
    background: linear-gradient(135deg, #f0f0f0, var(--canvas) 60%, #f0f0f0);
}
a { color: var(--teal-dark); text-underline-offset: .14em; }
a:hover { color: var(--teal-deep); }
.wrap { width: min(1160px, calc(100% - 40px)); margin: 0 auto; }

.site-header { background: var(--teal); border-bottom: 4px solid rgba(0, 103, 109, .25); }
.header-inner { min-height: 68px; padding: 12px 0; display: flex; align-items: center; justify-content: space-between; gap: 20px; color: #fff; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: #fff; font-size: 1.05rem; font-weight: 700; text-decoration: none; }
.brand-lockup { display: flex; align-items: center; gap: 16px; }
.brand img { display: block; width: 94px; height: 48px; object-fit: contain; }
.app-label { padding-left: 16px; border-left: 1px solid rgba(255,255,255,.42); color: #fff; font-size: .92rem; font-weight: 500; }
.nav { display: flex; align-items: center; flex-wrap: wrap; }
.nav a { min-height: 34px; padding: 8px 12px; border-left: 1px solid rgba(255,255,255,.33); color: #fff; font-size: .84rem; font-weight: 600; text-decoration: none; }
.nav a:last-child { border-right: 1px solid rgba(255,255,255,.33); }
.nav a:hover { background: rgba(0, 103, 109, .14); color: #fff; }

.main-content { padding: 32px 0 52px; }
.card { margin-bottom: 16px; padding: 22px; border: 1px solid var(--line); border-radius: 7px; background: var(--paper); box-shadow: 0 5px 14px rgba(21,42,43,.11); }
.hero { border-color: var(--teal-dark); background: var(--teal-dark); color: #fff; }
.hero h1, .card h1 { margin: 0 0 10px; font-size: clamp(1.65rem, 2.6vw, 2.35rem); line-height: 1.16; font-weight: 700; }
.card h2 { margin: 0 0 12px; font-size: 1.14rem; font-weight: 700; }
.card p, .card li, .card td, .card th, label, input, select, button { font-size: .96rem; }
.eyebrow { margin: 0 0 8px; color: var(--teal-dark); font-size: .72rem; font-weight: 700; letter-spacing: .11em; text-transform: uppercase; }
.hero .eyebrow { color: rgba(255,255,255,.75); }
.grid-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.stack { display: grid; gap: 12px; }
.narrow { max-width: 510px; margin-left: auto; margin-right: auto; }
label { display: grid; gap: 7px; color: var(--ink); font-weight: 600; }
input, select, button { font: inherit; }
input[type="text"], input[type="email"], input[type="password"], input[type="date"], input[type="file"], select, textarea { width: 100%; min-height: 43px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 7px; background: #fff; color: var(--ink); }
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(47,189,189,.2); }
.button, button[type="submit"] { display: inline-flex; align-items: center; justify-content: center; min-height: 43px; padding: 0 18px; border: 0; border-radius: 5px; background: var(--teal-dark); color: #fff; font-weight: 600; text-decoration: none; cursor: pointer; }
.button:hover, button[type="submit"]:hover { background: var(--teal-deep); color: #fff; }
.button.ghost { border: 1px solid #cfcfcf; background: #f5f5f5; color: var(--teal-dark); }
.button.ghost:hover { background: #e9f7f7; color: var(--teal-deep); }
.hint { margin: 0; color: var(--muted); font-size: .88rem; }
.flash { margin-bottom: 14px; padding: 13px 15px; border: 1px solid transparent; border-radius: 5px; font-weight: 600; }
.flash-success { border-color: rgba(23,114,69,.2); background: rgba(23,114,69,.1); color: var(--success); }
.flash-danger { border-color: rgba(180,35,24,.2); background: rgba(180,35,24,.1); color: var(--danger); }
.table { width: 100%; border-collapse: collapse; }
.table thead th { padding: 11px 12px; border-bottom: 2px solid var(--teal); color: var(--muted); font-size: .78rem; font-weight: 700; letter-spacing: .05em; text-align: left; text-transform: uppercase; }
.table tbody td { padding: 13px 12px; border-bottom: 1px solid #e5e5e5; vertical-align: top; }
.table tbody tr:hover td { background: #f0fbfb; }
.admin-intro { margin: 0 0 18px; padding: 6px 0; }
.admin-intro h1 { margin: 0 0 5px; color: #17494c; font-size: 1.7rem; font-weight: 600; }
.admin-intro p:last-child { margin: 0; color: var(--muted); }
.bullets, .link-list { margin: 0; padding-left: 20px; }
.bullets li, .link-list li { margin-bottom: 9px; }
.link-list li { display: flex; justify-content: space-between; gap: 14px; align-items: baseline; }
.link-list span { color: var(--muted); font-weight: 600; white-space: nowrap; }
.section-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.workspace-card { max-width: 920px; margin: 46px auto; border: 1px solid #d2d2d2; background: #fff; box-shadow: 0 5px 14px rgba(21,42,43,.11); }
.workspace-head { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 28px 30px; border-bottom: 1px solid #d8e8e8; background: #f7fbfb; }
.workspace-head h1 { margin: 0 0 5px; color: #17494c; font-size: 1.65rem; font-weight: 600; }
.workspace-head p { margin: 0; color: var(--muted); }
.workspace-section { padding: 24px 30px 30px; }
.workspace-section h2 { margin: 0 0 14px; color: #17494c; font-size: 1.1rem; font-weight: 600; }
.empty-state { margin: 0; padding: 22px; border: 1px dashed #c8d7d7; color: var(--muted); text-align: center; }
.webinar-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid #e2e2e2; }
.webinar-list li { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 16px 4px; border-bottom: 1px solid #e2e2e2; }
.webinar-list a { display: block; color: #175f63; font-weight: 600; text-decoration: none; }
.webinar-list a:hover { text-decoration: underline; }
.webinar-list span { display: block; margin-top: 4px; color: var(--muted); font-size: .86rem; }
.webinar-list time { color: #507174; font-size: .9rem; white-space: nowrap; }

/* Mirrors the compact teal login panels used by Forms and Cygnus. */
.page-login { min-height: 100vh; background: linear-gradient(135deg, #eff9f8 0%, #efefef 50%, #f5ede5 100%); }
.page-login .site-header { display: none; }
.page-login .main-content { min-height: 100vh; display: grid; align-content: start; padding-top: 72px; }
.page-login .card { width: min(510px, 100%); margin: 0 auto; padding: 44px 54px 46px; border: 0; border-radius: 18px; background: linear-gradient(160deg, var(--teal), var(--teal-dark)); box-shadow: var(--shadow); color: #fff; }
.page-login .card h1 { margin-bottom: 36px; text-align: center; font-size: 1.22rem; font-weight: 600; }
.page-login .card h1::before { content: "ÁMOS"; display: block; margin-bottom: 50px; font-size: 1.9rem; font-weight: 800; letter-spacing: -.08em; }
.page-login .card p { display: none; }
.page-login label { color: #fff; font-weight: 600; }
.page-login input[type="text"], .page-login input[type="password"] { border: 1px solid rgba(255,255,255,.72); border-radius: 9px; }
.page-login button[type="submit"] { margin-top: 18px; background: rgba(0,97,103,.48); border-radius: 8px; }
.page-login button[type="submit"]:hover { background: rgba(0,87,93,.72); }
.workflow-list { display: grid; gap: 16px; margin: 20px 0; padding: 0; list-style: none; counter-reset: workflow; }
.workflow-list li { position: relative; min-height: 45px; padding-left: 54px; counter-increment: workflow; }
.workflow-list li::before { content: counter(workflow); position: absolute; top: 0; left: 0; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: #e5f7f7; color: var(--teal-dark); font-weight: 700; }
.workflow-list strong, .workflow-list span { display: block; }
.workflow-list span { margin-top: 3px; color: var(--muted); font-size: .9rem; line-height: 1.45; }
.detail-actions { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.detail-actions form { margin: 0; }
.danger-button { background: #fff !important; border: 1px solid #cbd7d7 !important; color: #176267 !important; }
.danger-button:hover { background: #edf9f9 !important; color: #0c5358 !important; }
.table-actions { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.table-actions form { margin: 0; }
.table-action { display: inline-flex; align-items: center; min-height: 31px; padding: 0 9px; border: 1px solid #cbd7d7; border-radius: 4px; background: #fff; color: #176267; font-size: .82rem; font-weight: 600; text-decoration: none; cursor: pointer; }
.table-action:hover { background: #edf9f9; color: #0c5358; }
.table-actions button.table-action { min-height: 31px; padding: 0 9px; border: 1px solid #cbd7d7; border-radius: 4px; background: #fff; color: #176267; }
.table-actions button.table-action:hover { background: #edf9f9; color: #0c5358; }
.table-action.primary { border-color: var(--teal-dark); background: var(--teal-dark); color: #fff; }
.table-action.primary:hover { background: var(--teal-deep); color: #fff; }
.table-action.delete { border-color: #cbd7d7; color: #176267; }
.table-action.delete:hover { background: #edf9f9; color: #0c5358; }

@media (max-width: 920px) { .grid-two { grid-template-columns: 1fr; } .section-head, .header-inner, .link-list li, .workspace-head { flex-direction: column; align-items: flex-start; } }
@media (max-width: 640px) { .wrap { width: min(100% - 24px, 1160px); } .header-inner { padding: 10px 0; } .main-content { padding-top: 20px; } .card { padding: 17px; } .brand-lockup { width: 100%; justify-content: space-between; } .app-label { margin-left: auto; } .nav { width: 100%; } .nav a { flex: 1 1 auto; text-align: center; } .workspace-card { margin: 12px 0; } .workspace-head, .workspace-section { padding: 20px; } .webinar-list li { align-items: flex-start; flex-direction: column; gap: 6px; } .page-login .main-content { padding-top: 40px; } .page-login .card { width: 100%; padding: 34px 26px; } .table, .table thead, .table tbody, .table tr, .table th, .table td { display: block; } .table thead { display: none; } .table tbody tr { padding: 9px 0; border-bottom: 1px solid var(--line); } .table tbody td { padding: 7px 0; border: 0; } }
