/* Homepage command area. Kept separate from the navigation card styles. */
.home-top { padding: 28px 24px 8px; }
#home-tools { display: grid; grid-template-columns: minmax(280px,1fr) auto; align-items: center; gap: 24px; }
.home-search-area { min-width: 0; position: relative; z-index: 60; }
.home-search {
    display: flex; align-items: center; min-width: 0; height: 62px; padding: 8px;
    border: 1px solid #e1e7ef; border-radius: 17px; background: #fff;
    box-shadow: 0 2px 8px rgba(15,23,42,.025);
    transition: border-color .18s,box-shadow .18s;
}
.home-search:focus-within { border-color: #9ebcf5; box-shadow: 0 0 0 3px rgba(59,130,246,.07); }
.home-engine-picker { position: relative; flex: 0 0 auto; padding-right: 10px; margin-right: 3px; }
.home-engine-picker::after { content: ''; position: absolute; right: 0; top: 50%; width: 1px; height: 22px; background: #e9edf3; transform: translateY(-50%); }
#current-engine-btn { display: flex; align-items: center; gap: 8px; min-height: 38px; padding: 7px 10px; border: 0; border-radius: 10px; background: transparent; font-size: 12px; font-weight: 600; color: #475569; cursor: pointer; }
#current-engine-btn:hover { background: #f5f7fb; }
#current-engine-icon { width: 17px; height: 17px; object-fit: contain; }
.home-engine-chevron { font-size: 8px; color: #94a3b8; margin-left: 1px; }
.home-engine-menu { display: none; position: absolute; top: 100%; left: 0; width: 148px; padding-top: 10px; z-index: 70; }
.home-engine-picker:hover .home-engine-menu,.home-engine-picker:focus-within .home-engine-menu { display: block; }
.home-engine-options { padding: 5px; background: #fff; border: 1px solid #e5eaf1; border-radius: 13px; box-shadow: 0 10px 30px rgba(15,23,42,.08); }
.home-engine-options button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px; border: 0; border-radius: 8px; background: transparent; color: #475569; font-size: 12px; text-align: left; cursor: pointer; }
.home-engine-options button:hover { background: #f1f5fb; color: #2563eb; }
.home-engine-options img { width: 16px; height: 16px; object-fit: contain; }
#home-tools #searchInput { flex: 1; min-width: 0; width: 100%; height: 42px; padding: 0 13px; border: 0; outline: 0; background: transparent; color: #1e293b; font-size: 14px; font-weight: 400; }
#home-tools #searchInput::placeholder { color: #99a4b5; opacity: 1; }
.home-search-key { flex-shrink: 0; padding: 2px 5px; margin-right: 12px; border: 1px solid #e8edf3; border-radius: 5px; background: #fafbfc; color: #a1aab8; font: 10px/16px ui-monospace,monospace; }
.home-search-submit { display: flex; align-items: center; justify-content: center; flex: 0 0 44px; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 12px; color: #fff; background: #3978ed; font-size: 16px; cursor: pointer; transition: background .18s; }
.home-search-submit:hover { background: #2563d5; }
.home-utilities { display: flex; align-items: center; gap: 20px; min-width: 0; }
#home-tools #weather-module { display: flex; align-items: center; gap: 10px; width: 126px; min-width: 0; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; color: #475569; text-decoration: none; }
#home-tools #weather-icon { flex-shrink: 0; width: 27px; margin: 0; font-size: 25px; text-align: center; }
.home-weather-copy { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.home-weather-main { display: flex; align-items: baseline; gap: 8px; white-space: nowrap; }
#home-tools #weather-city { overflow: hidden; color: #64748b; font-size: 11px; font-weight: 500; text-overflow: ellipsis; }
#home-tools #weather-temp { color: #334155; font-size: 19px; font-weight: 600; line-height: 1.2; font-variant-numeric: tabular-nums; }
.home-weather-meta { display: flex; gap: 8px; align-items: center; white-space: nowrap; }
#home-tools #weather-desc { color: #64748b; font-size: 11px; font-weight: 400; }
#home-tools #weather-forecast { padding: 0; border: 0; background: none; color: #94a3b8; font-size: 10px; font-weight: 400; }
#home-tools #time-module { display: flex; flex-direction: column; justify-content: center; gap: 5px; width: 177px; padding: 0 0 0 20px; border: 0; border-left: 1px solid #e2e8f0; border-radius: 0; background: transparent; box-shadow: none; text-align: left; text-decoration: none; }
#home-tools #clock-time { color: #334155; font-family: inherit; font-size: 20px; font-weight: 600; letter-spacing: .025em; line-height: 1.2; font-variant-numeric: tabular-nums; }
.home-date-line { display: flex; flex-wrap: wrap; gap: 3px 9px; align-items: center; line-height: 1.4; }
#home-tools #clock-date { color: #94a3b8; font-size: 10px; font-weight: 400; white-space: nowrap; }
#home-tools #holiday-info { padding: 0; border: 0; background: transparent; color: #7088ac; font-size: 10px; font-weight: 400; white-space: nowrap; }
.home-todo { display: flex; align-items: center; gap: 10px; width: 156px; min-height: 54px; padding: 9px 11px; border: 1px solid #e3e9f1; border-radius: 13px; background: rgba(255,255,255,.65); text-align: left; cursor: pointer; transition: background .18s,border-color .18s; }
.home-todo:hover { border-color: #c4d4ec; background: #fff; }
.home-todo-symbol { display: flex; align-items: center; justify-content: center; flex: 0 0 27px; width: 27px; height: 30px; color: #6381b4; font-size: 18px; }
.home-todo-copy { display: flex; flex: 1; flex-direction: column; gap: 4px; min-width: 0; }
.home-todo-label { color: #94a3b8; font-size: 10px; font-weight: 400; line-height: 1.2; }
#todo_mini_list { display: block; overflow: hidden; margin: 0; color: #475569; font-size: 11px; font-weight: 500; line-height: 1.4; text-overflow: ellipsis; white-space: nowrap; }
.home-todo-arrow { color: #a9b6c8; font-size: 8px; }
.home-search-submit:focus-visible,.home-todo:focus-visible,#current-engine-btn:focus-visible,.home-engine-options button:focus-visible,#weather-module:focus-visible,#time-module:focus-visible { outline: 2px solid #6b9cf0; outline-offset: 3px; }
#nav-search-status:empty { display: none; }
@media (max-width:1359px) {
    #home-tools { grid-template-columns: minmax(0,1fr); gap: 18px; }
    .home-utilities { width: 100%; }
    .home-todo { margin-left: auto; }
}
@media (max-width:599px) {
    .home-top { padding: 18px 16px 4px; }
    #home-tools { gap: 16px; }
    .home-search { height: 54px; padding: 6px; border-radius: 14px; }
    .home-engine-picker { padding-right: 5px; margin-right: 0; }
    #current-engine-btn { gap: 6px; padding: 6px; font-size: 11px; }
    #current-engine-icon { width: 15px; height: 15px; }
    #home-tools #searchInput { height: 40px; padding: 0 10px; font-size: 12px; }
    .home-search-key { display: none; }
    .home-search-submit { flex-basis: 40px; width: 40px; height: 40px; border-radius: 10px; font-size: 15px; }
    .home-utilities { gap: 13px; }
    #home-tools #weather-module { flex: 1; width: auto; gap: 8px; }
    #home-tools #weather-icon { width: 24px; font-size: 23px; }
    #home-tools #time-module { flex: 1.2; width: auto; padding-left: 13px; gap: 4px; }
    #home-tools #clock-time { font-size: 18px; }
    .home-date-line { gap: 2px 7px; }
    #home-tools #clock-date,#home-tools #holiday-info { font-size: 9px; }
    .home-todo { justify-content: center; flex: 0 0 44px; width: 44px; min-height: 44px; padding: 7px; border-radius: 11px; margin-left: 0; }
    .home-todo-copy,.home-todo-arrow { display: none; }
    .nav-card .card-tip { max-width: calc(100% + 24px); }
}
@media (max-width:379px) { #home-tools #weather-forecast { display: none; } }
@media (prefers-reduced-motion:reduce) { .home-search,.home-search-submit,.home-todo { transition: none; } }
