.phonebook-view { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 12px; overflow: hidden; }
.phonebook-heading { display: flex; flex: none; align-items: center; justify-content: space-between; gap: 10px; padding: 6px 1px 0; }
.phonebook-heading > div > span { color: #7fa4b9; font-size: 10px; }
.phonebook-heading h2 { margin: 4px 0 0; color: #f0f7fc; font-size: 21px; }
.phonebook-add { flex: none; min-height: 40px; padding: 9px 12px; border: 1px solid #47768d; border-radius: 12px; background: #173342; color: #a7e5ff; font-size: 11px; font-weight: 650; cursor: pointer; }
.phonebook-search { flex: none; display: flex; align-items: center; gap: 10px; min-height: 46px; padding: 0 13px; border: 1px solid #2b4659; border-radius: 13px; background: #0e1b26; }
.phonebook-search input { width: 100%; min-width: 0; min-height: 44px; border: 0; outline: none; background: transparent; color: #e8f4fc; font: inherit; font-size: 13px; }
.phonebook-search:focus-within { border-color: #78cff5; }
.phonebook-search input::placeholder { color: #7790a1; }
.phonebook-categories { flex: none; display: flex; gap: 7px; overflow-x: auto; scrollbar-width: none; padding: 1px 0 4px; }
.phonebook-categories::-webkit-scrollbar { display: none; }
.phonebook-categories button { flex: none; min-height: 35px; padding: 7px 12px; border: 1px solid #2b3e4d; border-radius: 20px; background: #111e29; color: #99afbe; font: inherit; font-size: 11px; cursor: pointer; }
.phonebook-categories button[aria-pressed="true"] { border-color: #77d0f2; background: #1c4052; color: #c0eeff; }
.phonebook-scroll { min-height: 0; flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 0 1px 14px; scrollbar-width: thin; scrollbar-color: #3c5266 transparent; }
.phonebook-list { display: grid; gap: 12px; }
.phonebook-card { min-width: 0; padding: 15px; border: 1px solid #2b4354; border-radius: 17px; background: radial-gradient(ellipse at 100% 0, #23648120, transparent 65%), #101c27; }
.phonebook-card-head { display: flex; align-items: flex-start; gap: 11px; }
.phonebook-avatar { display: grid; place-items: center; flex: none; width: 42px; height: 42px; border: 1px solid #325669; border-radius: 13px; background: #1b3544; color: #a4e3fd; font-size: 20px; font-weight: 650; }
.phonebook-card-heading { min-width: 0; flex: 1; }
.phonebook-card h3 { margin: 1px 0 6px; color: #edf7fc; font-size: 15px; line-height: 1.5; overflow-wrap: anywhere; }
.phonebook-tags { display: flex; flex-wrap: wrap; gap: 5px; }
.phonebook-tags span { padding: 3px 6px; border-radius: 5px; background: #1c2d39; color: #97b6c8; font-size: 9px; }
.phonebook-tags .phonebook-personal { background: #173c35; color: #99d4bd; }
.phonebook-card p { margin: 11px 0 0; color: #9db2c1; font-size: 11px; line-height: 1.8; white-space: pre-wrap; overflow-wrap: anywhere; }
.phonebook-card .phonebook-address { color: #7f9bad; font-size: 10px; }
.phonebook-card .yellow-hours { color: #a6cbbd; }
.phonebook-card .yellow-hours-missing { color: #6f8797; }
.phonebook-numbers { display: grid; gap: 7px; margin-top: 13px; }
.phonebook-number { display: flex; align-items: center; justify-content: space-between; gap: 9px; min-height: 50px; padding: 9px 11px; border: 1px solid #294b5c; border-radius: 11px; background: #0b1923; color: #b7eaff; text-decoration: none; }
.phonebook-number > span { display: grid; gap: 3px; min-width: 0; }
.phonebook-number small { color: #7e9caf; font-size: 9px; }
.phonebook-number strong { color: #d8f2ff; font-size: 15px; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.phonebook-number > b { font-size: 11px; white-space: nowrap; font-weight: 500; }
.yellow-contact-missing { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 6px; padding: 11px; border: 1px dashed #304858; border-radius: 10px; color: #9bb5c6; font-size: 11px; }
.yellow-contact-missing small { color: #718b9e; font-size: 9px; }
.phonebook-card-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; padding-top: 12px; }
.phonebook-card-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-left: auto; }
.phonebook-card-actions button { min-height: 34px; padding: 7px 10px; border: 1px solid #2b4556; border-radius: 8px; background: #142735; color: #a6c9dd; font-size: 10px; cursor: pointer; }
.phonebook-card-actions button[data-phonebook-confirm-delete] { border-color: #8e6352; color: #f4c5ad; }
.phonebook-empty { padding: 28px 17px; margin: 0; border: 1px dashed #2d4a5e; border-radius: 14px; color: #8ba6b9; font-size: 12px; line-height: 1.9; text-align: center; }
.phonebook-feedback, .phonebook-form-feedback { color: #f0bd92; font-size: 11px; line-height: 1.7; }
.phonebook-feedback:empty, .phonebook-form-feedback:empty { display: none; }
.phonebook-form-dialog { width: min(480px, calc(100% - 24px)); padding: 0; border: 1px solid #38576c; border-radius: 20px; background: #0d1a25; color: #e8f4fc; overflow-y: auto; overscroll-behavior: contain; }
.phonebook-form-dialog::backdrop { background: #030910b8; backdrop-filter: blur(6px); }
.phonebook-form-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 17px; border-bottom: 1px solid #243d4d; }
.phonebook-form-head h2 { margin: 0; font-size: 20px; }
.phonebook-form-head button { flex: none; min-width: 64px; min-height: 56px; padding: 8px 12px; border: 1px solid #36566a; border-radius: 10px; background: #173040; color: #bfe8fb; font-size: var(--ui-text-small); line-height: 1.5; cursor: pointer; }
.phonebook-form { padding: 17px; }
.phonebook-form-actions { display: grid; grid-template-columns: 1fr 2fr; gap: 10px; margin-top: 18px; }
.phonebook-form-actions button { min-height: 45px; padding: 10px; border: 1px solid #355367; border-radius: 11px; background: #142a39; color: #aecddd; font: inherit; font-size: 13px; cursor: pointer; }
.phonebook-form-actions button[type="submit"] { border-color: #8edbfb; background: linear-gradient(100deg, #a0e4fb, #63c4ef); color: #082333; font-weight: 700; }
.phonebook-view button:focus-visible, .phonebook-view a:focus-visible, .phonebook-form-dialog :focus-visible { outline: 2px solid #8edfff; outline-offset: 3px; }
@media (max-width: 360px) { .phonebook-heading h2 { font-size: 19px; } .phonebook-add { padding: 8px; font-size: 10px; } .phonebook-card { padding: 12px; } }
.phonebook-heading > div > span { color: #cfb875; font-size: 9px; letter-spacing: .45px; }
.phonebook-heading h2 { font-size: 20px; }
.phonebook-add { border-color: #658593; }
.yellow-toolbar { display: flex; flex: none; justify-content: space-between; align-items: center; gap: 8px; padding-bottom: 3px; border-bottom: 1px solid #233541; }
.yellow-toolbar > div { display: flex; gap: 4px; }
.yellow-toolbar button { min-height: 34px; padding: 7px 10px; border: 0; border-radius: 8px; background: transparent; color: #7f99aa; font: inherit; font-size: 11px; cursor: pointer; }
.yellow-toolbar button[aria-pressed="true"] { background: #1a3544; color: #bdeafd; }
.yellow-toolbar > button { color: #98bdcf; font-size: 10px; }
.yellow-toolbar button:disabled { opacity: .5; cursor: wait; }
.phonebook-tags .yellow-origin { background: #39311c; color: #d7c48d; }
.yellow-source { margin-top: 12px; border-top: 1px solid #243e4f; padding-top: 9px; color: #819eb0; font-size: 9px; line-height: 1.8; }
.yellow-source summary { cursor: pointer; }
.yellow-source > div { display: grid; gap: 5px; margin-top: 8px; }
.yellow-source a { color: #9acfe9; text-decoration: none; overflow-wrap: anywhere; }
.yellow-source a:hover { text-decoration: underline; }
.yellow-map { display: inline-flex; align-items: center; min-height: 34px; padding: 7px 10px; border: 1px solid #2b4556; border-radius: 8px; background: #142735; color: #a6c9dd; font-size: 10px; text-decoration: none; }
.yellow-highlight { border-color: #d6c17b; box-shadow: 0 0 0 1px #d6c17b44; }
.yellow-pagination { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 18px; margin: 18px 0 0; }
.yellow-pagination button { min-height: 40px; border: 1px solid #345267; border-radius: 10px; background: #132936; color: #aed7eb; font: inherit; font-size: 11px; cursor: pointer; }
.yellow-pagination button:disabled { border-color: #263642; color: #526c7e; background: #0c1a24; cursor: default; }
.yellow-pagination span { color: #a7c6d8; font-size: 11px; font-variant-numeric: tabular-nums; }
.phonebook-form-head small { display: block; margin-bottom: 5px; color: #ab9e71; font-size: 10px; }
.yellow-consent { display: flex; align-items: flex-start; gap: 10px; margin-top: 15px; color: #b8ccdf; font-size: var(--ui-text-small); line-height: 1.7; cursor: pointer; }
.yellow-consent input { flex: none; width: 17px; height: 17px; margin: 2px 0 0; accent-color: #80d3f5; }
.yellow-trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.yellow-suggestions, .yellow-duplicate { display: grid; gap: 7px; margin-top: 12px; padding: 11px; border: 1px solid #756136; border-radius: 11px; background: #2b291d; color: #d4c294; font-size: 11px; line-height: 1.7; }
.yellow-suggestions b { font-weight: 500; }
.yellow-suggestions button, .yellow-duplicate button { min-height: 36px; padding: 8px 9px; border: 1px solid #6b6444; border-radius: 8px; background: #353426; color: #e5d8b5; font: inherit; font-size: 11px; text-align: left; cursor: pointer; }
.yellow-duplicate p { margin: 0; }
.yellow-remove-dialog h2 { margin: 0 0 14px; font-size: 18px; }
.yellow-remove-dialog p { color: #9cb9ca; font-size: 12px; line-height: 1.8; }
.yellow-remove-dialog [data-yellow-confirm-remove] { border-color: #986e5b; background: #50362d; color: #f1c7b4; }
.phonebook-form-dialog button:disabled { opacity: .5; cursor: wait; }
.yellow-legacy { margin-top: 16px; padding: 12px; border: 1px solid #354d5d; border-radius: 12px; color: #9cbbcd; font-size: 11px; }
.yellow-legacy summary { cursor: pointer; line-height: 1.8; }
.yellow-legacy > div { display: flex; align-items: center; justify-content: space-between; gap: 9px; margin-top: 8px; }
.yellow-legacy > div > span { min-width: 0; overflow-wrap: anywhere; }
.yellow-legacy button { min-height: 34px; padding: 7px; border: 1px solid #36586d; border-radius: 8px; background: #17303f; color: #acd6eb; font: inherit; font-size: 10px; cursor: pointer; }
@media (max-width: 360px) { .phonebook-heading h2 { font-size: 18px; } .phonebook-heading > div > span { font-size: 8px; } .yellow-toolbar button { padding: 7px 8px; } }
/* Search, registration and list controls share one compact surface. */
.phonebook-view { gap: 10px; }
.yellow-workbench { flex: none; min-width: 0; overflow: hidden; border: 1px solid #2b495c; border-radius: 15px; background: linear-gradient(120deg, #10212d, #0d1923); }
.yellow-search-row { display: flex; align-items: center; gap: 6px; min-width: 0; padding: 7px 8px 6px; }
.yellow-workbench .phonebook-search { flex: 1; min-width: 0; min-height: 40px; padding: 0 6px; gap: 8px; border: 0; border-radius: 0; background: transparent; }
.yellow-workbench .phonebook-search input { flex: 1; width: 0; min-width: 0; min-height: 40px; font-size: 12px; }
.yellow-workbench:has(.phonebook-search input:focus-visible) { border-color: #77c9ef; box-shadow: 0 0 0 2px #77c9ef18; }
.yellow-workbench .phonebook-add { min-height: 37px; padding: 8px 11px; border: 1px solid #3a6277; border-radius: 10px; background: #1c3b4d; color: #b6e9ff; font-size: 11px; white-space: nowrap; }
.yellow-workbench .phonebook-add:hover { background: #254b61; border-color: #66b6dc; }
.yellow-workbench .yellow-toolbar { min-height: 41px; margin: 0 10px; padding: 5px 0 6px; border-top: 1px solid #263e4e; border-bottom: 0; gap: 6px; }
.yellow-workbench .yellow-toolbar > div { gap: 3px; }
.yellow-workbench .yellow-toolbar button { min-height: 31px; padding: 6px 10px; border-radius: 7px; font-size: 10px; }
.yellow-workbench .yellow-toolbar button[aria-pressed="true"] { background: #214457; color: #c8edff; }
.yellow-workbench #yellow-refresh { padding-right: 3px; color: #97bbcf; }
@media (max-width: 360px) {
  .yellow-search-row { gap: 3px; padding-right: 7px; }
  .yellow-workbench .phonebook-search { gap: 7px; padding-left: 4px; padding-right: 2px; }
  .yellow-workbench .phonebook-search input { font-size: 11px; }
  .yellow-workbench .phonebook-add { padding: 8px; font-size: 10px; }
}
