/* ============================================================
   KURA — Components
   kura-components-legacy.css — v1.0
   Legacy shell — used only by login.php and pages/settings.php.
   All shared UI components. No page-specific layout here.
   ============================================================ */

/* ============================================================
   SIDEBAR (desktop only)
   ============================================================ */
.kura-sidebar {
    position:   fixed;
    top:        0;
    left:       0;
    width:      var(--sidebar-w);
    height:     100vh;
    background: var(--surface);
    border-right: 1px solid var(--div);
    display:    flex;
    flex-direction: column;
    align-items: center;
    padding:    var(--sp-5) 0;
    z-index:    100;
    gap:        var(--sp-1);
}

.kura-sidebar__logo {
    font-family:    var(--font-display);
    font-size:      20px;
    font-weight:    400;
    text-transform: uppercase;
    color:          var(--ink);
    letter-spacing: 0.05em;
    margin-bottom:  var(--sp-5);
    line-height:    1;
}

.kura-sidebar__logo span {
    color: var(--accent);
}

.kura-nav-item {
    display:        flex;
    flex-direction: column;
    align-items:    center;
    gap:            3px;
    padding:        var(--sp-2) var(--sp-2);
    width:          100%;
    cursor:         pointer;
    color:          var(--ink3);
    transition:     color 0.15s ease;
    text-decoration: none;
}

.kura-nav-item:hover {
    color: var(--ink2);
}

.kura-nav-item.active {
    color: var(--ink);
}

.kura-nav-item.active .kura-nav-item__icon {
    color: var(--accent);
}

.kura-nav-item__icon {
    font-size: 16px;
    line-height: 1;
}

.kura-nav-item__label {
    font-family:    var(--font-body);
    font-size:      10px;
    font-weight:    500;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    text-align:     center;
}

.kura-sidebar__spacer { flex: 1; }

/* ============================================================
   BOTTOM NAV (mobile only)
   ============================================================ */
.kura-bottom-nav {
    display:    none;
    position:   fixed;
    bottom:     0;
    left:       0;
    right:      0;
    height:     56px;
    background: var(--surface);
    border-top: 1px solid var(--div);
    z-index:    100;
    flex-direction: row;
    align-items: stretch;
}

.kura-bottom-nav .kura-nav-item {
    flex: 1;
    padding: var(--sp-2) var(--sp-1);
    gap: 2px;
}

/* ============================================================
   PAGE HEADER
   ============================================================ */
.kura-page-header {
    display:        flex;
    align-items:    center;
    justify-content: space-between;
    padding:        var(--sp-5) var(--sp-6);
    border-bottom:  1px solid var(--div);
    background:     var(--bg);
    min-height:     64px;
}

.kura-page-header__back {
    font-size:      var(--t-body);
    color:          var(--ink3);
    display:        flex;
    align-items:    center;
    gap:            var(--sp-1);
    min-width:      80px;
    text-decoration: none;
    transition:     color 0.15s ease;
}

.kura-page-header__back:hover { color: var(--ink2); }

/* Date display — occupies the left slot on L1 pages (replaces back link) */
.kura-date-display {
    font-family: var(--font-body);
    font-size:   var(--t-body);
    font-weight: 400;
    color:       var(--ink3);
    min-width:   80px;
    white-space: nowrap;
}

.kura-page-header__title {
    font-family:    var(--font-display);
    font-size:      var(--t-l2);
    font-weight:    400;
    text-transform: uppercase;
    color:          var(--ink);
    line-height:    1;
    letter-spacing: 0.01em;
    flex: 1;
    text-align:     center;
}

.kura-page-header__actions {
    display:    flex;
    align-items: center;
    gap:        var(--sp-2);
    min-width:  80px;
    justify-content: flex-end;
}

/* ============================================================
   CONTENT SHELL
   ============================================================ */
.kura-content-shell {
    width:   min(1200px, 100%);
    margin:  0 auto;
    padding: var(--sp-6);
}

/* ============================================================
   BUTTONS
   ============================================================ */
.vita-btn {
    display:        inline-flex;
    align-items:    center;
    justify-content: center;
    gap:            var(--sp-2);
    padding:        0 var(--sp-4);
    height:         32px;
    font-family:    var(--font-body);
    font-size:      var(--t-body);
    font-weight:    500;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    cursor:         pointer;
    border:         1px solid var(--div);
    border-radius:  0;
    background:     var(--surface);
    color:          var(--ink2);
    box-shadow:     0 1px 2px rgba(15,15,14,.04);
    transition:     background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
    white-space:    nowrap;
    text-decoration: none;
    line-height:    1;
}

.vita-btn:hover {
    background: var(--s1);
}

.vita-btn.primary {
    background:   var(--accent);
    color:        #fff;
    border-color: var(--accent);
    box-shadow:   none;
    font-size:    14px;
}

.vita-btn.primary:hover {
    background:   #cf3a0e;
    border-color: #cf3a0e;
}

.vita-btn.outline-accent {
    background:   transparent;
    color:        var(--accent);
    border-color: var(--accent);
    box-shadow:   none;
    font-size:    14px;
}

.vita-btn.outline-danger {
    font-size:    14px;
}

.vita-btn.outline-accent:hover {
    background: rgba(232,64,16,.06);
}

.vita-btn.ghost {
    background:   transparent;
    border-color: transparent;
    box-shadow:   none;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.vita-btn.ghost:hover {
    background: var(--s1);
    text-decoration: none;
}

.vita-btn.outline-danger {
    background:   transparent;
    color:        #c0392b;
    border-color: rgba(192,57,43,.3);
    box-shadow:   none;
}

.vita-btn.outline-danger:hover {
    background: rgba(192,57,43,.05);
}

.vita-btn:disabled,
.vita-btn[disabled] {
    opacity: 0.4;
    cursor:  not-allowed;
    pointer-events: none;
}

/* Compact inline button — for Edit/action buttons inside list rows */
.kura-btn--compact {
    font-size: var(--t-label);
    height:    24px;
    padding:   0 var(--sp-2);
}

/* FAB */
.kura-fab {
    position:      fixed;
    bottom:        var(--sp-6);
    right:         var(--sp-6);
    width:         48px;
    height:        48px;
    border-radius: 50%;
    background:    var(--surface);
    border:        1px solid var(--div);
    box-shadow:    0 4px 16px rgba(15,15,14,.12);
    display:       flex;
    align-items:   center;
    justify-content: center;
    font-size:     20px;
    cursor:        pointer;
    color:         var(--ink2);
    z-index:       90;
    transition:    box-shadow 0.15s ease;
}

.kura-fab::after {
    content:       '';
    position:      absolute;
    top:           2px;
    right:         2px;
    width:         8px;
    height:        8px;
    border-radius: 50%;
    background:    var(--accent);
}

.kura-fab:hover {
    box-shadow: 0 6px 24px rgba(15,15,14,.18);
}

/* ============================================================
   FORM FIELDS
   ============================================================ */
.kura-field {
    display:        flex;
    flex-direction: column;
    gap:            var(--sp-1);
}

.kura-field + .kura-field { margin-top: var(--sp-4); }

.kura-field__label {
    font-family:    var(--font-body);
    font-size:      var(--t-label);
    font-weight:    500;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color:          var(--ink3);
}

.cal-vita-input,
.cal-vita-select,
.cal-vita-textarea {
    width:        100%;
    background:   var(--s1);
    border:       1px solid rgba(15,15,14,.1);
    border-radius: 0;
    padding:      var(--sp-2) var(--sp-3);
    font-family:  var(--font-body);
    font-size:    var(--t-body);
    font-weight:  400;
    color:        var(--ink);
    outline:      none;
    transition:   border-color 0.15s ease;
    appearance:   none;
    -webkit-appearance: none;
}

.cal-vita-input::placeholder,
.cal-vita-textarea::placeholder {
    color: var(--ink3);
}

.cal-vita-input:focus,
.cal-vita-select:focus,
.cal-vita-textarea:focus {
    border-color: var(--ink2);
    background:   #fff;
}

.cal-vita-textarea {
    resize:     vertical;
    min-height: 80px;
    line-height: 1.6;
}

/* Native select — hidden, replaced by .kura-select */
.cal-vita-select {
    display: none;
}

/* ============================================================
   CUSTOM SELECT — .kura-select
   Replaces all native <select> elements app-wide.
   Usage: wrap with <div class="kura-select" data-name="fieldname">
   ============================================================ */
.kura-select {
    position: relative;
    width:    100%;
}

.kura-select__trigger {
    display:      flex;
    align-items:  center;
    justify-content: space-between;
    width:        100%;
    background:   var(--s1);
    border:       1px solid rgba(15,15,14,.1);
    border-radius: 0;
    padding:      var(--sp-2) var(--sp-3);
    font-family:  var(--font-body);
    font-size:    var(--t-body);
    font-weight:  400;
    color:        var(--ink);
    cursor:       pointer;
    user-select:  none;
    transition:   border-color 0.15s ease, background 0.15s ease;
    min-height:   34px;
    box-sizing:   border-box;
}

.kura-select__trigger:hover {
    border-color: var(--ink3);
}

.kura-select__trigger:focus {
    outline:      2px solid var(--accent);
    outline-offset: -2px;
    border-color: transparent;
    background:   #fff;
}

.kura-select--open .kura-select__trigger {
    border-color: var(--ink2);
    background:   #fff;
}

.kura-select__trigger-text {
    flex:      1;
    min-width: 0;
    overflow:  hidden;
    text-overflow: ellipsis;
    white-space:   nowrap;
}

.kura-select__trigger-text--placeholder {
    color: var(--ink3);
}

.kura-select__chevron {
    color:      var(--ink3);
    font-size:  10px;
    flex-shrink: 0;
    margin-left: var(--sp-2);
    transition: transform 0.18s ease;
    line-height: 1;
}

.kura-select--open .kura-select__chevron {
    transform: rotate(180deg);
}

.kura-select__panel {
    display:    none;
    position:   absolute;
    top:        calc(100% + 2px);
    left:       0;
    right:      0;
    background: #fff;
    border:     1px solid var(--div);
    box-shadow: 0 4px 16px rgba(15,15,14,.10);
    z-index:    300;
    max-height: 240px;
    overflow-y: auto;
}

.kura-select--open .kura-select__panel {
    display: block;
}

.kura-select__option {
    display:     flex;
    align-items: center;
    justify-content: space-between;
    padding:     9px var(--sp-3);
    font-family: var(--font-body);
    font-size:   var(--t-body);
    font-weight: 400;
    color:       var(--ink2);
    cursor:      pointer;
    transition:  background 0.1s ease;
}

.kura-select__option:hover {
    background: var(--s1);
    color:      var(--ink);
}

.kura-select__option--selected {
    background: var(--s1);
    color:      var(--ink);
}

.kura-select__option--selected::after {
    content:     '✓';
    color:       var(--accent);
    font-size:   10px;
    flex-shrink: 0;
    margin-left: var(--sp-2);
}

.kura-select__option--separator {
    border-top: 1px solid var(--div);
    color:      var(--ink3);
    font-size:  var(--t-meta);
}

.kura-select__option--separator:hover {
    background: var(--s1);
    color:      var(--ink2);
}

/* ============================================================
   DRAWER (fixed right-side panel — full viewport height)
   ============================================================ */
.kura-drawer-shell {
    position: relative;
}

.kura-drawer-overlay {
    display:    none;
    position:   fixed;
    inset:      0;
    background: rgba(15,15,14,.15);
    z-index:    149;
}

.kura-drawer-overlay.open {
    display: block;
}

.kura-drawer {
    position:   fixed;
    top:        65px;
    right:      0;
    width:      420px;
    height:     calc(100vh - 65px);
    max-height: calc(100vh - 65px);
    overflow:   hidden;
    background: var(--surface);
    z-index:    150;
    display:    flex;
    flex-direction: column;
    transform:  translateX(100%);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    border-left: 1px solid var(--div);
}

.kura-drawer.open {
    transform:  translateX(0);
    box-shadow: -4px 0 24px rgba(15,15,14,.06);
}

.kura-drawer__head {
    display:     flex;
    align-items: center;
    justify-content: space-between;
    padding:     var(--sp-5) var(--sp-5) var(--sp-4);
    border-bottom: 1px solid var(--div);
    flex-shrink: 0;
}

.kura-drawer__title {
    font-family:    var(--font-display);
    font-size:      20px;
    font-weight:    400;
    text-transform: uppercase;
    color:          var(--ink);
    line-height:    1;
}

.kura-drawer__close {
    background:  transparent;
    border:      none;
    cursor:      pointer;
    color:       var(--ink3);
    font-size:   18px;
    padding:     var(--sp-1);
    transition:  color 0.15s ease;
    line-height: 1;
}

.kura-drawer__close:hover { color: var(--ink); }

.kura-drawer__body {
    flex:       1;
    min-height: 0;
    overflow-y: auto;
    padding:    var(--sp-5);
}

.kura-drawer__foot {
    padding:      var(--sp-4) var(--sp-5);
    border-top:   1px solid var(--div);
    display:      flex;
    gap:          var(--sp-2);
    justify-content: flex-end;
    flex-shrink:  0;
}

/* ============================================================
   BADGES
   ============================================================ */
.kura-badge {
    display:       inline-flex;
    align-items:   center;
    padding:       2px var(--sp-2);
    border-radius: 100px; /* pill */
    font-family:   var(--font-body);
    font-size:     var(--t-label);
    font-weight:   500;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    white-space:   nowrap;
}

.kura-badge--accent  { background: var(--accent); color: #fff; }
.kura-badge--neutral { background: var(--s2);     color: var(--ink2); }
.kura-badge--ghost   { background: transparent;   color: var(--ink3); border: 1px solid var(--div); }

/* Count badge (number indicator) */
.kura-count {
    display:       inline-flex;
    align-items:   center;
    justify-content: center;
    min-width:     16px;
    height:        16px;
    border-radius: 50%;
    background:    var(--accent);
    color:         #fff;
    font-family:   var(--font-body);
    font-size:     var(--t-label);
    font-weight:   500;
    padding:       0 4px;
}

/* ============================================================
   CARDS / ROWS
   ============================================================ */
.kura-card {
    background:   var(--surface);
    border:       1px solid var(--div);
    padding:      var(--sp-4) var(--sp-5);
}

.kura-card + .kura-card { border-top: none; }

.kura-row {
    display:     flex;
    align-items: center;
    gap:         var(--sp-3);
    padding:     var(--sp-3) var(--sp-4);
    border-bottom: 1px solid var(--div);
    transition:  background 0.1s ease;
}

.kura-row:hover { background: var(--s1); }

.kura-row:last-child { border-bottom: none; }

.kura-row__main {
    flex: 1;
    min-width: 0;
}

.kura-row__title {
    font-size:   var(--t-body);
    font-weight: 500;
    color:       var(--ink);
    white-space: nowrap;
    overflow:    hidden;
    text-overflow: ellipsis;
}

.kura-row__meta {
    font-size:  var(--t-meta);
    color:      var(--ink3);
    margin-top: 2px;
}

/* ============================================================
   SECTION HEADS
   ============================================================ */
.kura-section-head {
    font-family:    var(--font-body);
    font-size:      var(--t-label);
    font-weight:    500;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color:          var(--ink3);
    padding:        var(--sp-3) 0 var(--sp-2);
    border-bottom:  1px solid var(--div);
    margin-bottom:  var(--sp-2);
}

/* ============================================================
   MODALS
   ============================================================ */
.kura-modal-overlay {
    position:   fixed;
    inset:      0;
    background: rgba(15,15,14,.3);
    z-index:    200;
    display:    flex;
    align-items: center;
    justify-content: center;
    padding:    var(--sp-5);
    opacity:    0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.kura-modal-overlay.open {
    opacity:        1;
    pointer-events: all;
}

.kura-modal {
    background: var(--surface);
    width:      min(480px, 100%);
    max-height: 80vh;
    display:    flex;
    flex-direction: column;
    box-shadow: 0 16px 48px rgba(15,15,14,.12);
}

.kura-modal__head {
    padding:       var(--sp-5);
    border-bottom: 1px solid var(--div);
    display:       flex;
    align-items:   center;
    justify-content: space-between;
    flex-shrink:   0;
}

.kura-modal__title {
    font-family:    var(--font-display);
    font-size:      20px;
    font-weight:    400;
    text-transform: uppercase;
    color:          var(--ink);
    line-height:    1;
}

.kura-modal__body {
    padding:    var(--sp-5);
    overflow-y: auto;
    flex:       1;
}

.kura-modal__foot {
    padding:    var(--sp-4) var(--sp-5);
    border-top: 1px solid var(--div);
    display:    flex;
    gap:        var(--sp-2);
    justify-content: flex-end;
    flex-shrink: 0;
}

/* ============================================================
   CONFIRM DIALOG (delete, destructive actions)
   ============================================================ */
.kura-confirm {
    background: var(--surface);
    width:      min(360px, 100%);
    box-shadow: 0 16px 48px rgba(15,15,14,.12);
    padding:    var(--sp-6);
    display:    flex;
    flex-direction: column;
    gap:        var(--sp-5);
}

.kura-confirm__message {
    font-size:   var(--t-body);
    color:       var(--ink2);
    line-height: 1.6;
}

.kura-confirm__actions {
    display:         flex;
    gap:             var(--sp-2);
    justify-content: flex-end;
}

/* ============================================================
   TOAST NOTIFICATIONS
   ============================================================ */
#kura-toast-container {
    position:      fixed;
    bottom:        var(--sp-6);
    left:          50%;
    transform:     translateX(-50%);
    z-index:       999;
    display:       flex;
    flex-direction: column;
    gap:           var(--sp-2);
    align-items:   center;
    pointer-events: none;
}

.kura-toast {
    background:   var(--ink);
    color:        #fff;
    font-size:    var(--t-body);
    font-weight:  400;
    padding:      var(--sp-2) var(--sp-5);
    box-shadow:   0 4px 16px rgba(15,15,14,.2);
    opacity:      0;
    transform:    translateY(8px);
    transition:   opacity 0.2s ease, transform 0.2s ease;
    pointer-events: none;
    white-space:  nowrap;
}

.kura-toast.show {
    opacity:   1;
    transform: translateY(0);
}

.kura-toast.success { background: #2d6a4f; }
.kura-toast.error   { background: var(--accent); }

/* ============================================================
   EMPTY STATE
   ============================================================ */
.kura-empty {
    display:        flex;
    flex-direction: column;
    align-items:    center;
    justify-content: center;
    gap:            var(--sp-3);
    padding:        var(--sp-8) var(--sp-6);
    color:          var(--ink3);
    text-align:     center;
}

.kura-empty__symbol { font-size: 24px; }

.kura-empty__label {
    font-size:      var(--t-body);
    color:          var(--ink3);
}

/* ============================================================
   DIVIDER
   ============================================================ */
.kura-divider {
    height:     1px;
    background: var(--div);
    margin:     var(--sp-5) 0;
}

/* ============================================================
   MOBILE OVERRIDES
   ============================================================ */
@media (max-width: 768px) {
    .kura-sidebar    { display: none; }
    .kura-bottom-nav { display: flex; }

    .kura-drawer {
        position:   fixed;
        bottom:     0;
        left:       0;
        right:      0;
        top:        auto;
        width:      100%;
        /* dvh tracks visible area as mobile browser chrome appears/disappears */
        height:     calc(100dvh - 56px);
        max-height: calc(100dvh - 56px);
        /* 110% pushes top edge fully below viewport — prevents bleeding when closed */
        transform:  translateY(110%);
        border-left: none;
        border-top: 1px solid var(--div);
    }

    .kura-drawer.open {
        transform: translateY(0);
        box-shadow: 0 -4px 24px rgba(15,15,14,.1);
    }

    .kura-fab {
        bottom: calc(56px + var(--sp-4));
    }

    .kura-page-header {
        padding: var(--sp-3) var(--sp-4);
    }

    .kura-content-shell {
        padding: var(--sp-4);
    }
}

/* ============================================================
   DRAWER — desktop height (header is 87px)
   ============================================================ */
@media (min-width: 769px) {
    .kura-drawer {
        top:        87px;
        height:     calc(100vh - 87px);
        max-height: calc(100vh - 87px);
    }
}

/* ============================================================
   CONTACTS — Module 03
   ============================================================ */

/* Type badges */
.badge-household {
    background:     var(--s2);
    color:          var(--ink2);
    font-family:    var(--font-body);
    font-size:      var(--t-meta);
    font-weight:    500;
    letter-spacing: .04em;
    text-transform: uppercase;
    padding:        2px 6px;
    border-radius:  99px;
}
.badge-personal {
    background:     var(--accent);
    color:          #fff;
    font-family:    var(--font-body);
    font-size:      var(--t-meta);
    font-weight:    500;
    letter-spacing: .04em;
    text-transform: uppercase;
    padding:        2px 6px;
    border-radius:  99px;
}

/* Tag pills */
.kura-tag {
    display:       inline-block;
    background:    var(--s1);
    color:         var(--ink3);
    font-family:   var(--font-body);
    font-size:     var(--t-meta);
    padding:       2px 7px;
    border-radius: 99px;
    border:        1px solid var(--div);
}

/* Optional field divider in drawer */
.kura-field-divider {
    display:     flex;
    align-items: center;
    gap:         10px;
    margin:      20px 0 12px;
}
.kura-field-divider::before,
.kura-field-divider::after {
    content:    '';
    flex:       1;
    height:     1px;
    background: var(--div);
}
.kura-field-divider-label {
    font-family:    var(--font-body);
    font-size:      var(--t-label);
    font-weight:    500;
    letter-spacing: .08em;
    color:          var(--ink3);
    white-space:    nowrap;
}

/* Optional field rows */
.opt-field-wrap { margin-bottom: 14px; }
.opt-field-label-row {
    display:         flex;
    align-items:     center;
    justify-content: space-between;
    margin-bottom:   4px;
}
.opt-field-remove {
    background:  none;
    border:      none;
    color:       var(--ink3);
    font-size:   16px;
    line-height: 1;
    cursor:      pointer;
    padding:     0 2px;
    transition:  color .15s;
}
.opt-field-remove:hover { color: var(--accent); }

/* Add detail dropdown */
.add-detail-wrap {
    position:      relative;
    margin-top:    8px;
    margin-bottom: 16px;
}
.add-detail-menu {
    display:    none;
    position:   absolute;
    top:        calc(100% + 4px);
    left:       0;
    background: #fff;
    border:     1px solid var(--div);
    box-shadow: 0 4px 16px rgba(15,15,14,.10);
    z-index:    200;
    min-width:  180px;
}
.add-detail-menu.open { display: block; }
.add-detail-item {
    display:     block;
    width:       100%;
    text-align:  left;
    background:  none;
    border:      none;
    padding:     9px 14px;
    font-family: var(--font-body);
    font-size:   var(--t-body);
    color:       var(--ink2);
    cursor:      pointer;
    transition:  background .12s;
}
.add-detail-item:hover { background: var(--s1); }
.add-detail-empty {
    padding:     10px 14px;
    font-family: var(--font-body);
    font-size:   var(--t-body);
    color:       var(--ink3);
}

/* Pet card footer row */
.kura-pet-card__footer {
    margin-top:      var(--sp-4);
    display:         flex;
    align-items:     center;
    justify-content: space-between;
}

/* Pet drag states */
.kura-pet-card[draggable="true"] { cursor: grab; }
.kura-pet-card[draggable="true"]:active { cursor: grabbing; }

.kura-pet-card--dragging {
    opacity:    0.4;
    cursor:     grabbing;
}

.kura-pet-card--drag-over {
    outline:        2px solid var(--accent);
    outline-offset: -2px;
}

/* Drag hint label below grid */
.kura-drag-hint {
    font-family: var(--font-body);
    font-size:   var(--t-meta);
    color:       var(--ink3);
    margin-top:  var(--sp-3);
    text-align:  center;
}

/* ============================================================
   TASK PRIORITY
   ============================================================ */
.kura-priority {
    background:  transparent;
    border:      none;
    cursor:      pointer;
    font-size:   14px;
    color:       var(--ink3);
    padding:     0 var(--sp-1);
    line-height: 1;
    transition:  color 0.15s ease, opacity 0.15s ease;
    flex-shrink: 0;
    opacity:     0.35;
}

.kura-priority:hover {
    color:   var(--ink2);
    opacity: 0.7;
}

/* High priority — full opacity accent color, clearly active */
.kura-priority--high {
    color:   var(--accent);
    opacity: 1;
}

.kura-task-row--high .kura-row__title { font-weight: 600; }

/* ============================================================
   CONTACTS — Letter group eyebrow
   ============================================================ */
.contact-letter-eyebrow {
    font-family:    var(--font-body);
    font-size:      var(--t-label);
    font-weight:    500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color:          var(--ink3);
    padding:        var(--sp-4) var(--sp-4) var(--sp-2);
    border-bottom:  1px solid var(--div);
    margin-bottom:  0;
}

/* ============================================================
   VAULT — Drag states on cards
   ============================================================ */
.kura-qa-item[draggable="true"] { cursor: grab; }
.kura-qa-item[draggable="true"]:active { cursor: grabbing; }

.kura-qa-item--dragging {
    opacity: 0.4;
    cursor:  grabbing;
}

.kura-qa-item--drag-over {
    outline:        2px solid var(--accent);
    outline-offset: -2px;
}

/* Contact detail page */
.contact-detail-header {
    display:       flex;
    align-items:   baseline;
    gap:           10px;
    margin-bottom: 10px;
}
.contact-detail-name {
    font-family:    var(--font-display);
    font-size:      var(--t-l2);
    text-transform: uppercase;
    color:          var(--ink);
    line-height:    1;
}
.contact-detail-tags {
    display:       flex;
    flex-wrap:     wrap;
    gap:           6px;
    margin-bottom: 20px;
}
.contact-detail-fields {
    display:       flex;
    flex-direction: column;
    gap:           16px;
    margin-bottom: 24px;
}
.contact-detail-field {
    display:        flex;
    flex-direction: column;
    gap:            4px;
}
.contact-field-value {
    font-family: var(--font-body);
    font-size:   var(--t-body);
    color:       var(--ink2);
    line-height: 1.55;
}
.contact-field-link {
    color:                var(--ink2);
    text-decoration:      underline;
    text-underline-offset: 2px;
}
.contact-field-link:hover { color: var(--accent); }
.kura-contact-detail-actions {
    margin-top:    var(--sp-6);
    margin-bottom: var(--sp-2);
    display:       flex;
    gap:           var(--sp-2);
}

.kura-contact-detail-timestamps {
    margin-top: var(--sp-5);
    display:    flex;
    gap:        4px;
    flex-wrap:  wrap;
}

/* profile row top-align (for multi-line values like notes) */
.kura-profile-row--top { align-items: flex-start; }
.contact-detail-section-title {
    font-family:    var(--font-body);
    font-size:      var(--t-label);
    font-weight:    500;
    letter-spacing: .08em;
    color:          var(--ink3);
    margin-bottom:  16px;
    text-transform: uppercase;
}
.kura-meta-text {
    font-family: var(--font-body);
    font-size:   var(--t-body);
    color:       var(--ink3);
}

/* ============================================================
   TASK — Google Calendar sync indicator
   ============================================================ */
.kura-gcal-indicator {
    display:        inline-flex;
    align-items:    center;
    justify-content: center;
    margin-left:    6px;
    vertical-align: middle;
    position:       relative;
    top:            -1px;
    opacity:        0.45;
    transition:     opacity 0.15s ease;
    flex-shrink:    0;
}

.kura-gcal-indicator svg {
    width:  14px;
    height: 14px;
    display: block;
}

.kura-task-row:hover .kura-gcal-indicator,
.dash-task-row:hover .kura-gcal-indicator {
    opacity: 0.7;
}
