:root {
    --pw-bg: #f6f5f2;
    --pw-bg-accent: #eef3f6;
    --pw-text: #0f172a;
    --pw-muted: #5b6b7d;
    --pw-brand: #0e7490;
    --pw-brand-dark: #0b5568;
    --pw-line: #dbe4ea;
    --pw-card: rgba(255, 255, 255, 0.88);
    --pw-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
    --pw-radius: 22px;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    background: radial-gradient(1200px 800px at 10% -10%, #ffffff 0%, var(--pw-bg) 55%, var(--pw-bg-accent) 100%);
    color: var(--pw-text);
    font-family: "DM Sans", "Segoe UI", "Helvetica Neue", sans-serif;
    line-height: 1.6;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    display: block;
    max-width: 100%;
}

.pw-shell {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    min-height: 100vh;
}

.pw-sidebar {
    position: sticky;
    top: 0;
    align-self: start;
    min-height: 100vh;
    padding: 28px 22px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(255, 255, 255, 0.66));
    border-right: 1px solid rgba(219, 228, 234, 0.9);
    backdrop-filter: blur(10px);
}

.pw-brand {
    display: block;
    padding: 6px 2px 2px 28px;
    align-self: center;
}

.pw-brand strong,
.pw-topbar h1,
.pw-public-hero h1,
.pw-card h2 {
    font-family: "Fraunces", "Times New Roman", serif;
}

.pw-brand strong {
    display: block;
    color: #163b6d;
    font-size: 2rem;
    font-style: italic;
    font-weight: 700;
    line-height: 1;
}

.pw-brand span,
.pw-lead,
.pw-card p,
.pw-panel p,
.pw-feed-item p,
.pw-folder-item p,
.pw-download-item p,
.pw-list,
.pw-helper {
    color: var(--pw-muted);
}

.pw-brand span {
    display: block;
    margin-top: 4px;
    font-size: 0.98rem;
}

.pw-badge,
.pw-kicker,
.pw-eyebrow,
.pw-file-type,
.pw-download-action,
.pw-status-pill,
.pw-muted-pill {
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.pw-badge,
.pw-status-pill,
.pw-muted-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 8px 12px;
    border-radius: 999px;
    font-size: 0.74rem;
    font-weight: 700;
}

.pw-badge {
    margin: 24px 0 18px;
    background: rgba(14, 116, 144, 0.12);
    color: var(--pw-brand-dark);
}

.pw-status-pill.is-live {
    background: rgba(14, 116, 144, 0.12);
    color: var(--pw-brand-dark);
}

.pw-muted-pill {
    background: rgba(91, 107, 125, 0.1);
    color: var(--pw-muted);
}

.pw-nav {
    display: grid;
    gap: 8px;
    margin-bottom: 24px;
}

.pw-nav a {
    padding: 11px 14px;
    border-radius: 14px;
    color: var(--pw-muted);
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.pw-nav a:hover,
.pw-nav a.is-active {
    background: rgba(14, 116, 144, 0.1);
    color: var(--pw-text);
    transform: translateX(2px);
}

.pw-main,
.pw-public-page {
    width: min(1120px, calc(100% - 40px));
    margin: 0 auto;
    padding: 28px 0 40px;
}

.pw-topbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 24px;
    align-items: start;
    margin-bottom: 20px;
}

.pw-topbar h1,
.pw-public-hero h1 {
    margin: 0;
    line-height: 1.05;
    font-size: clamp(2.15rem, 4vw, 3.2rem);
}

.pw-kicker,
.pw-eyebrow {
    margin: 0 0 8px;
    color: var(--pw-brand-dark);
    font-size: 0.74rem;
    font-weight: 700;
}

.pw-lead {
    margin: 10px 0 0;
    max-width: 760px;
    font-size: 1.03rem;
}

.pw-top-actions,
.pw-public-actions,
.pw-pill-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.pw-top-actions,
.pw-public-actions {
    justify-content: flex-end;
}

.pw-card,
.pw-panel {
    background: var(--pw-card);
    border: 1px solid rgba(219, 228, 234, 0.95);
    border-radius: var(--pw-radius);
    box-shadow: var(--pw-shadow);
    backdrop-filter: blur(8px);
}

.pw-card {
    padding: 22px;
    margin-bottom: 18px;
}

.pw-panel {
    padding: 20px;
}

.pw-card h2 {
    margin: 0 0 10px;
    font-size: 1.6rem;
}

.pw-note-list,
.pw-folder-list,
.pw-download-list {
    display: grid;
    gap: 14px;
    margin-top: 14px;
}

.pw-feed-item,
.pw-folder-item,
.pw-download-item {
    padding: 16px 18px;
    border: 1px solid var(--pw-line);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.76);
}

.pw-feed-item strong,
.pw-folder-item h3,
.pw-download-item h3 {
    display: block;
    margin: 0 0 6px;
    font-size: 1.05rem;
}

.pw-folder-item {
    display: grid;
    gap: 10px;
}

.pw-folder-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    color: var(--pw-muted);
    font-size: 0.92rem;
}

.pw-folder-meta a,
.pw-inline-link {
    color: var(--pw-brand-dark);
    font-weight: 700;
}

.pw-folder-meta a:hover,
.pw-inline-link:hover {
    text-decoration: underline;
}

.pw-two-up,
.pw-public-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(280px, 1fr);
    gap: 18px;
    align-items: start;
}

.pw-list {
    margin: 12px 0 0;
    padding-left: 18px;
}

.pw-note {
    margin-top: 18px;
    padding: 16px 18px;
    border-radius: 18px;
    background: rgba(14, 116, 144, 0.08);
}

.pw-note strong {
    display: block;
    margin-bottom: 6px;
}

.pw-public-body {
    background: radial-gradient(1200px 800px at 10% -10%, #ffffff 0%, var(--pw-bg) 55%, var(--pw-bg-accent) 100%);
}

.pw-login-body {
    min-height: 100vh;
    background:
        radial-gradient(1000px 700px at 15% 10%, rgba(22, 59, 109, 0.1), transparent 55%),
        radial-gradient(900px 640px at 85% 80%, rgba(14, 116, 144, 0.12), transparent 50%),
        linear-gradient(180deg, #f7fafc 0%, #edf3f7 100%);
}

.pw-login-shell {
    position: relative;
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 32px 20px;
    overflow: hidden;
}

.pw-login-background {
    position: absolute;
    inset: 50% auto auto 50%;
    transform: translate(-50%, -50%);
    font-family: "Fraunces", "Times New Roman", serif;
    font-size: clamp(4rem, 14vw, 11rem);
    font-style: italic;
    font-weight: 700;
    color: rgba(22, 59, 109, 0.12);
    white-space: nowrap;
    filter: blur(6px);
    pointer-events: none;
}

.pw-login-card {
    position: relative;
    z-index: 1;
    width: min(480px, 100%);
    padding: 34px 30px 30px;
    border: 1px solid rgba(219, 228, 234, 0.95);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 24px 50px rgba(15, 23, 42, 0.12);
    backdrop-filter: blur(12px);
}

.pw-login-logo {
    width: 180px;
    margin: 0 auto 10px;
}

.pw-login-brand {
    display: grid;
    justify-items: center;
    text-align: center;
    margin-bottom: 28px;
}

.pw-login-brand strong {
    color: #163b6d;
    font-family: "Fraunces", "Times New Roman", serif;
    font-size: 2rem;
    font-style: italic;
    font-weight: 700;
    line-height: 1;
}

.pw-login-brand span {
    margin-top: 6px;
    color: var(--pw-muted);
    font-size: 0.98rem;
}

.pw-login-card h1 {
    margin: 0 0 8px;
    font-family: "DM Sans", "Segoe UI", "Helvetica Neue", sans-serif;
    font-size: 1.85rem;
    line-height: 1.08;
}

.pw-login-copy {
    margin: 0 0 22px;
    color: var(--pw-muted);
}

.pw-login-form {
    display: grid;
    gap: 14px;
}

.pw-login-field {
    display: grid;
    gap: 6px;
}

.pw-login-field span {
    font-size: 0.84rem;
    font-weight: 700;
    color: var(--pw-brand-dark);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.pw-login-field input {
    min-height: 52px;
    padding: 12px 14px;
    border: 1px solid var(--pw-line);
    border-radius: 14px;
    background: #ffffff;
    color: var(--pw-text);
    font: inherit;
}

.pw-login-field input:focus {
    outline: 2px solid rgba(14, 116, 144, 0.24);
    outline-offset: 2px;
}

.pw-login-error {
    min-height: 20px;
    margin: 0;
    color: #b42318;
    font-size: 0.92rem;
}

.pw-login-submit {
    margin-top: 6px;
}

.pw-public-page {
    width: min(1080px, calc(100% - 32px));
}

.pw-public-hero {
    display: grid;
    gap: 18px;
    margin-bottom: 20px;
}

.pw-download-item {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: center;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.pw-download-item:hover {
    border-color: rgba(14, 116, 144, 0.34);
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.06);
    transform: translateY(-2px);
}

.pw-file-type {
    display: inline-flex;
    margin-bottom: 8px;
    color: var(--pw-brand-dark);
    font-size: 0.72rem;
    font-weight: 700;
}

.pw-download-action {
    color: var(--pw-brand-dark);
    font-size: 0.76rem;
    font-weight: 700;
    white-space: nowrap;
}

.pw-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 12px 18px;
    border-radius: 999px;
    background: var(--pw-brand);
    color: #ffffff;
    font-weight: 700;
    box-shadow: 0 14px 28px rgba(14, 116, 144, 0.22);
}

.pw-panel .pw-button {
    margin-top: 10px;
}

.pw-button-secondary {
    background: transparent;
    color: var(--pw-brand-dark);
    border: 1px solid rgba(14, 116, 144, 0.3);
    box-shadow: none;
}

.pw-embed-wrap {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 18px;
    border: 1px solid var(--pw-line);
    background: #101827;
    aspect-ratio: 16 / 9;
}

.pw-embed-wrap iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.pw-card-head {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

.pw-group-list {
    display: grid;
    gap: 16px;
    margin-top: 18px;
}

.pw-doc-group {
    border: 1px solid var(--pw-line);
    border-radius: 14px;
    overflow: hidden;
    background: #ffffff;
}

.pw-doc-group-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 16px;
    border-bottom: 1px solid var(--pw-line);
    background: #f7fafc;
}

.pw-doc-group-head h3 {
    margin: 0;
    font-size: 1rem;
}

.pw-doc-group-head span {
    color: var(--pw-muted);
    font-size: 0.86rem;
    white-space: nowrap;
}

.pw-file-list {
    display: grid;
}

.pw-file-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    padding: 14px 16px;
    border-top: 1px solid var(--pw-line);
    background: #ffffff;
    transition: background 0.16s ease;
}

.pw-file-list .pw-file-row:first-child {
    border-top: 0;
}

.pw-file-row:hover {
    background: #f9fbfd;
}

.pw-file-row strong {
    display: block;
    margin-bottom: 4px;
    font-size: 0.98rem;
}

.pw-file-row p {
    margin: 0;
    font-size: 0.92rem;
}

.pw-public-body {
    background: #f4f7fa;
}

.pw-public-page {
    width: min(1100px, calc(100% - 32px));
    padding-top: 20px;
}

.pw-public-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 18px;
    align-items: end;
    margin-bottom: 18px;
    padding: 18px 20px;
    border: 1px solid var(--pw-line);
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04);
}

.pw-public-hero h1 {
    font-family: "DM Sans", "Segoe UI", "Helvetica Neue", sans-serif;
    font-size: 2rem;
    font-weight: 700;
}

.pw-public-hero .pw-lead {
    max-width: 760px;
    font-size: 0.98rem;
}

.pw-public-page .pw-card {
    background: #ffffff;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04);
    border-radius: 16px;
}

.pw-public-page .pw-card h2 {
    font-family: "DM Sans", "Segoe UI", "Helvetica Neue", sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
}

.pw-public-page .pw-note {
    background: #f7fafc;
}

.pw-public-page .pw-embed-wrap {
    border-radius: 12px;
}

@media (max-width: 1120px) {
    .pw-shell {
        grid-template-columns: 1fr;
    }

    .pw-sidebar {
        position: static;
        min-height: 0;
        border-right: 0;
        border-bottom: 1px solid rgba(219, 228, 234, 0.95);
    }

    .pw-topbar,
    .pw-two-up,
    .pw-public-layout,
    .pw-public-hero {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .pw-main,
    .pw-public-page {
        width: min(1080px, calc(100% - 24px));
        padding-top: 18px;
        padding-bottom: 28px;
    }

    .pw-sidebar {
        padding: 22px 16px;
    }

    .pw-card,
    .pw-panel {
        padding: 18px;
        border-radius: 20px;
    }

    .pw-top-actions,
    .pw-public-actions,
    .pw-card-head {
        justify-content: flex-start;
    }

    .pw-download-item {
        flex-direction: column;
        align-items: start;
    }

    .pw-doc-group-head,
    .pw-file-row {
        flex-direction: column;
        align-items: start;
    }
}

.pw-portal-body header .logo {
    height: clamp(82px, 10vw, 128px);
}

.pw-portal-body header.is-sticky .logo {
    height: clamp(54px, 6vw, 84px);
}

.pw-public-shell {
    width: min(1360px, calc(100% - 32px));
    margin: 18px auto 32px;
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    grid-template-areas:
        "top top"
        "sidebar main";
    gap: 20px;
    align-items: start;
}

.pw-nav-link {
    font-size: 1.2rem;
}

.pw-public-sidebar {
    grid-area: sidebar;
    position: sticky;
    top: 108px;
    display: grid;
    gap: 16px;
    align-self: start;
}

.pw-sidebar-window {
    border: 1px solid var(--pw-line);
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04);
    overflow: hidden;
}

.pw-team-list {
    display: grid;
    gap: 12px;
}

.pw-team-list article {
    display: grid;
    gap: 2px;
}

.pw-team-list strong {
    font-size: 0.82rem;
    color: var(--pw-brand-dark);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.pw-team-list span {
    color: var(--pw-text);
    font-size: 0.94rem;
}

.pw-public-nav {
    display: grid;
    gap: 6px;
    padding: 10px;
}

.pw-nav-section {
    margin: 10px 12px 2px;
    color: var(--pw-brand-dark);
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.pw-public-nav a.pw-nav-section-link {
    padding: 6px 12px;
    border-radius: 10px;
    background: transparent;
    color: var(--pw-brand-dark);
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.pw-public-nav a.pw-nav-section-link em {
    min-width: 18px;
    padding: 0;
    background: transparent;
    color: var(--pw-brand-dark);
    font-size: 0.9rem;
    font-weight: 700;
}

.pw-public-nav a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 11px 12px;
    border-radius: 12px;
    color: var(--pw-muted);
    font-size: 0.94rem;
    font-weight: 500;
    transition: background 0.16s ease, color 0.16s ease;
}

.pw-public-nav a.pw-nav-child {
    padding-left: 24px;
}

.pw-nav-issues {
    display: grid;
    gap: 6px;
    margin: -2px 0 6px;
    padding: 0 10px 2px 28px;
}

.pw-nav-issue-button {
    display: grid;
    gap: 2px;
    padding: 10px 12px;
    border: 1px solid transparent;
    border-radius: 12px;
    background: transparent;
    color: var(--pw-muted);
    text-align: left;
    cursor: pointer;
}

.pw-nav-issue-button strong {
    font-size: 0.88rem;
    font-weight: 600;
}

.pw-nav-issue-button span {
    color: var(--pw-muted);
    font-size: 0.76rem;
}

.pw-nav-issue-button:hover,
.pw-nav-issue-button.is-active {
    border-color: rgba(14, 116, 144, 0.18);
    background: #f6fafc;
    color: var(--pw-text);
}

.pw-public-nav a:hover,
.pw-public-nav a.is-active {
    background: #eef5f8;
    color: var(--pw-text);
}

.pw-public-nav a.pw-nav-section-link:hover,
.pw-public-nav a.pw-nav-section-link.is-active {
    background: rgba(14, 116, 144, 0.08);
    color: var(--pw-brand-dark);
}

.pw-public-nav em {
    min-width: 22px;
    padding: 2px 7px;
    border-radius: 999px;
    background: #f0f4f7;
    color: var(--pw-brand-dark);
    font-style: normal;
    font-size: 0.78rem;
    text-align: center;
}

.pw-public-main {
    grid-area: main;
    min-width: 0;
}

.pw-page-header {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: end;
    padding: 18px 20px;
    margin-bottom: 18px;
    border: 1px solid var(--pw-line);
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04);
}

.pw-page-header h1 {
    margin: 0;
    font-family: "DM Sans", "Segoe UI", "Helvetica Neue", sans-serif;
    font-size: 1.9rem;
    font-weight: 700;
    line-height: 1.08;
}

.pw-page-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
}

.pw-overview-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 18px;
}

.pw-overview-media {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
    gap: 18px;
    margin-bottom: 18px;
    align-items: stretch;
}

.pw-project-image-card {
    padding: 0;
    border: 1px solid var(--pw-line);
    border-radius: 16px;
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04);
    height: 100%;
}

.pw-project-image-slot {
    min-height: 280px;
    display: grid;
    place-items: center;
    text-align: center;
    padding: 28px;
    background:
        linear-gradient(135deg, rgba(14, 116, 144, 0.05), rgba(14, 116, 144, 0.02)),
        repeating-linear-gradient(
            45deg,
            rgba(14, 116, 144, 0.04),
            rgba(14, 116, 144, 0.04) 14px,
            rgba(255, 255, 255, 0.8) 14px,
            rgba(255, 255, 255, 0.8) 28px
        );
    border: 2px dashed rgba(14, 116, 144, 0.18);
    border-radius: 14px;
    margin: 16px;
}

.pw-project-image-slot strong {
    display: block;
    margin-bottom: 8px;
    font-size: 1.15rem;
}

.pw-project-image-slot p {
    max-width: 460px;
    margin: 0;
    color: var(--pw-muted);
}

.pw-project-image-slot.has-image {
    display: block;
    padding: 0;
    background: #eef2f7;
    border: 0;
    margin: 0;
    min-height: 0;
}

.pw-project-image-slot.has-image img {
    width: 100%;
    height: 100%;
    max-height: 420px;
    object-fit: cover;
    aspect-ratio: 16 / 10;
}

.pw-map-card {
    margin: 0;
    display: grid;
    grid-template-rows: auto 1fr auto auto;
    gap: 10px;
    padding: 16px;
    height: 100%;
}

.pw-map-frame-wrap {
    overflow: hidden;
    border: 1px solid var(--pw-line);
    border-radius: 14px;
    background: #eef2f7;
    min-height: 100%;
}

.pw-map-frame {
    width: 100%;
    height: 100%;
    border: 0;
}

.pw-map-meta {
    margin: 0;
}

.pw-overview-card {
    padding: 16px 18px;
    border: 1px solid var(--pw-line);
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04);
}

.pw-overview-card strong {
    display: block;
    margin-bottom: 6px;
    font-size: 1.3rem;
    line-height: 1.1;
}

.pw-overview-card p {
    margin: 0;
    color: var(--pw-muted);
}

.pw-discipline-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 14px;
}

.pw-discipline-link {
    display: grid;
    gap: 6px;
    padding: 16px;
    border: 1px solid var(--pw-line);
    border-radius: 14px;
    background: #ffffff;
    transition: border-color 0.16s ease, background 0.16s ease;
}

.pw-discipline-link:hover {
    border-color: rgba(14, 116, 144, 0.28);
    background: #f9fbfd;
}

.pw-discipline-link strong,
.pw-discipline-link em {
    font-style: normal;
}

.pw-discipline-link span {
    color: var(--pw-muted);
    font-size: 0.92rem;
}

.pw-discipline-link em {
    color: var(--pw-brand-dark);
    font-size: 0.82rem;
    font-weight: 700;
}

.pw-register-table {
    display: grid;
    border: 1px solid var(--pw-line);
    border-radius: 14px;
    overflow: hidden;
    background: #ffffff;
}

.pw-register-row {
    display: grid;
    grid-template-columns: 110px minmax(0, 1fr) 70px 110px 130px;
    gap: 16px;
    align-items: center;
    padding: 14px 16px;
    border-top: 1px solid var(--pw-line);
    color: var(--pw-text);
}

.pw-register-row-simple {
    grid-template-columns: minmax(0, 1fr) 120px 130px;
}

.pw-register-row[role="button"] {
    cursor: pointer;
}

.pw-register-table .pw-register-row:first-child {
    border-top: 0;
}

.pw-register-row:not(.pw-register-row-head):hover {
    background: #f9fbfd;
}

.pw-register-row[role="button"]:focus-visible {
    outline: 2px solid rgba(14, 116, 144, 0.35);
    outline-offset: -2px;
}

.pw-register-row-head {
    background: #f7fafc;
    color: var(--pw-muted);
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.pw-register-link {
    color: var(--pw-brand-dark);
    font-size: 0.84rem;
    font-weight: 700;
    white-space: nowrap;
    position: relative;
    z-index: 1;
}

.pw-modal-open {
    overflow: hidden;
}

.pw-preview-modal[hidden] {
    display: none;
}

.pw-preview-modal {
    position: fixed;
    inset: 0;
    z-index: 1200;
}

.pw-preview-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.52);
    backdrop-filter: blur(4px);
}

.pw-preview-dialog {
    position: absolute;
    inset: 32px;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    border-radius: 22px;
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 30px 60px rgba(15, 23, 42, 0.28);
}

.pw-preview-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 18px;
    border-bottom: 1px solid var(--pw-line);
}

.pw-preview-meta {
    min-width: 0;
}

.pw-preview-title {
    display: block;
    font-size: 1rem;
}

.pw-preview-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.pw-preview-close {
    width: 42px;
    height: 42px;
    border: 1px solid var(--pw-line);
    border-radius: 999px;
    background: #ffffff;
    color: var(--pw-text);
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
}

.pw-preview-frame {
    width: 100%;
    height: 100%;
    border: 0;
    background: #eef2f7;
}

.pw-contact-row {
    grid-template-columns: 110px minmax(180px, 1fr) minmax(130px, 0.75fr) minmax(320px, 1.4fr) 120px;
}

.pw-contact-row span,
.pw-contact-row a {
    min-width: 0;
    word-break: break-word;
}

@media (max-width: 1120px) {
    .pw-public-shell {
        grid-template-columns: 1fr;
        grid-template-areas:
            "top"
            "sidebar"
            "main";
    }

    .pw-public-topbar {
        grid-template-columns: 1fr;
    }

    .pw-public-sidebar {
        position: static;
    }

    .pw-project-panel {
        display: grid;
        gap: 10px;
        align-items: start;
        padding: 18px;
    }

    .pw-project-panel .pw-pill-row {
        margin-left: 0;
        justify-content: flex-start;
    }

    .pw-overview-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .pw-overview-media {
        grid-template-columns: 1fr;
    }

    .pw-page-header {
        flex-direction: column;
        align-items: start;
    }

    .pw-page-meta {
        justify-content: flex-start;
    }
}

@media (max-width: 720px) {
    .pw-public-shell {
        width: min(1360px, calc(100% - 20px));
    }

    .pw-project-image-slot {
        min-height: 220px;
    }

    .pw-overview-grid {
        grid-template-columns: 1fr;
    }

    .pw-register-row {
        grid-template-columns: 1fr;
        gap: 6px;
    }

    .pw-preview-dialog {
        inset: 16px;
    }

    .pw-preview-bar {
        align-items: start;
        flex-direction: column;
    }

    .pw-contact-row {
        grid-template-columns: 1fr;
    }

    .pw-register-row-head {
        display: none;
    }
}
