/* ============================================================
   ABP Academic — Tema Retro 2000
   ============================================================ */

:root {
  --face:      #c0c0c0;
  --hi:        #ffffff;
  --sh:        #808080;
  --dk:        #000000;
  --navy:      #000080;
  --navy2:     #1084d0;
  --teal:      #008080;
  --paper:     #fffff5;
  --ink:       #000000;
  --maroon:    #800000;
  --font-body: "Comic Sans MS", "Comic Neue", "Chalkboard SE", "Segoe Print", "Bradley Hand", cursive;
  --font-ui:   "MS Sans Serif", Tahoma, Geneva, Verdana, sans-serif;
  --font-art:  Impact, "Anton", Haettenschweiler, "Franklin Gothic Bold", "Arial Black", sans-serif;
  --font-mono: "Courier New", Courier, monospace;
  --zoom:      16px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

body {
  background: var(--teal);
  font-family: var(--font-body);
  font-size: var(--zoom);
  color: var(--ink);
  padding: 10px 10px 46px;
}

/* ---------- 1. JENDELA ---------- */

.browser {
  max-width: 1040px;
  margin: 0 auto;
  background: var(--face);
  border: 1px solid;
  border-color: #dfdfdf var(--dk) var(--dk) #dfdfdf;
  box-shadow: inset 1px 1px 0 var(--hi), inset -1px -1px 0 var(--sh), 3px 3px 0 rgba(0,0,0,.35);
  padding: 2px;
}

/* ---------- 2. BARIS JUDUL ---------- */

.titlebar {
  background: linear-gradient(90deg, var(--navy) 0%, var(--navy2) 100%);
  color: var(--hi);
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: bold;
  padding: 3px 3px 3px 4px;
  display: flex;
  align-items: center;
  gap: 6px;
  user-select: none;
}
.titlebar .tb-text { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tb-icon {
  width: 18px; height: 16px; flex: 0 0 auto;
  background: #ffffff url("../img/abp-icon.png") no-repeat center/14px 14px;
  border: 1px solid var(--sh);
}
.tb-buttons { display: flex; gap: 2px; }
.tb-btn {
  width: 17px; min-width: 17px; flex: 0 0 17px; height: 15px;
  background: var(--face);
  border: 1px solid;
  border-color: #dfdfdf var(--dk) var(--dk) #dfdfdf;
  box-shadow: inset 1px 1px 0 var(--hi), inset -1px -1px 0 var(--sh);
  font: bold 9px var(--font-ui);
  color: var(--ink); line-height: 11px; text-align: center; padding: 0; cursor: pointer;
}
.tb-btn:active { border-color: var(--dk) #dfdfdf #dfdfdf var(--dk); box-shadow: inset 1px 1px 0 var(--sh); }

/* ---------- 3. BARIS MENU ---------- */

.menubar {
  font-family: var(--font-ui);
  font-size: 12px;
  padding: 2px 4px;
  display: flex;
  flex-wrap: wrap;
  gap: 1px;
  border-bottom: 1px solid var(--sh);
  user-select: none;
  position: relative;
  z-index: 60;
}
.menu { position: relative; }
.menu > button {
  font-family: var(--font-ui);
  font-size: 12px;
  background: none; border: 1px solid transparent;
  padding: 2px 8px; cursor: pointer; color: var(--ink);
  min-width: 0; box-shadow: none; border-radius: 0;
}
.menu.open > button, .menu > button:hover { background: var(--navy); color: var(--hi); }
.menu ul {
  display: none;
  position: absolute; left: 0; top: 100%;
  min-width: 216px;
  margin: 0; padding: 2px;
  list-style: none;
  background: var(--face);
  border: 2px solid;
  border-color: var(--hi) var(--dk) var(--dk) var(--hi);
  box-shadow: 2px 2px 0 rgba(0,0,0,.4);
  z-index: 70;
}
.menu.open ul { display: block; }
.menu li a, .menu li button {
  display: block; width: 100%; text-align: left;
  font-family: var(--font-ui); font-size: 12px;
  padding: 4px 12px; color: var(--ink); text-decoration: none;
  background: none; border: 0; cursor: pointer; min-width: 0; box-shadow: none;
}
.menu li a:hover, .menu li button:hover { background: var(--navy); color: var(--hi); }
.menu li.sep { height: 0; margin: 3px 2px; border-top: 1px solid var(--sh); border-bottom: 1px solid var(--hi); }

/* ---------- 4. BARIS ALAT ---------- */

.toolbar {
  display: flex; align-items: flex-start; gap: 1px; flex-wrap: wrap;
  padding: 3px 4px;
  border-top: 1px solid var(--hi);
  border-bottom: 1px solid var(--sh);
}
.tool {
  width: 60px; padding: 2px 0 1px;
  background: var(--face);
  border: 1px solid var(--face);
  font-family: var(--font-ui); font-size: 10px;
  color: var(--ink); text-align: center; text-decoration: none;
  cursor: pointer; display: block; min-width: 0; box-shadow: none;
}
.tool:hover  { border-color: var(--hi) var(--sh) var(--sh) var(--hi); }
.tool:active { border-color: var(--sh) var(--hi) var(--hi) var(--sh); }
.tool[disabled] { opacity: .45; cursor: default; }
.tool i {
  display: block; width: 22px; height: 22px; margin: 0 auto 1px;
  background-repeat: no-repeat; background-size: 22px 22px;
}

.i-back   { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 22'%3E%3Cpath d='M10 3 L2 11 L10 19 Z' fill='%23107c10'/%3E%3Crect x='9' y='8' width='11' height='6' fill='%23107c10'/%3E%3Cpath d='M10 3 L2 11 L10 11 Z' fill='%2359d15b'/%3E%3C/svg%3E"); }
.i-fwd    { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 22'%3E%3Cpath d='M12 3 L20 11 L12 19 Z' fill='%23107c10'/%3E%3Crect x='2' y='8' width='11' height='6' fill='%23107c10'/%3E%3Cpath d='M12 3 L20 11 L12 11 Z' fill='%2359d15b'/%3E%3C/svg%3E"); }
.i-home   { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 22'%3E%3Cpath d='M11 2 L21 11 H17 V20 H5 V11 H1 Z' fill='%23b5651d'/%3E%3Cpath d='M11 2 L21 11 H1 Z' fill='%23e08a3c'/%3E%3Crect x='9' y='13' width='4' height='7' fill='%23f5deb3'/%3E%3C/svg%3E"); }
.i-reload { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 22'%3E%3Cpath d='M11 4a7 7 0 1 1-6.6 4.7' fill='none' stroke='%23103c96' stroke-width='3'/%3E%3Cpath d='M11 1 L11 8 L16 4.5 Z' fill='%23103c96'/%3E%3C/svg%3E"); }
.i-print  { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 22'%3E%3Crect x='5' y='2' width='12' height='6' fill='%23ffffff' stroke='%23000000'/%3E%3Crect x='2' y='8' width='18' height='7' rx='1' fill='%23808080' stroke='%23000000'/%3E%3Crect x='5' y='13' width='12' height='7' fill='%23ffffff' stroke='%23000000'/%3E%3C/svg%3E"); }
.i-find   { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 22'%3E%3Ccircle cx='9' cy='9' r='6' fill='%23cfe8ff' stroke='%23000080' stroke-width='2'/%3E%3Cpath d='M13.5 13.5 L20 20' stroke='%23000080' stroke-width='3'/%3E%3C/svg%3E"); }
.i-stop   { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 22'%3E%3Cpath d='M7 2h8l5 5v8l-5 5H7l-5-5V7z' fill='%23c00000' stroke='%23600000'/%3E%3Crect x='5' y='9.5' width='12' height='3' fill='%23ffffff'/%3E%3C/svg%3E"); }
.i-mail   { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 22'%3E%3Crect x='2' y='5' width='18' height='12' fill='%23ffffff' stroke='%23000'/%3E%3Cpath d='M2 5 L11 12 L20 5' fill='none' stroke='%23000080' stroke-width='1.5'/%3E%3C/svg%3E"); }
.i-lock   { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 22'%3E%3Crect x='4' y='9' width='14' height='11' fill='%23ffd800' stroke='%23000'/%3E%3Cpath d='M7 9V6a4 4 0 0 1 8 0v3' fill='none' stroke='%23000' stroke-width='2'/%3E%3Ccircle cx='11' cy='14' r='1.7' fill='%23000'/%3E%3C/svg%3E"); }
.i-cv     { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 22'%3E%3Cpath d='M4 2h10l4 4v14H4z' fill='%23ffffff' stroke='%23000'/%3E%3Cpath d='M14 2v4h4' fill='%23c0c0c0' stroke='%23000'/%3E%3Cpath d='M6 10h10M6 13h10M6 16h7' stroke='%23c00000'/%3E%3C/svg%3E"); }

/* ---------- 5. BARIS ALAMAT ---------- */

.locbar {
  display: flex; align-items: center; gap: 5px;
  padding: 3px 5px;
  border-top: 1px solid var(--hi);
  font-family: var(--font-ui); font-size: 11px;
}
.locbar label { flex: 0 0 auto; }
.locbar .url {
  flex: 1; background: var(--hi);
  border: 1px solid;
  border-color: var(--sh) var(--hi) var(--hi) var(--sh);
  box-shadow: inset 1px 1px 0 var(--dk);
  padding: 2px 4px;
  font-family: var(--font-mono); font-size: 11px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.brandmark {
  flex: 0 0 auto; width: 30px; height: 30px;
  background: #ffffff url("../img/abp-icon.png") no-repeat center/22px 22px;
  border: 2px solid;
  border-color: var(--sh) var(--hi) var(--hi) var(--sh);
}
.brandmark.busy { animation: nudge .7s ease-in-out infinite; }
@keyframes nudge { 0%,100% { transform: none; } 50% { transform: scale(.88) rotate(-6deg); } }

/* ---------- 6. TAB ---------- */

.tabstrip {
  display: flex; flex-wrap: wrap; gap: 2px;
  padding: 5px 5px 0;
  border-top: 1px solid var(--hi);
}
.tabstrip button {
  font-family: var(--font-ui); font-size: 11px;
  background: var(--face); color: var(--ink);
  border: 1px solid;
  border-color: var(--hi) var(--sh) var(--face) var(--hi);
  border-radius: 4px 4px 0 0;
  padding: 4px 10px 5px;
  min-width: 0; box-shadow: none; cursor: pointer;
  position: relative; top: 1px;
}
.tabstrip button[aria-selected="true"] {
  background: var(--paper);
  font-weight: bold;
  padding: 5px 12px 6px;
  top: 0;
  border-bottom-color: var(--paper);
}

/* ---------- 7. AREA HALAMAN ---------- */

.viewport {
  border: 1px solid;
  border-color: var(--sh) var(--hi) var(--hi) var(--sh);
  background: var(--paper);
  padding: 16px 18px 20px;
  min-height: 420px;
}

.viewport a         { color: #0000ee; }
.viewport a:visited { color: #551a8b; }
.viewport a:active  { color: #ff0000; }

p { margin: 0 0 10px; line-height: 1.5; }

hr {
  border: 0; height: 2px; background: transparent;
  border-top: 1px solid var(--sh);
  border-bottom: 1px solid var(--hi);
  margin: 14px 0;
}

/* ---------- 8. WORDART ---------- */

.wordart {
  position: relative;
  display: inline-block;
  font-family: var(--font-art);
  font-weight: normal;
  letter-spacing: 1px;
  line-height: 1.08;
  margin: 0;
  transform: scaleY(1.12);
  transform-origin: center top;
  background: linear-gradient(180deg, #ffffff 0%, #cfe0ff 38%, #4f86e8 56%, #0a2f7a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  z-index: 0;
}
.wordart::before {
  content: attr(data-text);
  position: absolute;
  left: 0; top: 0;
  z-index: -1;
  color: #001a4d;
  -webkit-text-stroke: 6px #001a4d;
  text-shadow: 3px 3px 0 var(--sh), 5px 5px 0 rgba(0,0,0,.45);
}
h1.wordart { font-size: 46px; }
h2.wordart { font-size: 26px; }
h2.wordart::before { -webkit-text-stroke-width: 4px; text-shadow: 2px 2px 0 var(--sh); }
.title-wrap { text-align: center; padding: 6px 0 2px; }

h3 {
  font-family: var(--font-art);
  font-size: 18px;
  letter-spacing: .5px;
  color: var(--navy);
  margin: 16px 0 6px;
}

.section-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 12px; flex-wrap: wrap;
  border-bottom: 3px double var(--sh);
  padding-bottom: 6px; margin-bottom: 12px;
}
.section-head .count {
  font-family: var(--font-ui); font-size: 11px; color: #444;
  background: var(--face);
  border: 1px solid; border-color: var(--sh) var(--hi) var(--hi) var(--sh);
  padding: 2px 8px;
}

/* ---------- 9. LOGO HEADER ---------- */

.hero {
  display: flex; align-items: center; gap: 18px;
  flex-wrap: wrap; justify-content: center;
  padding: 4px 0 10px;
}
.hero img { width: 148px; height: auto; flex: 0 0 auto; }
.hero .hero-text { text-align: left; min-width: 260px; flex: 1; }
.hero .tagline {
  font-family: var(--font-ui); font-size: 13px; font-weight: bold;
  color: var(--maroon); margin: 6px 0 0;
}
.hero .interests { font-size: 14px; color: #333; margin: 4px 0 0; }

/* ---------- 10. PANEL & DAFTAR ---------- */

.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 12px; }

.panel {
  background: var(--hi);
  border: 2px solid;
  border-color: var(--sh) var(--hi) var(--hi) var(--sh);
  margin-bottom: 12px;
}
.panel-title {
  background: linear-gradient(90deg, var(--navy), var(--navy2));
  color: var(--hi);
  font-family: var(--font-ui); font-size: 11px; font-weight: bold;
  padding: 4px 8px; letter-spacing: .5px;
}
.panel-body { padding: 10px 12px; font-size: 14px; }

ul.ball { list-style: none; margin: 0; padding: 0; }
ul.ball li {
  padding: 4px 0 4px 20px;
  background-repeat: no-repeat; background-position: 0 9px; background-size: 10px 10px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Ccircle cx='5' cy='5' r='4.5' fill='%23000080'/%3E%3Ccircle cx='3.5' cy='3.5' r='1.6' fill='%239cc4ff'/%3E%3C/svg%3E");
}

dl.spec { margin: 0; font-size: 14px; }
dl.spec div { display: flex; gap: 10px; padding: 5px 0; border-bottom: 1px dotted #b8b8b8; }
dl.spec div:last-child { border-bottom: 0; }
dl.spec dt { flex: 0 0 132px; font-family: var(--font-ui); font-size: 11px; font-weight: bold; color: #333; padding-top: 2px; }
dl.spec dd { margin: 0; flex: 1; min-width: 0; word-break: break-word; }

/* ---------- 11. TABEL ---------- */

.tablewrap { overflow-x: auto; }
table.data {
  width: 100%; border-collapse: collapse;
  background: var(--hi);
  border: 2px solid;
  border-color: var(--sh) var(--hi) var(--hi) var(--sh);
  font-size: 14px;
}
table.data th {
  background: linear-gradient(180deg, var(--navy2), var(--navy));
  color: var(--hi);
  font-family: var(--font-ui); font-size: 11px;
  text-align: left; padding: 5px 8px;
  border: 1px solid #000040;
  white-space: nowrap;
  position: sticky; top: 0;
}
table.data th.sortable { cursor: pointer; user-select: none; }
table.data th.sortable::after { content: " \25B4\25BE"; opacity: .5; font-size: 9px; }
table.data th.asc::after  { content: " \25B4"; opacity: 1; }
table.data th.desc::after { content: " \25BE"; opacity: 1; }
table.data td { padding: 8px; border: 1px solid #d4d4d4; vertical-align: top; line-height: 1.45; }
table.data tr:nth-child(even) td { background: #eef1f7; }
table.data tr:hover td { background: #fffbcc; }
table.data .num { width: 38px; text-align: center; color: #666; font-family: var(--font-mono); }
table.data .yr  { width: 132px; text-align: center; font-family: var(--font-mono); font-weight: bold; color: var(--maroon); white-space: nowrap; }
table.data .muted { color: #444; font-size: 13px; }
table.data em { color: #333; }

.chip {
  display: inline-block;
  font-family: var(--font-ui); font-size: 10px; font-weight: bold;
  background: var(--face); color: var(--navy);
  border: 1px solid; border-color: var(--hi) var(--sh) var(--sh) var(--hi);
  padding: 1px 6px; margin-left: 6px; white-space: nowrap;
}
.chip.role { color: var(--maroon); }

mark { background: #ffe600; color: #000; }

/* ---------- 12. KARTU TAUTAN ---------- */

.linkgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(258px, 1fr)); gap: 10px; }
.linkcard {
  display: flex; gap: 10px; align-items: flex-start;
  background: var(--hi);
  border: 2px solid; border-color: var(--hi) var(--sh) var(--sh) var(--hi);
  padding: 10px; text-decoration: none; color: var(--ink);
  cursor: pointer; text-align: left; width: 100%; box-shadow: none; min-width: 0;
  font-family: var(--font-body); font-size: 14px;
}
.linkcard:hover { background: #fffbcc; }
.linkcard:active { border-color: var(--sh) var(--hi) var(--hi) var(--sh); padding: 11px 9px 9px 11px; }
.linkcard .ic {
  flex: 0 0 32px; height: 32px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ccircle cx='16' cy='16' r='13' fill='%23cfe0ff' stroke='%23000080' stroke-width='2'/%3E%3Cellipse cx='16' cy='16' rx='6' ry='13' fill='none' stroke='%23000080'/%3E%3Cpath d='M3 16h26M5.5 9h21M5.5 23h21' stroke='%23000080'/%3E%3C/svg%3E") no-repeat center/32px;
}
.linkcard.locked .ic {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Crect x='6' y='14' width='20' height='15' fill='%23ffd800' stroke='%23000' stroke-width='2'/%3E%3Cpath d='M10 14V9a6 6 0 0 1 12 0v5' fill='none' stroke='%23000' stroke-width='2.5'/%3E%3Ccircle cx='16' cy='21' r='2.4' fill='%23000'/%3E%3C/svg%3E");
}
.linkcard b { display: block; font-family: var(--font-ui); font-size: 12px; }
.linkcard span { display: block; font-size: 13px; color: #444; margin-top: 2px; }
.linkcard code { font-size: 11px; color: #666; word-break: break-all; }

/* ---------- 13. PENCARIAN ---------- */

.findbar {
  display: none; align-items: center; gap: 8px; flex-wrap: wrap;
  background: var(--face);
  border: 2px solid; border-color: var(--hi) var(--sh) var(--sh) var(--hi);
  padding: 7px 10px; margin-bottom: 12px;
}
.findbar.open { display: flex; }
.findbar label { font-family: var(--font-ui); font-size: 11px; font-weight: bold; }
.findbar input { width: 230px; }
.findbar .result { font-family: var(--font-ui); font-size: 11px; color: var(--navy); }

/* ---------- 14. BARIS STATUS ---------- */

.statusbar {
  display: flex; align-items: center; gap: 4px;
  padding: 3px 3px 2px;
  font-family: var(--font-ui); font-size: 11px;
}
.statusbar .lock {
  width: 20px; height: 16px; flex: 0 0 auto;
  background: var(--sh) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 16'%3E%3Crect x='6' y='7' width='8' height='6' fill='%23ffd800' stroke='%23000'/%3E%3Cpath d='M7.5 7V5a2.5 2.5 0 0 1 5 0v2' fill='none' stroke='%23000' stroke-width='1.2'/%3E%3C/svg%3E") no-repeat center;
  border: 1px solid; border-color: var(--sh) var(--hi) var(--hi) var(--sh);
}
.statusbar .msg {
  flex: 1; background: var(--face);
  border: 1px solid; border-color: var(--sh) var(--hi) var(--hi) var(--sh);
  padding: 2px 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.statusbar .zone {
  flex: 0 0 auto; background: var(--face);
  border: 1px solid; border-color: var(--sh) var(--hi) var(--hi) var(--sh);
  padding: 2px 8px;
}
.statusbar .grip {
  flex: 0 0 14px; height: 14px;
  background: linear-gradient(135deg, transparent 45%, var(--hi) 45% 55%, var(--sh) 55% 65%, transparent 65%);
}

/* ---------- 15. TASKBAR ---------- */

.taskbar {
  position: fixed; left: 0; right: 0; bottom: 0; height: 36px;
  display: flex; align-items: center; gap: 6px;
  background: var(--face);
  border-top: 2px solid var(--hi);
  box-shadow: 0 -2px 0 var(--sh);
  padding: 3px 5px;
  z-index: 200;
  font-family: var(--font-ui); font-size: 12px;
}
#startbtn {
  display: flex; align-items: center; gap: 6px;
  font-family: var(--font-ui); font-size: 12px; font-weight: bold;
  padding: 3px 12px 3px 6px; min-width: 0;
}
#startbtn img { width: 18px; height: 18px; }
.taskbar .tasks { flex: 1; display: flex; gap: 4px; overflow: hidden; }
.taskbar .taskitem {
  font-family: var(--font-ui); font-size: 11px;
  padding: 4px 12px; max-width: 240px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  border-color: var(--sh) var(--hi) var(--hi) var(--sh);
  box-shadow: inset 1px 1px 0 var(--sh), inset -1px -1px 0 var(--hi);
  font-weight: bold;
}
.taskbar .tray {
  display: flex; align-items: center; gap: 6px;
  border: 1px solid; border-color: var(--sh) var(--hi) var(--hi) var(--sh);
  padding: 3px 8px;
}
.taskbar .tray .clock { font-variant-numeric: tabular-nums; }

#startmenu {
  display: none;
  position: fixed; left: 5px; bottom: 38px; width: 268px;
  background: var(--face);
  border: 2px solid; border-color: var(--hi) var(--dk) var(--dk) var(--hi);
  box-shadow: 3px -3px 0 rgba(0,0,0,.35);
  z-index: 210;
  padding: 3px 3px 3px 32px;
}
#startmenu.open { display: block; }
#startmenu::before {
  content: "ABP Academic";
  position: absolute; left: 0; top: 0; bottom: 0; width: 30px;
  background: linear-gradient(0deg, var(--navy), var(--navy2));
  color: var(--hi);
  writing-mode: vertical-rl; transform: rotate(180deg);
  font-family: var(--font-ui); font-size: 13px; font-weight: bold;
  text-align: left; padding: 10px 6px; letter-spacing: 1px;
}
#startmenu ul { list-style: none; margin: 0; padding: 0; }
#startmenu li.sep { height: 0; margin: 4px 2px; border-top: 1px solid var(--sh); border-bottom: 1px solid var(--hi); }
#startmenu button, #startmenu a {
  display: flex; align-items: center; gap: 9px; width: 100%; text-align: left;
  font-family: var(--font-ui); font-size: 12px;
  background: none; border: 0; padding: 6px 10px; cursor: pointer;
  color: var(--ink); text-decoration: none; min-width: 0; box-shadow: none;
}
#startmenu button:hover, #startmenu a:hover { background: var(--navy); color: var(--hi); }
#startmenu .gi { flex: 0 0 20px; height: 20px; background-repeat: no-repeat; background-size: 20px; }

/* ---------- 16. DIALOG ---------- */

.overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,.35);
  z-index: 300;
  align-items: center; justify-content: center;
  padding: 16px;
}
.overlay.open { display: flex; }
.dialog {
  width: 100%; max-width: 400px;
  background: var(--face);
  border: 2px solid; border-color: var(--hi) var(--dk) var(--dk) var(--hi);
  box-shadow: 4px 4px 0 rgba(0,0,0,.45);
  padding: 2px;
}
.dialog.wide { max-width: 560px; }
.dialog .titlebar { margin-bottom: 0; }
.dialog-body { padding: 16px 16px 6px; display: flex; gap: 14px; align-items: flex-start; font-size: 14px; }
.dialog-body .dico { flex: 0 0 34px; height: 34px; background-repeat: no-repeat; background-size: 34px; }
.dico-key  { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 34 34'%3E%3Ccircle cx='11' cy='12' r='7' fill='none' stroke='%23c8a000' stroke-width='4'/%3E%3Cpath d='M15 16 L30 29 M26 25l4-4 M22 21l3-3' stroke='%23c8a000' stroke-width='4' fill='none'/%3E%3C/svg%3E"); }
.dico-info { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 34 34'%3E%3Ccircle cx='17' cy='17' r='15' fill='%230a2f7a'/%3E%3Crect x='15' y='14' width='4' height='12' fill='%23fff'/%3E%3Crect x='15' y='8' width='4' height='4' fill='%23fff'/%3E%3C/svg%3E"); }
.dico-warn { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 34 34'%3E%3Cpath d='M17 2 L33 31 H1 Z' fill='%23ffd800' stroke='%23000' stroke-width='2'/%3E%3Crect x='15' y='12' width='4' height='11' fill='%23000'/%3E%3Crect x='15' y='25' width='4' height='4' fill='%23000'/%3E%3C/svg%3E"); }
.dialog-body .grow { flex: 1; min-width: 0; }
.dialog-body p { margin: 0 0 10px; }
.dialog-foot { display: flex; justify-content: flex-end; gap: 8px; padding: 8px 16px 16px; }
.err { color: #b00000; font-family: var(--font-ui); font-size: 11px; font-weight: bold; min-height: 15px; margin: 6px 0 0; }

/* ---------- 17. ASISTEN ---------- */

#clippy {
  position: fixed; right: 14px; bottom: 46px;
  z-index: 190;
  display: none;
  align-items: flex-end; gap: 8px;
  max-width: min(420px, calc(100vw - 28px));
}
#clippy.show { display: flex; }
#clippy .bubble {
  position: relative;
  background: #ffffe1;
  border: 1px solid var(--dk);
  box-shadow: 3px 3px 0 rgba(0,0,0,.3);
  padding: 12px 12px 10px;
  font-size: 14px; line-height: 1.45;
  border-radius: 12px;
  flex: 1; min-width: 0;
}
#clippy .bubble::after {
  content: ""; position: absolute; right: -9px; bottom: 22px;
  width: 0; height: 0;
  border: 9px solid transparent;
  border-left-color: #ffffe1;
}
#clippy .bubble p { margin: 0 0 10px; }
#clippy .bubble .row { display: flex; gap: 6px; flex-wrap: wrap; }
#clippy .bubble button { font-size: 11px; padding: 3px 10px; min-width: 0; }
#clippy .guy {
  flex: 0 0 62px; width: 62px; height: 82px;
  background: none; border: 0; padding: 0; box-shadow: none; min-width: 0;
  cursor: pointer;
  animation: bob 2.8s ease-in-out infinite;
}
#clippy .guy svg { width: 100%; height: 100%; display: block; }
@keyframes bob { 0%,100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-6px) rotate(-3deg); } }
#clippy .eye { animation: blinkeye 4.5s infinite; transform-origin: center; }
@keyframes blinkeye { 0%,92%,100% { transform: scaleY(1); } 96% { transform: scaleY(.1); } }

#clippy-tab {
  position: fixed; right: 14px; bottom: 46px; z-index: 190;
  display: none; align-items: center; gap: 6px;
  font-family: var(--font-ui); font-size: 11px;
}
#clippy-tab.show { display: flex; }

/* ---------- 18. FORMULIR ---------- */

fieldset {
  border: 2px groove #dfdfdf;
  margin: 0 0 14px; padding: 10px 14px 14px;
  background: #f4f4ec;
}
legend { font-family: var(--font-ui); font-size: 12px; font-weight: bold; color: var(--navy); padding: 0 5px; }

label.fld {
  display: block; font-family: var(--font-ui); font-size: 12px; font-weight: bold;
  margin: 8px 0 3px;
}

input[type=text], input[type=password], textarea, select {
  width: 100%;
  font-family: var(--font-mono); font-size: 13px;
  padding: 4px 5px;
  background: var(--hi); color: var(--ink);
  border: 2px solid; border-color: var(--sh) var(--hi) var(--hi) var(--sh);
  box-shadow: inset 1px 1px 0 var(--dk);
}
textarea { resize: vertical; line-height: 1.4; }

button, .btn {
  font-family: var(--font-ui); font-size: 12px;
  color: var(--ink); background: var(--face);
  border: 1px solid; border-color: #dfdfdf var(--dk) var(--dk) #dfdfdf;
  box-shadow: inset 1px 1px 0 var(--hi), inset -1px -1px 0 var(--sh);
  padding: 4px 14px; min-width: 84px; cursor: pointer;
  text-decoration: none; display: inline-block;
}
button:active, .btn:active {
  border-color: var(--dk) #dfdfdf #dfdfdf var(--dk);
  box-shadow: inset 1px 1px 0 var(--sh), inset -1px -1px 0 var(--hi);
  padding: 5px 13px 3px 15px;
}
button.small { min-width: 0; padding: 2px 8px; font-size: 11px; }
.btnrow { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }

.notebox {
  display: flex; gap: 10px; align-items: flex-start;
  background: #ffffe1;
  border: 2px solid; border-color: var(--hi) var(--sh) var(--sh) var(--hi);
  padding: 10px 12px; font-size: 14px; margin-top: 12px;
}
.notebox .ico {
  flex: 0 0 26px; height: 26px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 26 26'%3E%3Ccircle cx='13' cy='13' r='11' fill='%23ffd800' stroke='%23000'/%3E%3Crect x='11.5' y='6' width='3' height='9' fill='%23000'/%3E%3Crect x='11.5' y='17' width='3' height='3' fill='%23000'/%3E%3C/svg%3E") no-repeat center/26px;
}

.row-grid { display: grid; gap: 6px; margin-bottom: 6px; align-items: start; }
.row-grid input { width: 100%; }
.row-grid .del { min-width: 0; width: 34px; padding: 4px 0; color: #a00000; font-weight: bold; }
.rowhead {
  font-family: var(--font-ui); font-size: 11px; font-weight: bold;
  display: grid; gap: 6px; margin-bottom: 4px;
}

.mono-out {
  width: 100%; height: 170px;
  font-family: var(--font-mono); font-size: 12px;
  background: var(--dk); color: #33ff33;
  border: 2px solid; border-color: var(--sh) var(--hi) var(--hi) var(--sh);
  padding: 6px;
}

#gate { max-width: 430px; margin: 40px auto; }
#adminapp { display: none; }

.center { text-align: center; }
.small  { font-size: 12px; }
.gray   { color: #555; }
.ui     { font-family: var(--font-ui); font-size: 12px; }

/* ---------- 19. LAYAR KECIL ---------- */

@media (max-width: 780px) {
  body { padding: 4px 4px 44px; }
  .tool span { display: none; }
  .tool { width: 36px; }
  h1.wordart { font-size: 30px; }
  h2.wordart { font-size: 21px; }
  .hero { justify-content: flex-start; }
  .hero img { width: 96px; }
  .menubar { font-size: 11px; }
  dl.spec div { flex-direction: column; gap: 2px; }
  dl.spec dt { flex: none; }
  .taskbar .tasks { display: none; }
  #clippy { right: 8px; left: 8px; }
}

@media print {
  body { background: #fff; padding: 0; }
  .titlebar, .menubar, .toolbar, .locbar, .tabstrip, .statusbar,
  .taskbar, #startmenu, #clippy, #clippy-tab, .findbar, .overlay { display: none !important; }
  .browser { border: 0; box-shadow: none; max-width: none; }
  .viewport { border: 0; background: #fff; }
  .tabpane { display: block !important; page-break-inside: avoid; }
  .wordart { color: #000; -webkit-text-fill-color: #000; background: none; }
  .wordart::before { display: none; }
}
