.page-band { border-bottom: 1px solid var(--line); padding: 56px 0 44px; background: var(--wash); }
.page-band-grid { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 40px; }
.page-band h1 { max-width: 780px; margin-bottom: 12px; font-size: clamp(2.35rem, 5vw, 3.65rem); }
.page-band p:last-child { max-width: 760px; margin-bottom: 0; color: var(--muted); font-size: 1.02rem; line-height: 1.7; }
.page-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; }
.content-section { padding: 54px 0 84px; }
.notice { margin-bottom: 22px; border: 1px solid; border-radius: 6px; padding: 13px 15px; font-size: .9rem; font-weight: 650; }
.notice-success { border-color: #a9dfbd; background: #ecfdf3; color: #0f6b39; }
.notice-error { border-color: #f0b8b2; background: #fff2f0; color: #ae2b22; }
.notice-info { border-color: #b7cff7; background: #eef5ff; color: #164ea4; }
.role-badge, .state-badge { display: inline-flex; width: max-content; max-width: 100%; align-items: center; border-radius: 999px; padding: 4px 9px; background: #e9f1ff; color: #175cd3; font-size: .72rem; font-weight: 800; }
.state-badge { background: #f1f3f6; color: #526075; }
.state-open, .state-published, .state-approved, .state-active { background: #eaf9ef; color: #16713c; }
.state-pending, .state-draft { background: #fff5dd; color: #8a5b00; }
.state-closed, .state-hidden, .state-suspended { background: #f2f4f7; color: #626d7e; }

.auth-shell { display: grid; width: min(100% - 32px, 1000px); min-height: calc(100svh - 73px); margin-inline: auto; padding: 54px 0 80px; grid-template-columns: .85fr 1.15fr; gap: 70px; align-items: start; }
.auth-intro { padding-top: 42px; }
.auth-intro h1 { margin-bottom: 16px; font-size: clamp(2.3rem, 5vw, 3.6rem); }
.auth-intro > p:last-child { color: var(--muted); line-height: 1.75; }
.auth-panel { border: 1px solid var(--line); border-radius: 8px; padding: 28px; background: #fff; box-shadow: var(--shadow); }
.auth-panel h2 { margin-bottom: 8px; font-size: 1.45rem; }
.auth-panel > p { color: var(--muted); font-size: .9rem; }
.auth-tabs { display: grid; margin: 22px 0; grid-template-columns: repeat(2, 1fr); border-bottom: 1px solid var(--line); }
.auth-tabs a { margin-bottom: -1px; border-bottom: 2px solid transparent; padding: 11px; color: var(--muted); font-size: .9rem; font-weight: 800; text-align: center; }
.auth-tabs a.active { border-color: var(--blue); color: var(--blue); }
.stack-form { display: grid; gap: 15px; }
.stack-form label, .profile-form label, .post-form label, .reply-form label, .comment-form label { display: grid; gap: 7px; color: #374459; font-size: .86rem; font-weight: 750; }
.stack-form input, .stack-form select, .stack-form textarea, .profile-form input, .profile-form select, .post-form input, .post-form select, .post-form textarea, .reply-form input, .reply-form textarea, .comment-form textarea { width: 100%; border: 1px solid #cbd3de; border-radius: 6px; outline: 0; background: #fff; color: var(--ink); }
.stack-form input, .stack-form select, .profile-form input, .profile-form select, .post-form input, .post-form select, .reply-form input { height: 46px; padding: 0 12px; }
.stack-form textarea, .post-form textarea, .reply-form textarea, .comment-form textarea { min-height: 120px; resize: vertical; padding: 11px 12px; }
.stack-form input:focus, .stack-form select:focus, .stack-form textarea:focus, .profile-form input:focus, .profile-form select:focus, .post-form input:focus, .post-form select:focus, .post-form textarea:focus, .reply-form input:focus, .reply-form textarea:focus, .comment-form textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(7,86,232,.13); }
.field-help { margin: -7px 0 0; color: var(--muted); font-size: .78rem; }
.auth-links { display: flex; margin-top: 14px; justify-content: space-between; gap: 16px; color: var(--blue); font-size: .84rem; font-weight: 750; }
.social-divider { display: flex; margin: 24px 0 16px; align-items: center; gap: 12px; color: #8993a2; font-size: .76rem; font-weight: 750; text-transform: uppercase; }
.social-divider::before, .social-divider::after { height: 1px; flex: 1; background: var(--line); content: ""; }
.social-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.social-button { display: inline-flex; min-height: 44px; align-items: center; justify-content: center; border: 1px solid #cbd3de; border-radius: 6px; background: #fff; color: #263247; font-size: .86rem; font-weight: 800; }
.social-button[aria-disabled="true"] { cursor: not-allowed; opacity: .55; }

.account-head { display: flex; margin-bottom: 28px; align-items: end; justify-content: space-between; gap: 30px; }
.account-head h1 { margin-bottom: 7px; font-size: 2.3rem; }
.account-head p { margin-bottom: 0; color: var(--muted); }
.account-grid { display: grid; grid-template-columns: 310px minmax(0, 1fr); gap: 36px; }
.account-sidebar { border-right: 1px solid var(--line); padding-right: 28px; }
.profile-summary { display: grid; margin-bottom: 24px; gap: 5px; }
.profile-summary strong { font-size: 1.15rem; }
.profile-summary span:not(.role-badge) { color: var(--muted); font-size: .88rem; overflow-wrap: anywhere; }
.account-nav { display: grid; border-top: 1px solid var(--line); }
.account-nav a { border-bottom: 1px solid var(--line); padding: 12px 2px; color: #445064; font-size: .9rem; font-weight: 750; }
.account-nav a.active { color: var(--blue); }
.dashboard-section + .dashboard-section { margin-top: 42px; }
.dashboard-section h2 { margin-bottom: 16px; font-size: 1.35rem; }
.dashboard-list { display: grid; overflow: hidden; border: 1px solid var(--line); border-radius: 7px; background: var(--line); gap: 1px; }
.dashboard-row { display: grid; padding: 17px; background: #fff; grid-template-columns: 1fr auto; align-items: center; gap: 18px; }
.dashboard-row strong, .dashboard-row span { display: block; }
.dashboard-row span { margin-top: 4px; color: var(--muted); font-size: .82rem; }
.profile-form { display: grid; max-width: 620px; grid-template-columns: 1fr 1fr; gap: 16px; }
.profile-form .wide { grid-column: 1 / -1; }

.market-layout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 42px; align-items: start; }
.market-toolbar { display: grid; margin-bottom: 18px; grid-template-columns: minmax(220px, 1fr) 180px 160px auto; gap: 10px; }
.market-toolbar input, .market-toolbar select { width: 100%; height: 44px; border: 1px solid #cbd3de; border-radius: 6px; padding: 0 11px; background: #fff; }
.market-list { display: grid; overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: var(--line); gap: 1px; }
.market-job { display: grid; padding: 24px; grid-template-columns: 1fr auto; align-items: start; gap: 28px; background: #fff; }
.market-job h2 { margin: 8px 0 10px; font-size: 1.25rem; }
.market-job h2 a:hover { color: var(--blue); }
.market-job p { max-width: 700px; margin-bottom: 12px; color: var(--muted); line-height: 1.65; }
.market-meta { display: flex; flex-wrap: wrap; gap: 14px; color: #596579; font-size: .78rem; font-weight: 700; }
.market-budget { min-width: 140px; text-align: right; }
.market-budget strong { display: block; color: var(--ink); font-size: 1.05rem; }
.market-budget span { color: var(--muted); font-size: .76rem; }
.market-side { border-left: 1px solid var(--line); padding-left: 28px; }
.market-side h2 { margin-bottom: 10px; font-size: 1.15rem; }
.market-side p { color: var(--muted); font-size: .88rem; line-height: 1.65; }
.market-side .button { width: 100%; margin-top: 7px; }
.post-form { display: grid; max-width: 800px; grid-template-columns: 1fr 1fr; gap: 16px; }
.post-form .wide { grid-column: 1 / -1; }
.post-form textarea { min-height: 190px; }
.job-view-grid { display: grid; grid-template-columns: minmax(0, 1fr) 350px; gap: 58px; align-items: start; }
.job-view-copy h2 { margin: 38px 0 13px; font-size: 1.45rem; }
.job-view-copy p { color: var(--muted); line-height: 1.8; white-space: pre-line; }
.reply-panel { border: 1px solid var(--line); border-radius: 8px; padding: 24px; background: #fff; box-shadow: var(--shadow); }
.reply-panel h2 { margin-bottom: 8px; font-size: 1.25rem; }
.reply-panel > p { color: var(--muted); font-size: .88rem; line-height: 1.65; }
.reply-form { display: grid; margin-top: 18px; gap: 14px; }
.reply-list { display: grid; gap: 12px; }
.reply-item { border: 1px solid var(--line); border-radius: 7px; padding: 18px; background: #fff; }
.reply-item-head { display: flex; margin-bottom: 10px; justify-content: space-between; gap: 16px; }
.reply-item p { margin-bottom: 8px; color: var(--muted); white-space: pre-line; }
.reply-contact { color: var(--blue); font-size: .86rem; font-weight: 750; }

.blog-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: var(--line); gap: 1px; }
.blog-card { min-height: 260px; padding: 28px; background: #fff; }
.blog-card time { color: #68758a; font-size: .76rem; font-weight: 750; }
.blog-card h2 { margin: 18px 0 12px; font-size: 1.45rem; }
.blog-card h2 a:hover { color: var(--blue); }
.blog-card p { color: var(--muted); line-height: 1.72; }
.blog-card > a { color: var(--blue); font-size: .9rem; font-weight: 800; }
.article-shell { width: min(100% - 40px, 800px); margin-inline: auto; }
.article-header { padding: 66px 0 42px; }
.article-header h1 { margin: 16px 0 18px; font-size: clamp(2.45rem, 6vw, 4rem); }
.article-header p { color: var(--muted); font-size: 1.1rem; line-height: 1.75; }
.article-meta { display: flex; gap: 14px; color: #68758a; font-size: .82rem; font-weight: 750; }
.article-body { border-top: 1px solid var(--line); padding: 44px 0 64px; }
.article-body p { margin-bottom: 24px; color: #344054; font-size: 1.05rem; line-height: 1.9; }
.comments-section { border-top: 1px solid var(--line); padding: 54px 0 84px; background: var(--wash); }
.comments-section h2 { margin-bottom: 24px; font-size: 1.6rem; }
.comment-form { display: grid; margin-bottom: 32px; gap: 13px; }
.comment-form .button { width: max-content; }
.comment-list { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 7px; overflow: hidden; }
.comment { padding: 20px; background: #fff; }
.comment-head { display: flex; margin-bottom: 9px; align-items: center; justify-content: space-between; gap: 16px; }
.comment-head time { color: var(--muted); font-size: .76rem; }
.comment p { margin-bottom: 0; color: #48566b; line-height: 1.7; white-space: pre-line; }
.empty-public { border: 1px dashed #b8c1cd; border-radius: 8px; padding: 46px 24px; text-align: center; }
.empty-public h2, .empty-public h3 { margin-bottom: 8px; }
.empty-public p { color: var(--muted); }

@media (max-width: 980px) {
  .auth-shell, .account-grid, .market-layout, .job-view-grid { grid-template-columns: 1fr; gap: 36px; }
  .auth-intro { padding-top: 0; }
  .account-sidebar, .market-side { border-right: 0; border-left: 0; border-bottom: 1px solid var(--line); padding: 0 0 24px; }
  .market-toolbar { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 700px) {
  .page-band { padding: 42px 0 36px; }
  .page-band-grid, .blog-grid, .post-form, .profile-form { grid-template-columns: 1fr; }
  .page-actions { justify-content: flex-start; }
  .auth-panel { padding: 22px 18px; }
  .social-actions, .market-toolbar { grid-template-columns: 1fr; }
  .account-head { align-items: stretch; flex-direction: column; }
  .market-job { grid-template-columns: 1fr; padding: 21px 18px; }
  .market-budget { text-align: left; }
  .post-form .wide, .profile-form .wide { grid-column: auto; }
  .dashboard-row { grid-template-columns: 1fr; }
  .article-shell { width: min(100% - 32px, 800px); }
  .article-header { padding-top: 48px; }
}
