/* Unit board start view: navigation only. Inspection layout is unchanged. */
.unit-board-home-button{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:44px;padding:0 13px;border:1px solid #cfe1dc;border-radius:999px;background:#fff;color:#155f58;font-size:13px;font-weight:800;white-space:nowrap;flex:0 0 auto}
.unit-board-home-button span:first-child{font-size:16px;line-height:1}
.unit-board-home-button:hover{background:#edf7f4}
.app-shell.unit-board-mode .unit-board-home-button{background:#174f4a;border-color:#174f4a;color:#fff}
.app-shell.unit-board-mode #stats,.app-shell.unit-board-mode .unit-switch-button{display:none!important}
.app-shell.unit-board-mode .page-heading{margin-bottom:12px}
.app-shell.unit-board-mode #draft-state{margin-bottom:14px}
.board-register-summary{display:flex;flex-direction:column;gap:3px;margin:0 0 10px;padding:13px 14px;border:1px solid #d7e6e1;border-radius:12px;background:#f5faf8}
.board-register-summary strong{font-size:20px;color:#173f3a}
.board-register-summary span{font-size:14px;color:#557069;font-weight:700}
.unit-board-error{margin:0 0 12px;padding:11px 13px;border:1px solid #f0c8b4;border-radius:10px;background:#fff6f0;color:#8a4428;font-size:13px;font-weight:700}
.app-shell.unit-board-mode .unit-board .ub-card strong{white-space:nowrap}
@media (min-width:601px) and (max-width:1000px){
  .app-shell.unit-board-mode .unit-board .ub-cards{grid-template-columns:repeat(3,minmax(0,1fr))}
  .app-shell.unit-board-mode .unit-board .ub-card-all{grid-column:auto}
}
@media (max-width:600px){
  /* The board itself is the unit picker on phones. */
  .app-shell.unit-board-mode #page-description,.app-shell.unit-board-mode #unit-building{display:none}
  .app-shell.unit-board-mode .page-heading h1{font-size:22px}
  .app-shell.unit-board-mode .unit-board .ub-cards{grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}
  .app-shell.unit-board-mode .unit-board .ub-card-all{grid-column:auto}
  .app-shell.unit-board-mode .unit-board .ub-card{min-height:54px;padding:7px 8px}
  .app-shell.unit-board-mode .unit-board .ub-card-label{font-size:11px;line-height:1.25}
  .app-shell.unit-board-mode .unit-board .ub-card strong{font-size:18px}
  .app-shell.unit-board-mode .sidebar .unit-search,.app-shell.unit-board-mode .sidebar .unit-list,.app-shell.unit-board-mode .sidebar .sidebar-section-head{display:none!important}
}
@media (max-width:760px){
  .topbar{gap:8px}
  .unit-board-home-button{padding:0 11px}
  .app-shell.unit-board-mode .mobile-units-button{display:none!important}
}
@media (max-width:380px){
  .unit-board-home-button{min-width:44px;padding:0 10px}
  .unit-board-home-button span:last-child{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}
}
@media print{.unit-board-home-button{display:none!important}}

.board-register-owner{display:flex;flex-direction:column;gap:6px;margin:10px 0;padding:12px;border:1px dashed #c9bfe0;border-radius:12px;background:#f7f5fb}
.board-register-owner .button{min-height:44px;align-self:flex-start}

/* The board starts right under the top bar: no page title or draft line above it. */
.app-shell.unit-board-mode .page-heading,.app-shell.unit-board-mode #draft-state{display:none!important}

/* Board preview follows the download layout (25% minimum, grows with text; width ≤ 40%). */
.photo-frame .photo-visual>.photo-overlay[data-template="four-row"][data-fit] .photo-overlay-row{grid-template-columns:var(--board-label,26%) minmax(0,1fr)}
.photo-frame .photo-visual>.photo-overlay[data-template="four-row"][data-fit] .photo-overlay-row>span{word-break:break-all;line-height:1.2;font-family:"Noto Sans KR","Apple SD Gothic Neo","Malgun Gothic",sans-serif}
/* 설명 추가 */
.detail-add{margin:-6px 0 14px}
.detail-add-button{font-size:13px;font-weight:700;color:var(--accent,#246d59);padding:6px 0;min-height:36px}
.detail-add-field small{font-weight:400;color:var(--muted,#6b7670);font-size:11px;margin-left:4px}
.detail-add-field textarea{min-height:84px}
/* Clean white look: white page, shadowed (borderless) summary cards. */
html body,body #app-shell,body #app-shell.inspection-mode,body .main,body .content-wrap,body .welcome{background:#fff}
.app-shell.unit-board-mode .unit-board{--ub-bg:#fff;background:#fff;border:0;box-shadow:none;padding-left:2px;padding-right:2px}
.app-shell.unit-board-mode .unit-board .ub-card,.app-shell.unit-board-mode .unit-board .ub-card-search input{background:#fff;border:0;box-shadow:0 1px 2px rgba(16,24,40,.06),0 4px 14px rgba(16,24,40,.08)}
.app-shell.unit-board-mode .unit-board .ub-card.ub-on{background:#fff;box-shadow:inset 0 -3px 0 var(--ub-teal),0 1px 2px rgba(16,24,40,.06),0 6px 18px rgba(16,24,40,.12)}
.app-shell.unit-board-mode .unit-board .ub-card.ub-on .ub-card-label{color:var(--ub-teal);font-weight:800}
.breadcrumb .crumb-sep{display:none}
:root{--bg:#fff}
body .topbar,body .inspection-mode .topbar{background:#fff}
/* HAJA grid logo (walnut accent) replaces the old H mark. */
.brand-mark.brand-mark-logo{background:none!important;box-shadow:none!important;border:0!important;padding:0!important;color:inherit;display:inline-flex;align-items:center;justify-content:center}
.brand-mark.brand-mark-logo svg{width:100%;height:100%;display:block}
/* Top bar: the unit name stays on one line (shortened with … if needed) instead of breaking per character. */
.topbar .breadcrumb{flex:1 1 auto;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;word-break:keep-all}
.topbar .breadcrumb strong{white-space:nowrap}
.topbar .topbar-right{flex:0 0 auto}
/* Board head: title + 최근 세대 이어보기 on one row, bare refresh icon top-right. */
.unit-board .ub-head{position:relative;display:flex;flex-wrap:nowrap;align-items:center;justify-content:space-between;gap:10px;padding-right:34px}
.unit-board .ub-head .ub-title{min-width:0;flex:1 1 auto}
.unit-board .ub-head .ub-resume{flex:0 1 auto;max-width:58%;min-height:52px;padding:8px 14px;text-align:left}
.unit-board .ub-head .ub-resume small{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.unit-board .ub-refresh{position:absolute;top:-6px;right:-6px;display:inline-flex;align-items:center;justify-content:center;width:40px;height:40px;padding:0;border:0;background:none;box-shadow:none;color:var(--ub-teal,#1d6a5a);cursor:pointer}
.unit-board .ub-refresh:active{opacity:.6}
.unit-board .ub-refresh:focus-visible{outline:2px solid var(--ub-teal,#1d6a5a);outline-offset:1px;border-radius:8px}
@media print{.unit-board .ub-refresh,.unit-board .ub-head .ub-resume{display:none}}
.unit-board .ub-head .ub-resume span{white-space:nowrap}
@media (max-width:400px){.unit-board .ub-head .ub-resume{padding:7px 11px;max-width:62%}.unit-board .ub-head .ub-resume span{font-size:14px}.unit-board .ub-head .ub-resume small{font-size:12px}}
/* Refresh: grey counter-clockwise icon right after 최근 세대 이어보기; lighter and disabled for 30 s after use. */
.unit-board .ub-head{padding-right:0}
.unit-board .ub-head .ub-title{order:0}
.unit-board .ub-head .ub-resume{order:1}
.unit-board .ub-refresh{position:static;order:2;flex:0 0 auto;margin-left:-4px;color:#7d8784}
.unit-board .ub-refresh:hover{color:#5f6a66}
.unit-board .ub-refresh.ub-refresh-wait,.unit-board .ub-refresh:disabled{color:#cfd4d2;cursor:default;opacity:1}

.board-register-actions{display:flex;flex-wrap:wrap;gap:8px}
.board-register-owner .board-register-actions .button{align-self:auto}
.board-register-note{border-style:solid;border-color:#eadfce;background:#fdf8f1}
