/* World Steel – client portal & staff workspace. Shared design system (v1.1 brand). */
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/barlow-vietnamese-400-normal.woff2") format("woff2"); unicode-range: U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB; }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/barlow-latin-ext-400-normal.woff2") format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/barlow-latin-400-normal.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/barlow-vietnamese-500-normal.woff2") format("woff2"); unicode-range: U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB; }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/barlow-latin-ext-500-normal.woff2") format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/barlow-latin-500-normal.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/barlow-vietnamese-600-normal.woff2") format("woff2"); unicode-range: U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB; }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/barlow-latin-ext-600-normal.woff2") format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/barlow-latin-600-normal.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/barlow-condensed-vietnamese-500-normal.woff2") format("woff2"); unicode-range: U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB; }
@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/barlow-condensed-latin-ext-500-normal.woff2") format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/barlow-condensed-latin-500-normal.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/barlow-condensed-vietnamese-600-normal.woff2") format("woff2"); unicode-range: U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB; }
@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/barlow-condensed-latin-ext-600-normal.woff2") format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/barlow-condensed-latin-600-normal.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/barlow-condensed-vietnamese-700-normal.woff2") format("woff2"); unicode-range: U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB; }
@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/barlow-condensed-latin-ext-700-normal.woff2") format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/barlow-condensed-latin-700-normal.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
:root {
  --navy-950: #06121F; --navy-900: #06121F; --navy: #0A1F35; --navy-700: #1D5FAF; --navy-500: #3A5170; --accent: #C41D30; --accent-600: #9C1626;
  --steel: #5b6b7f; --steel-300: #a9b6c6; --steel-200: #d3dbe5; --steel-100: #e7ecf2; --steel-50: #f4f6f9;
  --orange: #CC992B; --orange-600: #8C6411; --orange-50: #fbf5e6;
  --ink: #0E1A2B; --muted: #4A5566; --bg: #EEF2F6; --card: #fff; --line: #e2e7ee;
  --ok: #1d7a4f; --ok-50: #e5f4ec; --warn: #a15c00; --warn-50: #fff4e0; --err: #b42318; --err-50: #fdecea; --info-50: #e8f0fb;
  --radius: 0px; --shadow: 0 1px 2px rgba(11,31,58,.05), 0 6px 20px rgba(11,31,58,.06);
  --font: "Barlow", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.55; font-size: 15px; }
a { color: var(--navy-700); text-underline-offset: 2px; }
a:hover { color: var(--orange-600); }
h1, h2, h3 { color: var(--navy); line-height: 1.25; margin: 0 0 .6rem; letter-spacing: -.01em; }
h1 { font-size: 1.6rem; } h2 { font-size: 1.15rem; } h3 { font-size: 1rem; }
p { margin: 0 0 .8rem; }
.muted { color: var(--muted); } .small { font-size: .85rem; } .nowrap { white-space: nowrap; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
img { max-width: 100%; }

/* Buttons & forms */
.btn { display: inline-flex; align-items: center; gap: .4rem; padding: .55rem 1rem; border-radius: 0; border: 1px solid var(--steel-200); background: #fff; color: var(--navy); font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; line-height: 1.2; }
.btn:hover { border-color: var(--navy-500); color: var(--navy); }
.btn--primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-600); border-color: var(--accent-600); color: #fff; }
.btn--dark { background: var(--navy); border-color: var(--navy); color: #fff; }
.btn--dark:hover { background: var(--navy-700); color: #fff; }
.btn--ghost { background: transparent; border-color: transparent; }
.btn--sm { padding: .35rem .65rem; font-size: .85rem; }
.btn--danger { color: var(--err); border-color: #f1c4bf; }
.btn--block { width: 100%; justify-content: center; }
.btns { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; }
.btns form { margin: 0; }
label { font-weight: 600; font-size: .85rem; color: var(--navy); display: block; margin-bottom: .3rem; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=date], input[type=datetime-local], input[type=search], input[type=tel], input[type=url], select, textarea {
  width: 100%; padding: .6rem .7rem; border: 1px solid var(--steel-200); border-radius: 0; font: inherit; color: var(--ink); background: #fff; }
input:focus, select:focus, textarea:focus { outline: 2px solid rgba(204,153,43,.35); border-color: var(--orange); }
textarea { resize: vertical; }
.af { margin-bottom: .9rem; } .af__hint { font-size: .78rem; color: var(--muted); margin: .25rem 0 0; }
.af-check { display: flex; gap: .5rem; align-items: flex-start; font-weight: 500; margin: .35rem 0; }
.af-check input { margin-top: .25rem; }
.form-grid { display: grid; gap: 0 1rem; grid-template-columns: 1fr; }
@media (min-width: 720px) { .form-grid { grid-template-columns: 1fr 1fr; } .form-grid .full, .form-grid .af--full { grid-column: 1 / -1; } }

/* Cards, badges, alerts */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.2rem 1.3rem; margin-bottom: 1.2rem; }
.card__head { display: flex; justify-content: space-between; align-items: center; gap: .8rem; flex-wrap: wrap; margin-bottom: .8rem; }
.card__head h2 { margin: 0; }
.badge { display: inline-block; padding: .15rem .55rem; border-radius: 0; font-size: .74rem; font-weight: 700; background: var(--steel-100); color: var(--steel); white-space: nowrap; }
.badge--ok { background: var(--ok-50); color: var(--ok); } .badge--warn { background: var(--warn-50); color: var(--warn); }
.badge--err { background: var(--err-50); color: var(--err); } .badge--info { background: var(--info-50); color: var(--navy-700); }
.badge--muted { background: var(--steel-100); color: var(--steel); } .badge--orange { background: var(--orange-50); color: var(--orange-600); }
.alert { padding: .75rem 1rem; border-radius: 0; margin-bottom: 1rem; border: 1px solid transparent; }
.alert--ok { background: var(--ok-50); color: var(--ok); border-color: #bfe3cf; }
.alert--error { background: var(--err-50); color: var(--err); border-color: #f5c6c0; }
.alert--warn { background: var(--warn-50); color: var(--warn); border-color: #f3d39b; }
.alert--info { background: var(--info-50); color: var(--navy-700); border-color: #c7d8f0; }
.alert ul { margin: 0; padding-left: 1.2rem; }

/* Tables */
.tbl-wrap { overflow-x: auto; }
.tbl { width: 100%; border-collapse: collapse; font-size: .9rem; }
.tbl th { text-align: left; font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; padding: .6rem .7rem; border-bottom: 1px solid var(--line); background: var(--steel-50); }
.tbl td { padding: .7rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.tbl tr:hover td { background: #fafbfd; }
.tbl .num { text-align: right; font-variant-numeric: tabular-nums; }
.row-link { font-weight: 700; text-decoration: none; color: var(--navy); }
.row-overdue td:first-child { box-shadow: inset 3px 0 0 var(--err); }

/* KPI tiles */
.kpis { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); margin-bottom: 1.2rem; }
.kpi { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.1rem; box-shadow: var(--shadow); text-decoration: none; color: inherit; display: block; }
.kpi__label { font-size: .72rem; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); font-weight: 700; }
.kpi__value { font-size: 1.9rem; font-weight: 800; color: var(--navy); line-height: 1.2; margin-top: .2rem; }
.kpi__sub { font-size: .8rem; color: var(--muted); }
.kpi--alert { border-left: 4px solid var(--orange); }

/* Grid */
.grid { display: grid; gap: 1.2rem; }
@media (min-width: 1000px) { .grid--main-side { grid-template-columns: minmax(0, 1fr) 340px; align-items: start; } .grid--2 { grid-template-columns: 1fr 1fr; } }

/* Progress */
.progress { height: 8px; border-radius: 0; background: var(--steel-100); overflow: hidden; }
.progress > span { display: block; height: 100%; background: linear-gradient(90deg, var(--orange), #E3B55A); border-radius: inherit; transition: width .4s; }
.progress-meta { display: flex; justify-content: space-between; font-size: .8rem; color: var(--muted); margin-top: .35rem; }

/* Milestone timeline */
.steps { list-style: none; margin: 0; padding: 0; position: relative; }
.steps li { position: relative; padding: 0 0 1.2rem 2.3rem; }
.steps li::before { content: ""; position: absolute; left: .7rem; top: 1.5rem; bottom: 0; width: 2px; background: var(--steel-200); }
.steps li:last-child::before { display: none; }
.steps .dot { position: absolute; left: 0; top: .1rem; width: 1.45rem; height: 1.45rem; border-radius: 50%; border: 2px solid var(--steel-300); background: #fff; display: grid; place-items: center; font-size: .75rem; font-weight: 800; color: #fff; }
.steps .is-done .dot { background: var(--ok); border-color: var(--ok); }
.steps .is-done::before { background: var(--ok); }
.steps .is-current .dot { border-color: var(--orange); box-shadow: 0 0 0 4px rgba(204,153,43,.18); }
.steps .is-late .dot { border-color: var(--err); }
.steps strong { color: var(--navy); display: block; }
.steps .meta { font-size: .8rem; color: var(--muted); }

/* Chat */
.chat { display: flex; flex-direction: column; gap: .7rem; max-height: 520px; overflow-y: auto; padding: .4rem .2rem 1rem; }
.msg { max-width: 82%; padding: .65rem .85rem; border-radius: 0; background: var(--steel-50); border: 1px solid var(--line); white-space: pre-wrap; word-wrap: break-word; }
.msg--mine { align-self: flex-end; background: var(--navy); color: #fff; border-color: var(--navy); border-bottom-right-radius: 4px; }
.msg--theirs { align-self: flex-start; border-bottom-left-radius: 4px; }
.msg--internal { align-self: stretch; max-width: none; background: #fffbea; border: 1px dashed #e7c75a; color: #5a4300; }
.msg__meta { display: block; font-size: .72rem; opacity: .75; margin-bottom: .2rem; font-weight: 600; }
.chat-form { display: flex; gap: .5rem; align-items: flex-end; border-top: 1px solid var(--line); padding-top: .8rem; }
.chat-form textarea { min-height: 46px; }
.empty { text-align: center; color: var(--muted); padding: 1.5rem 1rem; }

/* Files */
.files { list-style: none; margin: 0; padding: 0; }
.files li { display: flex; align-items: center; gap: .7rem; padding: .55rem 0; border-bottom: 1px solid var(--line); }
.files li:last-child { border-bottom: 0; }
.file-ico { width: 34px; height: 40px; border-radius: 0; background: var(--steel-100); display: grid; place-items: center; font-size: .62rem; font-weight: 800; color: var(--navy-700); flex: none; }
.files .grow { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; }

/* Definition lists */
.facts { display: grid; grid-template-columns: max-content 1fr; gap: .45rem 1rem; margin: 0; font-size: .9rem; }
.facts dt { color: var(--muted); } .facts dd { margin: 0; font-weight: 600; color: var(--navy); }

/* Activity feed */
.feed { list-style: none; margin: 0; padding: 0; }
.feed li { display: flex; gap: .7rem; padding: .55rem 0; border-bottom: 1px solid var(--line); font-size: .88rem; }
.feed li:last-child { border-bottom: 0; }
.feed time { color: var(--muted); font-size: .78rem; white-space: nowrap; min-width: 92px; }

/* -------- Customer layout -------- */
.c-top { background: var(--navy-900); color: #fff; }
.c-top__in { max-width: 1180px; margin: 0 auto; padding: 0 1rem; display: flex; align-items: center; gap: 1.5rem; height: 64px; }
.brand { display: flex; align-items: center; gap: .6rem; color: #fff; text-decoration: none; font-weight: 800; letter-spacing: .02em; }
.brand img { width: 32px; height: 32px; }
.brand small { display: block; font-size: .62rem; letter-spacing: .14em; color: var(--orange); font-weight: 700; }
.c-nav { display: flex; gap: .2rem; flex: 1; }
.c-nav a { color: #c9d4e3; text-decoration: none; padding: .5rem .8rem; border-radius: 0; font-weight: 600; font-size: .92rem; position: relative; }
.c-nav a:hover, .c-nav a.is-active { color: #fff; background: rgba(255,255,255,.08); }
.c-nav .count { background: var(--orange); color: #fff; border-radius: 0; font-size: .7rem; padding: 0 .4rem; margin-left: .3rem; }
.c-user { display: flex; align-items: center; gap: .8rem; color: #c9d4e3; font-size: .85rem; }
.c-user form { margin: 0; }
.c-user button { background: none; border: 1px solid rgba(255,255,255,.25); color: #fff; border-radius: 0; padding: .35rem .7rem; cursor: pointer; font: inherit; font-size: .82rem; }
.c-main { max-width: 1180px; margin: 0 auto; padding: 1.6rem 1rem 3rem; }
.c-hello { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.2rem; }
.c-hello p { margin: 0; color: var(--muted); }
.c-foot { max-width: 1180px; margin: 0 auto; padding: 1rem; color: var(--muted); font-size: .8rem; border-top: 1px solid var(--line); }
.viewas { background: #fff4d6; color: #6b4b00; text-align: center; padding: .5rem 1rem; font-size: .88rem; font-weight: 600; }
.viewas form { display: inline; } .viewas button { margin-left: .6rem; }
.c-menu { display: none; }
@media (max-width: 820px) {
  .c-top__in { flex-wrap: wrap; height: auto; padding: .7rem 1rem; gap: .6rem; }
  .c-nav { order: 3; flex: 1 1 100%; overflow-x: auto; } .c-user { margin-left: auto; } .c-user span { display: none; }
}
.req-card { display: block; text-decoration: none; color: inherit; border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.1rem; background: #fff; margin-bottom: .8rem; transition: border-color .15s, box-shadow .15s; }
.req-card:hover { border-color: var(--steel-300); box-shadow: var(--shadow); color: inherit; }
.req-card__top { display: flex; justify-content: space-between; gap: .8rem; flex-wrap: wrap; margin-bottom: .4rem; }
.req-card__ref { font-size: .78rem; color: var(--muted); font-weight: 700; letter-spacing: .03em; }
.req-card h3 { margin: 0 0 .5rem; }
.manager { display: flex; gap: .8rem; align-items: center; }
.avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; font-weight: 800; flex: none; }

/* -------- Auth pages -------- */
.auth { min-height: 100vh; display: grid; grid-template-columns: 1fr; background: var(--navy-950); }
@media (min-width: 960px) { .auth { grid-template-columns: 1.05fr 1fr; } }
.auth__art { display: none; position: relative; overflow: hidden; color: #fff; padding: 3rem; background: radial-gradient(1200px 600px at -10% 120%, rgba(204,153,43,.35), transparent 60%), linear-gradient(160deg, var(--navy-900), var(--navy-950)); }
@media (min-width: 960px) { .auth__art { display: flex; flex-direction: column; justify-content: space-between; } }
.auth__art h2 { color: #fff; font-size: 2rem; max-width: 26ch; }
.auth__art ul { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: .7rem; color: #c9d4e3; }
.auth__art li::before { content: "—"; color: var(--orange); margin-right: .6rem; }
.auth__art svg { position: absolute; right: -60px; bottom: -40px; width: 520px; opacity: .22; }
.auth__panel { background: var(--bg); display: grid; place-items: center; padding: 2rem 1rem; }
.auth__box { width: 100%; max-width: 410px; background: #fff; border-radius: 0; box-shadow: var(--shadow); padding: 2rem; border: 1px solid var(--line); }
.auth__box .brand { color: var(--navy); margin-bottom: 1.4rem; }

/* -------- Staff layout -------- */
.s-body { display: flex; min-height: 100vh; }
.s-side { width: 248px; background: var(--navy-900); color: #c9d4e3; display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; flex: none; }
.s-side .brand { padding: 1.1rem 1.2rem; border-bottom: 1px solid rgba(255,255,255,.08); }
.s-nav { padding: .8rem .6rem; display: grid; gap: .15rem; }
.s-nav a { color: #c9d4e3; text-decoration: none; padding: .6rem .8rem; border-radius: 0; font-weight: 600; font-size: .92rem; display: flex; justify-content: space-between; }
.s-nav a:hover { background: rgba(255,255,255,.06); color: #fff; }
.s-nav a.is-active { background: rgba(204,153,43,.16); color: #fff; box-shadow: inset 3px 0 0 var(--orange); }
.s-nav .count { background: var(--orange); color: #fff; border-radius: 0; font-size: .7rem; padding: 0 .45rem; }
.s-side__foot { margin-top: auto; padding: 1rem 1.2rem; font-size: .8rem; border-top: 1px solid rgba(255,255,255,.08); }
.s-side__foot a { color: #c9d4e3; }
.s-main { flex: 1; min-width: 0; }
.s-top { background: #fff; border-bottom: 1px solid var(--line); padding: .8rem 1.5rem; display: flex; align-items: center; gap: 1rem; position: sticky; top: 0; z-index: 5; }
.s-top h1 { margin: 0; font-size: 1.2rem; flex: 1; }
.s-top form { margin: 0; }
.s-content { padding: 1.5rem; max-width: 1400px; }
.s-toggle { display: none; }
@media (max-width: 900px) {
  .s-side { position: fixed; left: 0; z-index: 30; transform: translateX(-100%); transition: transform .2s; }
  .s-side.is-open { transform: none; }
  .s-toggle { display: inline-flex; }
  .s-content { padding: 1rem; }
}
.filters { display: flex; flex-wrap: wrap; gap: .6rem; align-items: flex-end; margin-bottom: 1rem; }
.filters .af { margin: 0; min-width: 150px; }
.pager { display: flex; gap: .3rem; margin-top: 1rem; flex-wrap: wrap; }
.pager a, .pager span { padding: .35rem .7rem; border: 1px solid var(--line); border-radius: 0; text-decoration: none; background: #fff; font-size: .85rem; }
.pager span { background: var(--navy); color: #fff; border-color: var(--navy); }
.pipeline { display: flex; gap: .4rem; flex-wrap: wrap; margin-bottom: 1rem; }
.pipeline a { text-decoration: none; background: #fff; border: 1px solid var(--line); border-radius: 0; padding: .35rem .8rem; font-size: .82rem; font-weight: 600; color: var(--navy); }
.pipeline a.is-active { background: var(--navy); color: #fff; border-color: var(--navy); }
.pipeline b { margin-left: .3rem; color: var(--orange-600); }
.pipeline a.is-active b { color: #ffd2b5; }
.ms-edit { display: grid; gap: .5rem; grid-template-columns: 26px 1fr 140px 90px 28px; align-items: center; border-bottom: 1px solid var(--line); padding: .45rem 0; }
.ms-edit input[type=text], .ms-edit input[type=date] { padding: .4rem .5rem; }
.ms-edit .af-check { margin: 0; font-size: .8rem; }
@media (max-width: 700px) { .ms-edit { grid-template-columns: 26px 1fr; } }
.tabs { display: flex; gap: .2rem; border-bottom: 2px solid var(--line); margin-bottom: 1rem; flex-wrap: wrap; }
.tabs a { padding: .55rem .9rem; text-decoration: none; color: var(--muted); font-weight: 600; border-bottom: 3px solid transparent; margin-bottom: -2px; }
.tabs a.is-active { color: var(--navy); border-bottom-color: var(--orange); }
.task { display: flex; gap: .7rem; align-items: flex-start; padding: .65rem 0; border-bottom: 1px solid var(--line); }
.task:last-child { border-bottom: 0; }
.task form { margin: 0; }
.task__check { width: 20px; height: 20px; border-radius: 0; border: 2px solid var(--steel-300); background: #fff; cursor: pointer; padding: 0; flex: none; margin-top: .15rem; }
.task.is-done .task__check { background: var(--ok); border-color: var(--ok); }
.task.is-done .task__title { text-decoration: line-through; color: var(--muted); }
.task__title { font-weight: 600; color: var(--navy); }
.task .meta { font-size: .78rem; color: var(--muted); }
.late { color: var(--err); font-weight: 700; }
.kpi__label { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tbl td:first-child strong { white-space: nowrap; }


/* v1.1 brand alignment with the public website */
:root { --font-cond: "Barlow Condensed", "Arial Narrow", system-ui, sans-serif; }
body { font-size: 15.5px; -webkit-font-smoothing: antialiased; }
a:hover { color: var(--accent-600); }
h1, h2 { font-family: var(--font-cond); font-weight: 700; letter-spacing: .02em; text-transform: uppercase; line-height: 1.05; }
h1 { font-size: 2rem; } h2 { font-size: 1.3rem; }
h3 { font-weight: 600; }
.btn { font-family: var(--font-cond); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; font-size: .98rem; min-height: 40px; }
.btn--sm { min-height: 32px; font-size: .88rem; }
.btn--primary { background: var(--accent); border-color: var(--accent); }
.btn--primary:hover { background: var(--accent-600); border-color: var(--accent-600); }
input:focus, select:focus, textarea:focus { outline: 0; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(196,29,48,.18); }
.card { box-shadow: none; }
.kpi { box-shadow: none; border-top: 3px solid var(--navy); }
.kpi--alert { border-top-color: var(--orange); border-left: 1px solid var(--line); }
.kpi__label { font-family: var(--font-cond); font-size: .85rem; letter-spacing: .1em; font-weight: 600; }
.kpi__value { font-family: var(--font-cond); font-size: 2.4rem; font-weight: 700; line-height: 1.05; }
.brand { font-family: var(--font-cond); font-size: 1.25rem; letter-spacing: .08em; font-weight: 700; }
.brand small { font-family: var(--font); letter-spacing: .3em; }
.c-nav a { font-family: var(--font-cond); text-transform: uppercase; letter-spacing: .06em; font-size: 1rem; }
.c-nav a.is-active { box-shadow: inset 0 -2px 0 var(--orange); }
.c-nav .count { background: var(--orange); }
.auth__art { background: var(--navy) repeating-linear-gradient(135deg, rgba(255,255,255,.035) 0 2px, transparent 2px 14px) !important; }
.auth__art h2 { font-size: 2.6rem; max-width: 18ch; }
.auth__art h2::before { content: ""; display: block; width: 64px; height: 4px; background: var(--orange); margin-bottom: 1.4rem; }
.auth__box { border-top: 4px solid var(--accent); box-shadow: none; }

/* v1.1.1 official World Steel logo */
.brand { gap: 12px; }
.brand img { width: auto; height: 40px; display: block; }
.brand small { align-self: stretch; display: flex; align-items: center; padding-left: 12px; border-left: 1px solid rgba(255,255,255,.22); font-size: .62rem; letter-spacing: .22em; color: var(--orange); white-space: nowrap; }
.auth__box .brand small { border-left-color: var(--line); color: var(--orange-600); }
.s-side .brand { flex-direction: column; align-items: flex-start; gap: 8px; }
.s-side .brand img { height: 38px; }
.s-side .brand small { border-left: 0; padding-left: 0; }
@media (max-width: 560px) { .c-top .brand small { display: none; } .c-top .brand img { height: 34px; } }
