.ug-workspace {
    --paper: #f5f3ee;
    --surface: #fffdf9;
    --ink: #201e1a;
    --line: #e1dcd1;
    --muted: #625d53;
    --gold: #f4b651;
    --charcoal: #201f25;
    background: var(--paper);
    font-family: Inter, Arial, sans-serif;
}
.ug-workspace [hidden] { display: none !important; }
.ug-workspace .shell { max-width: 1152px; }
.ug-top {
    position: sticky;
    z-index: 5;
    top: 0;
    padding-top: 14px;
    pointer-events: none;
}
.ug-bar {
    pointer-events: auto;
    min-height: 66px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 20px;
    padding: 8px 14px 8px 22px;
    border: 1px solid #fff;
    border-radius: 22px;
    background: #fdfbf6;
    box-shadow: 0 10px 24px #32261416, inset 0 1px 1px #fff;
    animation: ug-bar-enter .45s cubic-bezier(.2,.8,.2,1) both;
}
@supports (backdrop-filter: blur(16px)) {
    .ug-bar {
        background: linear-gradient(135deg, #fffdfaeb, #fbf6e9ba);
        backdrop-filter: blur(18px) saturate(155%);
    }
}
.ug-wordmark { text-decoration: none; color: #1d1a17; font-weight: 850; letter-spacing: .07em; font-size: 14px; width: max-content; }
.ug-wordmark span { margin-left: .3em; color: #805415; }
.ug-nav { display: flex; padding: 4px; gap: 3px; border-radius: 12px; background: #3029170b; }
.ug-nav a, .ug-signout { text-decoration: none; font: inherit; color: var(--ink); border: 0; border-radius: 9px; white-space: nowrap; padding: 7px 12px; font-size: 13px; font-weight: 680; background: transparent; cursor: pointer; transition: transform .22s, box-shadow .22s, background .22s; }
.ug-nav a[aria-current], .ug-nav a:hover, .ug-signout:hover { background: #fffefa; box-shadow: 0 2px 6px #30291717; }
.ug-nav a:active, .ug-signout:active, .ug-action:active { transform: scale(.97); }
.ug-bar > .ug-signout { grid-column: 3; justify-self: end; }
.ug-account { display: flex; justify-content: end; align-items: center; gap: 8px; }
.ug-avatar { display: grid; align-items: center; border-radius: 12px; background: #fff; box-shadow: 0 0 0 1px #ded8ca; overflow: hidden; }
.ug-avatar img, .ug-profile-logo { object-fit: contain; padding: 4px; background: white; }
.ug-workspace main.ug-main { padding-top: clamp(24px, 4vw, 48px); }
.ug-profile {
    position: relative;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: clamp(16px, 3vw, 32px);
    min-height: 228px;
    margin-bottom: 42px;
    padding: clamp(22px, 5vw, 52px);
    border-radius: 26px;
    background: radial-gradient(ellipse at 92% 105%, #51402e 0%, transparent 53%), #24232b;
    color: #fffdf6;
    overflow: hidden;
}
.ug-profile::before { position: absolute; inset: 0; content: ""; opacity: .44; pointer-events: none; background: repeating-linear-gradient(125deg, transparent 0 35px, #f7d59e20 35px 36px, transparent 36px 65px); mask-image: linear-gradient(to left, #000, transparent 72%); }
.ug-profile > * { z-index: 1; }
.ug-profile-logo { border-radius: 20px; box-shadow: 0 0 0 1px #fffc; max-width: 100%; }
.ug-profile-copy p { color: #e8c690; margin-bottom: 9px; font-size: 13px; font-weight: 660; }
.ug-profile-copy h1 { font-size: clamp(30px, 5vw, 64px); margin: 0; letter-spacing: -.055em; overflow-wrap: anywhere; }
.ug-action { margin: 0; padding: 13px 18px; border-radius: 11px; background: var(--gold); color: #2a1d10; transition: transform .22s, background .22s, box-shadow .22s; }
.ug-action span { margin-left: .7em; }
.ug-action:hover { background: #ffc974; box-shadow: 0 5px 16px #b8732135; transform: translateY(-2px); }
.ug-list-heading { display: flex; gap: 12px; align-items: center; margin-bottom: 16px; }
.ug-list-heading h2 { margin: 0; font-size: clamp(22px, 4vw, 30px); letter-spacing: -.035em; }
.ug-list-heading span { color: var(--muted); border: 1px solid var(--line); border-radius: 10px; padding: 2px 8px; font-size: 13px; }
.ug-empty { min-height: 140px; display: grid; align-content: center; }
.ug-empty h3 { margin-bottom: 4px; }
.ug-empty p { color: var(--muted); }
.ug-projects { display: grid; gap: 8px; margin-bottom: 20px; }
.ug-project-row { display: grid; grid-template-columns: 72px minmax(0, 1fr) auto 24px; align-items: center; gap: 18px; padding: 13px; border: 1px solid var(--line); background: var(--surface); border-radius: 14px; text-decoration: none; transition: background .2s, transform .2s; }
.ug-project-row:hover { background: #fff; transform: translateX(3px); }
.ug-project-row img { object-fit: cover; border-radius: 7px; background: #e4ddce; }
.ug-project-row .record-title { overflow-wrap: anywhere; }
.ug-row-arrow { color: #795620; font-size: 18px; }
.ug-page-intro { margin-bottom: 24px; }
.ug-page-intro h1 { margin: 16px 0 6px; font-size: clamp(37px, 7vw, 70px); }
.ug-page-intro p, .ug-section-title p { color: var(--muted); margin: 0; }
.ug-back { color: #6c4c1b; font-weight: 680; font-size: 14px; }
.ug-section-title { margin: 30px 0 12px; }
.ug-section-title h2 { margin-bottom: 5px; font-size: clamp(23px, 4vw, 32px); letter-spacing: -.035em; }
.ug-workspace .panel { border-radius: 17px; }
.ug-form-card { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(215px, 1fr); gap: clamp(18px, 4vw, 52px); align-items: start; }
.ug-form-card h3 { font-size: clamp(17px, 3vw, 21px); line-height: 1.25; }
.ug-summary h3 { font-size: 15px; margin-bottom: 10px; }
.ug-checklist { list-style: none; margin: 0; padding: 0; color: #504a3f; }
.ug-checklist li { padding-block: 7px; border-bottom: 1px solid #ede8de; font-size: 14px; }
.ug-checklist li:last-child { border-bottom: 0; }
.ug-drop {
    position: relative;
    display: grid;
    place-items: center;
    min-height: 148px;
    border: 1px dashed #af9974;
    border-radius: 12px;
    margin: 0;
    padding: 14px;
    color: #50483b;
    background: #faf7f0;
    cursor: pointer;
    transition: background .24s, box-shadow .24s, border-color .24s;
}
.ug-drop:hover, .ug-drop.is-dragging, .ug-drop:focus-within { border-color: #996117; background: #fff2d8; box-shadow: inset 0 0 0 1px #cd942d68; }
.ug-drop input[type=file] { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.ug-drop-content { pointer-events: none; display: grid; justify-items: center; text-align: center; gap: 2px; line-height: 1.45; font-size: 13px; font-weight: 450; }
.ug-drop-content strong { font-size: 15px; color: #29251e; }
.ug-upload-symbol { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 9px; margin-bottom: 6px; background: #f1e1c2; color: #674412; font-size: 23px; line-height: 1; transition: transform .24s; }
.ug-drop.is-dragging .ug-upload-symbol, .ug-drop:hover .ug-upload-symbol { transform: translateY(-3px); }
.ug-files { padding: 0; margin: 8px 0 0; list-style: none; display: grid; gap: 5px; }
.ug-file { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 3px 8px; padding: 7px 9px; background: #f5f2e9; border-radius: 7px; animation: ug-row-enter .23s ease-out both; }
.ug-file-name { font-size: 13px; overflow-wrap: anywhere; }
.ug-file button { border: 0; background: transparent; color: #725020; cursor: pointer; font: inherit; font-size: 13px; padding: 4px; }
.ug-file-meter { grid-column: 1/-1; height: 6px; background: #e7dfd0; border-radius: 6px; overflow: hidden; }
.ug-file-meter > span { display: block; height: 100%; width: 0; background: #986b23; transition: width .32s cubic-bezier(.2,.8,.25,1); }
.ug-file[data-state=done] .ug-file-meter > span { background: #5c794b; }
.ug-file-status { grid-column: 1/-1; font-size: 12px; color: var(--muted); }
.ug-file[data-state=done] { background: #edf3e6; }
.ug-file-error { color: #8a3026; margin-top: 8px; font-size: 13px; }
.ug-submit-card .check { padding: 10px 0; margin-bottom: 16px; }
.ug-workspace .auth-panel { max-width: 565px; margin-top: 10px; padding: clamp(25px, 5vw, 48px); border-top: 4px solid var(--gold); box-shadow: 0 14px 50px #3629100b; }
.ug-workspace .auth-panel .button { width: 100%; border-radius: 10px; }
.ug-workspace .policy { margin-inline: auto; padding: clamp(24px, 5vw, 52px); }
.ug-workspace .policy section { margin: 24px 0; }
.ug-detail-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(220px, .7fr); gap: 16px; align-items: start; }
.ug-detail-grid .project-image { width: 100%; aspect-ratio: 4/3; object-fit: contain; background: #e8e1d2; }
.ug-detail-grid h3 { margin: 18px 0 5px; }
.ug-detail-grid ul { padding-left: 18px; overflow-wrap: anywhere; }
.ug-footer { color: var(--muted); }
@keyframes ug-bar-enter { from { opacity: .55; transform: translateY(-8px) scale(.985); } to { opacity: 1; transform: none; } }
@keyframes ug-row-enter { from { opacity: .3; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@media (max-width: 680px) {
    .ug-bar { grid-template-columns: minmax(0, 1fr) auto; gap: 7px; padding: 8px 10px 8px 13px; border-radius: 16px; }
    .ug-bar > .ug-signout { grid-column: 2; }
    .ug-account { grid-column: 2; grid-row: 1; }
    .ug-nav { grid-column: 1/-1; justify-content: stretch; }
    .ug-nav a { flex: 1; text-align: center; }
    .ug-profile { grid-template-columns: 58px minmax(0, 1fr); min-height: auto; }
    .ug-profile-logo { width: 58px; height: 58px; border-radius: 12px; }
    .ug-profile .ug-action { grid-column: 1/-1; justify-self: start; }
    .ug-form-card, .ug-detail-grid { grid-template-columns: minmax(0, 1fr); }
    .ug-project-row { grid-template-columns: 54px minmax(0, 1fr) 22px; gap: 8px; }
    .ug-project-row img { width: 54px; height: 44px; grid-row: span 2; }
    .ug-project-row .status { grid-column: 2; grid-row: 2; justify-self: start; }
    .ug-row-arrow { grid-column: 3; grid-row: 1 / span 2; }
}
@media (prefers-reduced-motion: reduce) {
    .ug-workspace *, .ug-workspace *::before, .ug-workspace *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

.ug-auth-layout { display: grid; grid-template-columns: minmax(240px,.82fr) minmax(0,1fr); align-items: start; gap: 13px; margin: 12px auto 0; max-width: 900px; }
.ug-auth-art { display: grid; align-content: end; min-height: 414px; padding: clamp(22px,5vw,44px); border-radius: 17px; color: #fff8e9; background: radial-gradient(ellipse at 98% 100%, #5c4128, transparent 65%), repeating-linear-gradient(122deg,#322d36 0 1px, transparent 1px 28px), #24232b; }
.ug-auth-art h2 { font-size: clamp(22px,4vw,37px); letter-spacing: -.045em; }
.ug-auth-art p { margin-bottom: 0; color: #e4d4bc; }
.ug-auth-layout .auth-panel { width: 100%; margin: 0; }
@media (max-width: 680px) {
    .ug-auth-layout { grid-template-columns: 1fr; }
    .ug-auth-art { min-height: 130px; }
}
