/*
 * AAU GraduationProjects — shared screen design system
 * Owners: Site.Master, all 18 master-based pages, Login.aspx and Print.aspx.
 * 1. Identity  2. Foundation  3. Shell  4. Page header  5. Cards and summaries
 * 6. Forms/actions  7. Tables  8. Feedback/details  9. Dashboard  10. Login
 * 11. Responsive  12. Print safety
 * No page-specific theme files are required. Keep server-side visibility intact.
 */

/* 1. University identity: the original university font URL is intentionally retained. */
@font-face {
    font-family: 'neosansarabic';
    src: url('https://eservices.ammanu.edu.jo/Careers/Academic/assets/fonts/NEOSANSARABIC-Medium.ttf') format('truetype');
    font-style: normal;
    font-weight: 400 800;
    font-display: swap;
}

:root {
    --gp-navy: #17376C;
    --gp-blue: #244B91;
    --gp-gold: #D5A329;
    --gp-deep: #102951;
    --gp-background: #F5F7FB;
    --gp-white: #FFFFFF;
    --gp-border: #E3E9F1;
    --gp-text: #1E293B;
    --gp-muted: rgba(30, 41, 59, .68);
    --gp-soft-blue: rgba(36, 75, 145, .055);
    --gp-soft-gold: rgba(213, 163, 41, .10);
    --gp-shadow: 0 4px 18px rgba(16, 41, 81, .045);
    --gp-radius: 18px;
    --gp-input-radius: 10px;
    --gp-space: 20px;
    --gp-sidebar-width: 248px;
    --gp-header-height: 80px;
    --gp-content-width: 1460px;
    color-scheme: light;
}

/* 2. Foundation. No global display rule overrides hidden fields/panels. */
* { box-sizing: border-box; }
html { direction: rtl; scroll-behavior: smooth; scroll-padding-top: 104px; }
body {
    margin: 0;
    background: var(--gp-background);
    color: var(--gp-text);
    font-family: 'neosansarabic', Tahoma, sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.85;
    text-align: right;
    -webkit-text-size-adjust: 100%;
}
button, input, select, textarea {
    font-family: 'neosansarabic', Tahoma, sans-serif;
    font-size: inherit;
    line-height: inherit;
}
a { color: var(--gp-blue); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
button, input[type="submit"], input[type="button"], a { touch-action: manipulation; }
button, input[type="submit"], input[type="button"] { cursor: pointer; }
button, input, select, textarea { max-width: 100%; }
img, svg { max-width: 100%; }
svg { vertical-align: middle; }
[hidden], input[type="hidden"] { display: none !important; }
:focus-visible { outline: 3px solid var(--gp-gold); outline-offset: 3px; }
:focus:not(:focus-visible) { outline: none; }
::selection { background: var(--gp-soft-gold); color: var(--gp-deep); }
h1, h2, h3, p { overflow-wrap: anywhere; }
h1, h2, h3 { color: var(--gp-navy); line-height: 1.6; }
h1 { font-size: 25px; margin: 0; }
h2 { font-size: 17px; margin: 0; }
h3 { font-size: 15px; margin: 0 0 8px; }
p { margin: 0 0 14px; }
.sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link {
    position: fixed; top: -100px; right: 18px; z-index: 100;
    border-radius: 8px; background: var(--gp-white); color: var(--gp-navy);
    padding: 10px 18px; box-shadow: var(--gp-shadow);
}
.skip-link:focus { top: 12px; }

/* 3. Shared header, RIGHT sidebar, content width and footer. */
.app-shell { min-height: 100vh; }
.topbar {
    position: fixed; top: 0; right: 0; left: 0; z-index: 50;
    height: var(--gp-header-height); padding: 12px 26px;
    display: flex; align-items: center; justify-content: space-between; gap: 24px;
    background: var(--gp-white); border-bottom: 1px solid var(--gp-border);
    box-shadow: 0 2px 10px rgba(16, 41, 81, .025);
}
.gp-topbar-brand, .gp-topbar-home, .gp-topbar-actions, .topbar-account {
    display: flex; align-items: center; gap: 12px; min-width: 0;
}
.gp-topbar-home { color: var(--gp-navy); }
.gp-topbar-home:hover { text-decoration: none; }
.gp-topbar-logo {
    display: grid; place-items: center; flex: 0 0 44px;
    width: 44px; height: 44px; border-radius: 13px;
    background: linear-gradient(140deg, var(--gp-navy), var(--gp-blue));
    color: var(--gp-gold);
}
.gp-topbar-logo svg { width: 29px; height: 29px; }
.gp-topbar-title { display: block; font-size: 16px; line-height: 1.6; font-weight: 700; }
.gp-topbar-subtitle { display: block; font-size: 11px; color: var(--gp-muted); line-height: 1.7; }
.gp-topbar-actions { gap: 20px; }
.gp-topbar-date { color: var(--gp-muted); font-size: 12px; white-space: nowrap; }
.topbar-account { gap: 10px; }
.account-avatar {
    width: 38px; height: 38px; flex: 0 0 38px; border-radius: 50%;
    display: grid; place-items: center; background: var(--gp-soft-blue);
    border: 1px solid var(--gp-border); color: var(--gp-navy); font-weight: 700;
}
.account-avatar:hover { background: var(--gp-border); text-decoration: none; }
.account-text { min-width: 0; max-width: 190px; font-size: 12px; line-height: 1.6; }
.account-text strong { display: block; font-size: 12px; overflow-wrap: anywhere; }
.account-role { display: block; color: var(--gp-muted); font-size: 11px; }
.logout-link {
    display: inline-flex; align-items: center; min-height: 36px;
    margin-right: 6px; padding: 6px 12px; border: 1px solid var(--gp-border);
    border-radius: 9px; color: var(--gp-navy); font-size: 11px; white-space: nowrap;
}
.logout-link:hover { background: var(--gp-background); text-decoration: none; }
.sidebar {
    position: fixed; right: 0; left: auto; top: var(--gp-header-height); bottom: 0;
    z-index: 40; width: var(--gp-sidebar-width); padding: 18px 14px 24px;
    display: flex; flex-direction: column; overflow-y: auto; overflow-x: hidden;
    background: linear-gradient(180deg, var(--gp-navy) 0%, var(--gp-deep) 100%);
    color: var(--gp-white); scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, .28) transparent;
}
.nav-caption {
    color: rgba(255, 255, 255, .60); font-size: 11px; margin: 0 12px 12px;
    display: flex; align-items: center; gap: 8px;
}
.nav-caption::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--gp-gold); }
.nav-list { display: flex; flex-direction: column; gap: 4px; }
.gp-nav-group { color: rgba(255, 255, 255, .55); font-size: 10px; padding: 16px 12px 5px; }
.nav-item {
    position: relative; display: flex; align-items: center; gap: 11px;
    min-height: 44px; padding: 10px 12px; border-radius: 10px;
    color: rgba(255, 255, 255, .84); font-size: 12px;
    transition: background-color .15s ease, color .15s ease;
}
.nav-item:hover { color: var(--gp-white); background: rgba(255, 255, 255, .07); text-decoration: none; }
.nav-item.active {
    color: var(--gp-white); background: var(--gp-blue); font-weight: 700;
    box-shadow: inset -3px 0 0 var(--gp-gold);
}
.nav-icon { display: inline-flex; flex: 0 0 19px; width: 19px; height: 19px; }
.nav-icon svg {
    width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.7;
    stroke-linecap: round; stroke-linejoin: round;
}
.nav-item.active .nav-icon { color: var(--gp-gold); }
.nav-label { flex: 1; min-width: 0; }
.nav-arrow { font-size: 17px; color: rgba(255, 255, 255, .45); }
.workspace { margin-right: var(--gp-sidebar-width); padding-top: var(--gp-header-height); min-height: 100vh; }
.content { width: 100%; max-width: var(--gp-content-width); margin: 0 auto; padding: 24px 28px 20px; }
.app-footer {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
    gap: 8px 20px; margin-top: 28px; padding-top: 18px;
    border-top: 1px solid var(--gp-border); color: var(--gp-muted); font-size: 11px;
}
.menu-toggle, .mobile-close { display: none; }
.mobile-backdrop { display: none; }

/* 4. One breadcrumb and hero component for all master-based pages. */
.gp-page { min-width: 0; }
.gp-breadcrumb, .breadcrumb {
    display: flex; align-items: center; flex-wrap: wrap; gap: 7px;
    min-height: 24px; margin: 0 0 14px; color: var(--gp-muted); font-size: 11px;
}
.gp-breadcrumb a, .breadcrumb a { color: var(--gp-muted); }
.gp-breadcrumb [aria-current="page"], .breadcrumb [aria-current="page"] { color: var(--gp-navy); }
.gp-page-header {
    position: relative; isolation: isolate; display: flex; align-items: center;
    gap: 18px; padding: 25px 28px; min-height: 126px; margin-bottom: var(--gp-space);
    border: 1px solid rgba(255, 255, 255, .06); border-radius: var(--gp-radius);
    background: linear-gradient(115deg, var(--gp-deep) 0%, var(--gp-navy) 52%, var(--gp-blue) 100%);
    color: var(--gp-white); overflow: hidden;
}
.gp-page-header::after {
    content: ""; position: absolute; z-index: -1; pointer-events: none;
    width: 270px; height: 270px; left: -80px; top: -150px; border-radius: 50%;
    border: 36px solid rgba(255, 255, 255, .035);
    box-shadow: 0 0 0 32px rgba(255, 255, 255, .025);
}
.gp-page-icon {
    width: 54px; height: 54px; flex: 0 0 54px; display: grid; place-items: center;
    background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 14px; color: var(--gp-gold);
}
.gp-page-icon svg { width: 27px; height: 27px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.gp-page-copy { flex: 1; min-width: 0; }
.gp-eyebrow, .eyebrow { display: block; color: var(--gp-blue); font-size: 11px; margin-bottom: 4px; }
.gp-page-header .gp-eyebrow { color: rgba(255, 255, 255, .70); }
.gp-page-header h1 { color: var(--gp-white); font-size: 24px; line-height: 1.6; margin: 0 0 4px; }
.gp-page-header p { margin: 0; color: rgba(255, 255, 255, .78); font-size: 12px; line-height: 1.9; max-width: 720px; }
.gp-page-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; flex: 0 1 auto; }
.gp-page-body, .gp-stack { display: grid; gap: var(--gp-space); min-width: 0; }
.gp-page-body > *, .gp-stack > * { min-width: 0; }
.gp-grow { flex: 1; min-width: 0; }
.gp-heading-copy, .section-copy { min-width: 0; }

/* 5. Cards, section headings and compact project summaries. */
.gp-card, .portal-section {
    min-width: 0; background: var(--gp-white); border: 1px solid var(--gp-border);
    border-radius: var(--gp-radius); box-shadow: var(--gp-shadow); overflow: hidden;
}
.gp-card-header, .section-header {
    display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap;
    gap: 12px 18px; padding: 18px 22px; border-bottom: 1px solid var(--gp-border);
}
.gp-card-header h2, .section-header h2 { display: flex; align-items: center; gap: 10px; font-size: 16px; }
.gp-card-header p, .section-description { margin: 4px 0 0; color: var(--gp-muted); font-size: 12px; }
.gp-card-body, .section-body { padding: 22px; min-width: 0; }
.gp-card-body > :last-child, .section-body > :last-child { margin-bottom: 0; }
.gp-card-icon, .gp-section-marker {
    display: inline-flex; align-items: center; justify-content: center; flex: 0 0 30px;
    width: 30px; height: 30px; border-radius: 9px; background: var(--gp-soft-blue);
    color: var(--gp-blue); font-size: 12px; font-weight: 700;
}
.gp-card-icon svg, .gp-section-marker svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.gp-stats, .stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; min-width: 0; }
.gp-stat, .stat-card {
    position: relative; min-width: 0; padding: 18px 20px; border: 1px solid var(--gp-border);
    border-radius: var(--gp-radius); background: var(--gp-white); box-shadow: var(--gp-shadow);
}
.gp-stat-label, .stat-label { display: block; font-size: 12px; color: var(--gp-muted); }
.gp-stat-value, .stat-value { display: block; margin: 5px 0 0; color: var(--gp-navy); font-size: 22px; line-height: 1.65; font-weight: 700; overflow-wrap: anywhere; }
.gp-stat-note { display: block; font-size: 11px; color: var(--gp-muted); margin-top: 3px; }
.gp-project-context { padding: 0; }
.gp-project-context .gp-project-summary { padding: 0 6px; gap: 0; }
.gp-project-summary .gp-stat {
    padding: 17px 16px; background: transparent; border: 0; border-radius: 0;
    box-shadow: none; border-left: 1px solid var(--gp-border);
}
.gp-project-summary .gp-stat:last-child { border-left: 0; }
.gp-project-summary .gp-stat-value { font-size: 14px; line-height: 1.8; font-weight: 600; }
.gp-project-context > .gp-actions { padding: 12px 20px; margin: 0; border-top: 1px solid var(--gp-border); background: var(--gp-background); }
.gp-project-context .gp-actions .btn { min-height: 36px; font-size: 12px; padding: 6px 14px; }
.gp-caption { display: block; margin: 0; color: var(--gp-muted); font-size: 12px; }

/* 6. Forms and actions: shared size, focus, spacing and disabled states. */
.gp-form-grid, .form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 24px; align-items: start; }
.gp-form-field, .form-field { min-width: 0; }
.full-width { grid-column: 1 / -1; }
.field-label { display: block; margin: 0 0 7px; font-size: 13px; color: var(--gp-text); font-weight: 600; }
.field-input, .table-search, .gp-search-field input, .gp-search input,
.gp-toolbar input[type="search"], .gp-toolbar input[type="text"] {
    width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid var(--gp-border);
    border-radius: var(--gp-input-radius); background: var(--gp-white); color: var(--gp-text);
    font-size: 13px; line-height: 1.7; transition: border-color .15s ease, box-shadow .15s ease;
}
.field-input:hover, .table-search:hover { border-color: rgba(36, 75, 145, .35); }
.field-input:focus, .table-search:focus, .gp-search input:focus, .gp-search-field input:focus {
    outline: none; border-color: var(--gp-blue); box-shadow: 0 0 0 3px rgba(36, 75, 145, .12);
}
.field-input::placeholder, .table-search::placeholder { color: rgba(30, 41, 59, .48); opacity: 1; }
textarea.field-input { min-height: 118px; resize: vertical; line-height: 1.9; }
select.field-input { padding-left: 32px; cursor: pointer; }
input[type="date"].field-input, input[type="datetime-local"].field-input, input[type="number"].field-input { min-width: 0; }
input[type="file"].field-input { height: auto; padding: 6px; font-size: 12px; background: var(--gp-background); }
input[type="file"]::file-selector-button {
    font: inherit; color: var(--gp-navy); background: var(--gp-white); border: 1px solid var(--gp-border);
    border-radius: 7px; padding: 7px 12px; margin-left: 10px; cursor: pointer;
}
.field-input[readonly], .field-input:disabled, select:disabled, textarea:disabled {
    background: var(--gp-background); color: var(--gp-muted); cursor: default;
}
.field-help, .form-note, .page-description { display: block; color: var(--gp-muted); font-size: 11px; line-height: 1.9; margin-top: 7px; }
.field-help p { margin: 0; }
.checkbox-field { display: flex; align-items: flex-start; gap: 9px; color: var(--gp-text); font-size: 13px; line-height: 1.9; }
.checkbox-field input[type="checkbox"] { flex: 0 0 18px; width: 18px; height: 18px; margin: 4px 0 0; accent-color: var(--gp-blue); cursor: pointer; }
.checkbox-field label { cursor: pointer; }
.gp-form-inset { margin: 20px 22px; }
.gp-actions, .form-actions {
    display: flex; align-items: center; flex-wrap: wrap; gap: 10px;
    margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--gp-border);
}
.gp-card:not(.gp-project-context) > .gp-actions { margin: 0; padding: 18px 22px 22px; }
.gp-card > .notice { margin: 18px 22px; }
.gp-page-actions .gp-actions, .gp-toolbar .gp-actions { margin: 0; padding: 0; border: 0; }
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 42px; padding: 9px 18px; border: 1px solid var(--gp-blue);
    border-radius: var(--gp-input-radius); background: var(--gp-blue); color: var(--gp-white);
    font-family: 'neosansarabic', Tahoma, sans-serif; font-size: 13px; font-weight: 600;
    line-height: 1.7; text-align: center; text-decoration: none; white-space: normal;
    transition: background-color .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.btn:hover { background: var(--gp-navy); border-color: var(--gp-navy); color: var(--gp-white); text-decoration: none; box-shadow: 0 3px 10px rgba(23, 55, 108, .10); }
.btn-secondary { background: var(--gp-white); color: var(--gp-navy); border-color: var(--gp-border); }
.btn-secondary:hover { background: var(--gp-background); color: var(--gp-navy); border-color: rgba(36, 75, 145, .30); }
.btn-quiet { border-color: transparent; background: transparent; color: var(--gp-blue); }
.btn-quiet:hover { background: var(--gp-soft-blue); color: var(--gp-navy); border-color: transparent; box-shadow: none; }
.btn-danger { border-color: rgba(213, 163, 41, .60); background: var(--gp-soft-gold); color: var(--gp-deep); }
.btn-danger:hover { background: var(--gp-deep); color: var(--gp-white); border-color: var(--gp-deep); }
.btn-sm { min-height: 34px; padding: 5px 11px; font-size: 11px; border-radius: 8px; }
.btn-on-dark, .btn-hero { background: var(--gp-white); color: var(--gp-navy); border-color: var(--gp-white); white-space: nowrap; }
.btn-on-dark:hover, .btn-hero:hover { background: var(--gp-background); color: var(--gp-navy); border-color: var(--gp-background); }
.btn:disabled, .btn[disabled], .aspNetDisabled { opacity: .52; cursor: not-allowed; box-shadow: none; }
.gp-tabs {
    display: flex; align-items: stretch; gap: 6px; overflow-x: auto; max-width: 100%;
    padding: 6px; border: 1px solid var(--gp-border); border-radius: 13px;
    background: var(--gp-white); scrollbar-width: thin;
}
.gp-tab {
    display: inline-flex; align-items: center; justify-content: center; gap: 7px;
    min-height: 40px; padding: 8px 16px; border-radius: 9px; white-space: nowrap;
    font-size: 12px; color: var(--gp-navy); border: 1px solid transparent;
}
.gp-tab:hover { background: var(--gp-soft-blue); text-decoration: none; }
.gp-tab svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.gp-tab.active, .gp-tab[aria-current="page"] { background: var(--gp-blue); color: var(--gp-white); }

/* 7. Tables, filter bars, scrolling and GridView pagination. */
.gp-toolbar, .filter-toolbar {
    display: flex; align-items: flex-end; flex-wrap: wrap; gap: 12px;
    padding: 16px 22px; border-bottom: 1px solid var(--gp-border); background: var(--gp-background);
}
.gp-card-body > .gp-toolbar { padding: 0 0 18px; margin-bottom: 18px; background: transparent; }
.gp-toolbar > label { align-self: center; color: var(--gp-muted); font-size: 12px; }
.gp-search-field { display: block; flex: 1 1 260px; min-width: 0; max-width: 480px; }
.gp-search-field .field-label { font-size: 12px; }
.gp-search { position: relative; flex: 1 1 240px; min-width: 0; max-width: 480px; }
.gp-search input { padding-right: 40px; }
.gp-search-icon { position: absolute; right: 13px; top: 50%; transform: translateY(-50%); color: var(--gp-muted); pointer-events: none; display: flex; }
.gp-search-icon svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.table-search { flex: 1 1 240px; width: auto; max-width: 480px; }
.table-count, .gp-chip {
    display: inline-flex; align-items: center; gap: 5px; padding: 5px 10px;
    background: var(--gp-white); border: 1px solid var(--gp-border); border-radius: 8px;
    color: var(--gp-muted); font-size: 11px; white-space: nowrap; line-height: 1.7;
}
.gp-toolbar .table-count { margin-right: auto; align-self: center; }
.gp-table-wrap, .table-scroll { width: 100%; max-width: 100%; min-width: 0; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: thin; scrollbar-color: rgba(36, 75, 145, .30) var(--gp-background); }
.data-table { width: 100%; border-collapse: collapse; border-spacing: 0; font-size: 12px; line-height: 1.8; text-align: right; }
.data-table th {
    color: var(--gp-navy); background: var(--gp-background); font-weight: 600; font-size: 12px;
    padding: 12px 16px; border: 0; border-bottom: 1px solid var(--gp-border);
    text-align: right; vertical-align: middle; white-space: nowrap;
}
.data-table td {
    padding: 13px 16px; color: var(--gp-text); border: 0; border-bottom: 1px solid var(--gp-border);
    vertical-align: middle; overflow-wrap: anywhere; max-width: 360px;
}
.data-table tbody tr:last-child td { border-bottom: 0; }
.data-table tbody tr:nth-child(even):not(.table-pager) { background: rgba(245, 247, 251, .55); }
.data-table tbody tr:hover:not(.table-pager) { background: var(--gp-soft-blue); }
.data-table td > a:not(.btn) { color: var(--gp-blue); font-size: 12px; font-weight: 600; text-underline-offset: 3px; }
.data-table td .btn { min-height: 34px; padding: 5px 11px; font-size: 11px; white-space: nowrap; }
.table-actions { display: flex; gap: 7px; flex-wrap: wrap; }
.data-table .field-input { min-height: 40px; padding: 7px 10px; }
.gp-criteria-table th:first-child, .gp-criteria-table td:first-child { min-width: 200px; }
.gp-criteria-table td { vertical-align: top; }
.gp-mark-input { width: 100px; min-width: 80px; text-align: center; }
.table-pager > td { border-top: 1px solid var(--gp-border); background: var(--gp-background); padding: 12px 18px; }
.table-pager table { width: auto; border-collapse: separate; border-spacing: 4px; }
.table-pager td, .table-pager table tr:hover { padding: 0; border: 0; background: transparent; }
.table-pager a, .table-pager span {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 34px; min-height: 34px; padding: 5px 9px; border-radius: 8px; font-size: 12px;
}
.table-pager a { color: var(--gp-navy); border: 1px solid var(--gp-border); background: var(--gp-white); }
.table-pager a:hover { background: var(--gp-border); text-decoration: none; }
.table-pager span { background: var(--gp-blue); color: var(--gp-white); }
.empty-state, .data-table td[colspan] { text-align: center; color: var(--gp-muted); }
.empty-state { padding: 28px 18px; font-size: 13px; }
.data-table .table-pager td[colspan] { text-align: right; }

/* 8. Feedback, badges, notes and read-only details. */
.notice, .gp-feedback, .report-error {
    display: block; padding: 14px 17px; margin: 0; border: 1px solid var(--gp-border);
    border-right: 3px solid var(--gp-blue); border-radius: 12px;
    background: var(--gp-white); color: var(--gp-text); font-size: 12px;
    line-height: 1.9; overflow-wrap: anywhere; white-space: pre-line;
}
.notice-info { background: var(--gp-soft-blue); color: var(--gp-navy); }
.notice-success { background: var(--gp-soft-blue); border-right-color: var(--gp-blue); color: var(--gp-navy); }
.notice-error, .report-error { background: var(--gp-soft-gold); border-color: rgba(213, 163, 41, .35); border-right-color: var(--gp-gold); color: var(--gp-deep); }
.notice-warning { background: var(--gp-soft-gold); border-right-color: var(--gp-gold); }
.gp-notice-with-icon { display: flex; align-items: flex-start; gap: 12px; white-space: normal; }
.gp-notice-icon { display: inline-flex; flex: 0 0 20px; margin-top: 2px; }
.gp-notice-icon svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.gp-card-body > .notice, .section-body > .notice { margin-bottom: 18px; }
.badge {
    display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 7px;
    background: var(--gp-soft-blue); color: var(--gp-navy); border: 1px solid var(--gp-border);
    font-size: 11px; line-height: 1.6; white-space: nowrap;
}
.badge-success, .badge-info { background: var(--gp-soft-blue); color: var(--gp-blue); }
.badge-warning, .badge-danger { background: var(--gp-soft-gold); color: var(--gp-deep); border-color: rgba(213, 163, 41, .30); }
.gp-details-grid, .details-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin: 0; }
.gp-detail, .detail-item { min-width: 0; padding: 0 0 16px; border-bottom: 1px solid var(--gp-border); }
.gp-detail dt, .detail-item dt { color: var(--gp-muted); font-size: 12px; margin-bottom: 7px; }
.gp-detail dd, .detail-item dd { margin: 0; color: var(--gp-text); font-size: 14px; overflow-wrap: anywhere; white-space: pre-wrap; }
.gp-detail-icon { display: inline-flex; align-items: center; justify-content: center; width: 29px; height: 29px; color: var(--gp-blue); background: var(--gp-soft-blue); border-radius: 8px; margin-left: 8px; }
.gp-detail-icon svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.gp-note { display: flex; align-items: flex-start; gap: 12px; padding: 15px 18px; border-radius: 12px; background: var(--gp-soft-blue); border: 1px solid var(--gp-border); color: var(--gp-navy); font-size: 12px; }
.gp-note p { margin: 0; }
.gp-note-icon { display: inline-flex; flex: 0 0 21px; margin-top: 2px; }
.gp-note-icon svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.gp-ltr { direction: ltr; unicode-bidi: isolate; text-align: right; }

/* 9. Dashboard: same hero/cards; existing live statistics and actions only. */
.gp-dashboard-nav { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.gp-dashboard-nav a { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 6px 12px; border: 1px solid var(--gp-border); border-radius: 9px; background: var(--gp-white); color: var(--gp-navy); font-size: 11px; }
.gp-dashboard-nav a:hover { background: var(--gp-soft-blue); text-decoration: none; }
.gp-dashboard-stats .gp-stat { padding: 18px 20px; min-height: 118px; }
.gp-dashboard-stats .gp-stat::before { content: ""; position: absolute; right: 20px; top: 19px; width: 4px; height: 4px; border-radius: 50%; background: var(--gp-gold); }
.gp-dashboard-stats .gp-stat-label { padding-right: 12px; }
.gp-dashboard-stats .gp-stat-value { font-size: 30px; line-height: 1.4; margin-top: 10px; }
.gp-shortcuts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; padding: 20px 22px; }
.gp-shortcut {
    display: flex; align-items: center; gap: 11px; min-width: 0; padding: 16px 14px;
    border: 1px solid var(--gp-border); border-radius: 12px; background: var(--gp-white);
    color: var(--gp-navy); transition: border-color .15s ease, background-color .15s ease;
}
.gp-shortcut:hover { border-color: rgba(36, 75, 145, .30); background: var(--gp-soft-blue); text-decoration: none; }
.gp-shortcut-icon { width: 36px; height: 36px; flex: 0 0 36px; display: grid; place-items: center; border-radius: 10px; background: var(--gp-soft-blue); color: var(--gp-blue); }
.gp-shortcut-icon svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.gp-shortcut-copy { flex: 1; min-width: 0; }
.gp-shortcut-copy strong { display: block; font-size: 12px; line-height: 1.8; }
.gp-shortcut-copy small { display: block; color: var(--gp-muted); font-size: 10px; margin-top: 3px; line-height: 1.8; }
.gp-shortcut-arrow { color: var(--gp-blue); font-size: 18px; }

/* 10. Login uses the same identity, card radius, fields and actions. */
body.gp-login { background: var(--gp-background); }
.gp-login #LoginForm { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 36px 24px; }
.login-page {
    width: 100%; max-width: 1080px; display: grid; grid-template-columns: 1fr 1fr;
    border: 1px solid var(--gp-border); border-radius: var(--gp-radius); overflow: hidden;
    background: var(--gp-white); box-shadow: 0 16px 48px rgba(16, 41, 81, .08);
}
.login-story {
    position: relative; isolation: isolate; display: flex; flex-direction: column; justify-content: space-between;
    gap: 40px; padding: 36px 38px; color: var(--gp-white); overflow: hidden;
    background: linear-gradient(145deg, var(--gp-blue), var(--gp-navy) 48%, var(--gp-deep));
}
.login-story::after {
    content: ""; position: absolute; left: -190px; bottom: -220px; z-index: -1;
    width: 480px; height: 480px; border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 50%; box-shadow: 0 0 0 54px rgba(255, 255, 255, .025), 0 0 0 108px rgba(255, 255, 255, .02);
}
.brand { display: flex; align-items: center; gap: 12px; color: var(--gp-white); }
.brand-mark { width: 44px; height: 44px; flex: 0 0 44px; display: grid; place-items: center; border: 1px solid rgba(255, 255, 255, .20); border-radius: 12px; background: rgba(255, 255, 255, .06); color: var(--gp-gold); }
.brand-mark svg { width: 27px; height: 27px; }
.brand-title { display: block; font-size: 17px; line-height: 1.7; font-weight: 700; }
.brand-subtitle { display: block; font-size: 11px; line-height: 1.7; color: rgba(255, 255, 255, .72); }
.login-story .gp-eyebrow { color: var(--gp-gold); margin-bottom: 12px; }
.login-story h1 { color: var(--gp-white); font-size: 31px; line-height: 1.7; margin: 0 0 14px; }
.login-story p { color: rgba(255, 255, 255, .76); font-size: 13px; line-height: 2; margin: 0; }
.login-features { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 13px; font-size: 12px; color: rgba(255, 255, 255, .88); }
.login-features li { display: flex; align-items: center; gap: 10px; }
.login-features li::before { content: "✓"; display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; flex: 0 0 20px; border-radius: 6px; background: rgba(213, 163, 41, .12); color: var(--gp-gold); font-size: 11px; }
.login-story-footer { font-size: 10px; color: rgba(255, 255, 255, .56); border-top: 1px solid rgba(255, 255, 255, .12); padding-top: 16px; }
.login-main { display: flex; align-items: center; justify-content: center; padding: 40px 38px; min-width: 0; }
.login-card { width: 100%; max-width: 360px; }
.login-card .gp-eyebrow { font-size: 12px; margin-bottom: 8px; }
.login-card h2 { font-size: 25px; margin: 0 0 10px; }
.login-card > p { margin: 0 0 24px; color: var(--gp-muted); font-size: 12px; line-height: 1.9; }
.login-card .gp-form-field { margin-bottom: 18px; }
.login-card .btn { width: 100%; min-height: 46px; margin-top: 6px; }
.login-card .login-hint { font-size: 11px; margin-top: 22px; margin-bottom: 0; text-align: center; line-height: 1.9; }
.login-card .notice { margin-bottom: 18px; }

/* 11. Responsive layouts. Off-canvas navigation always enters from the RIGHT. */
@media (min-width: 1600px) {
    .content { padding-right: 36px; padding-left: 36px; }
}
@media (max-width: 1250px) {
    :root { --gp-sidebar-width: 228px; }
    .topbar { padding-right: 20px; padding-left: 20px; }
    .content { padding: 22px; }
    .gp-topbar-date { display: none; }
    .gp-shortcuts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .gp-page-header { padding: 23px; gap: 14px; }
}
@media (max-width: 1024px) {
    :root { --gp-header-height: 72px; }
    .workspace { margin-right: 0; }
    .topbar { padding: 10px 20px; gap: 14px; }
    .menu-toggle {
        display: inline-flex; align-items: center; justify-content: center; flex: 0 0 38px;
        width: 38px; height: 40px; padding: 0; font-size: 22px; border: 1px solid var(--gp-border);
        border-radius: 9px; background: var(--gp-white); color: var(--gp-navy);
    }
    .sidebar {
        width: 280px; max-width: 85vw; top: 0; padding-top: 56px; z-index: 70;
        transform: translateX(105%); visibility: hidden;
        transition: transform .2s ease, visibility .2s ease;
    }
    .nav-open .sidebar { transform: translateX(0); visibility: visible; }
    body.nav-open { overflow: hidden; }
    .mobile-close {
        position: absolute; top: 12px; left: 14px; display: inline-flex; align-items: center; justify-content: center;
        width: 34px; height: 34px; padding: 0; border: 1px solid rgba(255, 255, 255, .18);
        border-radius: 9px; color: var(--gp-white); background: rgba(255, 255, 255, .05); font-size: 24px;
    }
    .mobile-backdrop { position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 60; background: rgba(16, 41, 81, .48); }
    .nav-open .mobile-backdrop { display: block; }
}
@media (max-width: 760px) {
    .content { padding: 18px; }
    .gp-stats, .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
    .gp-project-summary .gp-stat { border-bottom: 1px solid var(--gp-border); }
    .gp-project-summary .gp-stat:nth-child(even) { border-left: 0; }
    .gp-project-summary .gp-stat:nth-last-child(-n+2) { border-bottom: 0; }
    .gp-page-header { flex-wrap: wrap; min-height: 0; padding: 20px; }
    .gp-page-icon { width: 46px; height: 46px; flex-basis: 46px; border-radius: 12px; }
    .gp-page-icon svg { width: 24px; height: 24px; }
    .gp-page-header h1 { font-size: 21px; }
    .gp-page-actions { flex-basis: 100%; padding-top: 2px; }
    .gp-page-header .gp-eyebrow { font-size: 10px; }
    .gp-card-header, .section-header { padding: 16px 18px; }
    .gp-card-body, .section-body { padding: 18px; }
    .gp-card:not(.gp-project-context) > .gp-actions { padding: 16px 18px 18px; }
    .gp-card > .notice { margin: 18px; }
    .gp-toolbar, .filter-toolbar { padding: 14px 18px; }
    .gp-table-wrap .data-table, .table-scroll .data-table { min-width: 620px; }
    .data-table th, .data-table td { padding: 11px 13px; }
    .gp-shortcuts { padding: 18px; }
    .gp-form-inset { margin: 18px; }
    .gp-login #LoginForm { align-items: flex-start; padding: 24px 18px; }
    .login-page { max-width: 560px; grid-template-columns: 1fr; }
    .login-story { padding: 25px 28px; gap: 24px; }
    .login-story h1 { font-size: 25px; margin-bottom: 10px; }
    .login-story p { font-size: 12px; }
    .login-features { grid-template-columns: 1fr; gap: 7px; margin-top: 18px; font-size: 11px; }
    .login-story-footer { display: none; }
    .login-main { padding: 30px 28px; }
    .login-card { max-width: none; }
}
@media (max-width: 680px) {
    .gp-form-grid, .form-grid, .gp-details-grid, .details-grid { grid-template-columns: 1fr; gap: 18px; }
    .gp-topbar-actions { gap: 0; }
    .account-text { display: none; }
    .logout-link { padding: 6px 9px; font-size: 10px; margin-right: 0; }
    .gp-topbar-title { font-size: 14px; }
    .gp-topbar-subtitle { font-size: 10px; }
    .gp-topbar-logo { width: 38px; height: 38px; flex-basis: 38px; border-radius: 11px; }
    .gp-topbar-logo svg { width: 26px; height: 26px; }
    .gp-toolbar { align-items: stretch; }
    .gp-toolbar .table-count { margin-right: 0; }
    .table-search, .gp-search, .gp-search-field { max-width: none; flex-basis: 100%; width: 100%; }
    .gp-toolbar > .btn { min-height: 42px; }
}
@media (max-width: 480px) {
    :root { --gp-space: 16px; --gp-header-height: 68px; }
    .topbar { padding: 9px 12px; gap: 8px; }
    .gp-topbar-brand, .gp-topbar-home, .topbar-account { gap: 8px; }
    .gp-topbar-logo { display: none; }
    .gp-topbar-title { font-size: 13px; }
    .gp-topbar-subtitle { font-size: 9px; }
    .account-avatar { width: 32px; height: 32px; flex-basis: 32px; }
    .menu-toggle { width: 34px; height: 38px; flex-basis: 34px; }
    .content { padding: 15px 12px; }
    .gp-breadcrumb { margin-bottom: 12px; font-size: 10px; }
    .gp-page-header { padding: 18px 16px; gap: 12px; }
    .gp-page-header h1 { font-size: 19px; }
    .gp-page-header p { font-size: 11px; }
    .gp-page-icon { width: 40px; height: 40px; flex-basis: 40px; border-radius: 11px; }
    .gp-page-copy { flex-basis: calc(100% - 56px); }
    .gp-stat { padding: 15px; }
    .gp-dashboard-stats .gp-stat { min-height: 108px; padding: 15px; }
    .gp-dashboard-stats .gp-stat::before { right: 15px; top: 16px; }
    .gp-dashboard-stats .gp-stat-value { font-size: 27px; }
    .gp-stat-label { font-size: 11px; }
    .gp-card-header, .section-header, .gp-toolbar, .filter-toolbar { padding: 14px 16px; }
    .gp-card-body, .section-body { padding: 16px; }
    .gp-card:not(.gp-project-context) > .gp-actions { padding: 14px 16px 16px; }
    .gp-card > .notice { margin: 16px; }
    .gp-card-header h2, .section-header h2 { font-size: 15px; }
    .gp-shortcuts { grid-template-columns: 1fr; padding: 16px; gap: 10px; }
    .gp-shortcut { padding: 12px 14px; }
    .gp-actions { gap: 8px; }
    .gp-actions .btn { flex: 1 1 auto; font-size: 12px; }
    .gp-project-summary .gp-stat { padding: 14px 12px; }
    .gp-project-context > .gp-actions { padding: 12px 16px; }
    .gp-tabs { gap: 4px; padding: 5px; }
    .gp-tab { padding: 8px 12px; }
    .app-footer { margin-top: 22px; font-size: 10px; }
    .gp-login #LoginForm { padding: 14px 12px; }
    .login-story, .login-main { padding: 24px; }
    .login-story h1 { font-size: 23px; }
    .login-card h2 { font-size: 23px; }
}
@media (max-width: 350px) {
    .gp-topbar-subtitle { display: none; }
    .gp-project-summary { grid-template-columns: 1fr; }
    .gp-project-summary .gp-stat { border-left: 0; border-bottom: 1px solid var(--gp-border); }
    .gp-project-summary .gp-stat:last-child { border-bottom: 0; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

/* 12. Screen-page print safety; the official document is refined by print.css. */
@media print {
    .topbar, .sidebar, .app-footer, .mobile-backdrop, .skip-link,
    .gp-page-actions, .gp-toolbar, .filter-toolbar, .gp-actions, .form-actions,
    .gp-dashboard-nav, .no-print { display: none !important; }
    .workspace { margin: 0; padding: 0; }
    .content { padding: 0; max-width: none; }
    .gp-card, .portal-section, .gp-stat { box-shadow: none; }
    .gp-table-wrap, .table-scroll { overflow: visible; }
    .data-table { min-width: 0 !important; }
    thead { display: table-header-group; }
    tr { break-inside: avoid; }
}
