/* Chrome-like CSS variables (some taken from the snippet you posted) */
:root{
    --google-grey-850-rgb: 48,49,52;
    --google-grey-850: rgb(var(--google-grey-850-rgb));
    --ntp-focus-shadow-color: rgba(66,133,244,0.28);
    --ntp-module-icon-size: 64px;       /* larger tile icons */
    /*--ntp-tile-width: 200px;*/
    --ntp-tile-width: 160px;
    --ntp-tile-radius: 12px;
    --ntp-tile-shadow: 0 6px 18px rgba(32,33,36,0.18);
    --ntp-tile-hover-shadow: 0 10px 26px rgba(32,33,36,0.22);
    --ntp-gap: 24px;

    --top-nav-y-space: 84px;
}

/**/
a {
    text-decoration: none;
    background-color: transparent;
}

.small, small {
    font-size: 80%;
    font-weight: 400;
}

.list-group-item-action:hover {
    background-color: rgba(0,0,0,.03);
}
.list-group-item-action:active {
    background-color: rgba(0,0,0,.1);
}

.list-group-item-action {
    width: 100%;
    color: #495057;
    text-align: inherit;
}

.content-area {
    width: 100%;
    max-width: 860px;
    padding: 0 12px;
    display: flex;
    flex-direction: column;
    /*grid-template-columns: repeat(auto-fit, minmax(var(--ntp-tile-width), 1fr));*/
    gap: var(--ntp-gap);
    justify-items: center;
    align-items: center;
}

a.nav-item-link {
    text-decoration: none;
    background-color: transparent;
}

.min-w-25 { min-width: 25%; }
.min-w-50 { min-width: 50%; }
.min-w-75 { min-width: 75%; }

/*-*/

body.clear-nav .topbar {
    background-color: unset; !important;
    background: transparent; !important;
}

body[data-page-type="search"] .top-left,
body[data-page-type="search"] .top-center {
    /*display: none;*/
    visibility: hidden;
}

.item-fadein-anim {
    animation: fadeInUp 0.3s ease forwards;
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.fs-xxl {
    font-size: xx-large;
}

.pb-6 {
    padding-bottom: 5rem !important; /* pick your value */
}

/*a.nav-item-link, */
a.tile {
    text-decoration: none;
    /*background-color: transparent;*/
}

/*a.nav-item-link:hover, */
a.tile:hover {
    color: unset;
}

.pt-navbar-space {
    padding-top: var(--top-nav-y-space);
}

html,body{
    height:100%;
    margin:0;
    font-family: system-ui,-apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
    background: #ffffff;
    color: #202124;
    -webkit-font-smoothing:antialiased;
    -moz-osx-font-smoothing:grayscale;
}


.one-google-bar-scrim {
    display:flex;
    align-items:center;
    gap:12px;
    /* left area placeholder */
}
.top-right {
    display:flex;
    align-items:center;
    gap:12px;
}
.top-right .material-icons {
    font-size:24px;
    color: #5f6368;
    cursor:pointer;
}
.profile {
    width:32px;
    height:32px;
    border-radius:50%;
    background:linear-gradient(180deg,#e0e0e0,#bdbdbd);
    display:inline-block;
    overflow:hidden;
    /*border:1px solid rgba(0,0,0,0.06);*/
}
.profile img{ width:100%; height:100%; object-fit:cover; display:block; }

/* center area */
.center-wrap{
    min-height:100vh;
    display:flex;
    flex-direction:column;
    align-items:center;
    padding-top:84px; /* to visually match Chrome spacing under top bar */
}

/* logo */
/* Put this into your stylesheet (replace any old #logo rules) */
#logo {
    width: 100%;
    max-width: 80%;
    display: flex;
    justify-content: center; /* centers horizontally */
    align-items: center;
    margin: 0;                /* remove accidental offsets */
    padding: 0;               /* optional: tune vertical spacing separately */
    text-align: center;       /* fallback for inline content */
}

#logo img {
    display: block;           /* prevents inline alignment quirks */
    margin: 0 auto;           /* double-safety centering */
    width: 272px;
    height: auto;
    user-select: none;
    -webkit-user-drag: none;
}

/* search box */
.search-wrap{
    width:100%;
    max-width:640px;
    margin-top:28px;
    padding:0 12px;
}
.searchbox {
    display:flex;
    align-items:center;
    gap:12px;
    border-radius:24px;
    border:1px solid #dfe1e5;
    height:48px;
    padding:6px 12px;
    box-shadow: rgba(32, 33, 36, 0.18) 0px 1px 6px 0px;
    transition: box-shadow .14s ease, transform .08s ease;
    background: #fff;
}
.searchbox input{
    border:0;
    outline:0;
    font-size:16px;
    flex:1;
    min-width:0;
    padding:6px 4px;
}
.searchbox .material-icons{ color:#5f6368; font-size:22px; cursor:pointer }
.searchbox:focus-within{ box-shadow: 0 4px 20px rgba(32,33,36,0.12), 0 0 0 3px var(--ntp-focus-shadow-color); }

/* big preview tiles area */
#mostVisited {
    margin-top:40px;
    width:100%;
    max-width:860px;
    padding: 0 12px;
    display:grid;
    grid-template-columns: repeat(auto-fit, minmax(var(--ntp-tile-width), 1fr));
    gap: var(--ntp-gap);
    justify-items:center;
    align-items:start;
}

.tile {
    width: var(--ntp-tile-width);
    text-decoration:none;
    color:inherit;
    display:flex;
    flex-direction:column;
    align-items:center;
    gap:8px;
    transition: transform .12s cubic-bezier(.2,.9,.2,1), box-shadow .12s;
}

.tile .tile-button {
    width: var(--ntp-module-icon-size);
    height: var(--ntp-module-icon-size);
    border-radius: var(--ntp-tile-radius);
    display:flex;
    align-items:center;
    justify-content:center;
    overflow:hidden;
    background: #f1f3f4;
    box-shadow: var(--ntp-tile-shadow);
    transition: box-shadow .12s, transform .12s, background-color .12s;
    -webkit-backface-visibility:hidden;
    backface-visibility:hidden;
}

/* favicon image fits inside tile */
.tile .tile-button img.fav {
    width:48%;
    height:48%;
    object-fit:contain;
    display:block;
    filter: none;
}

/* label */
.tile .title {
    text-align:center;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
    max-width:100%;
    color: #0f0f0f;

    /*font-size:13px;*/
    /*line-height:16px;*/
    /*font-weight: 500;*/

    font-size: 15px;
    font-weight: 600;
    line-height: 1.3;
}

/* hover / highlight */
.tile:hover { transform: translateY(-6px); }
.tile:hover .tile-button {
    box-shadow: var(--ntp-tile-hover-shadow);
    background: linear-gradient(180deg, #fff 0%, #fbfbfb 100%);
    color: unset;
}

/* subtle highlight ring on keyboard focus */
.tile:focus-visible {
    outline: none;
    box-shadow: 0 0 0 4px rgba(66,133,244,0.12);
    border-radius:8px;
}
.tile:focus-visible .tile-button {
    box-shadow: var(--ntp-tile-hover-shadow);
    transform: translateY(-2px);
}

/* Floating customize button bottom-right */

/*.customize-btn{*/
/*    position:fixed;*/
/*    right:20px;*/
/*    bottom:20px;*/
/*    width:48px;*/
/*    height:48px;*/
/*    border-radius:50%;*/
/*    background:#fff;*/
/*    box-shadow: 0 6px 18px rgba(32,33,36,0.15);*/
/*    display:flex;*/
/*    align-items:center;*/
/*    justify-content:center;*/
/*    cursor:pointer;*/
/*    border: 1px solid rgba(0,0,0,0.06);*/
/*}*/

header.top-bar-below {
    position: fixed;
    top: 50px;
    width: 100%;
    display: grid;
    align-items: center;
    gap: 4px;
}

.small-button-outline {
    background: #fff;
    padding: 5px 10px;
    border-radius: 25px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    transition: transform 0.2s, box-shadow 0.2s;
}

.top-floating-buttons-container
{
    position: fixed;
    right: 20px;
    top: 65px;
    display: flex;
    flex-direction: column;
    z-index: 2;
    gap: 5px;
}

.top-floating-buttons-container .floating-button-wrapper {
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    gap: 10px;
    position: unset;
    right: unset;
    bottom: unset;
}

.top-floating-buttons-container .customize-btn {
    width: 36px;
    height: 36px;
}

.top-floating-buttons-container .brain-label {
    padding: 6px 10px;
}

.floating-button-wrapper {
    position: fixed;
    right: 20px;
    bottom: 20px;
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    gap: 10px; /* space between label and button */
    z-index: 2;
}

.floating-button-wrapper.top {
    bottom: unset;
    top: 65px;
}

.brain-label {
    background: #fff;
    padding: 8px 12px;
    border-radius: 25px;
    /*box-shadow: 0 6px 18px rgba(32,33,36,0.15);*/
    border: 1px solid rgba(0,0,0,0.06);
    font-weight: 500;
    /*cursor: pointer;*/
    white-space: nowrap;
    transition: transform 0.2s, box-shadow 0.2s;
}

/*.brain-label:hover {*/
/*    transform: translateY(-2px);*/
/*    box-shadow: 0 8px 20px rgba(32,33,36,0.25);*/
/*}*/

.customize-btn:hover ~ .brain-label {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(32,33,36,0.25);
}

.customize-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 6px 18px rgba(32,33,36,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: 1px solid rgba(0,0,0,0.06);
    padding: 0;
    transition: transform 0.2s, box-shadow 0.2s;
}

.customize-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(32,33,36,0.25);
}


/* below 410px */
@media (max-width: 410px) {
    .center-wrap { padding-top:56px; }
    :root {
        --ntp-module-icon-size:56px;
        --ntp-tile-width:167px;
        --ntp-gap:16px;
    }
    .search-wrap { padding:0 8px; }
}

/* between 411px and 520px */
@media (min-width: 411px) and (max-width: 520px) {
    .center-wrap { padding-top:56px; }
    :root {
        --ntp-module-icon-size:56px;
        --ntp-tile-width:186px;
        /*--ntp-tile-width:96;*/
        --ntp-gap:16px;
    }
    .search-wrap { padding:0 8px; }
}

/* --ntp-tile-width:128px;*/
@media (min-width:1200px){
    .center-wrap{ padding-top:120px; }
    :root{ --ntp-module-icon-size:72px;
        /*--ntp-tile-width:244px;*/
        --ntp-tile-width:190px;
    }
}

/* subtitle text under tile title */
.tile .subtitle {
    font-size: 12px;
    line-height: 14px;
    text-align: center;
    color: #5f6368;   /* muted grey like Chrome UI */
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;   /* allow up to 2 lines */
    -webkit-box-orient: vertical;
    margin-top: -2px;        /* tighten spacing */
}


/*    LARGE */
/* large variant of tile */
.tile.large {
    width: calc(var(--ntp-tile-width) * 2 + var(--ntp-gap)); /* about 2x wide */
    align-items: flex-start; /* text aligns left for readability */
    text-align: left;
    padding: 12px;
    border-radius: 16px;
    background: #fff;
    box-shadow: var(--ntp-tile-shadow);
}

.tile.large:hover {
    box-shadow: var(--ntp-tile-hover-shadow);
    transform: translateY(-4px);
}

/* keep the tile-button small but aligned */
.tile.large .tile-button {
    margin-bottom: 8px;
}

/* title bigger */
.tile.large .title {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 4px;
    white-space: normal;
    text-overflow: initial;
    overflow: visible;
}

/* subtitle free to expand */
.tile.large .subtitle {
    font-size: 13px;
    line-height: 18px;
    -webkit-line-clamp: unset;
    display: block;
    color: #5f6368;
}


/*    */

/* horizontal tile variant */
.tile-horizontal {
    width: 100%;
    max-width: 420px; /* feels balanced, not too wide */
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    color: inherit;
    /*padding: 12px 16px;*/
    /*border-radius: var(--ntp-tile-radius);*/
    /*background: #fff;*/
    /*box-shadow: var(--ntp-tile-shadow);*/
    /*transition: transform .12s cubic-bezier(.2,.9,.2,1),*/
    /*box-shadow .12s, background-color .12s;*/
}

/*.tile-horizontal:hover {*/
/*    transform: translateY(-4px);*/
/*    box-shadow: var(--ntp-tile-hover-shadow);*/
/*    background: linear-gradient(180deg, #fff 0%, #fbfbfb 100%);*/
/*}*/

/* icon box on the left */
/* hover / highlight */
.tile-horizontal:hover { transform: translateY(-6px); }
.tile-horizontal:hover .tile-button {
    box-shadow: var(--ntp-tile-hover-shadow);
    background: linear-gradient(180deg, #fff 0%, #fbfbfb 100%);
}

/* subtle highlight ring on keyboard focus */
.tile-horizontal:focus-visible {
    outline: none;
    box-shadow: 0 0 0 4px rgba(66,133,244,0.12);
    border-radius:8px;
}
.tile-horizontal:focus-visible .tile-button {
    box-shadow: var(--ntp-tile-hover-shadow);
    transform: translateY(-2px);
}

.tile-horizontal .tile-button {
    flex-shrink: 0;
    width: var(--ntp-module-icon-size);
    height: var(--ntp-module-icon-size);
    border-radius: var(--ntp-tile-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #f1f3f4;
    box-shadow: var(--ntp-tile-shadow);
}

.tile-horizontal .tile-button img.fav {
    width: 60%;
    height: 60%;
    object-fit: contain;
    display: block;
}

/* text area on the right */
.tile-horizontal .text {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.tile-horizontal .title {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tile-horizontal .subtitle {
    /*font-size: 13px;*/
    /*line-height: 1.4;*/
    /*color: #5f6368;*/
    /*white-space: nowrap;*/
    /*overflow: hidden;*/
    /*text-overflow: ellipsis;*/
    font-size: 13px;
    line-height: 1.4;
    color: #5f6368;
    display: -webkit-box;
    -webkit-line-clamp: 2;   /* change to 3 if you want 3 lines */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: normal; /* remove nowrap so wrapping works */
}

.pulse {
    display: inline-block;
    animation: pulse 1.2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.75;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/*    MODAL */

.modal-footer button, .modal-footer .btn, .modal-content button, .modal-content .btn {
    border-radius: var(--bs-border-radius-pill) !important;
    padding: var(--bs-btn-padding-y) .8em;
}

.modal-content {
    border-radius: 20px !important;
}

/* Standard placeholder */
.modal-content input::placeholder,
.modal-content textarea::placeholder {
    font-style: italic;
    color: #888; /* optional */
}

/* Webkit */
.modal-content input::-webkit-input-placeholder,
.modal-content textarea::-webkit-input-placeholder {
    font-style: italic;
}

/* Firefox */
.modal-content input::-moz-placeholder,
.modal-content textarea::-moz-placeholder {
    font-style: italic;
}

/* IE 10+ */
.modal-content input:-ms-input-placeholder,
.modal-content textarea:-ms-input-placeholder {
    font-style: italic;
}

/* Microsoft Edge */
.modal-content input::-ms-input-placeholder,
.modal-content textarea::-ms-input-placeholder {
    font-style: italic;
}

.list-view-max-w {
    max-width: 540px !important;
}

.chat-area-max-w {
    max-width: 860px !important;
}

.alan-ic-add-memory {
    display: inline-block;
    width: 1em;
    height: 1em;
    background-color: currentColor; /* Inherits text color just like Font Awesome! */
    mask-image: url('/images/icons/add-memory.svg');
    mask-size: contain;
    mask-repeat: no-repeat;
    mask-position: center;
    -webkit-mask-image: url('/images/icons/add-memory.svg'); /* For Safari support */
    -webkit-mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-position: center;
}


.l-i-column { width: 3rem; }