#cabinet-home {
  --paper: #fcfbf7; --ink: #28352c; --green: #334e41; --line: #d3d6ca; --quiet: #596459;
  background: #f1f1e9; color: var(--ink); font: 17px/1.45 var(--hand-cn); min-height: 100svh;
}
#cabinet-home::before { display: none; }
#cabinet-home .symbols, #cabinet-home [hidden] { display: none !important; }
#cabinet-home svg:not(.symbols) { width: 21px; height: 21px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.55; stroke-linecap: round; stroke-linejoin: round; }
#cabinet-home :is(input,select,button) { font: inherit; color: var(--ink); border: 1px solid var(--line); background: var(--paper); border-radius: 6px; box-shadow: none; }
#cabinet-home button { min-height: 38px; }
#cabinet-home :is(input,select) { min-height: 42px; }
#cabinet-home button:hover { background: #e9ede4; border-color: #78907c; }
#cabinet-home :focus-visible { outline: 2px solid #547561; outline-offset: 2px; }
#cabinet-home .primary { background: var(--green); color: white; border-color: var(--green); }
#cabinet-home .primary:hover { background: #273e31; }
#cabinet-home button:disabled { opacity: .55; cursor: wait; }
.home-bar,.home-brand,#account-nav,.dialog-actions,.list-top,.filters,.list-heading { display: flex; align-items: center; gap: 12px; }
.home-bar { min-height: 80px; padding: 14px clamp(16px,4vw,70px); justify-content: space-between; background: var(--paper); border-bottom: 1px solid var(--line); }
.home-brand { gap: 16px; }
.home-brand h1 { font-size: clamp(23px,3vw,32px); margin: 0; }
.wordmark { width: 88px; height: 42px; display: block; overflow: hidden; }
.wordmark img { display: block; width: 100%; clip-path: polygon(0 0,100% 0,100% 71%,16% 71%,16% 80%,0 80%); }
.brand-rule { width: 1px; height: 25px; background: var(--line); }
#cabinet-home #profile, #cabinet-home #logout { background: transparent; }
#cabinet-home #profile { max-width: 150px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#cabinet-home #logout { border-color: transparent; }
.portal { width: min(1190px,100%); padding: clamp(20px,3.6vw,56px) clamp(16px,3vw,45px); margin: auto; }
.sign-in,.list-panel { border: 1px solid var(--line); border-radius: 12px; background: var(--paper); box-shadow: 0 8px 26px -24px #344337; }
.sign-in { display: grid; grid-template-columns: minmax(0,1.3fr) minmax(300px,1fr); overflow: hidden; margin: clamp(8px,4.2vh,64px) auto 0; }
.cover { width: 100%; height: 100%; min-height: 400px; object-fit: cover; object-position: 43% center; }
.login-panel { width: 100%; max-width: 480px; padding: clamp(32px,5vw,70px); align-self: center; justify-self: center; }
.login-panel h2, #popup-title { font-size: 30px; margin: 0 0 10px; }
.login-panel p, .quiet, #popup-help, #count { color: var(--quiet); }
.login-panel p { margin: 0 0 20px; }
#cabinet-home label { display: block; margin: 12px 0 4px; color: var(--quiet); font-size: 16px; }
#cabinet-home #sign-in { display: flex; justify-content: center; align-items: center; gap: 10px; width: 100%; margin: 20px 0 10px; min-height: 44px; }
.login-panel p.quiet { font-size: 14px; margin: 8px 0 0; }
#launchers { display: flex; gap: 12px; margin-bottom: 22px; }
#cabinet-home #launchers button { display: flex; align-items: center; gap: 12px; flex: 1; min-height: 78px; padding: 15px 22px; font-size: 23px; }
#cabinet-home #launchers [aria-pressed="true"] { background: #e2e9dd; border-color: #839780; }
#cabinet-home .loven-display-label { font-family: var(--loven-display-font); font-weight: 400; font-synthesis: none; }
.list-panel { padding: clamp(15px,2vw,28px); }
.list-top { justify-content: space-between; flex-wrap: wrap; margin-bottom: 12px; }
.list-heading h2 { font-size: 25px; margin: 0; }
#count { font-size: 14px; }
#cabinet-home #search { width: min(235px,52vw); font-size: 16px; }
.filters button { white-space: nowrap; }
.record { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 15px 0; border-top: 1px solid var(--line); }
.record-main { min-width: 0; }
.record-name { font-size: 19px; overflow-wrap: anywhere; display: block; color: var(--ink); text-decoration: none; }
a.record-name:hover { text-decoration: underline; }
.record-meta,.list-empty { font-size: 15px; color: var(--quiet); overflow-wrap: anywhere; }
.record-actions { display: flex; gap: 5px; flex-wrap: wrap; }
#cabinet-home .record-actions button { min-height: 32px; font-size: 15px; padding: 2px 9px; }
#cabinet-home .danger { color: #864139; }
#legacy-link { text-align: right; margin: 12px 0; }
#legacy-link a { color: var(--green); text-underline-offset: 3px; font-size: 15px; }
.list-empty { padding: 20px 0; border-top: 1px solid var(--line); }
#notice { margin: 15px 0; padding: 10px 14px; background: #e5e9df; border-radius: 6px; }
#notice.error,#popup-error { color: #81372d; }
#popup { max-width: min(430px,calc(100vw - 30px)); width: 100%; max-height: 90svh; overflow: auto; padding: 24px; border-radius: 12px; background: var(--paper); border: 1px solid var(--line); }
#popup::backdrop { background: #26302663; }
#popup-help { margin: 7px 0 15px; overflow-wrap: anywhere; }
.dialog-actions { margin: 20px 0 0; justify-content: flex-end; }
#popup-error { margin: 12px 0 0; }
@media(max-width:660px) {
  .home-bar { min-height: 60px; padding: 9px 13px; gap: 4px; } .home-brand { gap: 7px; }
  .wordmark { width: 66px; height: 32px; } .home-brand h1 { font-size: 21px; }
  #account-nav { gap: 2px; }
  #cabinet-home #profile,#cabinet-home #logout { font-size: 14px; padding: 0 6px; min-height: 32px; }
  #cabinet-home #profile { max-width: 83px; }
  .portal { padding: 16px 11px; } .sign-in { grid-template-columns: 1fr; margin-top: 0; }
  .cover { min-height: 0; height: clamp(130px,38vw,220px); }
  .login-panel { max-width: none; padding: 20px 24px 24px; } .login-panel h2 { font-size: 26px; }
  #launchers { gap: 6px; margin-bottom: 12px; }
  #cabinet-home #launchers button { justify-content: center; gap: 5px; font-size: 17px; min-height: 52px; padding: 6px 4px; }
  #launchers svg { width: 17px; } .list-panel { padding: 13px; } .filters { gap: 7px; }
  .record { align-items: flex-start; flex-direction: column; gap: 7px; } .list-top { gap: 10px; }
}
