:root {
  --sidebar: 0px;
  --paper: #143740;
  --ink: #edf2ed;
  --muted: #b4c7ca;
  --line: #e5f2ed24;
  --lime: #d6e4ca;
}

body { position: relative; isolation: isolate; background: #173d47; color: #fff; font-size: 16px; }
body::before, body::after { content: ""; position: fixed; inset: 0; pointer-events: none; }
body::before { z-index: -2; background: #173d47 url('/assets/coast-mountains.webp') center / cover no-repeat; }
body::after { z-index: -1; background: linear-gradient(180deg, rgba(5,20,28,.48) 0%, rgba(5,20,28,.34) 40%, rgba(5,20,28,.15) 100%); }
.app-shell { min-height: 100dvh; }
.site-navigation { height: 106px; max-width: 1420px; margin: auto; padding: 0 52px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.site-navigation .brand { flex-direction: row; align-items: center; gap: 23px; padding: 0; flex-shrink: 0; color: #fff; }
.brand-word { font-size: 23px; letter-spacing: -.9px; }
.brand-dot { background: #d2e6c4; width: 4px; height: 4px; }
.brand-sub { margin: 0; font-size: 12px; color: #fff; font-weight: 500; letter-spacing: 2.6px; padding-left: 22px; border-left: 1px solid #ecf4f047; line-height: 20px; }
.navigation-actions { display: flex; align-items: center; gap: 23px; }
.navigation-link { color: #fff; background: none; border: 0; font-size: 14px; font-weight: 500; padding: 10px 0; }
.navigation-link:hover { color: #fff; }
.site-navigation .navigation-create { height: 36px; border-color: #eef7ee66; color: #fff; background: #102d3952; font-size: 13px; font-weight: 500; padding: 0 14px; backdrop-filter: blur(10px); }
.navigation-create:hover { background: #e5f4ee22; }
.navigation-create svg { width: 14px; height: 14px; }
.identity-button { margin: 0; padding: 0; gap: 8px; color: #fff; }
.identity-button strong { font-size: 13px; font-weight: 500; max-width: 90px; }
.site-navigation .brand, .navigation-link, .identity-button strong { text-shadow: 0 1px 6px #03151b91; }
.identity-button > span:last-child { color: #d0e1d4b3; }
.identity-button .avatar { background: #e9f4ec17; border: 1px solid #e9f4ec40; color: #e5f1e0; width: 30px; height: 30px; }
.main { margin-left: 0; padding: 0 38px 32px; }
.view { max-width: 1040px; }
.topbar { display: none; max-width: 1100px; height: 43px; margin: 0 auto 9px; border: 0; }
.project-open .topbar { display: flex; }
.breadcrumbs, .breadcrumbs button { color: #ffffffed; font-size: 12px; }
.breadcrumbs strong { color: #f2f8ef; }
.breadcrumb-slash { color: #e1f1e366; }
.page-intro { flex-direction: column; align-items: center; text-align: center; gap: 21px; padding: 33px 0 39px; }
.page-intro .eyebrow { justify-content: center; color: #ffffffeb; letter-spacing: 3px; font-size: 11px; font-weight: 500; text-shadow: 0 1px 6px #03151b80; }
.page-intro h1 { margin: 18px 0 15px; font: 500 49px/1.5 "Songti SC", "STSong", "Noto Serif CJK SC", serif; letter-spacing: 2px; color: #fff; text-shadow: 0 2px 14px #042530b3; text-wrap: balance; }
.intro-copy { font-size: 15px; color: #ffffffed; letter-spacing: 1.5px; font-weight: 500; text-shadow: 0 1px 6px #03151b80; }
.intro-side { padding: 0; align-items: center; gap: 0; }
.intro-side .button { height: 38px; padding: 0 19px; font-size: 13px; border-radius: 5px; background: #e7eee3ed; color: #325043; box-shadow: 0 3px 18px #15383d18; }
.intro-side .button:hover { background: #f3f6ed; }
.intro-side .button svg { width: 14px; height: 14px; }
.section-heading { padding: 3px 0 0; }
.section-heading h2 { font-size: 15px; font-weight: 500; letter-spacing: 1px; color: #fff; text-shadow: 0 1px 6px #03151b80; }
.search-box { height: 32px; width: 186px; border: 1px solid #edf6e633; border-radius: 5px; background: #10384025; color: #f0f6eabb; padding: 0 10px; backdrop-filter: blur(10px); }
.search-box input { color: #fff; font-size: 13px; }
.search-box input::placeholder { color: #ffffffde; }
.search-box svg { width: 14px; height: 14px; }
.project-filter { gap: 25px; margin-top: 18px; border-bottom-color: #eff5e522; }
.filter-tab { color: #ffffffde; font-size: 13px; font-weight: 500; padding-bottom: 11px; text-shadow: 0 1px 6px #03151b70; }
.filter-tab:hover { color: white; }
.filter-tab.active { color: #fff; font-weight: 500; }
.filter-tab.active:after { background: #e6efdc; height: 1px; }
.project-grid { gap: 24px; padding-top: 22px; grid-template-columns: repeat(3, minmax(0, 1fr)); min-height: 240px; }
.project-card { padding: 12px 12px 14px; border: 1px solid #d4e9df40; border-radius: 12px; background: #133b44b8; backdrop-filter: blur(18px); box-shadow: inset 0 1px 0 #dceee214, 0 13px 38px #10394325; animation: rise .55s var(--ease) backwards; transition: transform .3s var(--ease), background .3s, border-color .3s; }
.project-card:hover { transform: translateY(-4px); background: #1b4852cc; border-color: #e1efdb69; }
.project-cover { aspect-ratio: 1.8; border-radius: 6px; background: #153c47; }
.project-cover img { opacity: .94; }
.project-cover .project-status { left: 9px; top: 9px; color: #fff; background: #0f353feb; font-size: 12px; border: 1px solid #dceada29; backdrop-filter: blur(8px); padding: 4px 6px; }
.project-status .status-dot { background: #c5dcb4; }
.project-status.completed .status-dot { background: #b2cfb1; }
.project-status.archived .status-dot { background: #bed1d2; }
.project-cover .cover-open { background: #e9f0e3; color: #234237; width: 25px; height: 25px; right: 9px; bottom: 9px; }
.project-cover-fallback { background: #234a55; color: #aec9bc; }
.project-cover-fallback:before, .project-cover-fallback:after { border-color: #dae8d920; }
.project-monogram { font-size: 70px; }
.project-card-heading { padding: 15px 3px 7px; }
.project-card-heading h3 { color: #fff; font-size: 16px; font-weight: 500; }
.project-card-heading > svg { color: #d3e5cebd; }
.project-card-client { padding: 0 3px; font-size: 12px; letter-spacing: 1.1px; color: #ffffffd9; }
.project-card-meta { border-top-color: #dfefdb21; color: #ffffffd9; font-size: 12px; padding: 12px 3px 0; margin-top: 15px; }
.project-card-meta .review-count { color: #eef4e2; }
.home-footer { padding: 25px 3px 24px; color: #ffffffd9; font-size: 12px; letter-spacing: 1.5px; }
.home-footer > span:last-child { font-size: 10px; color: #ffffffc7; }
#project-view { max-width: 1100px; padding: 26px 30px 4px; background: #123740c9; border: 1px solid #d4e6df3d; border-radius: 15px; backdrop-filter: blur(22px); box-shadow: inset 0 1px 0 #d9e8df12, 0 18px 65px #0d2f3538; }
.project-intro { padding: 0 0 26px; gap: 24px; }
.project-intro h1 { color: #fff; font-size: 29px; font-weight: 500; letter-spacing: .5px; }
.project-title-group .eyebrow { color: #ffffffd9; font-size: 11px; letter-spacing: 1.8px; }
.project-description { color: #ffffffde; font-size: 13px; max-width: 600px; }
.project-meta { color: #ffffffd9; font-size: 12px; gap: 12px; }
.project-meta .project-status { color: #d0e2ba; }
.project-actions { padding-top: 17px; gap: 7px; }
.project-actions .button-quiet { color: #ffffffed; font-size: 12px; }
.project-actions .icon-button { color: #cbe0d1cf; }
.button { font-size: 15px; }
.button-dark { background: #e1eadd; color: #274737; }
.button-dark:hover { background: #eef4e5; }
.button-outline { border-color: #d8ead342; color: #dcebd7; background: #e1efdc07; }
.button-outline:hover { background: #e0efda19; }
.icon-button:hover { background: #d8e9d41a; }
.text-button { color: #ffffffd9; font-size: 14px; }
.text-button:hover { color: #f4f7e8; }
.button-lime { background: #d4e3ba; color: #345433; }
.button-lime:hover { background: #e4edcf; }
.category-tabs { border-color: #d9e9d62d; }
.category-tab { border-color: #d9e9d621; padding-top: 16px; padding-bottom: 16px; }
.category-tab .category-number { color: #ffffffc7; font-size: 11px; }
.category-tab .category-label { color: #ffffffde; font-size: 13px; }
.category-tab .category-count { color: #ffffffd9; font-size: 12px; }
.category-tab.active .category-label { color: #f4f7e8; }
.category-tab.active:after { height: 1px; background: #d5e5c1; }
.category-tab.active .category-count { color: #315139; background: #d2e1bce6; }
.file-toolbar { padding: 23px 0 20px; }
.file-toolbar h2 { color: #fff; font-size: 14px; font-weight: 500; }
.file-toolbar .subtle { color: #ffffffd9; font-size: 12px; }
.file-toolbar select { color: #ffffffde; font-size: 12px; }
select option { color: #e9f2e4; background: #20454c; }
.file-search { width: 165px; }
.file-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 26px 20px; }
.file-thumb { background: #113c45; border: 1px solid #d9e9cf25; border-radius: 6px; }
.file-thumb img { background: #f0f1e9; }
.file-thumb .file-format-badge { color: #fff; background: #133b41f0; border: 1px solid #d2e9cc30; font-size: 10px; }
.file-fallback { background: #244851; color: #c4d8c7; }
.file-fallback.pdf { background: #3c4d46; color: #e1d6c0; }
.file-fallback.video, .file-fallback.audio { background: #234a52; color: #bfdace; }
.file-fallback small { color: #ffffffd9; font-size: 10px; }
.file-name { color: #fff; font-size: 13px; }
.file-card-info .icon-button { color: #bdd8c9b3; }
.file-card-details { color: #ffffffd9; font-size: 12px; }
.file-card-bottom { color: #ffffffd9; font-size: 12px; }
.file-status { font-size: 12px; }
.file-status.pending { color: #cbddcc; }
.file-status.pending .status-dot { background: #b3c8b1; }
.file-status.changes { color: #e4c5a0; }
.file-status.changes .status-dot { background: #dbb87b; }
.file-status.approved { color: #cee0b4; }
.file-status.approved .status-dot { background: #b9d799; }
.project-bottom { color: #ffffffd9; font-size: 12px; }
.small-dot { background: #c0d9aa; }
.empty-state, .loading-state { color: #c4dbc6; }
.empty-state svg { color: #b4d0bc; }
.empty-state h3 { color: #eff5e6; }
.empty-state p { color: #c7dec7; }
.spinner { border-color: #b9d4bf4d; border-top-color: #deecd2; }
.form-dialog { background: #183f49ed; color: #f0f5e9; border-color: #d8e9da4d; backdrop-filter: blur(24px); box-shadow: 0 25px 85px #082c394d; }
.form-dialog::backdrop { background: #082c3940; backdrop-filter: blur(6px); }
.form-dialog .eyebrow { color: #dfeedd; font-size: 10px; }
.dialog-heading > .icon-button { color: #c3dcc9; }
.dialog-copy { color: #e1eddf; font-size: 13px; }
.field { color: #e7f2e4; font-size: 13px; }
.field > span { color: #c8dca8; }
.field input, .field textarea, .field select { border-color: #c5dfc466; background: #102e365e; color: #fff; font-size: 14px; }
.field input::placeholder, .field textarea::placeholder { color: #d0e0cc; font-size: 13px; }
.dialog-footer { border-color: #d7e8d82b; }
.form-error { color: #ffcdbb; font-size: 13px; }
.danger { color: #f1b6a4; }
.button-danger { background: #945849; color: #fff5ee; }
.upload-settings, .upload-settings > span { color: #e4efdf; font-size: 13px; }
.upload-settings label { font-size: 12px; }
.upload-settings select { background: #183c43; border-color: #c5ddbf66; color: #f2f7e9; font-size: 12px; }
.upload-dropzone { border-color: #c9e0b95c; background: #d7eaca08; color: #c6ddbf; }
.upload-dropzone:hover, .upload-dropzone.drag-over { border-color: #d0e6bc; background: #d7eaca17; }
.upload-symbol, .upload-dropzone strong { color: #edf5e4; font-size: 14px; }
.upload-dropzone > span:not(.upload-symbol) { font-size: 12px; }
.upload-dropzone small { color: #d4e4cc; font-size: 11px; }
.upload-item { border-color: #d2e6c924; }
.upload-item-icon { background: #d7e9c715; color: #cde3bc; }
.upload-item-info strong { color: #f0f7e7; font-size: 13px; }
.upload-item-info small, .upload-item-status, .upload-footer > span { color: #d6e6cd; font-size: 12px; }
.upload-item-info small.error, .upload-item-status.error { color: #e9ba9f; }
.upload-item-status.success { color: #d2e9b7; }
.upload-progress { background: #cee5b51a; }
.upload-progress > span { background: #bdd99c; }
.preview-dialog, .preview-content { background: #102f37; color: #eaf3e6; }
.preview-dialog::backdrop { background: #0b2831; }
.preview-topbar { height: 72px; background: #10343de8; border-color: #cbe3cc26; }
.preview-type { border-color: #c9dfbe66; background: #cfe3bd0c; color: #e3f0d5; font-size: 11px; }
.preview-heading h2 { font-size: 15px; color: #fff; }
.preview-heading > div > div { color: #e0ecdd; font-size: 12px; }
.preview-top-actions .button { font-size: 12px; }
.preview-top-actions .icon-button { color: #c7debd; }
.preview-close { border-left-color: #c9dfbe38; }
.preview-body { position: relative; display: block; height: calc(100dvh - 72px); }
.preview-main { width: 100%; height: 100%; background: transparent; }
.preview-stage, .preview-stage.image-stage { background: #102f37; background-image: none; padding: 28px 405px 28px 28px; }
.preview-stage.pdf-stage { padding: 18px 395px 18px 18px; }
.image-board > img { max-height: calc(100dvh - 183px); box-shadow: 0 18px 55px #071f2659; }
.preview-bottom { height: 54px; background: #123740; border-top-color: #c6dfc22e; color: #c3dabb; padding: 0 22px; }
.preview-navigation > span, .image-tools .text-button, .preview-file-edit { color: #e4efda; font-size: 12px; }
.image-tools { margin-right: auto; margin-left: 23px; }
.annotate-toggle { color: #e4efda; border-color: #c6dfb566; font-size: 12px; }
.annotate-toggle[aria-pressed="true"] { background: #d3e6ba; color: #345332; border-color: #d3e6ba; }
.review-panel { position: absolute; width: 342px; right: 22px; top: 20px; bottom: 75px; min-height: 0; border: 1px solid #d1e4ce38; border-radius: 13px; background: #20444beb; backdrop-filter: blur(22px); box-shadow: 0 14px 40px #092a3838, inset 0 1px 0 #d9e8d112; }
.review-summary { padding: 22px 20px 17px; border-bottom-color: #d2e5ca21; }
.review-heading h3 { color: #fff; font-size: 15px; font-weight: 500; }
.review-heading h3 > span { color: #deebcd; font-size: 12px; }
.review-actions .button { font-size: 12px; }
.final-action { color: #e3eed3; font-size: 12px; }
.final-action:hover { color: #ecf5d7; }
.comments-list { padding: 21px 20px; }
.comment-empty { color: #b4cdaa; }
.comment-empty strong { color: #e7efdd; font-size: 14px; }
.comment-empty p { color: #dce7d5; font-size: 12px; }
.comment-thread { border-bottom-color: #d5e5ce1f; }
.comment-thread.highlighted { background: #456044; box-shadow: 0 0 0 8px #456044; }
.comment-heading strong { color: #f0f6e2; font-size: 13px; }
.comment-avatar { background: #dceac916; color: #d1e4b6; }
.comment-heading time { color: #cadbc3; font-size: 12px; }
.comment-body, .comment-thread.resolved > .comment-body, .comment-reply .comment-body { color: #f1f4ef; font-size: 13px; }
.comment-reply .comment-heading strong { font-size: 12px; }
.comment-location { color: #d9e8c5; background: #d5e9ba11; font-size: 11px; }
.comment-controls button, .comment-resolved { color: #d7e5c8; font-size: 11px; }
.comment-controls button:hover { color: #eff7d7; }
.comment-replies { border-color: #c9dfb62b; }
.comment-form { background: transparent; border-top-color: #c6dfb725; padding: 18px 20px; }
.comment-author-label { color: #d4e3c9; font-size: 11px; }
.comment-author-label input { color: #f1f7e5; border-color: #c5ddaf66; font-size: 12px; }
.comment-author-label input::placeholder { color: #dce9cf; }
.comment-form textarea { color: #fff; background: #16343a70; border-color: #c6ddb473; font-size: 13px; }
.comment-form textarea::placeholder { color: #d2e2c6; font-size: 12px; }
.comment-form-footer > span { color: #d5e3c9; font-size: 10px; }
.comment-form-footer .button { font-size: 12px; }
.comment-context { color: #edf5da; background: #cfe3b51a; font-size: 12px; }
.preview-fallback { color: #bcd4b2; }
.preview-fallback h3 { color: #e4eddb; }
.audio-player { color: #deebcf; }
.text-preview { background: #e5ebe0; }
.text-preview pre { color: #324d36; }
.preview-dialog.comments-hidden .preview-stage { padding: 28px; }
.preview-dialog.comments-hidden .preview-stage.pdf-stage { padding: 18px; }
.toast-region { left: 50%; }
.toast { background: #143c45f2; border: 1px solid #d1e4c566; color: #fff; font-size: 13px; box-shadow: 0 8px 30px #12333c30; }
.toast.error { background: #875746f2; }
button:focus-visible, a:focus-visible { outline-color: #dfefce; }
input:focus-visible, textarea:focus-visible, select:focus-visible { border-color: #c9deb3 !important; box-shadow: 0 0 0 3px #cbdfb21c; }

@media (min-width: 1550px) {
  .main { padding: 0 42px 45px; }
  .page-intro { padding-top: 60px; padding-bottom: 43px; }
  .page-intro h1 { font-size: 50px; }
  .project-grid { gap: 26px; }
  .file-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .review-panel { width: 355px; }
}

@media (max-width: 1100px) {
  .site-navigation { padding: 0 32px; height: 90px; }
  .main { padding: 0 32px 30px; }
  .page-intro { padding-top: 34px; }
  .project-card { padding: 10px 10px 13px; }
  .project-grid { gap: 20px; }
  .project-card-heading h3 { font-size: 16px; }
  #project-view { padding: 25px 25px 3px; }
  .file-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .review-panel { width: 305px; right: 17px; }
  .preview-stage, .preview-stage.image-stage { padding-right: 350px; }
  .preview-stage.pdf-stage { padding-right: 345px; }
}

@media (max-width: 900px) {
  .brand-sub { display: none; }
  .navigation-actions { gap: 18px; }
  .page-intro h1 { font-size: 42px; }
  .project-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
  .project-card-meta { font-size: 12px; gap: 6px; flex-wrap: wrap; }
  .project-card-meta > span:last-child { width: 100%; padding-top: 2px; }
  .project-cover { aspect-ratio: 1.45; }
  .project-actions { padding-top: 0; width: 100%; justify-content: flex-start; }
  .project-actions .button-quiet { width: auto; font-size: 12px; }
  .category-tab .category-label { font-size: 13px; }
}

@media (max-width: 650px) {
  body::before { background-position: 43% center; }
  body::after { background: linear-gradient(180deg, rgba(5,20,28,.5) 0%, rgba(5,20,28,.34) 40%, rgba(5,20,28,.15) 100%); }
  .site-navigation { height: 77px; padding: 0 20px; gap: 12px; }
  .site-navigation .brand { gap: 0; }
  .brand-word { font-size: 20px; }
  .navigation-actions { gap: 12px; }
  .navigation-link { font-size: 13px; padding: 5px 0; }
  .navigation-create { display: none; }
  .identity-button { padding: 0; }
  .identity-button .avatar { width: 27px; height: 27px; font-size: 12px; }
  .main { padding: 0 20px 26px; }
  .topbar { height: 30px; margin-bottom: 12px; }
  .page-intro { padding: 38px 0 39px; gap: 20px; }
  .page-intro .eyebrow { font-size: 10px; letter-spacing: 2.5px; }
  .page-intro h1 { font-size: 32px; letter-spacing: 1px; margin-top: 18px; margin-bottom: 13px; line-height: 1.65; }
  .intro-copy { font-size: 14px; letter-spacing: .6px; }
  .intro-side .button { height: 34px; padding: 0 15px; font-size: 12px; }
  .section-heading h2 { font-size: 14px; }
  .search-box { width: 143px; height: 29px; padding: 0 8px; }
  .search-box input { font-size: 12px; }
  .project-filter { gap: 23px; margin-top: 16px; }
  .filter-tab { font-size: 12px; padding-bottom: 9px; }
  .project-grid { grid-template-columns: 1fr; max-width: 350px; margin: auto; padding-top: 18px; gap: 18px; }
  .project-card { padding: 12px 12px 14px; border-radius: 11px; background: #123842b8; }
  .project-cover { aspect-ratio: 1.9; }
  .project-card-heading h3 { font-size: 16px; }
  .project-card-meta { flex-wrap: nowrap; font-size: 12px; margin-top: 13px; }
  .project-card-meta > span:last-child { width: auto; padding-top: 0; }
  .project-card-meta > span:nth-child(2) { margin-left: auto; margin-right: auto; }
  .home-footer { padding-top: 25px; font-size: 11px; letter-spacing: .5px; }
  .home-footer > span:last-child { font-size: 9px; }
  #project-view { border-radius: 11px; padding: 23px 17px 0; }
  .project-intro { padding-bottom: 21px; gap: 18px; }
  .project-intro h1 { font-size: 25px; line-height: 1.5; margin-top: 12px; margin-bottom: 9px; }
  .project-description { font-size: 12px; }
  .project-meta { font-size: 12px; }
  .project-actions { gap: 6px; }
  .project-actions .button-quiet { font-size: 12px; gap: 4px; padding: 0; }
  .project-actions .button-dark { height: 33px; font-size: 13px; padding: 0 11px; }
  .project-actions .button-dark svg { width: 14px; height: 14px; }
  .category-tab { padding: 14px 12px !important; }
  .category-tab:first-child { padding-left: 0 !important; }
  .category-tab .category-label { font-size: 12px; }
  .file-toolbar { gap: 7px; padding: 19px 0 17px; flex-wrap: wrap; }
  .file-toolbar-controls { gap: 8px; }
  .file-toolbar h2 { font-size: 13px; }
  .file-search { width: 94px; }
  .file-toolbar select { width: 69px; font-size: 12px; }
  .file-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 23px 14px; }
  .file-thumb { aspect-ratio: 1.14; }
  .file-name { font-size: 12px; }
  .file-card-details, .file-card-bottom, .file-status { font-size: 12px; }
  .file-card-comments { gap: 3px; }
  .project-bottom { font-size: 11px; padding-top: 24px; }
  .project-bottom > span { max-width: 245px; }
  .preview-topbar { height: 63px; }
  .preview-type { font-size: 9px; }
  .preview-heading h2 { font-size: 13px; }
  .preview-heading > div > div { font-size: 12px; }
  .preview-navigation > span, .image-tools .text-button { font-size: 12px; }
  .preview-file-edit, .annotate-toggle { font-size: 0; }
  .preview-body { display: flex; flex-direction: column; height: calc(100dvh - 63px); overflow: hidden; }
  .preview-main { height: 40%; min-height: 0; flex: 0 0 40%; }
  .preview-stage, .preview-stage.image-stage { padding: 15px; }
  .preview-stage.pdf-stage { padding: 0; }
  .image-board > img { max-height: calc(40dvh - 98px); }
  .preview-bottom { height: 40px; padding: 0 12px; }
  .image-tools { margin-left: 5px; margin-right: 0; }
  .review-panel { position: relative; inset: auto; width: 100%; border-radius: 0; border-width: 1px 0 0; flex: 1; min-height: 0; overflow: hidden; background: #20444b; box-shadow: none; }
  .review-summary { padding: 16px 20px 13px; }
  .comments-list { flex: 1; min-height: 80px; max-height: none; overflow: auto; padding: 18px 20px; }
  .comment-form { padding: 15px 20px 17px; }
  .preview-dialog.comments-hidden .preview-main { height: 100%; flex: 1; }
  .preview-dialog.comments-hidden .preview-stage { padding: 15px; }
  .preview-dialog.comments-hidden .image-board > img { max-height: calc(100dvh - 145px); }
}

@media (max-width: 650px) and (max-height: 620px) {
  .preview-body { overflow: auto; }
  .preview-main { height: 220px; min-height: 220px; flex: 0 0 220px; }
  .image-board > img { max-height: 148px; }
  .review-panel { flex: 0 0 auto; min-height: 360px; overflow: visible; }
  .comments-list { flex: none; min-height: 90px; max-height: 180px; }
  .preview-dialog.comments-hidden .preview-main { height: 100%; min-height: 0; flex: 1; }
  .preview-dialog.comments-hidden .image-board > img { max-height: calc(100dvh - 145px); }
}

.file-thumb-wrap { position: relative; }
.recommendation-button { color: #e9efe8; transition: background .2s, color .2s; }
.file-recommendation { position: absolute; top: 8px; right: 8px; width: 29px; height: 29px; background: #133842e8; border: 1px solid #e4eddd4d; border-radius: 5px; }
.recommendation-button.recommended { color: #f0d487; }
.recommendation-button.recommended svg { fill: currentColor; stroke: #f5dfa6; }
.recommendation-button:disabled { cursor: default; opacity: 1; }
.recommendation-button:hover { background: #3d5a59; }
.recommendation-button:disabled:hover { background: transparent; }
.file-recommendation:disabled:hover { background: #133842e8; }
.like-button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 42px; height: 31px; padding: 0 9px; border: 1px solid #e5eddf45; border-radius: 5px; background: #153b43; color: #f0f4ec; font-size: 12px; font-variant-numeric: tabular-nums; }
.like-button:hover { background: #3a5558; }
.like-button.liked { color: #eec8b9; }
.like-button.liked svg { fill: currentColor; }
.file-like { position: absolute; bottom: 8px; right: 8px; height: 27px; padding: 0 7px; background: #133842eb; }
.like-count { line-height: 1; }
.preview-stage.image-stage.swipe-enabled { touch-action: pan-y pinch-zoom; cursor: grab; }
.preview-stage.image-stage.is-swiping { cursor: grabbing; user-select: none; }
.preview-stage.is-swiping .image-board { transition: none; }
.profile-email { font-size: 15px; color: #eef5e9; overflow-wrap: anywhere; margin: 12px 0; }
.profile-role { font-size: 12px; color: #d2e3ca; margin-bottom: 23px; }
.profile-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.account-notice { font-size: 13px; line-height: 1.8; color: #eddeb0; padding: 12px; border: 1px solid #dac79445; border-radius: 5px; margin: 15px 0 20px; }
.users-dialog { width: min(900px, calc(100vw - 32px)); }
.users-toolbar { display: flex; gap: 15px; justify-content: space-between; align-items: center; margin-bottom: 17px; }
.users-toolbar .dialog-copy { margin: 0; }
.users-toolbar .button { font-size: 13px; }
.users-list { border-top: 1px solid #d4e6c93b; }
.user-row { display: grid; grid-template-columns: minmax(0, 1fr) 128px auto; align-items: center; gap: 20px; padding: 22px 0; border-bottom: 1px solid #d4e6c92e; }
.user-details { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.user-details strong { font-size: 15px; font-weight: 500; color: #f8fbf1; overflow-wrap: anywhere; }
.user-details > span { font-size: 12px; color: #e0edda; overflow-wrap: anywhere; }
.user-state { display: flex; gap: 7px; flex-wrap: wrap; font-size: 11px; color: #d1e1c9; }
.user-state small { width: 100%; font-size: 10px; color: #ecdaa7; }
.user-enabled { color: #e1ccae; }
.user-enabled.enabled { color: #daedc3; }
.user-row-actions { display: flex; gap: 13px; flex-wrap: wrap; align-items: center; }
.user-row-actions .text-button { font-size: 12px; }
.user-protected { font-size: 11px; color: #d6e2c8; }
.credential-details { display: flex; flex-direction: column; gap: 10px; padding: 18px; border: 1px solid #e1eecb3d; border-radius: 6px; background: #102c364a; }
.credential-details > span { font-size: 11px; color: #d2dfc7; }
.credential-details strong { font-size: 14px; font-weight: 500; overflow-wrap: anywhere; margin-bottom: 8px; }
.credential-details code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; color: #eff6dd; font-size: 17px; overflow-wrap: anywhere; user-select: all; }

@media (max-width: 800px) {
  .user-row { grid-template-columns: minmax(0, 1fr) 128px; }
  .user-row-actions { grid-column: 1 / -1; }
}

@media (max-width: 650px) {
  .site-navigation #login-button { display: inline-flex; height: 32px; font-size: 12px; padding: 0 11px; }
  .navigation-actions { gap: 10px; }
  #users-button { font-size: 12px; }
  .preview-top-actions #preview-recommendation { width: 26px; }
  .preview-heading h2 { max-width: 27vw; }
  .preview-heading > div > div { max-width: 26vw; }
  .preview-top-actions .like-button { height: 28px; min-width: 39px; padding: 0 5px; gap: 4px; font-size: 11px; }
  .preview-top-actions .like-button svg { width: 14px; height: 14px; }
  .users-toolbar { align-items: flex-start; gap: 12px; }
  .users-toolbar .dialog-copy { font-size: 12px; }
  .users-toolbar .button { height: 35px; padding: 0 10px; font-size: 12px; }
  .user-row { gap: 14px; grid-template-columns: minmax(0, 1fr) 104px; padding: 20px 0; }
  .user-row-actions { gap: 17px; }
  .user-details strong { font-size: 14px; }
  .credential-details { padding: 15px; }
  #credentials-dialog .dialog-footer .button { font-size: 12px; padding: 0 11px; }
}
