*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --orange: #F3662D;
  --orange-light: rgba(243,102,45,0.1);
  --orange-border: rgba(243,102,45,0.3);
  --black: #111111;
  --dark: #1a1a1a;
  --card-bg: #ffffff;
  --card-border: #e5e5e5;
  --body-bg: #f5f5f5;
  --text-primary: #1a1a1a;
  --text-secondary: #555555;
  --text-tertiary: #888888;
  --radius: 10px;
  --radius-sm: 6px;
}
body { font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; background: var(--body-bg); color: var(--text-primary); min-height: 100vh; }

/* TOPBAR */
.topbar { background: var(--black); height: 68px; display: flex; align-items: center; justify-content: space-between; padding: 0 2rem; position: sticky; top: 0; z-index: 100; }
.topbar-brand { display: flex; align-items: center; gap: 16px; text-decoration: none; }
.topbar-logo { height: 38px; width: auto; }
.topbar-divider { width: 1px; height: 28px; background: #333; }
.topbar-sub { color: var(--orange); font-size: 9px; letter-spacing: 0.16em; text-transform: uppercase; line-height: 1.4; }
.topbar-nav { display: flex; gap: 2rem; }
.topbar-nav a { color: #888; font-size: 13px; text-decoration: none; transition: color 0.15s; letter-spacing: 0.02em; }
.topbar-nav a:hover, .topbar-nav a.active { color: var(--orange); }

/* BREADCRUMB */
.breadcrumb { background: var(--dark); padding: 0.5rem 2rem; display: flex; align-items: center; gap: 8px; font-size: 11px; flex-wrap: wrap; min-height: 36px; }
.breadcrumb a { color: #777; text-decoration: none; transition: color 0.15s; }
.breadcrumb a:hover { color: var(--orange); }
.breadcrumb .sep { color: #444; }
.breadcrumb .current { color: var(--orange); }

/* HERO */
.hero { background: var(--black); padding: 2.5rem 2rem 3rem; border-bottom: 3px solid var(--orange); }
.hero-inner { max-width: 960px; margin: 0 auto; }
.hero-eyebrow { color: var(--orange); font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; margin-bottom: 0.75rem; }
.hero-title { color: #fff; font-size: 30px; font-weight: 600; line-height: 1.2; margin-bottom: 0.75rem; }
.hero-title span { color: var(--orange); }
.hero-sub { color: #777; font-size: 13px; line-height: 1.8; max-width: 540px; }

/* MAIN */
.main { max-width: 960px; margin: 0 auto; padding: 2rem; }

/* SECTION LABEL */
.section-label { font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-tertiary); margin-bottom: 1rem; display: flex; align-items: center; gap: 10px; }
.section-label::after { content: ''; flex: 1; height: 0.5px; background: var(--card-border); }

/* MASTER CARDS */
.master-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin-bottom: 2.5rem; }
.master-card { background: var(--card-bg); border: 0.5px solid var(--card-border); border-radius: var(--radius); padding: 1.5rem 1.25rem; text-decoration: none; cursor: pointer; transition: border-color 0.15s, transform 0.1s; display: flex; flex-direction: column; gap: 12px; }
.master-card:hover { border-color: var(--orange); transform: translateY(-2px); }
.master-card-accent { width: 28px; height: 3px; background: var(--orange); border-radius: 2px; }
.master-card-title { font-size: 15px; font-weight: 600; color: var(--text-primary); }
.master-card-count { font-size: 12px; color: var(--text-tertiary); }
.master-card-arrow { color: var(--orange); font-size: 16px; margin-top: auto; }

/* DEPT CARDS */
.dept-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; margin-bottom: 2rem; }
.dept-card { background: var(--card-bg); border: 0.5px solid var(--card-border); border-radius: var(--radius); padding: 1.25rem; text-decoration: none; display: block; cursor: pointer; transition: border-color 0.15s, transform 0.1s; }
.dept-card:hover { border-color: var(--orange); transform: translateY(-1px); }
.dept-card-top { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 10px; }
.dept-card-accent { width: 24px; height: 3px; background: var(--orange); border-radius: 2px; }
.badge { font-size: 10px; padding: 2px 8px; border-radius: 20px; font-weight: 500; }
.badge-live { background: var(--orange-light); color: var(--orange); }
.badge-soon { background: #f0f0f0; color: var(--text-tertiary); }
.dept-card-title { font-size: 14px; font-weight: 600; color: var(--text-primary); margin-bottom: 5px; }
.dept-card-desc { font-size: 12px; color: var(--text-secondary); line-height: 1.5; margin-bottom: 12px; }
.dept-card-footer { display: flex; align-items: center; justify-content: space-between; }
.dept-card-meta { font-size: 11px; color: var(--text-tertiary); }
.dept-card-arrow { color: var(--orange); font-size: 14px; }

/* ROLE CARDS */
.role-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin-bottom: 2rem; }
.role-card { background: var(--card-bg); border: 0.5px solid var(--card-border); border-radius: var(--radius); padding: 1.25rem; text-decoration: none; display: block; cursor: pointer; transition: border-color 0.15s, transform 0.1s; }
.role-card:hover { border-color: var(--orange); transform: translateY(-1px); }
.role-card-accent { width: 20px; height: 3px; background: var(--orange); border-radius: 2px; margin-bottom: 10px; }
.role-card-title { font-size: 14px; font-weight: 600; color: var(--text-primary); margin-bottom: 5px; }
.role-card-desc { font-size: 12px; color: var(--text-secondary); line-height: 1.5; margin-bottom: 12px; }
.role-card-footer { display: flex; align-items: center; justify-content: space-between; }

/* COMING CARD */
.coming-card { background: var(--card-bg); border: 0.5px dashed #ccc; border-radius: var(--radius); padding: 2.5rem 1.25rem; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.coming-card p { font-size: 13px; color: var(--text-secondary); font-weight: 500; }
.coming-card span { font-size: 11px; color: var(--text-tertiary); }

/* DETAIL VIEW */
.detail-view { background: var(--card-bg); border: 0.5px solid var(--card-border); border-radius: var(--radius); overflow: hidden; box-shadow: 0 2px 12px rgba(0,0,0,0.06); }
.detail-header { background: var(--black); padding: 1.75rem 2rem; border-bottom: 3px solid var(--orange); }
.detail-title { color: #fff; font-size: 22px; font-weight: 600; margin-bottom: 6px; }
.detail-subtitle { color: #777; font-size: 12px; line-height: 1.6; }
.detail-body { padding: 2rem; }

/* TABS */
.tab-bar { display: flex; border-bottom: 0.5px solid var(--card-border); margin-bottom: 2rem; overflow-x: auto; }
.tab { padding: 10px 20px; font-size: 13px; cursor: pointer; color: var(--text-secondary); border-bottom: 2px solid transparent; margin-bottom: -0.5px; transition: color 0.15s; white-space: nowrap; background: none; border-top: none; border-left: none; border-right: none; font-family: inherit; }
.tab.active { color: var(--orange); border-bottom-color: var(--orange); font-weight: 500; }
.tab:hover { color: var(--text-primary); }

/* ROLE CONTENT */
.role-section { margin-bottom: 2rem; }
.role-section-title { font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--orange); margin-bottom: 0.875rem; font-weight: 600; }
.role-section p { font-size: 14px; color: var(--text-secondary); line-height: 1.8; }
.role-list { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.role-list li { font-size: 14px; color: var(--text-primary); line-height: 1.65; padding-left: 1.1rem; position: relative; }
.role-list li::before { content: ''; position: absolute; left: 0; top: 9px; width: 5px; height: 5px; background: var(--orange); border-radius: 50%; }

/* KPI GRID */
.kpi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
.kpi-card { background: #f9f9f9; border-radius: var(--radius-sm); padding: 1rem; border: 0.5px solid var(--card-border); }
.kpi-label { font-size: 10px; color: var(--text-tertiary); letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 6px; }
.kpi-value { font-size: 13px; font-weight: 500; color: var(--text-primary); line-height: 1.4; margin-bottom: 4px; }
.kpi-target { font-size: 11px; color: var(--orange); font-weight: 600; }

/* BLOCKS */
.rule-block { background: var(--orange-light); border: 1px solid var(--orange-border); border-radius: var(--radius-sm); padding: 1.25rem; margin-bottom: 1.5rem; }
.rule-block-title { font-size: 11px; color: var(--orange); text-transform: uppercase; letter-spacing: 0.08em; font-weight: 700; margin-bottom: 8px; }
.rule-block p { font-size: 13px; color: var(--text-primary); line-height: 1.75; }
.policy-block { background: #f9f9f9; border-left: 3px solid var(--orange); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; padding: 1.125rem 1.25rem; margin-bottom: 1.5rem; }
.policy-title { font-size: 11px; color: var(--orange); text-transform: uppercase; letter-spacing: 0.08em; font-weight: 700; margin-bottom: 6px; }
.policy-block p { font-size: 13px; color: var(--text-secondary); line-height: 1.75; }
.future-block { background: #f5f5f5; border-left: 3px solid #aaa; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; padding: 1.125rem 1.25rem; margin-bottom: 1.5rem; }
.future-title { font-size: 11px; color: #888; text-transform: uppercase; letter-spacing: 0.08em; font-weight: 700; margin-bottom: 6px; }
.future-block p { font-size: 13px; color: var(--text-secondary); line-height: 1.75; }
.progression-block { background: #f9f9f9; border-left: 3px solid var(--orange); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; padding: 1rem 1.25rem; margin-bottom: 1.25rem; }
.progression-title { font-size: 11px; color: var(--orange); text-transform: uppercase; letter-spacing: 0.08em; font-weight: 600; margin-bottom: 6px; }
.progression-block p { font-size: 13px; color: var(--text-secondary); line-height: 1.7; }
.perf-block { background: #f9f9f9; border-left: 3px solid #888; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; padding: 1rem 1.25rem; margin-bottom: 1.25rem; }
.perf-title { font-size: 11px; color: #888; text-transform: uppercase; letter-spacing: 0.08em; font-weight: 700; margin-bottom: 6px; }
.perf-block p { font-size: 13px; color: var(--text-secondary); line-height: 1.7; }

/* ROUTINE GRID */
.routine-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin-bottom: 1rem; }
.routine-card { background: #f9f9f9; border-radius: var(--radius-sm); padding: 1.125rem; border: 0.5px solid var(--card-border); }
.routine-time { font-size: 10px; color: var(--orange); letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 10px; font-weight: 700; }

/* SOP LINK */
.sop-link { font-size: 11px; color: var(--orange); font-weight: 600; background: var(--orange-light); border-radius: 4px; padding: 1px 6px; margin-left: 6px; letter-spacing: 0.04em; }

/* TIER TABLE */
.tier-table { width: 100%; border-collapse: collapse; margin-bottom: 1.75rem; font-size: 13px; }
.tier-table th { background: var(--black); color: #fff; font-size: 11px; font-weight: 500; padding: 10px 14px; text-align: left; letter-spacing: 0.04em; }
.tier-table td { padding: 10px 14px; border-bottom: 0.5px solid var(--card-border); line-height: 1.5; vertical-align: top; color: var(--text-primary); }
.tier-table tr:last-child td { border-bottom: none; }
.tier-table tr:nth-child(even) td { background: #f9f9f9; }
.tier-col-label { font-weight: 500; color: var(--text-secondary); font-size: 12px; }
.tj { color: #1a6bb5; font-weight: 600; }
.tm { color: #1a8a42; font-weight: 600; }
.ts { color: var(--orange); font-weight: 600; }

/* TIER BADGES */
.tier-badge-junior { background: #F0F7FF; color: #1a6bb5; font-size: 10px; padding: 2px 10px; border-radius: 20px; font-weight: 600; display: inline-block; }
.tier-badge-mid { background: #F0FBF4; color: #1a8a42; font-size: 10px; padding: 2px 10px; border-radius: 20px; font-weight: 600; display: inline-block; }
.tier-badge-senior { background: var(--orange-light); color: var(--orange); font-size: 10px; padding: 2px 10px; border-radius: 20px; font-weight: 600; display: inline-block; }

/* EMAIL TEMPLATES */
.email-subject-block { background: #f9f9f9; border-radius: var(--radius-sm); padding: 0.875rem 1rem; margin-bottom: 1.25rem; border: 0.5px solid var(--card-border); }
.email-subject-label { font-size: 10px; color: var(--orange); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 4px; font-weight: 600; }
.email-subject-value { font-size: 14px; font-weight: 600; color: var(--text-primary); }
.email-body-block { background: #f9f9f9; border-radius: var(--radius-sm); padding: 1.5rem; margin-bottom: 1.25rem; border: 0.5px solid var(--card-border); }
.email-body-label { font-size: 10px; color: var(--orange); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 0.875rem; font-weight: 600; }
.email-body-text { font-size: 14px; color: var(--text-primary); line-height: 1.9; white-space: pre-wrap; font-family: inherit; }
.placeholder { color: var(--orange); font-weight: 600; font-style: italic; }
.usage-note { background: var(--orange-light); border-left: 3px solid var(--orange); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; padding: 0.875rem 1rem; margin-bottom: 1.5rem; font-size: 13px; color: var(--text-secondary); line-height: 1.65; }
.copy-btn { display: inline-flex; align-items: center; gap: 8px; background: var(--orange); color: #fff; border: none; border-radius: var(--radius-sm); padding: 10px 20px; font-size: 13px; font-weight: 500; cursor: pointer; transition: opacity 0.15s; font-family: inherit; }
.copy-btn:hover { opacity: 0.88; }
.copy-btn.copied { background: #2a9d5c; }

/* MISSION BLOCK */
.mission-block { background: var(--black); border-radius: var(--radius); padding: 2rem; border-left: 4px solid var(--orange); }
.mission-quote { color: #fff; font-size: 20px; font-weight: 600; line-height: 1.4; margin-bottom: 0.75rem; font-style: italic; }
.mission-sub { color: #777; font-size: 13px; line-height: 1.7; }

/* HIDDEN */
.hidden { display: none !important; }

/* RESPONSIVE */
@media (max-width: 640px) {
  .topbar { padding: 0 1rem; }
  .topbar-nav { gap: 1rem; }
  .topbar-nav a { font-size: 12px; }
  .main { padding: 1.25rem; }
  .hero { padding: 1.75rem 1.25rem 2.25rem; }
  .hero-title { font-size: 22px; }
  .detail-header { padding: 1.25rem; }
  .detail-body { padding: 1.25rem; }
}

/* TAB CONTENT */
.tab-content { display: none; }
.tab-content.active { display: block; }
