/* ============================================================
   ONRYO Explorer - the in-OS web browser
   Big icon-and-label toolbar, address bar with Links, spinning
   logo in the menu bar, segmented status bar.
   ============================================================ */

.ie {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  background: var(--face);
}

/* ---------- the mark at the right of the menu bar ---------- */
.ie-logo {
  margin-left: auto;
  width: 30px;
  flex: 0 0 30px;
  align-self: stretch;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  border-left: 1px solid var(--shadow);
  box-shadow: 1px 0 0 var(--white) inset;
  background: var(--face);
}
.ie-logo svg { width: 20px; height: 20px; display: block; }
.ie-logo .ring {
  position: absolute;
  width: 24px; height: 24px;
  border: 2px solid transparent;
  border-top-color: #5ad1ff;
  border-radius: 50%;
  opacity: 0;
}
.ie-logo.busy .ring { opacity: 1; animation: ie-spin .75s linear infinite; }
.ie-logo.busy svg { animation: ie-pulse .75s ease-in-out infinite; }
@keyframes ie-spin { to { transform: rotate(360deg); } }
@keyframes ie-pulse { 50% { opacity: .55; } }

/* ---------- toolbar ---------- */
.ie-toolbar {
  flex: 0 0 auto;
  display: flex;
  align-items: stretch;
  padding: 2px 4px 3px;
  border-bottom: 1px solid var(--shadow);
  box-shadow: 0 1px 0 var(--white);
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
}
.ie-toolbar::-webkit-scrollbar { height: 0; }

.ie-tb {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 1px;
  min-width: 52px;
  padding: 3px 5px 2px;
  background: transparent;
  border: 1px solid transparent;
  font-family: var(--font);
  font-size: 11px;
  line-height: 1.1;
  color: #000;
  cursor: default;
  white-space: nowrap;
}
.ie-tb svg { width: 24px; height: 24px; display: block; pointer-events: none; }
.ie-tb span { pointer-events: none; }
.ie-tb:hover:not([disabled]) { border-color: var(--white) var(--shadow) var(--shadow) var(--white); }
.ie-tb:active:not([disabled]) {
  border-color: var(--shadow) var(--white) var(--white) var(--shadow);
  padding: 4px 4px 1px 6px;
}
.ie-tb[disabled] { color: var(--shadow); text-shadow: 1px 1px 0 var(--white); }
.ie-tb[disabled] svg { opacity: .35; filter: grayscale(1); }

/* the little dropdown caret on Back / Forward */
.ie-tb-group { flex: 0 0 auto; display: flex; align-items: stretch; }
.ie-tb-caret {
  width: 13px;
  flex: 0 0 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  cursor: default;
  font-size: 9px;
  padding-top: 14px;
}
.ie-tb-caret:hover { border-color: var(--white) var(--shadow) var(--shadow) var(--white); }
.ie-tb-caret:active { border-color: var(--shadow) var(--white) var(--white) var(--shadow); }
.ie-tb-caret.off { color: var(--shadow); pointer-events: none; }

.ie-tb-sep {
  flex: 0 0 auto;
  width: 1px;
  margin: 3px 4px;
  border-left: 1px solid var(--shadow);
  border-right: 1px solid var(--white);
}

/* narrow window: labels off, icons only */
.ie.compact .ie-tb { min-width: 0; padding: 3px 4px; }
.ie.compact .ie-tb span { display: none; }
.ie.compact .ie-tb-caret { padding-top: 0; }

/* ---------- address bar ---------- */
.ie-addr {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 2px 4px 3px;
  border-bottom: 1px solid var(--shadow);
  box-shadow: 0 1px 0 var(--white);
}
.ie-addr .lab { font-size: 11px; padding-left: 2px; flex: 0 0 auto; }

.ie-combo {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: stretch;
  height: 20px;
  background: var(--white);
  border: 1px solid;
  border-color: var(--shadow) var(--white) var(--white) var(--shadow);
  box-shadow: inset 1px 1px 0 var(--dark);
}
.ie-combo .ie-favicon {
  flex: 0 0 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ie-combo .ie-favicon svg { width: 14px; height: 14px; }
.ie-combo input {
  flex: 1 1 auto;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  font-family: var(--font);
  font-size: 12px;
  padding: 0 3px;
  color: #000;
}
.ie-combo .cbtn {
  flex: 0 0 16px;
  align-self: center;
  height: 16px;
  margin-right: 1px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 8px;
  background: var(--face);
  border: 1px solid;
  border-color: var(--white) var(--dark) var(--dark) var(--white);
  box-shadow: inset 1px 1px 0 var(--face-light), inset -1px -1px 0 var(--shadow);
  cursor: default;
}
.ie-combo .cbtn:active { border-color: var(--dark) var(--white) var(--white) var(--dark); box-shadow: none; }

.ie-links {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  padding: 2px 7px;
  cursor: default;
  border: 1px solid transparent;
}
.ie-links svg { width: 14px; height: 14px; }
.ie-links:hover { border-color: var(--white) var(--shadow) var(--shadow) var(--white); }
.ie-links:active { border-color: var(--shadow) var(--white) var(--white) var(--shadow); }

/* ---------- page ---------- */
.ie-page {
  flex: 1 1 auto;
  min-height: 0;
  position: relative;
  margin: 2px;
  background: #fff;
  border: 1px solid;
  border-color: var(--shadow) var(--white) var(--white) var(--shadow);
  box-shadow: inset 1px 1px 0 var(--dark);
}
.ie-page iframe { width: 100%; height: 100%; border: 0; display: block; background: #fff; }

.ie-blocked {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 6px 8px;
  background: #ffffe1;
  border-top: 1px solid var(--shadow);
  font-size: 11px;
  display: none;
}
.ie-blocked a { color: #0000c0; }

/* ---------- status bar ---------- */
.ie-status {
  flex: 0 0 auto;
  display: flex;
  gap: 2px;
  padding: 1px 2px 2px;
  font-size: 11px;
}
.ie-status > span {
  border: 1px solid;
  border-color: var(--shadow) var(--white) var(--white) var(--shadow);
  padding: 1px 5px;
  overflow: hidden;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 5px;
}
.ie-status .msg { flex: 1 1 auto; }
.ie-status .msg svg { width: 14px; height: 14px; }
.ie-status .prog { flex: 0 0 118px; gap: 2px; padding: 2px 4px; }
.ie-status .prog i {
  flex: 1 1 auto;
  height: 9px;
  background: var(--sel);
  opacity: .13;
}
.ie-status .prog i.on { opacity: 1; }
.ie-status .zone { flex: 0 0 auto; }
.ie-status .zone svg { width: 14px; height: 14px; }

@media (max-width: 620px) {
  .ie-addr .lab { display: none; }
  .ie-status .prog { display: none; }
}
