/* ═══════════════════════════════════════════════════════════
   IndoGerman Ops — interface styles
   Everything is scoped under .igop so it cannot leak into or
   inherit unexpected rules from the WordPress theme.
   ═══════════════════════════════════════════════════════════ */

.igop {
    --navy: #3e4973;
    --navy-dark: #2c365c;
    --ink: #0f172a;
    --orange: #ea580c;
    --orange-dark: #c2410c;
    --danger: #dc2626;
    --danger-bg: #fef2f2;
    --danger-border: #fecaca;
    --warn: #b45309;
    --warn-bg: #fffbeb;
    --warn-border: #fde68a;
    --ok: #15803d;
    --ok-bg: #f0fdf4;
    --ok-border: #bbf7d0;
    --line: #e2e8f0;
    --muted: #64748b;
    --bg: #f4f6f9;
    --card: #ffffff;
    --radius: 14px;
    --shadow: 0 1px 3px rgba(15, 23, 42, .06), 0 8px 24px rgba(15, 23, 42, .05);

    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--ink);
    background: var(--bg);
    padding: 22px;
    border-radius: 18px;
    max-width: 100%;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

.igop *, .igop *::before, .igop *::after { box-sizing: border-box; }
.igop h1, .igop h2, .igop h3, .igop h4 { margin: 0; font-weight: 700; color: var(--ink); line-height: 1.25; }
.igop p { margin: 0; }
.igop ul { margin: 6px 0 0; padding-left: 18px; }

/* ─── Utility ─── */
.igop-muted { color: var(--muted); }
.igop-small { font-size: .85em; }
.igop-tiny { font-size: .76em; }
.igop-ok { color: var(--ok); font-weight: 700; }
.igop-warn { color: var(--warn); font-weight: 700; }
.igop-danger-text { color: var(--danger); font-weight: 700; }
.igop-nowrap { white-space: nowrap; }
.igop-req-star { color: var(--danger); }
.igop-link {
    background: none; border: none; padding: 0; cursor: pointer;
    color: var(--navy); font-weight: 600; font-size: .85em;
    text-decoration: underline; font-family: inherit;
}
.igop-link:hover { color: var(--orange); }

/* ─── Gate (logged out / no access) ─── */
.igop-gate {
    text-align: center; padding: 56px 24px; background: #fff;
    border-radius: 16px; box-shadow: var(--shadow);
    font-family: 'Inter', sans-serif; max-width: 460px; margin: 40px auto;
}
.igop-gate h3 { font-size: 1.3em; margin-bottom: 8px; }
.igop-gate p { color: #64748b; margin-bottom: 20px; }

/* ═══════════ HEADER ═══════════ */
.igop-header {
    display: flex; align-items: center; justify-content: space-between;
    gap: 16px; flex-wrap: wrap; margin-bottom: 22px;
}
.igop-header-id { display: flex; align-items: center; gap: 14px; }
.igop-header h1 { font-size: 1.5em; }
.igop-avatar {
    width: 50px; height: 50px; border-radius: 14px; flex-shrink: 0;
    background: linear-gradient(135deg, var(--navy), var(--navy-dark));
    color: #fff; display: flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: 1.05em; letter-spacing: .5px;
}
.igop-avatar-sm { width: 40px; height: 40px; border-radius: 11px; font-size: .9em; }
.igop-avatar-dark { background: linear-gradient(135deg, var(--ink), #1e293b); font-size: .8em; }

.igop-header-stats { display: flex; gap: 10px; flex-wrap: wrap; }
.igop-chip {
    background: #fff; border: 1px solid var(--line); border-radius: 999px;
    padding: 8px 16px; font-size: .84em; font-weight: 600; color: var(--muted);
}
.igop-chip strong { color: var(--ink); font-size: 1.15em; margin-right: 4px; }
.igop-chip-danger { background: var(--danger-bg); border-color: var(--danger-border); color: #991b1b; }
.igop-chip-danger strong { color: var(--danger); }
.igop-chip-good { background: var(--ok-bg); border-color: var(--ok-border); color: #166534; }
.igop-chip-good strong { color: var(--ok); }

/* ═══════════ TABS ═══════════ */
.igop-tabs {
    display: flex; gap: 4px; margin-bottom: 20px; background: #fff;
    padding: 6px; border-radius: 12px; box-shadow: var(--shadow);
    overflow-x: auto; -webkit-overflow-scrolling: touch;
}
.igop-tab {
    flex: 1 0 auto; padding: 11px 18px; border: none; background: transparent;
    border-radius: 9px; font-family: inherit; font-size: .9em; font-weight: 700;
    color: var(--muted); cursor: pointer; transition: .18s; white-space: nowrap;
    display: inline-flex; align-items: center; justify-content: center; gap: 7px;
}
.igop-tab:hover { background: #f1f5f9; color: var(--ink); }
.igop-tab.is-active { background: var(--navy); color: #fff; }
.igop-badge {
    background: var(--danger); color: #fff; border-radius: 999px;
    padding: 1px 8px; font-size: .75em; font-weight: 800; min-width: 20px;
}
.igop-tab.is-active .igop-badge { background: rgba(255, 255, 255, .25); }
.igop-badge-soft { background: #cbd5e1; color: var(--ink); }

.igop-panel { display: none; animation: igopFade .25s ease; }
.igop-panel.is-active { display: block; }
@keyframes igopFade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.igop-section-intro { margin-bottom: 16px; font-size: .9em; }
.igop-section-title { font-size: 1.1em; margin: 26px 0 12px; }
.igop-mini-title { font-size: .95em; margin: 22px 0 10px; }

/* ═══════════ BUTTONS ═══════════ */
.igop-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 7px;
    padding: 11px 20px; border-radius: 10px; border: 1px solid transparent;
    font-family: inherit; font-size: .875em; font-weight: 700; cursor: pointer;
    transition: .18s; text-decoration: none; line-height: 1.2;
}
.igop-btn-primary { background: var(--navy); color: #fff; }
.igop-btn-primary:hover { background: var(--navy-dark); color: #fff; transform: translateY(-1px); }
.igop-btn-accent { background: var(--orange); color: #fff; }
.igop-btn-accent:hover { background: var(--orange-dark); color: #fff; }
.igop-btn-ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.igop-btn-ghost:hover { background: #f8fafc; border-color: #94a3b8; }
.igop-btn-sm { padding: 8px 14px; font-size: .82em; }
.igop-btn-block { width: 100%; margin-top: 14px; }
.igop-btn:disabled { opacity: .55; cursor: not-allowed; transform: none !important; }

/* ═══════════ PILLS ═══════════ */
.igop-pill {
    display: inline-block; padding: 4px 11px; border-radius: 999px;
    font-size: .72em; font-weight: 800; letter-spacing: .3px; white-space: nowrap;
}
.igop-pill-soft { background: #eef2f7; color: #475569; }
.igop-pill-danger { background: var(--danger-bg); color: #991b1b; border: 1px solid var(--danger-border); }
.igop-prio-urgent { background: var(--danger-bg); color: var(--danger); }
.igop-prio-high { background: var(--warn-bg); color: var(--warn); }
.igop-prio-normal { background: #eef2f7; color: #475569; }
.igop-stage-todo { background: #eef2f7; color: #475569; }
.igop-stage-progress { background: #eff6ff; color: #1d4ed8; }
.igop-stage-submitted { background: var(--warn-bg); color: var(--warn); }
.igop-stage-review { background: #f5f3ff; color: #6d28d9; }
.igop-stage-accepted { background: var(--ok-bg); color: var(--ok); }
.igop-stage-rejected { background: var(--danger-bg); color: var(--danger); }

/* ═══════════ EMPTY / LOADING ═══════════ */
.igop-empty {
    background: #fff; border-radius: var(--radius); padding: 52px 28px;
    text-align: center; box-shadow: var(--shadow);
}
.igop-empty-icon {
    width: 56px; height: 56px; margin: 0 auto 16px; border-radius: 50%;
    background: var(--ok-bg); color: var(--ok); display: flex;
    align-items: center; justify-content: center; font-size: 1.6em;
}
.igop-empty h3 { font-size: 1.15em; margin-bottom: 6px; }
.igop-empty p { color: var(--muted); font-size: .9em; max-width: 420px; margin: 0 auto; }
.igop-empty-sm { padding: 26px 18px; }
.igop-loading { padding: 34px; text-align: center; color: var(--muted); font-size: .9em; }

/* ═══════════ TASKS ═══════════ */
.igop-task-group { margin-bottom: 24px; }
.igop-group-head { margin-bottom: 10px; }
.igop-group-head h2 { font-size: 1.05em; display: flex; align-items: center; gap: 9px; }
.igop-count {
    background: #e2e8f0; color: #475569; border-radius: 999px;
    padding: 1px 9px; font-size: .72em; font-weight: 800;
}
.igop-group-danger .igop-count { background: var(--danger); color: #fff; }
.igop-group-warn .igop-count { background: var(--warn); color: #fff; }

.igop-task {
    background: #fff; border-radius: var(--radius); padding: 16px 18px;
    box-shadow: var(--shadow); display: flex; align-items: center; gap: 16px;
    margin-bottom: 9px; border-left: 4px solid transparent; transition: .18s;
}
.igop-task:hover { transform: translateX(2px); }
.igop-group-danger .igop-task { border-left-color: var(--danger); }
.igop-group-warn .igop-task { border-left-color: var(--orange); }
.igop-task-main { flex: 1; min-width: 0; }
.igop-task-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 4px; }
.igop-task-top h3 { font-size: .98em; }
.igop-task-detail { color: var(--muted); font-size: .86em; margin-bottom: 6px; }
.igop-task-meta { display: flex; gap: 14px; flex-wrap: wrap; font-size: .8em; color: var(--muted); }
.igop-task-meta .igop-req { color: var(--orange); font-weight: 700; }
.igop-task-action { flex-shrink: 0; }
.igop-task.is-done { opacity: .5; }

/* ═══════════ STUDENT CARDS ═══════════ */
.igop-toolbar { display: flex; gap: 10px; margin-bottom: 16px; flex-wrap: wrap; }
.igop-toolbar .igop-input { flex: 1; min-width: 200px; }

.igop-student-list { display: grid; gap: 12px; }
.igop-student-card {
    background: #fff; border-radius: var(--radius); padding: 18px;
    box-shadow: var(--shadow); border-left: 4px solid transparent;
}
.igop-student-card.is-quiet { border-left-color: var(--danger); }
.igop-student-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.igop-student-id { flex: 1; min-width: 0; }
.igop-student-id h3 { font-size: 1em; }
.igop-student-stage { flex-shrink: 0; }

.igop-progress-row {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
    padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.igop-prog-label {
    display: flex; justify-content: space-between; align-items: baseline;
    font-size: .78em; color: var(--muted); margin-bottom: 6px; gap: 6px;
}
.igop-prog-label strong { color: var(--ink); font-size: 1.05em; }
.igop-prog-bar { height: 6px; background: #e9edf3; border-radius: 4px; overflow: hidden; }
.igop-prog-bar i { display: block; height: 100%; background: var(--navy); border-radius: 4px; transition: width .4s; }
.igop-prog-bar i.is-ok { background: var(--ok); }
.igop-prog-lg { height: 9px; }
.igop-inline-warn { font-size: .74em; color: var(--danger); font-weight: 700; margin-top: 2px; }

.igop-student-foot { display: flex; align-items: center; justify-content: space-between; padding-top: 13px; gap: 10px; }

/* ═══════════ SCORECARD ═══════════ */
.igop-score-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.igop-score-card {
    background: #fff; border-radius: var(--radius); padding: 20px;
    box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 3px;
    border-top: 3px solid var(--navy);
}
.igop-score-card.is-danger { border-top-color: var(--danger); }
.igop-score-num { font-size: 1.9em; font-weight: 800; line-height: 1; color: var(--ink); }
.igop-score-card.is-danger .igop-score-num { color: var(--danger); }
.igop-score-label { font-size: .85em; font-weight: 700; color: #475569; }

.igop-weekly-list { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.igop-weekly-row {
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    padding: 13px 17px; border-bottom: 1px solid var(--line); font-size: .88em;
}
.igop-weekly-row:last-child { border-bottom: none; }

/* ═══════════ FORMS ═══════════ */
.igop-label { display: block; font-size: .82em; font-weight: 700; color: #334155; margin: 13px 0 6px; }
.igop-input {
    width: 100%; padding: 11px 13px; border: 1px solid var(--line); border-radius: 9px;
    font-family: inherit; font-size: .9em; color: var(--ink); background: #fff;
    transition: .18s; line-height: 1.4;
}
.igop-input:focus {
    outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(62, 73, 115, .12);
}
.igop-input-sm { padding: 7px 10px; font-size: .84em; }
textarea.igop-input { resize: vertical; min-height: 62px; }
.igop-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.igop-field { min-width: 0; }
.igop-check {
    display: flex; align-items: flex-start; gap: 9px; margin: 13px 0;
    font-size: .86em; color: #334155; cursor: pointer;
}
.igop-check input { margin-top: 2px; flex-shrink: 0; }
.igop-check-list { max-height: 190px; overflow-y: auto; padding: 4px 2px; }

.igop-card { background: #fff; border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); margin-bottom: 16px; }
.igop-card h3 { font-size: 1.05em; margin-bottom: 4px; }
.igop-two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* ═══════════ ALERTS ═══════════ */
.igop-alert { padding: 13px 16px; border-radius: 10px; font-size: .86em; margin-bottom: 14px; border: 1px solid; }
.igop-alert-warn { background: var(--warn-bg); border-color: var(--warn-border); color: #92400e; }
.igop-alert-danger { background: var(--danger-bg); border-color: var(--danger-border); color: #991b1b; }
.igop-alert-ok { background: var(--ok-bg); border-color: var(--ok-border); color: #166534; }

/* ═══════════ TABLES ═══════════ */
.igop-table-wrap { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow-x: auto; }
.igop-table { width: 100%; border-collapse: collapse; font-size: .87em; min-width: 720px; }
.igop-table th {
    background: var(--ink); color: #fff; text-align: left; padding: 14px 15px;
    font-size: .8em; text-transform: uppercase; letter-spacing: .5px; font-weight: 700;
}
.igop-table td { padding: 13px 15px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.igop-table tbody tr:last-child td { border-bottom: none; }
.igop-table tbody tr:hover td { background: #f8fafc; }

/* ═══════════ ATTENTION PANEL ═══════════ */
.igop-attention-list { display: grid; gap: 9px; }
.igop-attn {
    background: #fff; border-radius: 12px; padding: 15px 18px; box-shadow: var(--shadow);
    display: grid; grid-template-columns: 150px 1fr 130px; gap: 16px;
    align-items: center; border-left: 4px solid var(--muted);
}
.igop-attn-critical { border-left-color: var(--danger); }
.igop-attn-warning { border-left-color: var(--orange); }
.igop-attn-type { font-size: .74em; font-weight: 800; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); }
.igop-attn-critical .igop-attn-type { color: var(--danger); }
.igop-attn-warning .igop-attn-type { color: var(--orange); }
.igop-attn-body h4 { font-size: .93em; margin-bottom: 2px; }
.igop-attn-owner { text-align: right; display: flex; flex-direction: column; gap: 1px; }
.igop-attn-owner strong { font-size: .85em; }

/* ═══════════ TEAM ═══════════ */
.igop-team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 14px; }
.igop-team-card { background: #fff; border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); border-top: 3px solid var(--navy); }
.igop-team-card.is-flagged { border-top-color: var(--danger); }
.igop-team-head { display: flex; align-items: center; gap: 11px; margin-bottom: 15px; }
.igop-team-head h3 { font-size: .97em; }
.igop-team-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 11px; }
.igop-team-stats div { text-align: center; padding: 9px 4px; background: #f8fafc; border-radius: 9px; }
.igop-team-stats span { display: block; font-size: 1.15em; font-weight: 800; color: var(--ink); }
.igop-team-stats em { font-size: .68em; color: var(--muted); font-style: normal; font-weight: 600; }
.igop-team-stats .is-danger { background: var(--danger-bg); }
.igop-team-stats .is-danger span { color: var(--danger); }

/* ═══════════ RECEIPTS ═══════════ */
.igop-receipt { padding: 13px 0; border-bottom: 1px solid var(--line); }
.igop-receipt:last-child { border-bottom: none; }
.igop-receipt-head { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 5px; font-size: .88em; }
.igop-receipt-bar { display: flex; flex-direction: column; gap: 3px; font-size: .78em; }

/* ═══════════ DRAWER ═══════════ */
.igop-drawer-backdrop {
    position: fixed; inset: 0; background: rgba(15, 23, 42, .5);
    backdrop-filter: blur(3px); z-index: 99998; opacity: 0; visibility: hidden; transition: .25s;
}
.igop-drawer-backdrop.is-open { opacity: 1; visibility: visible; }
.igop-drawer {
    position: fixed; top: 0; right: 0; height: 100vh; width: 720px; max-width: 96vw;
    background: var(--bg); z-index: 99999; box-shadow: -10px 0 40px rgba(15, 23, 42, .2);
    transform: translateX(102%); transition: transform .3s cubic-bezier(.4, 0, .2, 1);
    display: flex; flex-direction: column;
}
.igop-drawer.is-open { transform: translateX(0); }
.igop-drawer-head {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 18px 22px; background: #fff; border-bottom: 1px solid var(--line); flex-shrink: 0;
}
.igop-drawer-head h2 { font-size: 1.05em; }
.igop-drawer-close {
    background: #f1f5f9; border: none; width: 34px; height: 34px; border-radius: 9px;
    font-size: 1.4em; line-height: 1; color: var(--muted); cursor: pointer; transition: .18s;
}
.igop-drawer-close:hover { background: var(--danger-bg); color: var(--danger); }
.igop-drawer-body { flex: 1; overflow-y: auto; padding: 20px 22px 60px; }

/* ═══════════ STUDENT PANEL ═══════════ */
.igop-sp-head {
    display: flex; align-items: flex-start; justify-content: space-between;
    gap: 12px; margin-bottom: 16px;
}
.igop-sp-head h3 { font-size: 1.15em; }
.igop-subtabs { display: flex; gap: 4px; background: #fff; padding: 5px; border-radius: 10px; margin-bottom: 18px; overflow-x: auto; }
.igop-subtab {
    flex: 1 0 auto; padding: 9px 14px; border: none; background: transparent; border-radius: 7px;
    font-family: inherit; font-size: .85em; font-weight: 700; color: var(--muted);
    cursor: pointer; transition: .18s; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
}
.igop-subtab.is-active { background: var(--navy); color: #fff; }
.igop-subpanel { display: none; }
.igop-subpanel.is-active { display: block; }

.igop-app { background: #fff; border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); margin-bottom: 14px; }
.igop-app-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.igop-app-head h4 { font-size: 1em; }

/* Proof grid */
.igop-proof-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-bottom: 16px; }
.igop-proof-slot {
    border: 1.5px dashed var(--line); border-radius: 11px; padding: 12px;
    display: flex; flex-direction: column; gap: 5px; background: #fbfcfe; transition: .2s;
}
.igop-proof-slot.has-file { border-style: solid; border-color: var(--ok-border); background: var(--ok-bg); }
.igop-proof-label { font-size: .78em; font-weight: 700; color: #334155; display: flex; justify-content: space-between; gap: 6px; }
.igop-proof-file { font-size: .78em; color: var(--navy); font-weight: 600; word-break: break-all; text-decoration: underline; }
.igop-file-btn { display: block; cursor: pointer; margin-top: auto; }
.igop-file-btn input { display: none; }
.igop-file-btn span {
    display: block; text-align: center; padding: 7px; border-radius: 7px;
    background: #fff; border: 1px solid var(--line); font-size: .78em; font-weight: 700;
    color: var(--navy); transition: .18s;
}
.igop-file-btn:hover span { background: var(--navy); color: #fff; border-color: var(--navy); }
.igop-file-btn.is-busy span { opacity: .5; }

.igop-app-form { padding-top: 6px; border-top: 1px solid var(--line); margin-bottom: 14px; }

/* Stage control */
.igop-stage-control { border-top: 1px solid var(--line); padding-top: 12px; }
.igop-stage-btns { display: flex; gap: 7px; flex-wrap: wrap; }
.igop-stage-btn {
    padding: 9px 15px; border-radius: 9px; border: 1px solid var(--line); background: #fff;
    font-family: inherit; font-size: .82em; font-weight: 700; color: var(--ink);
    cursor: pointer; transition: .18s;
}
.igop-stage-btn:hover:not(.is-locked) { background: var(--navy); color: #fff; border-color: var(--navy); }
.igop-stage-btn.is-locked { background: #f8fafc; color: #94a3b8; cursor: not-allowed; border-style: dashed; }
.igop-lock-note {
    margin-top: 11px; padding: 11px 14px; background: var(--warn-bg);
    border: 1px solid var(--warn-border); border-radius: 9px; font-size: .81em; color: #92400e;
}
.igop-lock-note strong { display: block; margin-bottom: 3px; }

/* Documents */
.igop-level-box { background: #fff; border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow); margin-bottom: 14px; }
.igop-doc-summary { background: #fff; border-radius: var(--radius); padding: 15px 18px; box-shadow: var(--shadow); margin-bottom: 14px; }
.igop-doc-summary p { margin-top: 8px; font-size: .85em; color: var(--muted); }
.igop-doc-group { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 12px; overflow: hidden; }
.igop-doc-group h4 {
    font-size: .85em; padding: 13px 17px; background: #f8fafc;
    border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 9px;
}
.igop-doc-row {
    display: grid; grid-template-columns: 32px 1fr auto; gap: 10px; align-items: center;
    padding: 11px 17px; border-bottom: 1px solid #f1f5f9; font-size: .84em;
}
.igop-doc-row:last-child { border-bottom: none; }
.igop-doc-state { font-size: 1.05em; text-align: center; }
.igop-doc-name { min-width: 0; }
.igop-doc-name span { display: block; word-break: break-word; }
.igop-doc-name em { display: block; font-style: normal; margin-top: 2px; }
.igop-doc-required { background: #fffdf7; }
.igop-doc-na { opacity: .62; }
.igop-doc-uploaded .igop-doc-name span { color: var(--ok); font-weight: 600; }
.igop-hidden-note { margin-top: 12px; padding: 10px 14px; background: #f1f5f9; border-radius: 9px; }

/* Timeline */
.igop-note-box { background: #fff; border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow); margin-bottom: 16px; }
.igop-timeline { background: #fff; border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); }
.igop-timeline-date {
    font-size: .74em; font-weight: 800; text-transform: uppercase; letter-spacing: .6px;
    color: var(--muted); margin: 16px 0 9px; padding-bottom: 5px; border-bottom: 1px solid var(--line);
}
.igop-timeline-date:first-child { margin-top: 0; }
.igop-timeline-item { display: flex; gap: 11px; padding: 8px 0; }
.igop-timeline-icon {
    width: 28px; height: 28px; border-radius: 8px; background: #f1f5f9; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center; font-size: .82em;
}
.igop-timeline-item.is-critical .igop-timeline-icon { background: var(--danger-bg); }
.igop-timeline-text { font-size: .85em; color: var(--ink); }
.igop-timeline-item.is-critical .igop-timeline-text { color: var(--danger); font-weight: 600; }
.igop-timeline-meta { font-size: .74em; color: var(--muted); margin-top: 1px; }
.igop-immutable-note { margin-top: 12px; text-align: center; }

/* ═══════════ MODALS ═══════════ */
.igop-modal-backdrop {
    position: fixed; inset: 0; background: rgba(15, 23, 42, .6); backdrop-filter: blur(4px);
    z-index: 100000; display: none; align-items: center; justify-content: center; padding: 20px;
}
.igop-modal-backdrop.is-open { display: flex; }
.igop-modal {
    background: #fff; border-radius: 16px; padding: 26px; width: 100%; max-width: 480px;
    box-shadow: 0 25px 60px rgba(15, 23, 42, .28); animation: igopPop .25s cubic-bezier(.16, 1, .3, 1);
    font-family: 'Inter', sans-serif; max-height: 90vh; overflow-y: auto;
}
@keyframes igopPop { from { transform: translateY(14px) scale(.97); opacity: 0; } to { transform: none; opacity: 1; } }
.igop-modal h3 { font-size: 1.12em; margin-bottom: 5px; }
.igop-modal-actions { display: flex; gap: 9px; justify-content: flex-end; margin-top: 20px; }

/* Directive gate */
.igop-directive-gate { display: flex; }
.igop-directive { display: none; text-align: left; }
.igop-directive.is-active { display: block; }
.igop-directive-flag {
    display: inline-block; padding: 4px 12px; border-radius: 999px; font-size: .7em;
    font-weight: 800; letter-spacing: .8px; margin-bottom: 12px;
}
.igop-directive-body { margin: 12px 0; font-size: .92em; color: #334155; }
.igop-directive-body p { margin-bottom: 9px; }

/* ═══════════ TOAST ═══════════ */
.igop-toast {
    position: fixed; bottom: 26px; left: 50%; transform: translate(-50%, 140%);
    background: var(--ink); color: #fff; padding: 13px 22px; border-radius: 11px;
    font-size: .88em; font-weight: 600; z-index: 100001; box-shadow: 0 14px 34px rgba(15, 23, 42, .3);
    transition: transform .3s cubic-bezier(.16, 1, .3, 1); max-width: 90vw; text-align: center;
    font-family: 'Inter', sans-serif;
}
.igop-toast.is-visible { transform: translate(-50%, 0); }
.igop-toast.is-error { background: var(--danger); }
.igop-toast.is-success { background: var(--ok); }

/* ═══════════ RESPONSIVE ═══════════ */
@media (max-width: 900px) {
    .igop-two-col { grid-template-columns: 1fr; }
    .igop-attn { grid-template-columns: 1fr; gap: 7px; }
    .igop-attn-owner { text-align: left; flex-direction: row; gap: 6px; align-items: baseline; }
}
@media (max-width: 680px) {
    .igop { padding: 15px; border-radius: 12px; }
    .igop-header { flex-direction: column; align-items: flex-start; }
    .igop-header h1 { font-size: 1.25em; }
    .igop-progress-row { grid-template-columns: 1fr; gap: 11px; }
    .igop-field-row { grid-template-columns: 1fr; }
    .igop-task { flex-direction: column; align-items: stretch; gap: 12px; }
    .igop-task-action .igop-btn { width: 100%; }
    .igop-student-head { flex-wrap: wrap; }
    .igop-drawer { width: 100%; max-width: 100%; }
    .igop-drawer-body { padding: 16px 15px 50px; }
    .igop-score-grid { grid-template-columns: 1fr 1fr; }
    .igop-tab { font-size: .82em; padding: 10px 13px; }
}
