/* LIKE A PRO .DEV — ~/favicon */
.tool-ui input.is-err { border-color: rgba(255,95,87,.6); }
.q-color { display: flex; gap: .5rem; align-items: center; }
.q-color input[type="color"] { flex: none; width: 2.6rem; height: 2.45rem; padding: 3px; border: 1px solid var(--border-strong); border-radius: 6px; background: #0d0d13; cursor: pointer; }
.f-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 420px); gap: 1.5rem 2rem; align-items: start; }
.f-left, .f-right { min-width: 0; }
.f-right { position: sticky; top: calc(var(--nav-h) + 1rem); display: grid; gap: .9rem; }
#f-warn p { margin: .2rem 0; font-size: .76rem; }

.f-big { display: grid; place-items: center; padding: 1rem; border: 1px solid var(--border); border-radius: 10px; background: repeating-conic-gradient(#14141c 0 25%, #0c0c11 0 50%) 0 0 / 16px 16px; }
.f-big img { width: 160px; height: 160px; }

.f-tabs { display: grid; gap: .5rem; }
.f-tabbar { display: flex; align-items: flex-end; gap: 2px; padding: 6px 8px 0; border-radius: 8px 8px 0 0; font: 12px/1 -apple-system, "Segoe UI", system-ui, sans-serif; overflow: hidden; }
.f-tab { display: inline-flex; align-items: center; gap: 8px; min-width: 0; max-width: 220px; padding: 8px 12px; border-radius: 8px 8px 0 0; white-space: nowrap; }
.f-tab > span { overflow: hidden; text-overflow: ellipsis; }
.f-tab img { width: 16px; height: 16px; flex: none; image-rendering: auto; }
.f-tab i { font-style: normal; opacity: .55; margin-left: 6px; }
.f-tab--off { opacity: .6; }
.f-tabbar--light { background: #dee1e6; color: #1f1f1f; }
.f-tabbar--light .f-tab:first-child { background: #fff; }
.f-tabbar--dark { background: #1f1f23; color: #e3e3e3; }
.f-tabbar--dark .f-tab:first-child { background: #35363a; }

.f-phones { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
.f-phones figure { margin: 0; }
.f-phones figcaption { font-size: .66rem; color: var(--dim); margin-top: .35rem; }
.f-ios-screen, .f-and-screen { height: 150px; border-radius: 14px; padding: 16px 12px; }
.f-ios-screen { display: grid; grid-template-columns: repeat(3, 1fr); align-content: start; gap: 10px; background: linear-gradient(160deg, #3a2f6b, #7c5cff 55%, #2ee6ff); }
.f-ios-app { display: grid; justify-items: center; gap: 4px; }
.f-ios-app img { width: 56px; height: 56px; border-radius: 22.37%; box-shadow: 0 2px 6px rgba(0,0,0,.3); }
.f-ios-app small, .f-and-screen small { font: 11px/1.2 -apple-system, "Segoe UI", system-ui, sans-serif; color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,.5); max-width: 70px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.f-ios-ghost::before { content: ''; width: 56px; height: 56px; border-radius: 22.37%; background: rgba(255,255,255,.22); }
.f-and-screen { display: grid; justify-items: center; align-content: center; gap: 6px; background: linear-gradient(200deg, #0b3d2e, #116149 50%, #c8ff2e); }
.f-and-icon { position: relative; width: 72px; height: 72px; border-radius: 50%; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,.35); }
.f-and-icon img { width: 100%; height: 100%; display: block; }
.f-and-screen.show-safe .f-and-icon { overflow: visible; border-radius: 0; box-shadow: none; }
.f-and-screen.show-safe .f-and-icon img { opacity: .75; }
.f-and-screen.show-safe .f-and-icon::before { content: ''; position: absolute; inset: 0; border-radius: 50%; border: 1.5px solid #fff; pointer-events: none; }
.f-and-screen.show-safe .f-and-icon::after { content: ''; position: absolute; inset: 10%; border-radius: 50%; border: 1.5px dashed #fff; pointer-events: none; }

.f-files { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: .5rem; }
.f-files li { display: flex; align-items: center; gap: .7rem; padding: .55rem .7rem; border: 1px solid var(--border); border-radius: 8px; background: #0a0a0f; min-width: 0; }
.f-files img, .f-doc { flex: none; width: 32px; height: 32px; border-radius: 4px; background: repeating-conic-gradient(#1a1a22 0 25%, #101016 0 50%) 0 0 / 8px 8px; }
.f-doc { display: grid; place-items: center; font-size: .7rem; color: var(--cyan); }
.f-name { flex: 1; min-width: 0; font-size: .78rem; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.f-name small { display: block; color: var(--dim); font-size: .66rem; }
.f-files .term-copy { position: static; }
.f-code { white-space: pre; overflow-x: auto; word-break: normal; font-size: .76rem; padding-right: 4rem; }

@media (max-width: 1100px) {
    .f-layout { grid-template-columns: minmax(0, 1fr); }
    .f-right { position: static; }
}
@media (max-width: 420px) {
    .f-phones { grid-template-columns: minmax(0, 1fr); }
}
