:root {
    --sidebar: #202123;
    --sidebar-hover: #2a2b32;
    --sidebar-active: #343541;

    --background: #f7f7f5;
    --surface: #ffffff;
    --surface-soft: #f1f1ef;

    --text: #202123;
    --muted: #6f7075;

    --border: #deded9;

    --green: #7fa36a;
    --green-dark: #668854;

    --gold: #c99742;

    --shadow:
        0 8px 30px rgba(0, 0, 0, 0.08);
}


* {
    box-sizing: border-box;
}


html,
body {
    margin: 0;
    width: 100%;
    height: 100%;
}


body {
    font-family:
        Inter,
        ui-sans-serif,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    background: var(--background);
    color: var(--text);
}


button,
input {
    font: inherit;
}


button,
a {
    -webkit-tap-highlight-color: transparent;
}


/* ==========================================================
   STRUCTURE PRINCIPALE
   ========================================================== */

.app {
    width: 100vw;
    height: 100vh;
    height: 100dvh;

    display: grid;
    grid-template-columns: 285px minmax(0, 1fr);

    overflow: hidden;

    background: var(--background);
}


/* ==========================================================
   BARRE LATÉRALE
   ========================================================== */

.sidebar {
    min-width: 0;
    height: 100%;

    padding:
        calc(18px + env(safe-area-inset-top))
        14px
        calc(16px + env(safe-area-inset-bottom));

    display: flex;
    flex-direction: column;

    background: var(--sidebar);
    color: white;

    overflow-y: auto;
}


.puppy-brand {
    display: flex;
    align-items: center;
    gap: 12px;

    padding: 5px 7px 22px;
}


.puppy-face {
    flex: 0 0 auto;

    width: 48px;
    height: 48px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 15px;

    background:
        linear-gradient(
            145deg,
            rgba(127, 163, 106, 0.95),
            rgba(201, 151, 66, 0.95)
        );

    font-size: 31px;
}


.puppy-brand-text {
    min-width: 0;

    display: flex;
    flex-direction: column;

    gap: 3px;
}


.puppy-brand-text strong {
    font-size: 19px;
}


.puppy-brand-text span {
    display: flex;
    align-items: center;
    gap: 6px;

    font-size: 12px;
    color: #c9cad0;
}


.status-dot {
    display: inline-block;

    width: 8px;
    height: 8px;

    border-radius: 999px;
    background: #79c66a;

    box-shadow:
        0 0 0 3px rgba(121, 198, 106, 0.12);
}


.sidebar-section-title {
    margin: 12px 9px 7px;

    color: #8f9097;

    font-size: 11px;
    font-weight: 700;

    text-transform: uppercase;
    letter-spacing: 0.08em;
}


.puppy-nav {
    display: flex;
    flex-direction: column;

    gap: 4px;
}


.puppy-tab {
    min-height: 46px;

    display: flex;
    align-items: center;

    gap: 11px;

    padding: 10px 12px;

    border-radius: 10px;

    color: #eeeeef;
    text-decoration: none;

    font-size: 14px;
    font-weight: 500;

    transition:
        background 0.15s ease,
        transform 0.15s ease;
}


.puppy-tab:hover {
    background: var(--sidebar-hover);
}


.puppy-tab.active {
    background: var(--sidebar-active);
}


.tab-icon {
    width: 24px;
    text-align: center;
    font-size: 18px;
}


.capabilities {
    margin-top: 18px;
}


.capability-row {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 8px;

    padding: 8px 10px;

    color: #d3d3d7;

    font-size: 12px;
}


.capability-badge {
    flex: 0 0 auto;

    padding: 3px 7px;

    border-radius: 999px;

    background: rgba(127, 163, 106, 0.16);
    color: #b7d9a7;

    font-size: 10px;
    font-weight: 700;
}


.sidebar-footer {
    margin-top: auto;

    padding: 13px 10px 3px;

    border-top:
        1px solid rgba(255,255,255,0.09);
}


.disk-line {
    display: flex;
    justify-content: space-between;
    align-items: center;

    gap: 8px;

    color: #dadade;

    font-size: 12px;
}


.disk-subline {
    margin-top: 5px;

    color: #85868c;

    font-size: 11px;
}


/* ==========================================================
   ZONE PRINCIPALE
   ========================================================== */

.main-shell {
    min-width: 0;
    min-height: 0;

    height: 100%;

    display: flex;
    flex-direction: column;

    background: var(--surface);
}


.topbar {
    flex: 0 0 62px;

    min-height: 62px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 15px;

    padding:
        calc(10px + env(safe-area-inset-top))
        24px
        10px;

    border-bottom: 1px solid var(--border);

    background:
        rgba(255, 255, 255, 0.94);

    backdrop-filter: blur(12px);
}


.topbar-title {
    display: flex;
    flex-direction: column;

    gap: 2px;
}


.topbar-title strong {
    font-size: 15px;
}


.topbar-title span {
    color: var(--muted);
    font-size: 12px;
}


.local-status {
    display: flex;
    align-items: center;

    gap: 7px;

    padding: 7px 10px;

    border: 1px solid var(--border);
    border-radius: 999px;

    background: var(--surface);

    font-size: 12px;
    color: var(--muted);
}


/* ==========================================================
   CONVERSATION
   ========================================================== */

#chat {
    flex: 1 1 auto;
    min-height: 0;

    overflow-y: auto;

    padding:
        32px
        max(28px, calc((100% - 900px) / 2))
        150px;

    scroll-behavior: smooth;
}


.message {
    width: fit-content;

    max-width: min(760px, 86%);

    margin-bottom: 22px;

    padding: 13px 16px;

    white-space: pre-wrap;

    font-size: 16px;
    line-height: 1.58;

    overflow-wrap: anywhere;
}


.message.puppy {
    margin-right: auto;

    padding-left: 0;

    background: transparent;

    color: var(--text);
}


.message.puppy::before {
    content: "🐶";

    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 30px;
    height: 30px;

    margin-right: 10px;

    border-radius: 10px;

    vertical-align: top;

    background:
        linear-gradient(
            145deg,
            rgba(127, 163, 106, 0.22),
            rgba(201, 151, 66, 0.20)
        );
}


.message.user {
    margin-left: auto;

    border-radius: 20px;

    background: #ececea;
    color: var(--text);
}


/* ==========================================================
   COMPOSER
   ========================================================== */

.composer-area {
    position: absolute;

    left: 285px;
    right: 0;
    bottom: 0;

    padding:
        18px
        24px
        calc(16px + env(safe-area-inset-bottom));

    background:
        linear-gradient(
            to top,
            rgba(255,255,255,1) 72%,
            rgba(255,255,255,0)
        );
}


#chat-form {
    width: min(820px, 100%);

    margin: 0 auto;

    display: flex;
    align-items: center;

    gap: 10px;

    padding: 8px 9px 8px 17px;

    border: 1px solid #d5d5d0;
    border-radius: 27px;

    background: var(--surface);

    box-shadow: var(--shadow);
}


#message {
    flex: 1;

    min-width: 0;

    padding: 10px 3px;

    border: none;
    outline: none;

    background: transparent;

    color: var(--text);

    font-size: 16px;
}


#message::placeholder {
    color: #929397;
}


.composer-buttons {
    flex: 0 0 auto;

    display: flex;
    align-items: center;

    gap: 5px;
}


button {
    border: none;
    cursor: pointer;
}


.round-button,
.send-button {
    width: 38px;
    height: 38px;

    padding: 0;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border-radius: 999px;

    font-size: 17px;
}


.round-button {
    background: transparent;
    color: var(--text);
}


.round-button:hover {
    background: var(--surface-soft);
}


.round-button:disabled {
    cursor: not-allowed;
    opacity: 0.4;
}


.send-button {
    background: var(--text);
    color: white;

    font-size: 21px;
    font-weight: 600;
}


.send-button:hover {
    background: #3c3d40;
}


.audio-button {
    min-height: 38px;

    padding: 0 12px;

    border-radius: 999px;

    background: var(--surface-soft);
    color: var(--text);

    font-size: 12px;
    font-weight: 600;

    white-space: nowrap;
}


.audio-button:hover {
    background: #e4e4e1;
}


#audio-controls {
    width: min(790px, calc(100% - 28px));

    margin: 7px auto 0;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 10px;

    color: var(--muted);

    font-size: 11px;
}


.local-hint {
    opacity: 0.8;
}


/* ==========================================================
   DISQUE
   ========================================================== */

.disk-space-message {
    border-left: 4px solid transparent;

    padding-left: 14px !important;
}


.disk-warning {
    background: #fff6dd !important;
    border-left-color: #d7a134;
}


.disk-critical {
    background: #ffebeb !important;
    border-left-color: #cf5353;
}


.disk-error {
    background: #f4edff !important;
    border-left-color: #8868ad;
}


/* ==========================================================
   MOBILE / TABLETTE
   ========================================================== */

@media (max-width: 850px) {

    .app {
        display: flex;
        flex-direction: column;
    }


    .sidebar {
        flex: 0 0 auto;

        width: 100%;
        height: auto;

        padding:
            calc(8px + env(safe-area-inset-top))
            10px
            8px;

        overflow: visible;
    }


    .puppy-brand {
        padding: 0 4px 8px;
    }


    .puppy-face {
        width: 40px;
        height: 40px;

        font-size: 26px;
    }


    .puppy-brand-text strong {
        font-size: 17px;
    }


    .sidebar-section-title,
    .capabilities,
    .sidebar-footer {
        display: none;
    }


    .puppy-nav {
        flex-direction: row;

        gap: 4px;

        overflow-x: auto;

        scrollbar-width: none;
    }


    .puppy-nav::-webkit-scrollbar {
        display: none;
    }


    .puppy-tab {
        flex: 0 0 auto;

        min-height: 38px;

        padding: 7px 10px;

        font-size: 12px;

        white-space: nowrap;
    }


    .tab-icon {
        width: auto;
        font-size: 15px;
    }


    .main-shell {
        flex: 1 1 auto;
        min-height: 0;
    }


    .topbar {
        flex: 0 0 49px;
        min-height: 49px;

        padding: 7px 13px;
    }


    .topbar-title span {
        display: none;
    }


    #chat {
        padding: 18px 16px 145px;
    }


    .message {
        max-width: 92%;

        font-size: 16px;
    }


    .composer-area {
        left: 0;

        padding:
            12px
            10px
            calc(10px + env(safe-area-inset-bottom));
    }


    #chat-form {
        border-radius: 24px;

        padding: 7px 7px 7px 14px;
    }


    .audio-button {
        width: 38px;

        padding: 0;

        overflow: hidden;

        font-size: 0;
    }


    .audio-button::before {
        content: "🎧";
        font-size: 17px;
    }


    #audio-controls {
        width: calc(100% - 18px);
    }


    .local-hint {
        display: none;
    }
}


/* ==========================================================
   PETITS TÉLÉPHONES
   ========================================================== */

@media (max-width: 480px) {

    .puppy-tab span:last-child {
        display: none;
    }


    .puppy-tab {
        min-width: 42px;
        justify-content: center;
    }


    .tab-icon {
        font-size: 18px;
    }


    .local-status {
        padding: 6px 8px;

        font-size: 11px;
    }


    #chat {
        padding-left: 12px;
        padding-right: 12px;
    }


    .message {
        max-width: 95%;
    }


    #message {
        font-size: 16px;
    }
}

/* ==========================================================
   ÉTATS RÉELS DES CAPACITÉS PUPPY
   ========================================================== */

.capability-badge.cap-ok {
    background: rgba(121, 198, 106, 0.16);
    color: #b8e4a8;
}

.capability-badge.cap-warn {
    background: rgba(222, 174, 76, 0.17);
    color: #e8c773;
}

.capability-badge.cap-off {
    background: rgba(214, 92, 92, 0.16);
    color: #e7a0a0;
}


/* ==========================================================
   PUPPY - CONVERSATION VOCALE
   ========================================================== */

.conversation-button {
    min-height: 38px;

    padding: 0 13px;

    border-radius: 999px;

    background: #ececea;
    color: #202123;

    font-size: 12px;
    font-weight: 650;

    white-space: nowrap;

    transition:
        background 0.15s ease,
        color 0.15s ease,
        transform 0.15s ease;
}


.conversation-button:hover {
    background: #dfdfdc;
}


.conversation-button.active {
    background: #202123;
    color: white;
}


.conversation-button:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}


@media (max-width: 850px) {

    .conversation-button {
        width: 38px;
        height: 38px;

        padding: 0;

        overflow: hidden;

        font-size: 0;
    }


    .conversation-button::before {
        content: "🗣️";

        font-size: 17px;
    }


    .conversation-button.active::before {
        content: "⏹️";
    }
}


/* ==========================================================
   PUPPY - TABLEAU MÉMOIRE RÉEL
   ========================================================== */

.memory-dashboard {
    width: min(820px, 100%);
    margin: 0 auto;
    padding: 28px 24px 150px;
}


.memory-dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 18px;
    margin-bottom: 24px;
}


.memory-title-block h2 {
    margin: 0 0 5px;
    font-size: 24px;
}


.memory-subtitle {
    color: #6f6f6f;
    font-size: 14px;
}


.memory-refresh {
    border: 1px solid #dededb;
    border-radius: 10px;

    background: #fff;
    color: #343434;

    padding: 9px 12px;

    cursor: pointer;
}


.memory-refresh:hover {
    background: #f4f4f1;
}


.memory-loading {
    padding: 24px;

    border: 1px solid #e5e5e2;
    border-radius: 14px;

    background: #fafaf8;
}


.memory-error {
    color: #a83e3e;
}


.memory-identity {
    display: grid;
    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 12px;

    margin-bottom: 28px;
}


.memory-user,
.memory-count {
    display: flex;
    flex-direction: column;
    gap: 5px;

    padding: 16px;

    border: 1px solid #e7e7e4;
    border-radius: 14px;

    background: #fafaf8;
}


.memory-label {
    color: #777;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .04em;
}


.memory-section-title {
    margin:
        24px 0 12px;

    font-size: 15px;
}


.memory-grid {
    display: grid;
    gap: 10px;
}


.memory-card {
    padding: 16px 17px;

    border: 1px solid #e3e3df;
    border-radius: 14px;

    background: white;
}


.memory-card-key {
    margin-bottom: 5px;

    color: #757575;

    font-size: 12px;
    font-weight: 650;

    text-transform: uppercase;
    letter-spacing: .035em;
}


.memory-card-value {
    color: #202123;

    font-size: 16px;
    line-height: 1.45;
}


.memory-empty {
    display: flex;
    flex-direction: column;
    align-items: center;

    padding: 36px 20px;

    border: 1px dashed #d8d8d3;
    border-radius: 16px;

    text-align: center;
}


.memory-empty-icon {
    margin-bottom: 8px;

    font-size: 28px;
}


.memory-empty p {
    margin:
        6px 0 0;

    color: #777;
}


.memory-pending {
    display: flex;
    gap: 12px;

    padding: 15px 16px;

    border: 1px solid #eadba9;
    border-radius: 14px;

    background: #fff9e9;
}


.memory-pending-icon {
    font-size: 20px;
}


.memory-pending-text {
    display: flex;
    flex-direction: column;
    gap: 5px;
}


.memory-pending-detail {
    color: #756127;
    font-size: 14px;
}


.memory-readonly-note {
    margin-top: 28px;

    color: #777;
    font-size: 12px;
}


@media (max-width: 650px) {

    .memory-dashboard {
        padding:
            22px 16px 145px;
    }


    .memory-dashboard-header {
        flex-direction: column;
    }


    .memory-identity {
        grid-template-columns: 1fr;
    }
}


/* ==========================================================
   PUPPY - HISTORIQUE DES CHATS
   ========================================================== */

.puppy-chat-history {
    margin: 8px 0 14px;
}


.new-chat-button {
    width: 100%;

    display: flex;
    align-items: center;

    padding: 10px 12px;

    border: 0;
    border-radius: 9px;

    background: rgba(255,255,255,.08);
    color: inherit;

    font-size: 14px;
    font-weight: 600;

    cursor: pointer;

    text-align: left;
}


.new-chat-button:hover {
    background: rgba(255,255,255,.14);
}


.chat-history-title {
    margin:
        17px 10px 7px;

    opacity: .55;

    font-size: 10px;
    font-weight: 700;

    letter-spacing: .08em;
}


.chat-history-list {
    display: flex;
    flex-direction: column;

    gap: 2px;

    max-height: 290px;

    overflow-y: auto;
    overflow-x: hidden;
}


.chat-history-list::-webkit-scrollbar {
    width: 5px;
}


.chat-history-item {
    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        30px;

    align-items: center;

    border-radius: 8px;
}


.chat-history-item:hover,
.chat-history-item.active {
    background: rgba(255,255,255,.08);
}


.chat-history-open {
    min-width: 0;

    display: flex;
    flex-direction: column;

    gap: 2px;

    padding: 8px 6px 8px 10px;

    border: 0;

    background: transparent;
    color: inherit;

    cursor: pointer;

    text-align: left;
}


.chat-history-name {
    display: block;

    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;

    font-size: 13px;
}


.chat-message-count {
    opacity: .46;

    font-size: 10px;
}


.chat-favorite-button {
    width: 28px;
    height: 28px;

    padding: 0;

    border: 0;

    border-radius: 7px;

    background: transparent;
    color: inherit;

    opacity: .55;

    cursor: pointer;
}


.chat-favorite-button:hover {
    opacity: 1;

    background:
        rgba(255,255,255,.08);
}


.chat-history-item.active
.chat-history-name {
    font-weight: 650;
}


#chat .message {
    white-space: pre-wrap;
}


@media (max-width: 850px) {

    .puppy-chat-history {
        width: 100%;
    }


    .chat-history-list {
        max-height: 155px;
    }
}


/* ==========================================================
   PUPPY - PROJETS V1
   ========================================================== */

.puppy-projects-panel {
    margin: 8px 0 14px;
}


.projects-header {
    display: flex;
    align-items: center;
    justify-content: space-between;

    margin: 10px 8px 6px;
}


.projects-title {
    opacity: .55;

    font-size: 10px;
    font-weight: 700;

    letter-spacing: .08em;
}


.project-add-button {
    width: 26px;
    height: 26px;

    border: 0;
    border-radius: 7px;

    background: transparent;
    color: inherit;

    cursor: pointer;
}


.project-add-button:hover {
    background:
        rgba(255,255,255,.08);
}


.projects-list {
    display: flex;
    flex-direction: column;

    gap: 3px;
}


.projects-empty,
.project-no-chat {
    padding: 7px 10px;

    opacity: .45;

    font-size: 11px;
}


.project-row {
    display: grid;

    grid-template-columns:
        minmax(0,1fr)
        30px;

    align-items: center;

    border-radius: 8px;
}


.project-row:hover {
    background:
        rgba(255,255,255,.07);
}


.project-toggle {
    min-width: 0;

    padding: 8px 10px;

    border: 0;

    background: transparent;
    color: inherit;

    cursor: pointer;

    text-align: left;

    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}


.project-move-button {
    width: 28px;
    height: 28px;

    border: 0;
    border-radius: 7px;

    background: transparent;
    color: inherit;

    opacity: .55;

    cursor: pointer;
}


.project-move-button:hover {
    opacity: 1;

    background:
        rgba(255,255,255,.08);
}


.project-chat-list {
    display: none;

    padding-left: 13px;
}


.project-box.open
.project-chat-list {
    display: flex;
    flex-direction: column;
}


.project-chat-button {
    padding: 7px 9px;

    border: 0;
    border-radius: 7px;

    background: transparent;
    color: inherit;

    opacity: .82;

    cursor: pointer;

    text-align: left;

    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}


.project-chat-button:hover {
    background:
        rgba(255,255,255,.07);

    opacity: 1;
}


.project-unassign-button {
    width: 100%;

    margin-top: 7px;

    padding: 7px 10px;

    border: 0;
    border-radius: 8px;

    background: transparent;
    color: inherit;

    opacity: .42;

    cursor: pointer;

    font-size: 10px;

    text-align: left;
}


.project-unassign-button:hover {
    opacity: .8;

    background:
        rgba(255,255,255,.06);
}


/* PUPPY RICH MEDIA V1 */


/* ==========================================================
   IMAGE COLLÉE CTRL-V
   ========================================================== */

.puppy-attachment-tray {
    display: none;

    width: min(860px, calc(100% - 24px));

    margin:
        0 auto 8px;
}


.puppy-attachment-tray.visible {
    display: block;
}


.puppy-attachment-item {
    width: fit-content;
    max-width: 360px;

    display: grid;

    grid-template-columns:
        58px minmax(0, 1fr) 30px;

    gap: 10px;

    align-items: center;

    padding: 8px;

    border:
        1px solid rgba(0,0,0,.10);

    border-radius: 14px;

    background: #f7f7f5;

    box-shadow:
        0 2px 8px rgba(0,0,0,.04);
}


.puppy-attachment-item img {
    width: 58px;
    height: 58px;

    object-fit: cover;

    border-radius: 9px;
}


.puppy-attachment-info {
    min-width: 0;

    display: flex;
    flex-direction: column;

    gap: 3px;
}


.puppy-attachment-info strong {
    font-size: 13px;
}


.puppy-attachment-info span {
    color: #777;

    font-size: 11px;
}


.puppy-attachment-remove {
    width: 28px;
    height: 28px;

    border: 0;
    border-radius: 8px;

    background: transparent;

    cursor: pointer;

    font-size: 19px;
}


.puppy-attachment-remove:hover {
    background: rgba(0,0,0,.06);
}


.puppy-image-message {
    padding: 6px !important;

    background: transparent !important;
}


.puppy-image-message img {
    display: block;

    max-width: min(480px, 72vw);
    max-height: 420px;

    object-fit: contain;

    border-radius: 16px;

    box-shadow:
        0 3px 16px rgba(0,0,0,.10);
}


/* ==========================================================
   MUSIC ASSISTANT / NOW PLAYING CARD
   ========================================================== */

.puppy-now-playing-card {
    width: min(720px, calc(100% - 24px));

    display: grid;

    grid-template-columns:
        150px minmax(0, 1fr);

    gap: 20px;

    align-items: center;

    margin:
        14px auto 28px;

    padding: 16px;

    border:
        1px solid rgba(0,0,0,.08);

    border-radius: 22px;

    background:
        linear-gradient(
            145deg,
            #ffffff,
            #f4f4f1
        );

    box-shadow:
        0 10px 30px rgba(0,0,0,.07);
}


.now-playing-cover-wrap {
    position: relative;

    width: 150px;
    height: 150px;

    overflow: hidden;

    border-radius: 17px;

    background: #e6e6df;
}


.now-playing-cover,
.now-playing-placeholder {
    width: 100%;
    height: 100%;
}


.now-playing-cover {
    display: none;

    object-fit: cover;
}


.now-playing-placeholder {
    display: grid;

    place-items: center;

    font-size: 46px;

    color: #777;
}


.now-playing-content {
    min-width: 0;
}


.now-playing-topline {
    display: flex;

    justify-content: space-between;

    gap: 12px;

    margin-bottom: 9px;

    color: #777;

    font-size: 12px;
}


.now-playing-room {
    overflow: hidden;

    white-space: nowrap;

    text-overflow: ellipsis;
}


.now-playing-state {
    flex: 0 0 auto;

    padding: 3px 8px;

    border-radius: 999px;

    background: rgba(0,0,0,.055);
}


.now-playing-title {
    overflow: hidden;

    margin-bottom: 4px;

    font-size: 22px;
    font-weight: 720;

    line-height: 1.15;

    white-space: nowrap;

    text-overflow: ellipsis;
}


.now-playing-artist {
    overflow: hidden;

    margin-bottom: 3px;

    font-size: 15px;

    white-space: nowrap;

    text-overflow: ellipsis;
}


.now-playing-album {
    overflow: hidden;

    color: #777;

    font-size: 12px;

    white-space: nowrap;

    text-overflow: ellipsis;
}


.now-playing-progress {
    width: 100%;
    height: 5px;

    overflow: hidden;

    margin-top: 16px;

    border-radius: 999px;

    background: rgba(0,0,0,.09);
}


.now-playing-progress-fill {
    width: 0%;
    height: 100%;

    border-radius: inherit;

    background: currentColor;

    transition:
        width .35s ease;
}


.now-playing-times {
    display: flex;

    justify-content: space-between;

    margin-top: 5px;

    color: #888;

    font-size: 10px;
}


.now-playing-footer {
    display: flex;

    justify-content: space-between;

    align-items: center;

    gap: 15px;

    margin-top: 10px;
}


.now-playing-controls {
    display: flex;

    align-items: center;

    gap: 6px;
}


.now-playing-controls button {
    width: 36px;
    height: 36px;

    border: 0;
    border-radius: 999px;

    background: rgba(0,0,0,.07);

    cursor: pointer;

    font-size: 15px;
}


.now-playing-controls button:hover {
    background: rgba(0,0,0,.13);
}


.now-playing-controls
.now-playing-main-control {
    width: 42px;
    height: 42px;

    background: #222;

    color: white;
}


.now-playing-volume {
    color: #777;

    font-size: 12px;
}


.puppy-now-playing-card.music-card-error {
    opacity: .70;
}


.music-card-text-fallback {
    display: none !important;
}


@media (max-width: 650px) {

    .puppy-now-playing-card {
        grid-template-columns:
            96px minmax(0, 1fr);

        gap: 13px;

        padding: 12px;

        border-radius: 18px;
    }


    .now-playing-cover-wrap {
        width: 96px;
        height: 96px;

        border-radius: 13px;
    }


    .now-playing-title {
        font-size: 17px;
    }


    .now-playing-album {
        display: none;
    }


    .now-playing-progress {
        margin-top: 9px;
    }


    .now-playing-footer {
        margin-top: 5px;
    }


    .puppy-image-message img {
        max-width: 85vw;
    }
}


/* ==========================================================
   PUPPY - SERVICES EXTERNES CLIQUABLES
   ========================================================== */

.puppy-external-service {
    position: relative;

    cursor: pointer;

    transition:
        background .15s ease,
        transform .15s ease;
}


.puppy-external-service:hover {
    background:
        rgba(255,255,255,.08);

    transform:
        translateX(2px);
}


.puppy-external-service:focus-visible {
    outline:
        2px solid currentColor;

    outline-offset: 2px;
}


.puppy-external-icon {
    margin-left: auto;

    padding-left: 8px;

    opacity: .45;

    font-size: 12px;

    pointer-events: none;
}


.puppy-external-service:hover
.puppy-external-icon {
    opacity: .95;
}


/* PUPPY CONVERSATION V1 */

#conversation-toggle {
    margin-left: 6px;

    padding: 7px 11px;

    border: 0;
    border-radius: 10px;

    cursor: pointer;

    font-size: 12px;
}


#conversation-toggle:hover {
    opacity: .85;
}


#conversation-toggle:disabled {
    cursor: not-allowed;
    opacity: .45;
}

