
:root {
  --pt-bg: #f3f5f8; --pt-side: #ffffff; --pt-navy: #0d1b2a; --pt-navy-2: #132538; --pt-line: #e2e7ee;
  --pt-text: #101828; --pt-dim: #5f6b7a; --pt-dim-2: #8a94a3; --pt-red: #8f1f1f; --pt-gold: #c9a84c; --pt-green: #2e8b62; --pt-blue: #1f4e8c;
}
body.sfa.portal { background: var(--pt-bg); color: var(--pt-text); font-family: var(--font-body); -webkit-font-smoothing: antialiased; }

.pt-shell { display: grid; grid-template-columns: 248px minmax(0, 1fr); min-height: 100vh; }
.pt-side, .pt-main, .pt-topbar { min-width: 0; }
.pt-side { background: var(--pt-side); border-right: 1px solid var(--pt-line); position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; }
.pt-side .brand { background: var(--pt-navy); height: 66px; display: flex; align-items: center; padding: 0 18px; flex: 0 0 auto; }
.pt-side .brand img { width: 100%; max-width: 212px; height: auto; display: block; }
.pt-side nav { padding: 18px 14px; display: flex; flex-direction: column; gap: 4px; }
.pt-side nav .lbl { font-size: 0.66rem; letter-spacing: 2px; text-transform: uppercase; color: var(--pt-dim-2); padding: 14px 12px 6px; }
.pt-side nav a { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 8px; color: var(--pt-dim); text-decoration: none; font-weight: 500; font-size: 0.9rem; }
.pt-side nav a svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: 0 0 auto; }
.pt-side nav a:hover { background: var(--pt-bg); color: var(--pt-text); }
.pt-side nav a.active { background: var(--pt-navy); color: #fff; }
.pt-side .side-foot { margin-top: auto; padding: 18px 22px 22px; border-top: 1px solid var(--pt-line); font-size: 0.76rem; color: var(--pt-dim); line-height: 1.6; }
.pt-side .side-foot a { color: var(--pt-text); text-decoration: none; font-weight: 500; }

.pt-content { min-width: 0; display: flex; flex-direction: column; }
.pt-topbar { height: 66px; background: #fff; border-bottom: 1px solid var(--pt-line); display: flex; align-items: center; padding: 0 32px; gap: 16px; position: sticky; top: 0; z-index: 20; }
.pt-topbar .crumb { font-size: 0.86rem; color: var(--pt-dim); }
.pt-topbar .crumb b { color: var(--pt-text); font-weight: 600; }
.pt-topbar .who { margin-left: auto; display: flex; align-items: center; gap: 12px; font-size: 0.82rem; color: var(--pt-dim); }
.pt-topbar .who .avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--pt-navy); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.85rem; }
.pt-topbar .who .email { max-width: 240px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pt-topbar .who a { color: var(--pt-text); text-decoration: none; border: 1px solid var(--pt-line); padding: 7px 12px; border-radius: 6px; font-size: 0.8rem; font-weight: 500; white-space: nowrap; }
.pt-topbar .who a:hover { border-color: var(--pt-navy); }
.pt-main { padding: 30px 32px 60px; max-width: 1240px; width: 100%; }

.pt-hero { background: var(--pt-navy); color: #fff; border-radius: 12px; padding: 30px 34px 28px; margin-bottom: 26px; }
.pt-hero h1 { font-family: var(--font-display); font-weight: 400; font-size: 2rem; margin: 0; line-height: 1.15; }
.pt-hero .sub { color: rgba(255,255,255,0.68); font-size: 0.95rem; margin-top: 6px; }
.pt-hero .notice { margin-top: 20px; border-left: 3px solid #fff; padding: 11px 16px; background: rgba(255,255,255,0.06); font-size: 0.88rem; display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; }
.pt-hero .notice a { color: #fff; font-weight: 600; text-decoration: none; white-space: nowrap; }

.pt-quick { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-bottom: 30px; }
.pt-qcard { background: #fff; border: 1px solid var(--pt-line); border-radius: 10px; padding: 20px 22px; display: flex; flex-direction: column; gap: 8px; }
.pt-qcard .ic { width: 36px; height: 36px; border-radius: 8px; background: #eef2f7; display: inline-flex; align-items: center; justify-content: center; color: var(--pt-navy); margin-bottom: 4px; }
.pt-qcard .ic svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.pt-qcard h3 { margin: 0; font-size: 1rem; font-weight: 600; }
.pt-qcard p { margin: 0; font-size: 0.85rem; color: var(--pt-dim); line-height: 1.6; flex: 1; }
.pt-qcard a { color: var(--pt-blue); font-weight: 600; font-size: 0.85rem; text-decoration: none; margin-top: 4px; }
.pt-qcard a:hover { text-decoration: underline; }

.pt-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; margin-bottom: 30px; }
.pt-stat { background: #fff; border: 1px solid var(--pt-line); border-radius: 10px; padding: 16px 18px; }
.pt-stat b { display: block; font-size: 1.7rem; font-family: var(--font-display); font-weight: 400; line-height: 1.1; }
.pt-stat span { font-size: 0.78rem; color: var(--pt-dim); }

.pt-section-h { display: flex; align-items: center; justify-content: space-between; margin: 6px 0 14px; }
.pt-section-h h2 { font-size: 1.1rem; font-weight: 600; margin: 0; }
.pt-section-h a { font-size: 0.85rem; color: var(--pt-blue); text-decoration: none; font-weight: 500; }
.pt-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 20px; margin-bottom: 30px; }
.pt-card { background: #fff; border: 1px solid var(--pt-line); border-radius: 10px; overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .25s ease, transform .25s ease; }
.pt-card:hover { box-shadow: 0 10px 30px rgba(13,27,42,0.08); transform: translateY(-2px); }
.pt-card .media { aspect-ratio: 16 / 7; background: var(--pt-navy); overflow: hidden; position: relative; }
.pt-card .media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pt-card .media .tag { position: absolute; top: 12px; left: 12px; font-size: 0.72rem; letter-spacing: 1.4px; text-transform: uppercase; background: rgba(255,255,255,0.92); color: var(--pt-navy); padding: 5px 9px; border-radius: 4px; font-weight: 600; }
.pt-card .status { position: absolute; top: 12px; right: 12px; font-size: 0.72rem; font-weight: 600; color: #fff; background: var(--pt-blue); padding: 4px 9px; border-radius: 4px; }
.pt-card .status.done { background: var(--pt-green); }
.pt-card .body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.pt-card h3 { margin: 0; font-size: 1.15rem; font-weight: 600; line-height: 1.25; }
.pt-card .meta { color: var(--pt-dim); font-size: 0.82rem; }
.pt-prog { margin-top: 2px; }
.pt-prog .lbl { display: flex; justify-content: space-between; font-size: 0.78rem; color: var(--pt-dim); margin-bottom: 6px; }
.pt-prog .lbl b { color: var(--pt-text); font-weight: 600; }
.pt-prog .bar { height: 7px; background: #e9edf3; border-radius: 4px; overflow: hidden; }
.pt-prog .fill { height: 100%; background: var(--pt-blue); width: 0; transition: width .6s ease; border-radius: 4px; }
.pt-prog .fill.done { background: var(--pt-green); }
.pt-card .latest { font-size: 0.82rem; color: var(--pt-dim); line-height: 1.5; }
.pt-card .latest b { color: var(--pt-text); font-weight: 500; display: block; }
.pt-card details { font-size: 0.82rem; color: var(--pt-dim); }
.pt-card details summary { cursor: pointer; color: var(--pt-blue); font-weight: 500; }
.pt-card details ul { margin: 8px 0 0; padding-left: 18px; line-height: 1.7; }
.pt-card .actions { margin-top: auto; display: flex; gap: 10px; align-items: center; padding-top: 8px; }
.pt-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--pt-navy); color: #fff; text-decoration: none; font-weight: 600; font-size: 0.86rem; padding: 11px 18px; border-radius: 6px; border: 0; cursor: pointer; font-family: var(--font-body); }
.pt-btn, body.sfa.portal a.pt-btn { color: #fff; }
.pt-btn:hover { background: var(--pt-navy-2); color: #fff; }
.pt-btn.wide { width: 100%; }
.pt-btn.ghost, body.sfa.portal a.pt-btn.ghost { background: #fff; border: 1px solid var(--pt-line); color: var(--pt-text); font-weight: 500; }
.pt-btn.ghost:hover { border-color: var(--pt-navy); background: #fff; }
.pt-btn[disabled] { opacity: .6; cursor: wait; }
.pt-empty { background: #fff; border: 1px dashed #c9d2dd; border-radius: 10px; padding: 34px; text-align: center; color: var(--pt-dim); line-height: 1.7; }
.pt-empty a { color: var(--pt-blue); }

.pt-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; margin-bottom: 30px; }
.pt-panel { background: #fff; border: 1px solid var(--pt-line); border-radius: 10px; padding: 22px 24px; }
.pt-panel h2 { margin: 0 0 6px; font-size: 1.05rem; font-weight: 600; }
.pt-panel p.help { color: var(--pt-dim); font-size: 0.86rem; line-height: 1.6; margin: 0 0 14px; }
.pt-list { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-direction: column; }
.pt-list li { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 12px; padding: 11px 0; border-top: 1px solid var(--pt-line); font-size: 0.88rem; }
.pt-list li:first-child { border-top: 0; }
.pt-list li .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--pt-gold); flex: 0 0 auto; }
.pt-list li .dot.blue { background: var(--pt-blue); } .pt-list li .dot.green { background: var(--pt-green); } .pt-list li .dot.red { background: var(--pt-red); }
.pt-list li a { color: var(--pt-text); text-decoration: none; font-weight: 500; min-width: 0; overflow-wrap: anywhere; }
.pt-list li a:hover { text-decoration: underline; }
.pt-list li small { color: var(--pt-dim); margin-left: auto; white-space: nowrap; }
.pt-kv { display: flex; justify-content: space-between; align-items: baseline; padding: 10px 0; border-top: 1px solid var(--pt-line); font-size: 0.88rem; color: var(--pt-dim); }
.pt-kv:first-of-type { border-top: 0; }
.pt-kv b { color: var(--pt-text); font-weight: 600; font-size: 0.95rem; }

.pt-form label { display: block; font-size: 0.8rem; font-weight: 600; color: var(--pt-text); margin: 14px 0 6px; }
.pt-form input { width: 100%; padding: 12px 14px; background: #fff; border: 1px solid #cfd6df; color: var(--pt-text); font-family: var(--font-body); font-size: 0.98rem; border-radius: 6px; }
.pt-form input:focus { outline: none; border-color: var(--pt-navy); box-shadow: 0 0 0 3px rgba(13,27,42,0.08); }
.pt-form input[disabled] { background: #f3f5f8; color: var(--pt-dim); }
.pt-msg { margin-top: 14px; padding: 12px 14px; border-radius: 6px; font-size: 0.88rem; line-height: 1.6; border: 1px solid #f0c9a3; background: #fff6ee; color: #8a4b12; }
.pt-msg.ok { border-color: #bfe3cf; background: #eefaf3; color: #1f6b47; }
.pt-kicker { font-size: 0.68rem; letter-spacing: 2.4px; text-transform: uppercase; color: var(--pt-red); font-weight: 600; margin-bottom: 10px; }
.pt-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 22px; }
.pt-head h1 { font-family: var(--font-display); font-weight: 400; font-size: 2rem; margin: 0; line-height: 1.1; }
.pt-head .sub { color: var(--pt-dim); font-size: 0.95rem; margin-top: 6px; }

.pt-auth-split { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); }
.pt-auth-art { position: relative; background: var(--pt-navy) center/cover no-repeat; }
.pt-auth-art .over { position: absolute; left: 0; right: 0; bottom: 0; padding: 34px 38px 40px; background: linear-gradient(180deg, rgba(10,18,28,0) 0%, rgba(10,18,28,0.88) 70%); color: #fff; }
.pt-auth-art .over .k { font-size: 0.68rem; letter-spacing: 2.4px; text-transform: uppercase; color: var(--pt-gold); margin-bottom: 8px; }
.pt-auth-art .over h2 { font-family: var(--font-display); font-weight: 400; font-size: 1.7rem; margin: 0 0 8px; line-height: 1.2; }
.pt-auth-art .over p { margin: 0; color: rgba(255,255,255,0.72); font-size: 0.9rem; line-height: 1.7; max-width: 440px; }
.pt-auth-form { background: #fff; display: flex; flex-direction: column; }
.pt-auth-form .top { height: 66px; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 0 40px; border-bottom: 1px solid var(--pt-line); }
.pt-auth-form .top a:first-child { display: block; min-width: 0; flex: 0 1 232px; }
.pt-auth-form .top img { width: 100%; max-width: 232px; height: auto; display: block; }
.pt-auth-form .top nav a { font-size: 0.84rem; color: var(--pt-dim); text-decoration: none; margin-left: 18px; font-weight: 500; }
.pt-auth-form .top nav a:hover { color: var(--pt-text); }
.pt-auth-form .box { margin: auto; width: 100%; max-width: 420px; padding: 50px 24px; }
.pt-auth-form h1 { font-family: var(--font-display); font-weight: 400; font-size: 2.1rem; margin: 0 0 6px; }
.pt-auth-form p.help { color: var(--pt-dim); font-size: 0.9rem; line-height: 1.65; margin: 0 0 8px; }
.pt-auth-form p.help a { color: var(--pt-blue); }
.pt-auth-form .foot { padding: 18px 40px 26px; font-size: 0.74rem; color: var(--pt-dim-2); line-height: 1.6; border-top: 1px solid var(--pt-line); }

.pt-top { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid var(--pt-line); }
.pt-top .in { height: 60px; display: flex; align-items: center; gap: 22px; padding-right: 22px; }
.pt-top .brand { background: var(--pt-navy); height: 100%; display: flex; align-items: center; padding: 0 20px; }
.pt-top .brand img { width: 100%; max-width: 200px; height: auto; display: block; }
.pt-top nav { display: flex; gap: 4px; }
.pt-top nav a { color: var(--pt-dim); text-decoration: none; font-size: 0.86rem; font-weight: 500; padding: 8px 10px; border-radius: 6px; white-space: nowrap; }
.pt-top nav a:hover { color: var(--pt-text); background: var(--pt-bg); }
.pt-top .who { margin-left: auto; display: flex; align-items: center; gap: 12px; font-size: 0.82rem; color: var(--pt-dim); }
.pt-top .who .email { max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pt-top .who a { color: var(--pt-text); text-decoration: none; border: 1px solid var(--pt-line); padding: 6px 12px; border-radius: 6px; font-size: 0.8rem; white-space: nowrap; font-weight: 500; }

.pt-foot { padding: 18px 32px 36px; font-size: 0.75rem; color: var(--pt-dim-2); line-height: 1.7; border-top: 1px solid var(--pt-line); margin-top: auto; }
.pt-foot a { color: var(--pt-dim); }

@media (max-width: 1100px) { .pt-quick { grid-template-columns: 1fr 1fr; } }
@media (max-width: 900px) {
  .pt-shell { grid-template-columns: minmax(0, 1fr); }
  .pt-side { position: static; height: auto; border-right: 0; border-bottom: 1px solid var(--pt-line); }
  .pt-side nav { flex-direction: row; overflow-x: auto; padding: 8px 10px; gap: 2px; min-width: 0; -webkit-overflow-scrolling: touch; }
  .pt-side .brand { min-width: 0; }
  .pt-side nav .lbl, .pt-side .side-foot { display: none; }
  .pt-side nav a { padding: 9px 12px; font-size: 0.84rem; white-space: nowrap; }
  .pt-topbar { padding: 0 16px; height: 56px; }
  .pt-topbar .who .email { display: none; }
  .pt-main { padding: 18px 16px 50px; }
  .pt-hero { padding: 22px 20px; }
  .pt-hero h1 { font-size: 1.55rem; }
  .pt-quick { grid-template-columns: 1fr; }
  .pt-grid { grid-template-columns: 1fr; }
  .pt-auth-split { grid-template-columns: 1fr; }
  .pt-auth-art { min-height: 200px; }
  .pt-auth-art .over { padding: 22px 20px; }
  .pt-auth-art .over p { display: none; }
  .pt-auth-form .top { padding: 0 20px; }
  .pt-auth-form .box { padding: 34px 20px; }
  .pt-auth-form .foot { padding: 16px 20px 22px; }
  .pt-top .in { gap: 10px; padding-right: 12px; }
  .pt-top .brand { padding: 0 14px; }
}
