:root { color-scheme: light; --ink: #172739; --muted: #66778a; --line: #dae3eb; --canvas: #f5f7f9; --nav: #11283b; --accent: #087e85; --accent-dark: #06636a; }
body { color: var(--ink); background: var(--canvas); font-family: Inter, "Segoe UI", Arial, sans-serif; }
a, button, input, select { transition: box-shadow .15s ease, background-color .15s ease; }
:focus-visible { outline: 3px solid #16a3aa !important; outline-offset: 2px; }
.eyebrow { color: var(--accent); font-size: .7rem; font-weight: 800; letter-spacing: .16em; }
.btn-primary { background: var(--accent); border-color: var(--accent); }
.btn-primary:hover, .btn-primary:focus { background: var(--accent-dark); border-color: var(--accent-dark); }
.form-control:focus, .form-select:focus { border-color: var(--accent); box-shadow: 0 0 0 .2rem #087e8530; }
.login-page { min-height: 100vh; }
.login-layout { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(400px, 44%); padding: 0; }
.login-intro { background: var(--nav); color: #f4fafb; padding: clamp(2rem, 6vw, 6rem); display: flex; flex-direction: column; justify-content: center; }
.brand-mark { width: 56px; height: 56px; display: grid; place-items: center; margin-bottom: 5rem; color: #fff; background: var(--accent); border-radius: 12px; font-size: 1.6rem; font-weight: 800; }
.brand-mark span { color: #8af0e9; }
.login-intro .eyebrow { color: #8bd5d4; }
.login-intro h1 { font-size: clamp(2.8rem, 5vw, 5.5rem); line-height: 1.08; font-weight: 750; letter-spacing: -.05em; }
.login-intro h1 span { color: #8bd5d4; }
.intro-copy { max-width: 30rem; color: #c6d4dd; font-size: 1.15rem; line-height: 1.7; margin-top: 1.5rem; }
.intro-rule { width: 4rem; height: 2px; background: #44b8b7; margin-top: 5rem; }
.intro-caption { color: #aebfc9; margin-top: 1rem; font-size: .86rem; }
.login-panel { display: grid; place-items: center; padding: 2.5rem; }
.login-card { width: min(100%, 420px); }
.login-card h2 { font-size: 2rem; font-weight: 700; letter-spacing: -.035em; }
.login-card .form-label { font-size: .87rem; font-weight: 650; }
.login-card .form-control { font-size: 1rem; min-height: 3rem; }
.login-card .btn { min-height: 3.1rem; }
.login-footnote { color: var(--muted); font-size: .82rem; text-align: center; margin-top: 2rem; }
.bootstrap-screen { min-height: 100vh; display: flex; justify-content: center; align-items: center; gap: 1rem; color: var(--muted); }
.app-shell { min-height: 100vh; }
.app-topbar { position: sticky; top: 0; z-index: 20; height: 68px; display: flex; align-items: center; gap: 1rem; padding: 0 2rem; background: #fff; border-bottom: 1px solid var(--line); }
.topbar-brand { display: inline-flex; align-items: center; gap: .7rem; color: var(--ink); font-weight: 750; text-decoration: none; font-size: 1.2rem; }
.brand-square { display: grid; place-items: center; width: 35px; height: 35px; border-radius: 8px; background: var(--accent); color: #fff; font-size: 1rem; }
.topbar-context { color: var(--muted); font-size: .66rem; letter-spacing: .14em; font-weight: 700; border-left: 1px solid var(--line); padding-left: 1rem; }
.topbar-spacer { flex: 1; }
.current-user { font-size: .88rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 14rem; }
.app-body { display: flex; min-height: calc(100vh - 68px); }
.sidebar { flex: 0 0 250px; width: 250px; background: var(--nav); color: #c5d4dd; padding: 2rem 1rem; display: flex; flex-direction: column; overflow-y: auto; }
.sidebar-heading { color: #7695a6; letter-spacing: .15em; font-size: .66rem; font-weight: 800; margin: 0 1rem 1rem; }
.nav-item { display: flex; align-items: center; gap: .8rem; padding: .7rem 1rem; border-radius: 8px; color: #c5d4dd; text-decoration: none; font-size: .89rem; }
.nav-item.active { color: #fff; background: #245066; font-weight: 650; }
.nav-item.disabled { color: #8298a6; cursor: not-allowed; }
.nav-item small { margin-left: auto; color: #839aa7; font-size: .68rem; }
.sidebar-footer { margin: auto 1rem 0; padding-top: 2rem; font-size: .71rem; color: #8298a6; }
.content { width: 100%; min-width: 0; padding: clamp(1.25rem, 3vw, 3rem); max-width: 1500px; margin: 0 auto; }
@media (min-width: 992px) { .sidebar { position: sticky; top: 68px; align-self: flex-start; height: calc(100vh - 68px); } }
.page-heading { display: flex; justify-content: space-between; align-items: start; gap: 2rem; flex-wrap: wrap; margin-bottom: 2rem; }
.page-heading h1 { font-size: clamp(1.7rem, 2.6vw, 2.4rem); font-weight: 750; letter-spacing: -.04em; }
.project-picker { width: min(100%, 330px); }
.project-picker .form-label { font-size: .75rem; font-weight: 700; }
.project-picker small { display: block; margin-top: .35rem; font-size: .72rem; }
.project-hero, .info-card, .workflow-card, .empty-state { background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.project-hero { display: flex; align-items: center; gap: 1.4rem; padding: clamp(1.4rem, 3vw, 2.3rem); }
.project-monogram { width: 68px; height: 68px; flex: 0 0 68px; display: grid; place-items: center; background: #d9f2f0; color: var(--accent-dark); border-radius: 14px; font-size: 2rem; font-weight: 750; }
.project-hero-text { min-width: 0; flex: 1; }
.project-hero h2 { font-size: 1.6rem; font-weight: 700; overflow-wrap: anywhere; }
.project-hero p { color: var(--muted); overflow-wrap: anywhere; }
.status-pill { background: #e8f5ee; color: #246443; padding: .35rem .75rem; border-radius: 999px; font-size: .73rem; font-weight: 700; }
.info-card { height: 100%; padding: 1.5rem; }
.info-value { font-size: 1.16rem; font-weight: 650; margin: .3rem 0; }
.info-card .text-secondary { font-size: .82rem; line-height: 1.55; }
.section-heading { margin: 2.5rem 0 1rem; }
.section-heading h2 { font-size: 1.2rem; font-weight: 700; }
.section-heading p { color: var(--muted); font-size: .86rem; }
.workflow-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .8rem; }
.workflow-card { display: flex; flex-direction: column; gap: .5rem; padding: 1.2rem; min-width: 0; }
.workflow-number { color: var(--accent); font-size: .73rem; font-weight: 800; letter-spacing: .1em; }
.workflow-later { color: var(--muted); font-size: .76rem; }
.empty-state { padding: 4rem 1.5rem; text-align: center; color: var(--muted); }
.empty-state h2 { color: var(--ink); font-size: 1.3rem; }
.empty-icon { color: var(--accent); font-size: 2.7rem; }
.asset-panel { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: clamp(1rem, 2vw, 2rem); margin-bottom: 1.25rem; }
.asset-panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem; }
.asset-panel-heading h2 { font-size: 1.35rem; margin: 0; overflow-wrap: anywhere; }
.asset-panel-heading h3, #asset-steps-section h3 { font-size: 1.1rem; margin: 1rem 0; }
.asset-list-row, .asset-link-row { display: flex; align-items: center; gap: 1rem; border-top: 1px solid var(--line); padding: 1rem 0; }
.asset-list-summary { min-width: 0; flex: 1; overflow-wrap: anywhere; }
.asset-list-summary p { font-size: .86rem; margin-top: .3rem; max-height: 3.3em; overflow: hidden; }
.asset-list-meta { display: flex; align-items: center; gap: .7rem; color: var(--muted); font-size: .82rem; }
.asset-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem 1.5rem; }
.asset-field { min-width: 0; overflow-wrap: anywhere; }
.asset-field dt { font-size: .75rem; color: var(--muted); text-transform: uppercase; }
.asset-field dd { margin: .25rem 0; white-space: pre-wrap; }
.asset-step, .step-editor-row { padding: 1rem; border: 1px solid var(--line); border-radius: 8px; margin-bottom: .75rem; overflow-wrap: anywhere; }
.asset-step div { white-space: pre-wrap; margin-top: .4rem; }
.asset-link-row { flex-wrap: wrap; overflow-wrap: anywhere; }
.asset-link-row > span:first-child { flex: 1; min-width: 12rem; }
.asset-link-select { width: min(100%, 450px); }
.step-actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .75rem; }
#asset-trace-section { border-top: 1px solid var(--line); margin-top: 1.5rem; padding-top: .5rem; }
.execution-selector { max-height: 18rem; overflow-y: auto; border: 1px solid var(--line); border-radius: 8px; padding: .75rem 1rem; }
.execution-selector .form-check { padding-top: .35rem; padding-bottom: .35rem; overflow-wrap: anywhere; }
.execution-inline-select { width: min(100%, 26rem); }
.execution-attempt { border: 1px solid var(--line); border-radius: 8px; padding: 1rem; margin-bottom: .75rem; overflow-wrap: anywhere; }
#execution-snapshot .asset-step div, #execution-history dd { white-space: pre-wrap; overflow-wrap: anywhere; }
#execution-actions { align-items: center; }
@media (max-width: 991px) { .sidebar { display: none; position: fixed; top: 68px; bottom: 0; z-index: 15; box-shadow: 5px 0 20px #122b3d30; } .sidebar.open { display: flex; } }
@media (max-width: 767px) { .login-layout { display: block; } .login-intro { padding: 1.5rem; min-height: 160px; } .brand-mark { width: 42px; height: 42px; margin-bottom: 1rem; font-size: 1.1rem; } .login-intro h1 { font-size: 1.7rem; } .intro-copy, .intro-rule, .intro-caption { display: none; } .login-panel { padding: 2rem 1.25rem; } .app-topbar { padding: 0 .8rem; } .topbar-brand { font-size: 1rem; } .current-user { max-width: 6rem; } .project-hero { align-items: flex-start; flex-wrap: wrap; } .project-monogram { width: 50px; height: 50px; flex-basis: 50px; font-size: 1.4rem; } .workflow-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .workflow-grid { grid-template-columns: 1fr; } .app-topbar { gap: .5rem; } }
@media (max-width: 767px) { .asset-list-row { align-items: flex-start; flex-direction: column; } .asset-fields { grid-template-columns: 1fr; } .asset-list-meta { flex-wrap: wrap; } .asset-link-row > span:first-child { min-width: 100%; } }
@media (max-width: 767px) { #execution-items .asset-list-row { align-items: flex-start; flex-direction: column; } #execution-actions > button, #execution-actions > select { max-width: 100%; } }
.automation-case-select { width: min(100%, 30rem); }
#automation-identities .asset-step, #defect-evidence .execution-attempt, #import-preview .asset-step { min-width: 0; overflow-wrap: anywhere; }
.defect-prewrap, .defect-retest { white-space: pre-wrap; overflow-wrap: anywhere; }
.defect-retest { padding: .5rem 0; border-top: 1px solid var(--line); }
#import-preview, #import-result { min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 767px) { #defect-list .asset-list-row { align-items: flex-start; flex-direction: column; } #defect-actions > button, #automation-identities select { max-width: 100%; } }
